diff --git a/gen/abusiveexperiencereport1/src/api/call_builders.rs b/gen/abusiveexperiencereport1/src/api/call_builders.rs index 2bd245491b..c27d30f730 100644 --- a/gen/abusiveexperiencereport1/src/api/call_builders.rs +++ b/gen/abusiveexperiencereport1/src/api/call_builders.rs @@ -393,7 +393,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()); diff --git a/gen/abusiveexperiencereport1/src/api/mod.rs b/gen/abusiveexperiencereport1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/abusiveexperiencereport1/src/api/mod.rs +++ b/gen/abusiveexperiencereport1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/abusiveexperiencereport1/src/api/schemas.rs b/gen/abusiveexperiencereport1/src/api/schemas.rs index d73bcd938c..c828f7350b 100644 --- a/gen/abusiveexperiencereport1/src/api/schemas.rs +++ b/gen/abusiveexperiencereport1/src/api/schemas.rs @@ -13,7 +13,7 @@ pub struct SiteSummaryResponse { /// The site's Abusive Experience Report status. #[serde(rename="abusiveStatus")] - pub abusive_status: Option, + pub abusive_status: Option, /// The time at which [enforcement](https://support.google.com/webtools/answer/7538608) against the site began or will begin. Not set when the filter_status is OFF. #[serde(rename="enforcementTime")] @@ -21,7 +21,7 @@ pub struct SiteSummaryResponse { /// The site's [enforcement status](https://support.google.com/webtools/answer/7538608). #[serde(rename="filterStatus")] - pub filter_status: Option, + pub filter_status: Option, /// The time at which the site's status last changed. #[serde(rename="lastChangeTime")] diff --git a/gen/acceleratedmobilepageurl1/src/api/mod.rs b/gen/acceleratedmobilepageurl1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/acceleratedmobilepageurl1/src/api/mod.rs +++ b/gen/acceleratedmobilepageurl1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/acceleratedmobilepageurl1/src/api/schemas.rs b/gen/acceleratedmobilepageurl1/src/api/schemas.rs index 106ae53279..56b7f9df41 100644 --- a/gen/acceleratedmobilepageurl1/src/api/schemas.rs +++ b/gen/acceleratedmobilepageurl1/src/api/schemas.rs @@ -37,7 +37,7 @@ pub struct AmpUrlError { /// The error code of an API call. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// An optional descriptive error message. #[serde(rename="errorMessage")] @@ -65,7 +65,7 @@ pub struct BatchGetAmpUrlsRequest { /// The lookup_strategy being requested. #[serde(rename="lookupStrategy")] - pub lookup_strategy: Option, + pub lookup_strategy: Option, /// List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive. Up to 50 URLs per lookup (see [Usage Limits](https://developers.google.com/amp/cache/reference/limits)). pub urls: Option>, diff --git a/gen/accessapproval1/src/api/call_builders.rs b/gen/accessapproval1/src/api/call_builders.rs index 996f4c2103..b6ec7a9950 100644 --- a/gen/accessapproval1/src/api/call_builders.rs +++ b/gen/accessapproval1/src/api/call_builders.rs @@ -1286,7 +1286,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()); @@ -1578,7 +1578,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()); @@ -1863,7 +1863,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()); @@ -2132,7 +2132,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()); @@ -2423,7 +2423,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2715,7 +2715,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()); @@ -2977,7 +2977,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()); @@ -3239,7 +3239,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()); @@ -3510,7 +3510,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3812,7 +3812,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()); @@ -4104,7 +4104,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()); @@ -4389,7 +4389,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()); @@ -4658,7 +4658,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()); @@ -4949,7 +4949,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5241,7 +5241,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()); @@ -5503,7 +5503,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()); @@ -5765,7 +5765,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()); @@ -6036,7 +6036,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6338,7 +6338,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()); @@ -6630,7 +6630,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()); @@ -6915,7 +6915,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()); @@ -7184,7 +7184,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()); @@ -7475,7 +7475,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7767,7 +7767,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()); @@ -8029,7 +8029,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()); @@ -8291,7 +8291,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()); @@ -8562,7 +8562,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/accessapproval1/src/api/mod.rs b/gen/accessapproval1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/accessapproval1/src/api/mod.rs +++ b/gen/accessapproval1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/accessapproval1/src/api/schemas.rs b/gen/accessapproval1/src/api/schemas.rs index 06eed14e3b..9b0c9eaefc 100644 --- a/gen/accessapproval1/src/api/schemas.rs +++ b/gen/accessapproval1/src/api/schemas.rs @@ -106,7 +106,7 @@ pub struct AccessReason { /// Type of access justification. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AccessReason {} @@ -293,7 +293,7 @@ pub struct EnrolledService { /// The enrollment level of the service. #[serde(rename="enrollmentLevel")] - pub enrollment_level: Option, + pub enrollment_level: Option, } impl client::Part for EnrolledService {} diff --git a/gen/accessapproval1_beta1/src/api/call_builders.rs b/gen/accessapproval1_beta1/src/api/call_builders.rs index fce0afb257..90c299bfc7 100644 --- a/gen/accessapproval1_beta1/src/api/call_builders.rs +++ b/gen/accessapproval1_beta1/src/api/call_builders.rs @@ -1219,7 +1219,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()); @@ -1520,7 +1520,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()); @@ -1805,7 +1805,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()); @@ -2075,7 +2075,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2382,7 +2382,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()); @@ -2644,7 +2644,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()); @@ -2916,7 +2916,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3229,7 +3229,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()); @@ -3530,7 +3530,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()); @@ -3815,7 +3815,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()); @@ -4085,7 +4085,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4392,7 +4392,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()); @@ -4654,7 +4654,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()); @@ -4926,7 +4926,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5239,7 +5239,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()); @@ -5540,7 +5540,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()); @@ -5825,7 +5825,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()); @@ -6095,7 +6095,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6402,7 +6402,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()); @@ -6664,7 +6664,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()); @@ -6936,7 +6936,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/accessapproval1_beta1/src/api/mod.rs b/gen/accessapproval1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/accessapproval1_beta1/src/api/mod.rs +++ b/gen/accessapproval1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/accessapproval1_beta1/src/api/schemas.rs b/gen/accessapproval1_beta1/src/api/schemas.rs index 6ad6598ecb..d434975c4b 100644 --- a/gen/accessapproval1_beta1/src/api/schemas.rs +++ b/gen/accessapproval1_beta1/src/api/schemas.rs @@ -119,7 +119,7 @@ pub struct AccessReason { /// Type of access justification. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AccessReason {} @@ -319,7 +319,7 @@ pub struct EnrolledService { /// The enrollment level of the service. #[serde(rename="enrollmentLevel")] - pub enrollment_level: Option, + pub enrollment_level: Option, } impl client::Part for EnrolledService {} diff --git a/gen/accesscontextmanager1/src/api/mod.rs b/gen/accesscontextmanager1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/accesscontextmanager1/src/api/mod.rs +++ b/gen/accesscontextmanager1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/accesscontextmanager1/src/api/schemas.rs b/gen/accesscontextmanager1/src/api/schemas.rs index 59dea1cc69..e5f8f51f35 100644 --- a/gen/accesscontextmanager1/src/api/schemas.rs +++ b/gen/accesscontextmanager1/src/api/schemas.rs @@ -120,7 +120,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -142,15 +142,15 @@ pub struct AuthorizedOrgsDesc { /// The asset type of this authorized orgs desc. e.g. device, credential strength. #[serde(rename="assetType")] - pub asset_type: Option, + pub asset_type: Option, /// Authorization direction of this authorization relationship. i.e. Whether to allow specified orgs to evaluate this org's traffic, or allow specified orgs' traffic to be evaluated by this org. Orgs specified as `AUTHORIZATION_DIRECTION_TO` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in order for this relationship to take effect. Orgs specified as `AUTHORIZATION_DIRECTION_FROM` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in order for this relationship to take effect. #[serde(rename="authorizationDirection")] - pub authorization_direction: Option, + pub authorization_direction: Option, /// The authorization type of this authorized orgs desc. e.g.authorization, troubleshooting or logging. #[serde(rename="authorizationType")] - pub authorization_type: Option, + pub authorization_type: Option, /// Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N" pub name: Option, @@ -173,7 +173,7 @@ pub struct BasicLevel { /// How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND. #[serde(rename="combiningFunction")] - pub combining_function: Option, + pub combining_function: Option, /// Required. A list of requirements for the `AccessLevel` to be granted. pub conditions: Option>, @@ -295,11 +295,11 @@ pub struct DevicePolicy { /// Allowed device management levels, an empty list allows all management levels. #[serde(rename="allowedDeviceManagementLevels")] - pub allowed_device_management_levels: Option>, + pub allowed_device_management_levels: Option>, /// Allowed encryptions statuses, an empty list allows all statuses. #[serde(rename="allowedEncryptionStatuses")] - pub allowed_encryption_statuses: Option>, + pub allowed_encryption_statuses: Option>, /// Allowed OS versions, an empty list allows all types and all versions. #[serde(rename="osConstraints")] @@ -334,7 +334,7 @@ pub struct EgressFrom { /// Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. #[serde(rename="identityType")] - pub identity_type: Option, + pub identity_type: Option, } impl client::Part for EgressFrom {} @@ -500,7 +500,7 @@ pub struct IngressFrom { /// Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. #[serde(rename="identityType")] - pub identity_type: Option, + pub identity_type: Option, /// Sources that this IngressPolicy authorizes access from. pub sources: Option>, @@ -794,7 +794,7 @@ pub struct OsConstraint { /// Required. The allowed OS type. #[serde(rename="osType")] - pub os_type: Option, + pub os_type: Option, /// Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to domain policies, and the caller has permission to call the API targeted by the request. #[serde(rename="requireVerifiedChromeOs")] @@ -903,7 +903,7 @@ pub struct ServicePerimeter { /// Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, the restricted service list as well as access level lists must be empty. #[serde(rename="perimeterType")] - pub perimeter_type: Option, + pub perimeter_type: Option, /// Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the "use_explicit_dry_run_spec" flag is set. pub spec: Option, diff --git a/gen/accesscontextmanager1_beta/src/api/mod.rs b/gen/accesscontextmanager1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/accesscontextmanager1_beta/src/api/mod.rs +++ b/gen/accesscontextmanager1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/accesscontextmanager1_beta/src/api/schemas.rs b/gen/accesscontextmanager1_beta/src/api/schemas.rs index bf6bc4967c..a15de5ea3b 100644 --- a/gen/accesscontextmanager1_beta/src/api/schemas.rs +++ b/gen/accesscontextmanager1_beta/src/api/schemas.rs @@ -71,7 +71,7 @@ pub struct BasicLevel { /// How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND. #[serde(rename="combiningFunction")] - pub combining_function: Option, + pub combining_function: Option, /// Required. A list of requirements for the `AccessLevel` to be granted. pub conditions: Option>, @@ -138,11 +138,11 @@ pub struct DevicePolicy { /// Allowed device management levels, an empty list allows all management levels. #[serde(rename="allowedDeviceManagementLevels")] - pub allowed_device_management_levels: Option>, + pub allowed_device_management_levels: Option>, /// Allowed encryptions statuses, an empty list allows all statuses. #[serde(rename="allowedEncryptionStatuses")] - pub allowed_encryption_statuses: Option>, + pub allowed_encryption_statuses: Option>, /// Allowed OS versions, an empty list allows all types and all versions. #[serde(rename="osConstraints")] @@ -315,7 +315,7 @@ pub struct OsConstraint { /// Required. The allowed OS type. #[serde(rename="osType")] - pub os_type: Option, + pub os_type: Option, /// Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to domain policies, and the caller has permission to call the API targeted by the request. #[serde(rename="requireVerifiedChromeOs")] @@ -347,7 +347,7 @@ pub struct ServicePerimeter { /// Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, restricted/unrestricted service lists as well as access lists must be empty. #[serde(rename="perimeterType")] - pub perimeter_type: Option, + pub perimeter_type: Option, /// Current ServicePerimeter configuration. Specifies sets of resources, restricted/unrestricted services and access levels that determine perimeter content and boundaries. pub status: Option, diff --git a/gen/adexchangebuyer1d3/src/api/mod.rs b/gen/adexchangebuyer1d3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adexchangebuyer1d3/src/api/mod.rs +++ b/gen/adexchangebuyer1d3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adexchangebuyer1d4/README.md b/gen/adexchangebuyer1d4/README.md index 9e4251499f..7c52810969 100644 --- a/gen/adexchangebuyer1d4/README.md +++ b/gen/adexchangebuyer1d4/README.md @@ -123,11 +123,11 @@ let mut hub = AdExchangeBuyer::new(hyper::Client::builder().build(hyper_rustls:: // Values shown here are possibly random and not representative ! let result = hub.creatives().list() .page_token("et") - .open_auction_status_filter("magna") - .max_results(90) - .deals_status_filter("ipsum") - .add_buyer_creative_id("voluptua.") - .add_account_id(-27) + .open_auction_status_filter(&Default::default()) + .max_results(68) + .deals_status_filter(&Default::default()) + .add_buyer_creative_id("no") + .add_account_id(-55) .doit().await; match result { diff --git a/gen/adexchangebuyer1d4/src/api/hub.rs b/gen/adexchangebuyer1d4/src/api/hub.rs index 1076b3bb56..7aedbd42ca 100644 --- a/gen/adexchangebuyer1d4/src/api/hub.rs +++ b/gen/adexchangebuyer1d4/src/api/hub.rs @@ -32,12 +32,12 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.creatives().list() -/// .page_token("ipsum") -/// .open_auction_status_filter("gubergren") -/// .max_results(50) -/// .deals_status_filter("gubergren") -/// .add_buyer_creative_id("eos") -/// .add_account_id(-4) +/// .page_token("amet.") +/// .open_auction_status_filter(&Default::default()) +/// .max_results(42) +/// .deals_status_filter(&Default::default()) +/// .add_buyer_creative_id("amet.") +/// .add_account_id(-20) /// .doit().await; /// /// match result { diff --git a/gen/adexchangebuyer1d4/src/api/method_builders.rs b/gen/adexchangebuyer1d4/src/api/method_builders.rs index 0fadba7ac0..911dcae009 100644 --- a/gen/adexchangebuyer1d4/src/api/method_builders.rs +++ b/gen/adexchangebuyer1d4/src/api/method_builders.rs @@ -1065,13 +1065,13 @@ impl<'a, S> ProposalMethods<'a, S> { /// * `proposalId` - The proposal id to update. /// * `revisionNumber` - The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. /// * `updateAction` - The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. - pub fn patch(&self, request: Proposal, proposal_id: &str, revision_number: i64, update_action: &str) -> ProposalPatchCall<'a, S> { + pub fn patch(&self, request: Proposal, proposal_id: &str, revision_number: i64, update_action: &ProposalUpdateActionEnum) -> ProposalPatchCall<'a, S> { ProposalPatchCall { hub: self.hub, _request: request, _proposal_id: proposal_id.to_string(), _revision_number: revision_number, - _update_action: update_action.to_string(), + _update_action: update_action.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -1118,13 +1118,13 @@ impl<'a, S> ProposalMethods<'a, S> { /// * `proposalId` - The proposal id to update. /// * `revisionNumber` - The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. /// * `updateAction` - The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. - pub fn update(&self, request: Proposal, proposal_id: &str, revision_number: i64, update_action: &str) -> ProposalUpdateCall<'a, S> { + pub fn update(&self, request: Proposal, proposal_id: &str, revision_number: i64, update_action: &ProposalUpdateActionEnum) -> ProposalUpdateCall<'a, S> { ProposalUpdateCall { hub: self.hub, _request: request, _proposal_id: proposal_id.to_string(), _revision_number: revision_number, - _update_action: update_action.to_string(), + _update_action: update_action.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/adexchangebuyer1d4/src/api/mod.rs b/gen/adexchangebuyer1d4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adexchangebuyer1d4/src/api/mod.rs +++ b/gen/adexchangebuyer1d4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adexchangebuyer1d4/src/lib.rs b/gen/adexchangebuyer1d4/src/lib.rs index 2628823b9b..d69c5d30b9 100644 --- a/gen/adexchangebuyer1d4/src/lib.rs +++ b/gen/adexchangebuyer1d4/src/lib.rs @@ -123,12 +123,12 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.creatives().list() -//! .page_token("sanctus") -//! .open_auction_status_filter("sed") -//! .max_results(99) -//! .deals_status_filter("takimata") -//! .add_buyer_creative_id("amet.") -//! .add_account_id(-20) +//! .page_token("voluptua.") +//! .open_auction_status_filter(&Default::default()) +//! .max_results(74) +//! .deals_status_filter(&Default::default()) +//! .add_buyer_creative_id("sanctus") +//! .add_account_id(-80) //! .doit().await; //! //! match result { diff --git a/gen/adexchangebuyer2_v2_beta1/src/api/mod.rs b/gen/adexchangebuyer2_v2_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adexchangebuyer2_v2_beta1/src/api/mod.rs +++ b/gen/adexchangebuyer2_v2_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adexchangebuyer2_v2_beta1/src/api/schemas.rs b/gen/adexchangebuyer2_v2_beta1/src/api/schemas.rs index c7da85b245..a14febf649 100644 --- a/gen/adexchangebuyer2_v2_beta1/src/api/schemas.rs +++ b/gen/adexchangebuyer2_v2_beta1/src/api/schemas.rs @@ -54,7 +54,7 @@ pub struct AdSize { /// The size type of the ad slot. #[serde(rename="sizeType")] - pub size_type: Option, + pub size_type: Option, /// The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -133,7 +133,7 @@ pub struct AppContext { /// The app types this restriction applies to. #[serde(rename="appTypes")] - pub app_types: Option>, + pub app_types: Option>, } impl client::Part for AppContext {} @@ -149,7 +149,7 @@ pub struct AuctionContext { /// The auction types this restriction applies to. #[serde(rename="auctionTypes")] - pub auction_types: Option>, + pub auction_types: Option>, } impl client::Part for AuctionContext {} @@ -215,7 +215,7 @@ pub struct BidResponseWithoutBidsStatusRow { pub row_dimensions: Option, /// The status specifying why the bid responses were considered to have no applicable bids. - pub status: Option, + pub status: Option, } impl client::Part for BidResponseWithoutBidsStatusRow {} @@ -310,17 +310,17 @@ pub struct Client { /// An optional field for specifying the type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. #[serde(rename="entityType")] - pub entity_type: Option, + pub entity_type: Option, /// Optional arbitrary unique identifier of this client buyer from the standpoint of its Ad Exchange sponsor buyer. This field can be used to associate a client buyer with the identifier in the namespace of its sponsor buyer, lookup client buyers by that identifier and verify whether an Ad Exchange counterpart of a given client buyer already exists. If present, must be unique among all the client buyers for its Ad Exchange sponsor buyer. #[serde(rename="partnerClientId")] pub partner_client_id: Option, /// The role which is assigned to the client buyer. Each role implies a set of permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. - pub role: Option, + pub role: Option, /// The status of the client buyer. - pub status: Option, + pub status: Option, /// Whether the client buyer will be visible to sellers. #[serde(rename="visibleToSeller")] @@ -353,7 +353,7 @@ pub struct ClientUser { pub email: Option, /// The status of the client user. - pub status: Option, + pub status: Option, /// The unique numerical ID of the client user that has accepted an invitation. The value of this field is ignored in an update operation. #[serde(rename="userId")] @@ -445,7 +445,7 @@ pub struct Correction { /// The type of correction that was applied to the creative. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Correction {} @@ -491,7 +491,7 @@ pub struct Creative { pub api_update_time: Option>, /// All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. - pub attributes: Option>, + pub attributes: Option>, /// The set of destination URLs for the creative. #[serde(rename="clickThroughUrls")] @@ -506,7 +506,7 @@ pub struct Creative { /// Output only. The top-level deals status of this creative. If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method. #[serde(rename="dealsStatus")] - pub deals_status: Option, + pub deals_status: Option, /// The set of declared destination URLs for the creative. #[serde(rename="declaredClickThroughUrls")] @@ -545,11 +545,11 @@ pub struct Creative { /// Output only. The top-level open auction status of this creative. If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method. #[serde(rename="openAuctionStatus")] - pub open_auction_status: Option, + pub open_auction_status: Option, /// All restricted categories for the ads that may be shown from this creative. #[serde(rename="restrictedCategories")] - pub restricted_categories: Option>, + pub restricted_categories: Option>, /// Output only. The granular status of this ad in specific contexts. A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS versus HTTP request, or the type of auction). #[serde(rename="servingRestrictions")] @@ -604,7 +604,7 @@ pub struct CreativeRestrictions { /// The format of the environment that the creatives will be displayed in. #[serde(rename="creativeFormat")] - pub creative_format: Option, + pub creative_format: Option, /// no description provided #[serde(rename="creativeSpecifications")] @@ -612,7 +612,7 @@ pub struct CreativeRestrictions { /// Skippable video ads allow viewers to skip ads after 5 seconds. #[serde(rename="skippableAdType")] - pub skippable_ad_type: Option, + pub skippable_ad_type: Option, } impl client::Part for CreativeRestrictions {} @@ -628,7 +628,7 @@ pub struct CreativeSize { /// What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video). #[serde(rename="allowedFormats")] - pub allowed_formats: Option>, + pub allowed_formats: Option>, /// For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO #[serde(rename="companionSizes")] @@ -636,18 +636,18 @@ pub struct CreativeSize { /// The creative size type. #[serde(rename="creativeSizeType")] - pub creative_size_type: Option, + pub creative_size_type: Option, /// Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE. #[serde(rename="nativeTemplate")] - pub native_template: Option, + pub native_template: Option, /// For regular or video creative size type, specifies the size of the creative pub size: Option, /// The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO. #[serde(rename="skippableAdType")] - pub skippable_ad_type: Option, + pub skippable_ad_type: Option, } impl client::Part for CreativeSize {} @@ -750,7 +750,7 @@ pub struct DayPart { /// The day of the week to target. If unspecified, applicable to all days. #[serde(rename="dayOfWeek")] - pub day_of_week: Option, + pub day_of_week: Option, /// The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries. #[serde(rename="endTime")] @@ -778,7 +778,7 @@ pub struct DayPartTargeting { /// The timezone to use for interpreting the day part targeting. #[serde(rename="timeZoneType")] - pub time_zone_type: Option, + pub time_zone_type: Option, } impl client::Part for DayPartTargeting {} @@ -819,7 +819,7 @@ pub struct Deal { /// Output only. Specifies the creative pre-approval policy. #[serde(rename="creativePreApprovalPolicy")] - pub creative_pre_approval_policy: Option, + pub creative_pre_approval_policy: Option, /// Output only. Restricitions about the creatives associated with the deal (for example, size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager. #[serde(rename="creativeRestrictions")] @@ -827,7 +827,7 @@ pub struct Deal { /// Output only. Specifies whether the creative is safeFrame compatible. #[serde(rename="creativeSafeFrameCompatibility")] - pub creative_safe_frame_compatibility: Option, + pub creative_safe_frame_compatibility: Option, /// Output only. A unique deal ID for the deal (server-assigned). #[serde(rename="dealId")] @@ -862,7 +862,7 @@ pub struct Deal { /// Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer. #[serde(rename="programmaticCreativeSource")] - pub programmatic_creative_source: Option, + pub programmatic_creative_source: Option, /// Output only. ID of the proposal that this deal is part of. #[serde(rename="proposalId")] @@ -874,7 +874,7 @@ pub struct Deal { /// The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. #[serde(rename="syndicationProduct")] - pub syndication_product: Option, + pub syndication_product: Option, /// Output only. Specifies the subset of inventory targeted by the deal. pub targeting: Option, @@ -909,7 +909,7 @@ pub struct DealPauseStatus { /// The role of the person who first paused this deal. #[serde(rename="firstPausedBy")] - pub first_paused_by: Option, + pub first_paused_by: Option, /// True, if the buyer has paused the deal unilaterally. #[serde(rename="hasBuyerPaused")] @@ -953,7 +953,7 @@ pub struct DealTerms { /// Visibility of the URL in bid requests. (default: BRANDED) #[serde(rename="brandingType")] - pub branding_type: Option, + pub branding_type: Option, /// Publisher provided description for the terms. pub description: Option, @@ -997,11 +997,11 @@ pub struct DeliveryControl { /// Output only. Specified the creative blocking levels to be applied. #[serde(rename="creativeBlockingLevel")] - pub creative_blocking_level: Option, + pub creative_blocking_level: Option, /// Output only. Specifies how the impression delivery will be paced. #[serde(rename="deliveryRateType")] - pub delivery_rate_type: Option, + pub delivery_rate_type: Option, /// Output only. Specifies any frequency caps. #[serde(rename="frequencyCaps")] @@ -1023,7 +1023,7 @@ pub struct Disapproval { pub details: Option>, /// The categorized reason for disapproval. - pub reason: Option, + pub reason: Option, } impl client::Part for Disapproval {} @@ -1070,7 +1070,7 @@ pub struct FilterSet { /// The set of dimensions along which to break down the response; may be empty. If multiple dimensions are requested, the breakdown is along the Cartesian product of the requested dimensions. #[serde(rename="breakdownDimensions")] - pub breakdown_dimensions: Option>, + pub breakdown_dimensions: Option>, /// The ID of the creative on which to filter; optional. This field may be set only for a filter set that accesses account-level troubleshooting data, for example, one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern. #[serde(rename="creativeId")] @@ -1082,19 +1082,19 @@ pub struct FilterSet { pub deal_id: Option, /// The environment on which to filter; optional. - pub environment: Option, + pub environment: Option, /// Creative format bidded on or allowed to bid on, can be empty. - pub format: Option, + pub format: Option, /// Creative formats bidded on or allowed to bid on, can be empty. Although this field is a list, it can only be populated with a single item. A HTTP 400 bad request error will be returned in the response if you specify multiple items. - pub formats: Option>, + pub formats: Option>, /// A user-defined name of the filter set. Filter set names must be unique globally and match one of the patterns: - `bidders/*/filterSets/*` (for accessing bidder-level troubleshooting data) - `bidders/*/accounts/*/filterSets/*` (for accessing account-level troubleshooting data) This field is required in create operations. pub name: Option, /// The list of platforms on which to filter; may be empty. The filters represented by multiple platforms are ORed together (for example, if non-empty, results must match any one of the platforms). - pub platforms: Option>, + pub platforms: Option>, /// For Open Bidding partners only. The list of publisher identifiers on which to filter; may be empty. The filters represented by multiple publisher identifiers are ORed together. #[serde(rename="publisherIdentifiers")] @@ -1114,7 +1114,7 @@ pub struct FilterSet { /// The granularity of time intervals if a time series breakdown is preferred; optional. #[serde(rename="timeSeriesGranularity")] - pub time_series_granularity: Option, + pub time_series_granularity: Option, } impl client::RequestValue for FilterSet {} @@ -1210,7 +1210,7 @@ pub struct FrequencyCap { /// The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped. #[serde(rename="timeUnitType")] - pub time_unit_type: Option, + pub time_unit_type: Option, } impl client::Part for FrequencyCap {} @@ -1255,7 +1255,7 @@ pub struct GuaranteedFixedPriceTerms { /// The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD. #[serde(rename="reservationType")] - pub reservation_type: Option, + pub reservation_type: Option, } impl client::Part for GuaranteedFixedPriceTerms {} @@ -1543,7 +1543,7 @@ pub struct ListCreativeStatusBreakdownByDetailResponse { /// The type of detail that the detail IDs represent. #[serde(rename="detailType")] - pub detail_type: Option, + pub detail_type: Option, /// List of rows, with counts of bids with a given creative status aggregated by detail. #[serde(rename="filteredBidDetailRows")] @@ -2008,7 +2008,7 @@ pub struct NonBillableWinningBidStatusRow { pub row_dimensions: Option, /// The status specifying why the winning bids were not billed. - pub status: Option, + pub status: Option, } impl client::Part for NonBillableWinningBidStatusRow {} @@ -2068,7 +2068,7 @@ pub struct Note { /// Output only. The role of the person (buyer/seller) creating the note. #[serde(rename="creatorRole")] - pub creator_role: Option, + pub creator_role: Option, /// The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. pub note: Option, @@ -2177,7 +2177,7 @@ impl client::Part for PlacementTargeting {} pub struct PlatformContext { /// The platforms this restriction applies to. - pub platforms: Option>, + pub platforms: Option>, } impl client::Part for PlatformContext {} @@ -2196,7 +2196,7 @@ pub struct Price { /// The pricing type for the deal/product. (default: CPM) #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, } impl client::Part for Price {} @@ -2294,7 +2294,7 @@ pub struct Product { /// The syndication product associated with the deal. #[serde(rename="syndicationProduct")] - pub syndication_product: Option, + pub syndication_product: Option, /// Targeting that is shared between the buyer and the seller. Each targeting criterion has a specified key and for each key there is a list of inclusion value or exclusion values. #[serde(rename="targetingCriterion")] @@ -2368,14 +2368,14 @@ pub struct Proposal { /// Output only. The role of the last user that either updated the proposal or left a comment. #[serde(rename="lastUpdaterOrCommentorRole")] - pub last_updater_or_commentor_role: Option, + pub last_updater_or_commentor_role: Option, /// Output only. The notes associated with this proposal. pub notes: Option>, /// Output only. Indicates whether the buyer/seller created the proposal. #[serde(rename="originatorRole")] - pub originator_role: Option, + pub originator_role: Option, /// Output only. Private auction ID if this proposal is a private auction proposal. #[serde(rename="privateAuctionId")] @@ -2392,7 +2392,7 @@ pub struct Proposal { /// Output only. The current state of the proposal. #[serde(rename="proposalState")] - pub proposal_state: Option, + pub proposal_state: Option, /// Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. pub seller: Option, @@ -2505,7 +2505,7 @@ pub struct PublisherProfileMobileApplication { /// The app store the app belongs to. #[serde(rename="appStore")] - pub app_store: Option, + pub app_store: Option, /// The external ID for the app from its app store. #[serde(rename="externalAppId")] @@ -2637,7 +2637,7 @@ impl client::Part for RowDimensions {} pub struct SecurityContext { /// The security types in this context. - pub securities: Option>, + pub securities: Option>, } impl client::Part for SecurityContext {} @@ -2672,7 +2672,7 @@ impl client::Part for Seller {} pub struct ServingContext { /// Matches all contexts. - pub all: Option, + pub all: Option, /// Matches impressions for a particular app type. #[serde(rename="appType")] @@ -2715,7 +2715,7 @@ pub struct ServingRestriction { pub disapproval_reasons: Option>, /// The status of the creative in this context (for example, it has been explicitly disapproved or is pending review). - pub status: Option, + pub status: Option, } impl client::Part for ServingRestriction {} @@ -2922,11 +2922,11 @@ pub struct VideoTargeting { /// A list of video positions to be excluded. Position types can either be included or excluded (XOR). #[serde(rename="excludedPositionTypes")] - pub excluded_position_types: Option>, + pub excluded_position_types: Option>, /// A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty. #[serde(rename="targetedPositionTypes")] - pub targeted_position_types: Option>, + pub targeted_position_types: Option>, } impl client::Part for VideoTargeting {} diff --git a/gen/adexchangeseller2/src/api/call_builders.rs b/gen/adexchangeseller2/src/api/call_builders.rs index fab19fade8..d29dd5014d 100644 --- a/gen/adexchangeseller2/src/api/call_builders.rs +++ b/gen/adexchangeseller2/src/api/call_builders.rs @@ -1128,7 +1128,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -1408,7 +1408,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._locale.as_ref() { params.push("locale", value); } @@ -1678,9 +1678,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); - params.push("customChannelId", self._custom_channel_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); + params.push("customChannelId", &self._custom_channel_id); params.extend(self._additional_params.iter()); @@ -1963,8 +1963,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2252,7 +2252,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -2510,7 +2510,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -2769,8 +2769,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("dealId", self._deal_id); + params.push("accountId", &self._account_id); + params.push("dealId", &self._deal_id); params.extend(self._additional_params.iter()); @@ -3038,7 +3038,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -3303,8 +3303,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("savedReportId", self._saved_report_id); + params.push("accountId", &self._account_id); + params.push("savedReportId", &self._saved_report_id); if let Some(value) = self._start_index.as_ref() { params.push("startIndex", value.to_string()); } @@ -3606,7 +3606,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3905,9 +3905,9 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("startDate", self._start_date); - params.push("endDate", self._end_date); + params.push("accountId", &self._account_id); + params.push("startDate", &self._start_date); + params.push("endDate", &self._end_date); if let Some(value) = self._start_index.as_ref() { params.push("startIndex", value.to_string()); } @@ -4281,8 +4281,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -4570,7 +4570,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); diff --git a/gen/adexchangeseller2/src/api/mod.rs b/gen/adexchangeseller2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adexchangeseller2/src/api/mod.rs +++ b/gen/adexchangeseller2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adexperiencereport1/src/api/call_builders.rs b/gen/adexperiencereport1/src/api/call_builders.rs index 6f228431b9..6988409ab9 100644 --- a/gen/adexperiencereport1/src/api/call_builders.rs +++ b/gen/adexperiencereport1/src/api/call_builders.rs @@ -416,7 +416,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()); diff --git a/gen/adexperiencereport1/src/api/mod.rs b/gen/adexperiencereport1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adexperiencereport1/src/api/mod.rs +++ b/gen/adexperiencereport1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adexperiencereport1/src/api/schemas.rs b/gen/adexperiencereport1/src/api/schemas.rs index 534574b854..f969634f14 100644 --- a/gen/adexperiencereport1/src/api/schemas.rs +++ b/gen/adexperiencereport1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct PlatformSummary { /// The site's Ad Experience Report status on this platform. #[serde(rename="betterAdsStatus")] - pub better_ads_status: Option, + pub better_ads_status: Option, /// The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF. #[serde(rename="enforcementTime")] @@ -17,14 +17,14 @@ pub struct PlatformSummary { /// The site's [enforcement status](https://support.google.com/webtools/answer/7308033) on this platform. #[serde(rename="filterStatus")] - pub filter_status: Option, + pub filter_status: Option, /// The time at which the site's status last changed on this platform. #[serde(rename="lastChangeTime")] pub last_change_time: Option>, /// The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions. - pub region: Option>, + pub region: Option>, /// A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report. #[serde(rename="reportUrl")] diff --git a/gen/admob1/src/api/call_builders.rs b/gen/admob1/src/api/call_builders.rs index 3e6d4d376f..e7812ac16b 100644 --- a/gen/admob1/src/api/call_builders.rs +++ b/gen/admob1/src/api/call_builders.rs @@ -1060,7 +1060,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1346,7 +1346,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1635,7 +1635,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1927,7 +1927,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2212,7 +2212,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()); diff --git a/gen/admob1/src/api/mod.rs b/gen/admob1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/admob1/src/api/mod.rs +++ b/gen/admob1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/admob1/src/api/schemas.rs b/gen/admob1/src/api/schemas.rs index 445daffb19..c81a28e4a4 100644 --- a/gen/admob1/src/api/schemas.rs +++ b/gen/admob1/src/api/schemas.rs @@ -44,7 +44,7 @@ pub struct App { /// Output only. The approval state for the app. #[serde(rename="appApprovalState")] - pub app_approval_state: Option, + pub app_approval_state: Option, /// The externally visible ID of the app which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~0123456789 #[serde(rename="appId")] @@ -342,7 +342,7 @@ pub struct MediationReportSpec { pub dimension_filters: Option>, /// List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account. - pub dimensions: Option>, + pub dimensions: Option>, /// Localization settings of the report. #[serde(rename="localizationSettings")] @@ -353,7 +353,7 @@ pub struct MediationReportSpec { pub max_report_rows: Option, /// List of metrics of the report. A report must specify at least one metric. - pub metrics: Option>, + pub metrics: Option>, /// Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined. #[serde(rename="sortConditions")] @@ -376,7 +376,7 @@ impl client::Part for MediationReportSpec {} pub struct MediationReportSpecDimensionFilter { /// Applies the filter criterion to the specified dimension. - pub dimension: Option, + pub dimension: Option, /// Matches a row if its value for the specified dimension is in one of the values specified in this condition. #[serde(rename="matchesAny")] @@ -395,13 +395,13 @@ impl client::Part for MediationReportSpecDimensionFilter {} pub struct MediationReportSpecSortCondition { /// Sort by the specified dimension. - pub dimension: Option, + pub dimension: Option, /// Sort by the specified metric. - pub metric: Option, + pub metric: Option, /// Sorting order of the dimension or metric. - pub order: Option, + pub order: Option, } impl client::Part for MediationReportSpecSortCondition {} @@ -424,7 +424,7 @@ pub struct NetworkReportSpec { pub dimension_filters: Option>, /// List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account. - pub dimensions: Option>, + pub dimensions: Option>, /// Localization settings of the report. #[serde(rename="localizationSettings")] @@ -435,7 +435,7 @@ pub struct NetworkReportSpec { pub max_report_rows: Option, /// List of metrics of the report. A report must specify at least one metric. - pub metrics: Option>, + pub metrics: Option>, /// Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined. #[serde(rename="sortConditions")] @@ -458,7 +458,7 @@ impl client::Part for NetworkReportSpec {} pub struct NetworkReportSpecDimensionFilter { /// Applies the filter criterion to the specified dimension. - pub dimension: Option, + pub dimension: Option, /// Matches a row if its value for the specified dimension is in one of the values specified in this condition. #[serde(rename="matchesAny")] @@ -477,13 +477,13 @@ impl client::Part for NetworkReportSpecDimensionFilter {} pub struct NetworkReportSpecSortCondition { /// Sort by the specified dimension. - pub dimension: Option, + pub dimension: Option, /// Sort by the specified metric. - pub metric: Option, + pub metric: Option, /// Sorting order of the dimension or metric. - pub order: Option, + pub order: Option, } impl client::Part for NetworkReportSpecSortCondition {} @@ -642,7 +642,7 @@ pub struct ReportWarning { /// Type of the warning. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ReportWarning {} diff --git a/gen/adsense1d4/src/api/call_builders.rs b/gen/adsense1d4/src/api/call_builders.rs index 89146c6a9e..d66658b98a 100644 --- a/gen/adsense1d4/src/api/call_builders.rs +++ b/gen/adsense1d4/src/api/call_builders.rs @@ -2386,8 +2386,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._tag_partner.as_ref() { params.push("tagPartner", value); } @@ -2669,7 +2669,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2953,9 +2953,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); - params.push("adUnitId", self._ad_unit_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); + params.push("adUnitId", &self._ad_unit_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3255,9 +3255,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); - params.push("adUnitId", self._ad_unit_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); + params.push("adUnitId", &self._ad_unit_id); params.extend(self._additional_params.iter()); @@ -3537,9 +3537,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); - params.push("adUnitId", self._ad_unit_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); + params.push("adUnitId", &self._ad_unit_id); params.extend(self._additional_params.iter()); @@ -3824,8 +3824,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -4124,8 +4124,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("alertId", self._alert_id); + params.push("accountId", &self._account_id); + params.push("alertId", &self._alert_id); params.extend(self._additional_params.iter()); @@ -4384,7 +4384,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._locale.as_ref() { params.push("locale", value); } @@ -4660,9 +4660,9 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); - params.push("customChannelId", self._custom_channel_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); + params.push("customChannelId", &self._custom_channel_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -4972,9 +4972,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); - params.push("customChannelId", self._custom_channel_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); + params.push("customChannelId", &self._custom_channel_id); params.extend(self._additional_params.iter()); @@ -5257,8 +5257,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5546,7 +5546,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -5811,8 +5811,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("savedReportId", self._saved_report_id); + params.push("accountId", &self._account_id); + params.push("savedReportId", &self._saved_report_id); if let Some(value) = self._start_index.as_ref() { params.push("startIndex", value.to_string()); } @@ -6114,7 +6114,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -6417,9 +6417,9 @@ where } let mut params = Params::with_capacity(13 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("startDate", self._start_date); - params.push("endDate", self._end_date); + params.push("accountId", &self._account_id); + params.push("startDate", &self._start_date); + params.push("endDate", &self._end_date); if let Some(value) = self._use_timezone_reporting.as_ref() { params.push("useTimezoneReporting", value.to_string()); } @@ -6809,8 +6809,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("savedAdStyleId", self._saved_ad_style_id); + params.push("accountId", &self._account_id); + params.push("savedAdStyleId", &self._saved_ad_style_id); params.extend(self._additional_params.iter()); @@ -7082,7 +7082,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -7365,8 +7365,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("adClientId", self._ad_client_id); + params.push("accountId", &self._account_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -7656,7 +7656,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._tree.as_ref() { params.push("tree", value.to_string()); } @@ -8455,8 +8455,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); - params.push("adUnitId", self._ad_unit_id); + params.push("adClientId", &self._ad_client_id); + params.push("adUnitId", &self._ad_unit_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -8745,8 +8745,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); - params.push("adUnitId", self._ad_unit_id); + params.push("adClientId", &self._ad_client_id); + params.push("adUnitId", &self._ad_unit_id); params.extend(self._additional_params.iter()); @@ -9015,8 +9015,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); - params.push("adUnitId", self._ad_unit_id); + params.push("adClientId", &self._ad_client_id); + params.push("adUnitId", &self._ad_unit_id); params.extend(self._additional_params.iter()); @@ -9290,7 +9290,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -9578,7 +9578,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); params.extend(self._additional_params.iter()); @@ -10083,8 +10083,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); - params.push("customChannelId", self._custom_channel_id); + params.push("adClientId", &self._ad_client_id); + params.push("customChannelId", &self._custom_channel_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -10383,8 +10383,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); - params.push("customChannelId", self._custom_channel_id); + params.push("adClientId", &self._ad_client_id); + params.push("customChannelId", &self._custom_channel_id); params.extend(self._additional_params.iter()); @@ -10656,7 +10656,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -11657,7 +11657,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("savedReportId", self._saved_report_id); + params.push("savedReportId", &self._saved_report_id); if let Some(value) = self._start_index.as_ref() { params.push("startIndex", value.to_string()); } @@ -12234,8 +12234,8 @@ where } let mut params = Params::with_capacity(13 + self._additional_params.len()); - params.push("startDate", self._start_date); - params.push("endDate", self._end_date); + params.push("startDate", &self._start_date); + params.push("endDate", &self._end_date); if let Some(value) = self._use_timezone_reporting.as_ref() { params.push("useTimezoneReporting", value.to_string()); } @@ -12620,7 +12620,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("savedAdStyleId", self._saved_ad_style_id); + params.push("savedAdStyleId", &self._saved_ad_style_id); params.extend(self._additional_params.iter()); @@ -13145,7 +13145,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("adClientId", self._ad_client_id); + params.push("adClientId", &self._ad_client_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/adsense1d4/src/api/mod.rs b/gen/adsense1d4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adsense1d4/src/api/mod.rs +++ b/gen/adsense1d4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adsense2/README.md b/gen/adsense2/README.md index a6006fade3..35712c7ac6 100644 --- a/gen/adsense2/README.md +++ b/gen/adsense2/README.md @@ -128,18 +128,18 @@ let result = hub.accounts().reports_generate("account") .start_date_year(-33) .start_date_month(-11) .start_date_day(-55) - .reporting_time_zone("voluptua.") - .add_order_by("At") - .add_metrics("sanctus") - .limit(-80) - .language_code("amet.") - .add_filters("takimata") - .end_date_year(-52) - .end_date_month(-20) - .end_date_day(-55) - .add_dimensions("gubergren") - .date_range("Lorem") - .currency_code("gubergren") + .reporting_time_zone(&Default::default()) + .add_order_by("voluptua.") + .add_metrics(&Default::default()) + .limit(-27) + .language_code("sanctus") + .add_filters("sed") + .end_date_year(-2) + .end_date_month(-59) + .end_date_day(-52) + .add_dimensions(&Default::default()) + .date_range(&Default::default()) + .currency_code("duo") .doit().await; match result { diff --git a/gen/adsense2/src/api/hub.rs b/gen/adsense2/src/api/hub.rs index cccff62e8a..10f3346b47 100644 --- a/gen/adsense2/src/api/hub.rs +++ b/gen/adsense2/src/api/hub.rs @@ -32,21 +32,21 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.accounts().reports_generate("account") -/// .start_date_year(-17) -/// .start_date_month(-99) -/// .start_date_day(-56) -/// .reporting_time_zone("eos") -/// .add_order_by("labore") -/// .add_metrics("sed") -/// .limit(-70) -/// .language_code("sed") -/// .add_filters("no") -/// .end_date_year(-15) -/// .end_date_month(-13) -/// .end_date_day(-24) -/// .add_dimensions("sed") -/// .date_range("et") -/// .currency_code("et") +/// .start_date_year(-37) +/// .start_date_month(-12) +/// .start_date_day(-16) +/// .reporting_time_zone(&Default::default()) +/// .add_order_by("est") +/// .add_metrics(&Default::default()) +/// .limit(-50) +/// .language_code("ipsum") +/// .add_filters("est") +/// .end_date_year(-62) +/// .end_date_month(-17) +/// .end_date_day(-99) +/// .add_dimensions(&Default::default()) +/// .date_range(&Default::default()) +/// .currency_code("Lorem") /// .doit().await; /// /// match result { diff --git a/gen/adsense2/src/api/mod.rs b/gen/adsense2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adsense2/src/api/mod.rs +++ b/gen/adsense2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/adsense2/src/api/schemas.rs b/gen/adsense2/src/api/schemas.rs index e669fc2b6e..cdb813ff6b 100644 --- a/gen/adsense2/src/api/schemas.rs +++ b/gen/adsense2/src/api/schemas.rs @@ -60,7 +60,7 @@ pub struct Account { pub premium: Option, /// Output only. State of the account. - pub state: Option, + pub state: Option, /// The account time zone, as used by reporting. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725). #[serde(rename="timeZone")] @@ -118,7 +118,7 @@ pub struct AdClient { pub reporting_dimension_id: Option, /// Output only. State of the ad client. - pub state: Option, + pub state: Option, } impl client::ResponseResult for AdClient {} @@ -182,7 +182,7 @@ pub struct AdUnit { pub reporting_dimension_id: Option, /// State of the ad unit. - pub state: Option, + pub state: Option, } impl client::RequestValue for AdUnit {} @@ -224,7 +224,7 @@ pub struct Alert { pub name: Option, /// Output only. Severity of this alert. - pub severity: Option, + pub severity: Option, /// Output only. Type of alert. This identifies the broad type of this alert, and provides a stable machine-readable identifier that will not be translated. For example, "payment-hold". #[serde(rename="type")] @@ -262,7 +262,7 @@ pub struct ContentAdsSettings { /// Required. Type of the ad unit. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ContentAdsSettings {} @@ -354,7 +354,7 @@ pub struct Header { /// Required. Type of the header. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Header {} @@ -793,7 +793,7 @@ pub struct Site { pub reporting_dimension_id: Option, /// Output only. State of a site. - pub state: Option, + pub state: Option, } impl client::ResponseResult for Site {} diff --git a/gen/adsense2/src/lib.rs b/gen/adsense2/src/lib.rs index 4b1794e0a6..acaeb884b9 100644 --- a/gen/adsense2/src/lib.rs +++ b/gen/adsense2/src/lib.rs @@ -126,21 +126,21 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.accounts().reports_generate("account") -//! .start_date_year(-4) -//! .start_date_month(-17) -//! .start_date_day(-55) -//! .reporting_time_zone("invidunt") -//! .add_order_by("amet") -//! .add_metrics("duo") -//! .limit(-50) -//! .language_code("sed") -//! .add_filters("ut") -//! .end_date_year(-12) -//! .end_date_month(-16) -//! .end_date_day(-57) -//! .add_dimensions("ipsum") -//! .date_range("ipsum") -//! .currency_code("est") +//! .start_date_year(-62) +//! .start_date_month(-51) +//! .start_date_day(-12) +//! .reporting_time_zone(&Default::default()) +//! .add_order_by("eos") +//! .add_metrics(&Default::default()) +//! .limit(-4) +//! .language_code("ea") +//! .add_filters("ipsum") +//! .end_date_year(-88) +//! .end_date_month(-47) +//! .end_date_day(-20) +//! .add_dimensions(&Default::default()) +//! .date_range(&Default::default()) +//! .currency_code("ipsum") //! .doit().await; //! //! match result { diff --git a/gen/adsensehost4d1/src/api/method_builders.rs b/gen/adsensehost4d1/src/api/method_builders.rs index 20f841f023..025ae6f628 100644 --- a/gen/adsensehost4d1/src/api/method_builders.rs +++ b/gen/adsensehost4d1/src/api/method_builders.rs @@ -409,7 +409,7 @@ impl<'a, S> AssociationsessionMethods<'a, S> { /// /// * `productCode` - Products to associate with the user. /// * `websiteUrl` - The URL of the user's hosted website. - pub fn start(&self, product_code: &Vec, website_url: &str) -> AssociationsessionStartCall<'a, S> { + pub fn start(&self, product_code: &AssociationsessionProductCodeEnum, website_url: &str) -> AssociationsessionStartCall<'a, S> { AssociationsessionStartCall { hub: self.hub, _product_code: product_code.clone(), diff --git a/gen/adsensehost4d1/src/api/mod.rs b/gen/adsensehost4d1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/adsensehost4d1/src/api/mod.rs +++ b/gen/adsensehost4d1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/alertcenter1_beta1/src/api/call_builders.rs b/gen/alertcenter1_beta1/src/api/call_builders.rs index 83c1c6d449..f8db310035 100644 --- a/gen/alertcenter1_beta1/src/api/call_builders.rs +++ b/gen/alertcenter1_beta1/src/api/call_builders.rs @@ -936,7 +936,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); if let Some(value) = self._customer_id.as_ref() { params.push("customerId", value); } @@ -1235,7 +1235,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); if let Some(value) = self._filter.as_ref() { params.push("filter", value); } @@ -2065,7 +2065,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); if let Some(value) = self._customer_id.as_ref() { params.push("customerId", value); } @@ -2339,7 +2339,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); if let Some(value) = self._customer_id.as_ref() { params.push("customerId", value); } @@ -2613,7 +2613,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); if let Some(value) = self._customer_id.as_ref() { params.push("customerId", value); } @@ -3195,7 +3195,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("alertId", self._alert_id); + params.push("alertId", &self._alert_id); params.extend(self._additional_params.iter()); diff --git a/gen/alertcenter1_beta1/src/api/mod.rs b/gen/alertcenter1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/alertcenter1_beta1/src/api/mod.rs +++ b/gen/alertcenter1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/alertcenter1_beta1/src/api/schemas.rs b/gen/alertcenter1_beta1/src/api/schemas.rs index 71f7f8210b..4428bba701 100644 --- a/gen/alertcenter1_beta1/src/api/schemas.rs +++ b/gen/alertcenter1_beta1/src/api/schemas.rs @@ -104,7 +104,7 @@ pub struct AlertFeedback { /// Required. The type of the feedback. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for AlertFeedback {} @@ -257,7 +257,7 @@ pub struct CloudPubsubTopic { /// Optional. The format of the payload that would be sent. If not specified the format will be JSON. #[serde(rename="payloadFormat")] - pub payload_format: Option, + pub payload_format: Option, /// The `name` field of a Cloud Pubsub [Topic] (https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic). #[serde(rename="topicName")] diff --git a/gen/analytics3/src/api/mod.rs b/gen/analytics3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/analytics3/src/api/mod.rs +++ b/gen/analytics3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/analyticsadmin1_alpha/src/api/mod.rs b/gen/analyticsadmin1_alpha/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/analyticsadmin1_alpha/src/api/mod.rs +++ b/gen/analyticsadmin1_alpha/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/analyticsadmin1_alpha/src/api/schemas.rs b/gen/analyticsadmin1_alpha/src/api/schemas.rs index bb10588b53..53649644eb 100644 --- a/gen/analyticsadmin1_alpha/src/api/schemas.rs +++ b/gen/analyticsadmin1_alpha/src/api/schemas.rs @@ -392,7 +392,7 @@ impl client::RequestValue for GoogleAnalyticsAdminV1alphaCancelDisplayVideo360Ad pub struct GoogleAnalyticsAdminV1alphaChangeHistoryChange { /// The type of action that changed this resource. - pub action: Option, + pub action: Option, /// Resource name of the resource whose changes are described by this entry. pub resource: Option, @@ -481,7 +481,7 @@ pub struct GoogleAnalyticsAdminV1alphaChangeHistoryEvent { /// The type of actor that made this change. #[serde(rename="actorType")] - pub actor_type: Option, + pub actor_type: Option, /// Time when change was made. #[serde(rename="changeTime")] @@ -596,7 +596,7 @@ pub struct GoogleAnalyticsAdminV1alphaCustomDimension { pub parameter_name: Option, /// Required. Immutable. The scope of this dimension. - pub scope: Option, + pub scope: Option, } impl client::RequestValue for GoogleAnalyticsAdminV1alphaCustomDimension {} @@ -626,7 +626,7 @@ pub struct GoogleAnalyticsAdminV1alphaCustomMetric { /// Required. The type for the custom metric's value. #[serde(rename="measurementUnit")] - pub measurement_unit: Option, + pub measurement_unit: Option, /// Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} pub name: Option, @@ -637,10 +637,10 @@ pub struct GoogleAnalyticsAdminV1alphaCustomMetric { /// Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit. #[serde(rename="restrictedMetricType")] - pub restricted_metric_type: Option>, + pub restricted_metric_type: Option>, /// Required. Immutable. The scope of this custom metric. - pub scope: Option, + pub scope: Option, } impl client::RequestValue for GoogleAnalyticsAdminV1alphaCustomMetric {} @@ -662,7 +662,7 @@ pub struct GoogleAnalyticsAdminV1alphaDataRetentionSettings { /// The length of time that event-level data is retained. #[serde(rename="eventDataRetention")] - pub event_data_retention: Option, + pub event_data_retention: Option, /// Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings pub name: Option, @@ -750,7 +750,7 @@ pub struct GoogleAnalyticsAdminV1alphaDataStream { /// Required. Immutable. The type of this DataStream resource. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. Time when stream payload fields were last updated. #[serde(rename="updateTime")] @@ -1044,13 +1044,13 @@ impl client::ResponseResult for GoogleAnalyticsAdminV1alphaGoogleAdsLink {} pub struct GoogleAnalyticsAdminV1alphaGoogleSignalsSettings { /// Output only. Terms of Service acceptance. - pub consent: Option, + pub consent: Option, /// Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings" pub name: Option, /// Status of this setting. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleAnalyticsAdminV1alphaGoogleSignalsSettings {} @@ -1067,11 +1067,11 @@ pub struct GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails { /// Output only. The source of this proposal. #[serde(rename="linkProposalInitiatingProduct")] - pub link_proposal_initiating_product: Option, + pub link_proposal_initiating_product: Option, /// Output only. The state of this proposal. #[serde(rename="linkProposalState")] - pub link_proposal_state: Option, + pub link_proposal_state: Option, /// Output only. The email address of the user that proposed this linkage. #[serde(rename="requestorEmail")] @@ -1462,7 +1462,7 @@ pub struct GoogleAnalyticsAdminV1alphaProperty { /// Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK #[serde(rename="industryCategory")] - pub industry_category: Option, + pub industry_category: Option, /// Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" pub name: Option, @@ -1472,7 +1472,7 @@ pub struct GoogleAnalyticsAdminV1alphaProperty { /// Output only. The Google Analytics service level that applies to this property. #[serde(rename="serviceLevel")] - pub service_level: Option, + pub service_level: Option, /// Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" #[serde(rename="timeZone")] @@ -1562,7 +1562,7 @@ impl client::ResponseResult for GoogleAnalyticsAdminV1alphaProvisionAccountTicke pub struct GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest { /// Optional. If set, only return changes that match one or more of these types of actions. - pub action: Option>, + pub action: Option>, /// Optional. If set, only return changes if they are made by a user in this list. #[serde(rename="actorEmail")] @@ -1589,7 +1589,7 @@ pub struct GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest { /// Optional. If set, only return changes if they are for a resource that matches at least one of these types. #[serde(rename="resourceType")] - pub resource_type: Option>, + pub resource_type: Option>, } impl client::RequestValue for GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest {} diff --git a/gen/analyticsdata1_beta/src/api/call_builders.rs b/gen/analyticsdata1_beta/src/api/call_builders.rs index 0f9d19d6a6..4ef1033ce2 100644 --- a/gen/analyticsdata1_beta/src/api/call_builders.rs +++ b/gen/analyticsdata1_beta/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("property", self._property); + params.push("property", &self._property); params.extend(self._additional_params.iter()); @@ -369,7 +369,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("property", self._property); + params.push("property", &self._property); params.extend(self._additional_params.iter()); @@ -661,7 +661,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("property", self._property); + params.push("property", &self._property); params.extend(self._additional_params.iter()); @@ -946,7 +946,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()); @@ -1215,7 +1215,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("property", self._property); + params.push("property", &self._property); params.extend(self._additional_params.iter()); @@ -1507,7 +1507,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("property", self._property); + params.push("property", &self._property); params.extend(self._additional_params.iter()); @@ -1799,7 +1799,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("property", self._property); + params.push("property", &self._property); params.extend(self._additional_params.iter()); diff --git a/gen/analyticsdata1_beta/src/api/mod.rs b/gen/analyticsdata1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/analyticsdata1_beta/src/api/mod.rs +++ b/gen/analyticsdata1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/analyticsdata1_beta/src/api/schemas.rs b/gen/analyticsdata1_beta/src/api/schemas.rs index 492f66bc29..87b7b41ccb 100644 --- a/gen/analyticsdata1_beta/src/api/schemas.rs +++ b/gen/analyticsdata1_beta/src/api/schemas.rs @@ -13,7 +13,7 @@ pub struct ActiveMetricRestriction { /// The reason for this metric's restriction. #[serde(rename="restrictedMetricTypes")] - pub restricted_metric_types: Option>, + pub restricted_metric_types: Option>, } impl client::Part for ActiveMetricRestriction {} @@ -152,7 +152,7 @@ pub struct CheckCompatibilityRequest { /// Filters the dimensions and metrics in the response to just this compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` to only return compatible dimensions & metrics. #[serde(rename="compatibilityFilter")] - pub compatibility_filter: Option, + pub compatibility_filter: Option, /// The filter clause of dimensions. `dimensionFilter` should be the same value as in your `runReport` request. #[serde(rename="dimensionFilter")] @@ -269,7 +269,7 @@ pub struct CohortsRange { pub end_offset: Option, /// Required. The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report. - pub granularity: Option, + pub granularity: Option, /// `startOffset` specifies the start date of the extended reporting date range for a cohort report. `startOffset` is commonly set to 0 so that reports contain data from the acquisition of the cohort forward. If `granularity` is `DAILY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset` days. If `granularity` is `WEEKLY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset * 7` days. If `granularity` is `MONTHLY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset * 30` days. #[serde(rename="startOffset")] @@ -349,7 +349,7 @@ impl client::Part for Dimension {} pub struct DimensionCompatibility { /// The compatibility of this dimension. If the compatibility is COMPATIBLE, this dimension can be successfully added to the report. - pub compatibility: Option, + pub compatibility: Option, /// The dimension metadata contains the API name for this compatibility information. The dimension metadata also contains other helpful information like the UI name and description. #[serde(rename="dimensionMetadata")] @@ -445,7 +445,7 @@ pub struct DimensionOrderBy { /// Controls the rule for dimension value ordering. #[serde(rename="orderType")] - pub order_type: Option, + pub order_type: Option, } impl client::Part for DimensionOrderBy {} @@ -614,7 +614,7 @@ impl client::Part for Metric {} pub struct MetricCompatibility { /// The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report. - pub compatibility: Option, + pub compatibility: Option, /// The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description. #[serde(rename="metricMetadata")] @@ -637,7 +637,7 @@ pub struct MetricHeader { /// The metric's data type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for MetricHeader {} @@ -657,7 +657,7 @@ pub struct MetricMetadata { /// If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388). #[serde(rename="blockedReasons")] - pub blocked_reasons: Option>, + pub blocked_reasons: Option>, /// The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together. pub category: Option, @@ -678,7 +678,7 @@ pub struct MetricMetadata { /// The type of this metric. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// This metric's name within the Google Analytics user interface. For example, `Event count`. #[serde(rename="uiName")] @@ -751,7 +751,7 @@ impl client::Part for MinuteRange {} pub struct NumericFilter { /// The operation type for this filter. - pub operation: Option, + pub operation: Option, /// A numeric value or a date value. pub value: Option, @@ -823,7 +823,7 @@ pub struct Pivot { /// Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations. #[serde(rename="metricAggregations")] - pub metric_aggregations: Option>, + pub metric_aggregations: Option>, /// The row count of the start row. The first row is counted as row 0. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -1148,7 +1148,7 @@ pub struct RunRealtimeReportRequest { /// Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)". #[serde(rename="metricAggregations")] - pub metric_aggregations: Option>, + pub metric_aggregations: Option>, /// The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter. #[serde(rename="metricFilter")] @@ -1261,7 +1261,7 @@ pub struct RunReportRequest { /// Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)". #[serde(rename="metricAggregations")] - pub metric_aggregations: Option>, + pub metric_aggregations: Option>, /// The filter clause of metrics. Applied after aggregating the report's rows, similar to SQL having-clause. Dimensions cannot be used in this filter. #[serde(rename="metricFilter")] @@ -1369,7 +1369,7 @@ pub struct StringFilter { /// The match type for this filter. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The string value used for the matching. pub value: Option, diff --git a/gen/analyticsreporting4/src/api/mod.rs b/gen/analyticsreporting4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/analyticsreporting4/src/api/mod.rs +++ b/gen/analyticsreporting4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/analyticsreporting4/src/api/schemas.rs b/gen/analyticsreporting4/src/api/schemas.rs index f080d2e4b4..cd88f1b4f0 100644 --- a/gen/analyticsreporting4/src/api/schemas.rs +++ b/gen/analyticsreporting4/src/api/schemas.rs @@ -185,7 +185,7 @@ pub struct Activity { /// Type of this activity. #[serde(rename="activityType")] - pub activity_type: Option, + pub activity_type: Option, /// This will be set if `activity_type` equals `SCREEN_VIEW`. pub appview: Option, @@ -250,7 +250,7 @@ pub struct Cohort { /// Type of the cohort. The only supported type as of now is `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated as `FIRST_VISIT_DATE` type cohort. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Cohort {} @@ -394,7 +394,7 @@ pub struct DimensionFilter { pub not: Option, /// How to match the dimension to the expression. The default is REGEXP. - pub operator: Option, + pub operator: Option, } impl client::Part for DimensionFilter {} @@ -412,7 +412,7 @@ pub struct DimensionFilterClause { pub filters: Option>, /// The operator for combining multiple dimension filters. If unspecified, it is treated as an `OR`. - pub operator: Option, + pub operator: Option, } impl client::Part for DimensionFilterClause {} @@ -451,11 +451,11 @@ pub struct EcommerceData { /// Action associated with this e-commerce action. #[serde(rename="actionType")] - pub action_type: Option, + pub action_type: Option, /// The type of this e-commerce activity. #[serde(rename="ecommerceType")] - pub ecommerce_type: Option, + pub ecommerce_type: Option, /// Details of the products in this transaction. pub products: Option>, @@ -628,7 +628,7 @@ pub struct Metric { /// Specifies how the metric expression should be formatted, for example `INTEGER`. #[serde(rename="formattingType")] - pub formatting_type: Option, + pub formatting_type: Option, } impl client::Part for Metric {} @@ -654,7 +654,7 @@ pub struct MetricFilter { pub not: Option, /// Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is `EQUAL`. If the operator is `IS_MISSING`, checks if the metric is missing and would ignore the comparisonValue. - pub operator: Option, + pub operator: Option, } impl client::Part for MetricFilter {} @@ -672,7 +672,7 @@ pub struct MetricFilterClause { pub filters: Option>, /// The operator for combining multiple metric filters. If unspecified, it is treated as an `OR`. - pub operator: Option, + pub operator: Option, } impl client::Part for MetricFilterClause {} @@ -711,7 +711,7 @@ pub struct MetricHeaderEntry { /// The type of the metric, for example `INTEGER`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for MetricHeaderEntry {} @@ -747,11 +747,11 @@ pub struct OrderBy { /// The order type. The default orderType is `VALUE`. #[serde(rename="orderType")] - pub order_type: Option, + pub order_type: Option, /// The sorting order for the field. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for OrderBy {} @@ -1034,7 +1034,7 @@ pub struct ReportRequest { /// The desired report [sample](https://support.google.com/analytics/answer/2637192) size. If the the `samplingLevel` field is unspecified the `DEFAULT` sampling level is used. Every [ReportRequest](#ReportRequest) within a `batchGet` method must contain the same `samplingLevel` definition. See [developer guide](https://developers.google.com/analytics/devguides/reporting/core/v4/basics#sampling) for details. #[serde(rename="samplingLevel")] - pub sampling_level: Option, + pub sampling_level: Option, /// Segment the data returned for the request. A segment definition helps look at a subset of the segment request. A request can contain up to four segments. Every [ReportRequest](#ReportRequest) within a `batchGet` method must contain the same `segments` definition. Requests with segments must have the `ga:segment` dimension. pub segments: Option>, @@ -1127,7 +1127,7 @@ pub struct SearchUserActivityRequest { /// Set of all activity types being requested. Only acvities matching these types will be returned in the response. If empty, all activies will be returned. #[serde(rename="activityTypes")] - pub activity_types: Option>, + pub activity_types: Option>, /// Date range for which to retrieve the user activity. If a date range is not provided, the default date range is (startDate: current date - 7 days, endDate: current date - 1 day). #[serde(rename="dateRange")] @@ -1247,7 +1247,7 @@ pub struct SegmentDimensionFilter { pub min_comparison_value: Option, /// The operator to use to match the dimension with the expressions. - pub operator: Option, + pub operator: Option, } impl client::Part for SegmentDimensionFilter {} @@ -1320,10 +1320,10 @@ pub struct SegmentMetricFilter { pub metric_name: Option, /// Specifies is the operation to perform to compare the metric. The default is `EQUAL`. - pub operator: Option, + pub operator: Option, /// Scope for a metric defines the level at which that metric is defined. The specified metric scope must be equal to or greater than its primary scope as defined in the data model. The primary scope is defined by if the segment is selecting users or sessions. - pub scope: Option, + pub scope: Option, } impl client::Part for SegmentMetricFilter {} @@ -1339,7 +1339,7 @@ pub struct SegmentSequenceStep { /// Specifies if the step immediately precedes or can be any time before the next step. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// A sequence is specified with a list of Or grouped filters which are combined with `AND` operator. #[serde(rename="orFiltersForSegment")] @@ -1423,7 +1423,7 @@ pub struct User { /// Type of the user in the request. The field `userId` is associated with this type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Unique Id of the user for which the data is being requested. #[serde(rename="userId")] diff --git a/gen/androiddeviceprovisioning1/src/api/call_builders.rs b/gen/androiddeviceprovisioning1/src/api/call_builders.rs index fa2364fd60..d305bbf628 100644 --- a/gen/androiddeviceprovisioning1/src/api/call_builders.rs +++ b/gen/androiddeviceprovisioning1/src/api/call_builders.rs @@ -1917,7 +1917,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2157,7 +2157,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()); @@ -2374,7 +2374,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()); @@ -2591,7 +2591,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2817,7 +2817,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3074,7 +3074,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3314,7 +3314,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()); @@ -3535,7 +3535,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3779,7 +3779,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4026,7 +4026,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4266,7 +4266,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4705,7 +4705,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()); @@ -4929,7 +4929,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5173,7 +5173,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5417,7 +5417,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -5664,7 +5664,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -5911,7 +5911,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -6158,7 +6158,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -6398,7 +6398,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()); @@ -6870,8 +6870,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("metadataOwnerId", self._metadata_owner_id.to_string()); - params.push("deviceId", self._device_id.to_string()); + params.push("metadataOwnerId", &self._metadata_owner_id.to_string()); + params.push("deviceId", &self._device_id.to_string()); params.extend(self._additional_params.iter()); @@ -7128,7 +7128,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -7375,7 +7375,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -7622,7 +7622,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("partnerId", self._partner_id.to_string()); + params.push("partnerId", &self._partner_id.to_string()); params.extend(self._additional_params.iter()); @@ -7866,7 +7866,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8107,7 +8107,7 @@ where } let mut params = Params::with_capacity(5 + 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); } diff --git a/gen/androiddeviceprovisioning1/src/api/mod.rs b/gen/androiddeviceprovisioning1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/androiddeviceprovisioning1/src/api/mod.rs +++ b/gen/androiddeviceprovisioning1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/androiddeviceprovisioning1/src/api/schemas.rs b/gen/androiddeviceprovisioning1/src/api/schemas.rs index 2aa8b63d31..e238f53da9 100644 --- a/gen/androiddeviceprovisioning1/src/api/schemas.rs +++ b/gen/androiddeviceprovisioning1/src/api/schemas.rs @@ -34,7 +34,7 @@ pub struct ClaimDeviceRequest { /// Required. The section type of the device's provisioning record. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, /// Optional. Must and can only be set when DeviceProvisioningSectionType is SECTION_TYPE_SIM_LOCK. The unique identifier of the SimLock profile (go/simlock/profiles). #[serde(rename="simlockProfileId")] @@ -135,7 +135,7 @@ pub struct Company { /// Output only. Whether any user from the company has accepted the latest Terms of Service (ToS). See TermsStatus. #[serde(rename="termsStatus")] - pub terms_status: Option, + pub terms_status: Option, } impl client::ResponseResult for Company {} @@ -411,7 +411,7 @@ pub struct DeviceClaim { /// The Additional service registered for the device. #[serde(rename="additionalService")] - pub additional_service: Option, + pub additional_service: Option, /// The ID of the Google Workspace account that owns the Chrome OS device. #[serde(rename="googleWorkspaceCustomerId")] @@ -429,7 +429,7 @@ pub struct DeviceClaim { /// Output only. The type of claim made on the device. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, /// The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in 'vacation mode'. #[serde(rename="vacationModeExpireTime")] @@ -457,7 +457,7 @@ pub struct DeviceIdentifier { /// The type of the device #[serde(rename="deviceType")] - pub device_type: Option, + pub device_type: Option, /// The device’s IMEI number. Validated on input. pub imei: Option, @@ -647,7 +647,7 @@ pub struct FindDevicesByOwnerRequest { /// Required. The section type of the device's provisioning record. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, } impl client::RequestValue for FindDevicesByOwnerRequest {} @@ -847,7 +847,7 @@ pub struct PartnerClaim { /// Required. The section type of the device's provisioning record. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, } impl client::Part for PartnerClaim {} @@ -872,7 +872,7 @@ pub struct PartnerUnclaim { /// Required. The section type of the device's provisioning record. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, /// Optional. The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) #[serde(rename="vacationModeDays")] @@ -930,7 +930,7 @@ pub struct UnclaimDeviceRequest { /// Required. The section type of the device's provisioning record. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, /// The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) #[serde(rename="vacationModeDays")] diff --git a/gen/androidenterprise1/src/api/mod.rs b/gen/androidenterprise1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/androidenterprise1/src/api/mod.rs +++ b/gen/androidenterprise1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/androidenterprise1/src/api/schemas.rs b/gen/androidenterprise1/src/api/schemas.rs index fd195fc366..399e6980e7 100644 --- a/gen/androidenterprise1/src/api/schemas.rs +++ b/gen/androidenterprise1/src/api/schemas.rs @@ -53,7 +53,7 @@ pub struct AdministratorWebTokenSpec { pub parent: Option, /// Deprecated. Use PlaySearch.approveApps. - pub permission: Option>, + pub permission: Option>, /// Options for displaying the managed Play Search apps page. #[serde(rename="playSearch")] @@ -242,7 +242,7 @@ pub struct AppRestrictionsSchemaRestriction { /// The type of the restriction. #[serde(rename="restrictionType")] - pub restriction_type: Option, + pub restriction_type: Option, /// The name of the restriction. pub title: Option, @@ -261,7 +261,7 @@ pub struct AppRestrictionsSchemaRestrictionRestrictionValue { /// The type of the value being provided. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The boolean value - this will only be present if type is bool. #[serde(rename="valueBool")] @@ -332,7 +332,7 @@ pub struct AppVersion { pub is_production: Option, /// Deprecated, use trackId instead. - pub track: Option, + pub track: Option, /// Track ids that the app version is published in. Replaces the track field (deprecated), but doesn't include the production track (see isProduction instead). #[serde(rename="trackId")] @@ -395,15 +395,15 @@ pub struct AutoInstallConstraint { /// Charging state constraint. #[serde(rename="chargingStateConstraint")] - pub charging_state_constraint: Option, + pub charging_state_constraint: Option, /// Device idle state constraint. #[serde(rename="deviceIdleStateConstraint")] - pub device_idle_state_constraint: Option, + pub device_idle_state_constraint: Option, /// Network type constraint. #[serde(rename="networkTypeConstraint")] - pub network_type_constraint: Option, + pub network_type_constraint: Option, } impl client::Part for AutoInstallConstraint {} @@ -423,7 +423,7 @@ pub struct AutoInstallPolicy { /// The auto-install mode. If unset defaults to "doNotAutoInstall". #[serde(rename="autoInstallMode")] - pub auto_install_mode: Option, + pub auto_install_mode: Option, /// The priority of the install, as an unsigned integer. A lower number means higher priority. #[serde(rename="autoInstallPriority")] @@ -500,7 +500,7 @@ pub struct Device { /// Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - "containerApp", no longer used (deprecated). - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. #[serde(rename="managementType")] - pub management_type: Option, + pub management_type: Option, /// The policy enforced on the device. pub policy: Option, @@ -573,7 +573,7 @@ pub struct DeviceState { /// The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state. #[serde(rename="accountState")] - pub account_state: Option, + pub account_state: Option, } impl client::RequestValue for DeviceState {} @@ -747,7 +747,7 @@ pub struct Entitlement { pub product_id: Option, /// The reason for the entitlement. For example, "free" for free apps. This property is temporary: it will be replaced by the acquisition kind field of group licenses. - pub reason: Option, + pub reason: Option, } impl client::RequestValue for Entitlement {} @@ -784,11 +784,11 @@ pub struct GoogleAuthenticationSettings { /// Whether dedicated devices are allowed. #[serde(rename="dedicatedDevicesAllowed")] - pub dedicated_devices_allowed: Option, + pub dedicated_devices_allowed: Option, /// Whether Google authentication is required. #[serde(rename="googleAuthenticationRequired")] - pub google_authentication_required: Option, + pub google_authentication_required: Option, } impl client::Part for GoogleAuthenticationSettings {} @@ -808,10 +808,10 @@ pub struct GroupLicense { /// How this group license was acquired. "bulkPurchase" means that this Grouplicenses resource was created because the enterprise purchased licenses for this product; otherwise, the value is "free" (for free products). #[serde(rename="acquisitionKind")] - pub acquisition_kind: Option, + pub acquisition_kind: Option, /// Whether the product to which this group license relates is currently approved by the enterprise. Products are approved when a group license is first created, but this approval may be revoked by an enterprise admin via Google Play. Unapproved products will not be visible to end users in collections, and new entitlements to them should not normally be created. - pub approval: Option, + pub approval: Option, /// The total number of provisioned licenses for this product. Returned by read operations, but ignored in write operations. #[serde(rename="numProvisioned")] @@ -822,7 +822,7 @@ pub struct GroupLicense { pub num_purchased: Option, /// The permission approval status of the product. This field is only set if the product is approved. Possible states are: - "currentApproved", the current set of permissions is approved, but additional permissions will require the administrator to reapprove the product (If the product was approved without specifying the approved permissions setting, then this is the default behavior.), - "needsReapproval", the product has unapproved permissions. No additional product licenses can be assigned until the product is reapproved, - "allCurrentAndFutureApproved", the current permissions are approved and any future permission updates will be automatically approved without administrator review. - pub permissions: Option, + pub permissions: Option, /// The ID of the product that the license is for. For example, "app:com.google.android.gm". #[serde(rename="productId")] @@ -889,7 +889,7 @@ pub struct Install { /// Install state. The state "installPending" means that an install request has recently been made and download to the device is in progress. The state "installed" means that the app has been installed. This field is read-only. #[serde(rename="installState")] - pub install_state: Option, + pub install_state: Option, /// The ID of the product that the install is for. For example, "app:com.google.android.gm". #[serde(rename="productId")] @@ -923,7 +923,7 @@ pub struct InstallFailureEvent { /// The reason for the installation failure. This field will always be present. #[serde(rename="failureReason")] - pub failure_reason: Option, + pub failure_reason: Option, /// The id of the product (e.g. "app:com.google.android.gm") for which the install failure event occured. This field will always be present. #[serde(rename="productId")] @@ -974,7 +974,7 @@ pub struct KeyedAppState { pub message: Option, /// Severity of the app state. This field will always be present. - pub severity: Option, + pub severity: Option, /// Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. #[serde(rename="stateTimestampMillis")] @@ -1217,7 +1217,7 @@ pub struct NewDeviceEvent { /// Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include: - "managedDevice", a device where the DPC is set as device owner, - "managedProfile", a device where the DPC is set as profile owner. #[serde(rename="managementType")] - pub management_type: Option, + pub management_type: Option, /// The ID of the user. This field will always be present. #[serde(rename="userId")] @@ -1289,7 +1289,7 @@ pub struct Notification { /// Type of the notification. #[serde(rename="notificationType")] - pub notification_type: Option, + pub notification_type: Option, /// Notifications about changes to a product's approval status. #[serde(rename="productApprovalEvent")] @@ -1392,11 +1392,11 @@ pub struct Policy { /// Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency. When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. #[serde(rename="autoUpdatePolicy")] - pub auto_update_policy: Option, + pub auto_update_policy: Option, /// Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". #[serde(rename="deviceReportPolicy")] - pub device_report_policy: Option, + pub device_report_policy: Option, /// The maintenance window defining when apps running in the foreground should be updated. #[serde(rename="maintenanceWindow")] @@ -1404,7 +1404,7 @@ pub struct Policy { /// The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. #[serde(rename="productAvailabilityPolicy")] - pub product_availability_policy: Option, + pub product_availability_policy: Option, /// The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied. #[serde(rename="productPolicy")] @@ -1454,14 +1454,14 @@ pub struct Product { /// Deprecated, use appTracks instead. #[serde(rename="availableTracks")] - pub available_tracks: Option>, + pub available_tracks: Option>, /// The app category (e.g. RACING, SOCIAL, etc.) pub category: Option, /// The content rating for this app. #[serde(rename="contentRating")] - pub content_rating: Option, + pub content_rating: Option, /// The localized promotional description, if available. pub description: Option, @@ -1472,10 +1472,10 @@ pub struct Product { /// How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted. #[serde(rename="distributionChannel")] - pub distribution_channel: Option, + pub distribution_channel: Option, /// Noteworthy features (if any) of this product. - pub features: Option>, + pub features: Option>, /// A link to an image that can be used as an icon for the product. This image is suitable for use at up to 512px x 512px. #[serde(rename="iconUrl")] @@ -1499,7 +1499,7 @@ pub struct Product { /// Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown, this means the product is not generally available anymore (even though it might still be available to people who own it). #[serde(rename="productPricing")] - pub product_pricing: Option, + pub product_pricing: Option, /// A description of the recent changes made to the app. #[serde(rename="recentChanges")] @@ -1542,7 +1542,7 @@ impl client::ResponseResult for Product {} pub struct ProductApprovalEvent { /// Whether the product was approved or unapproved. This field will always be present. - pub approved: Option, + pub approved: Option, /// The id of the product (e.g. "app:com.google.android.gm") for which the approval status has changed. This field will always be present. #[serde(rename="productId")] @@ -1562,7 +1562,7 @@ pub struct ProductAvailabilityChangeEvent { /// The new state of the product. This field will always be present. #[serde(rename="availabilityStatus")] - pub availability_status: Option, + pub availability_status: Option, /// The id of the product (e.g. "app:com.google.android.gm") for which the product availability changed. This field will always be present. #[serde(rename="productId")] @@ -1585,7 +1585,7 @@ pub struct ProductPermission { pub permission_id: Option, /// Whether the permission has been accepted or not. - pub state: Option, + pub state: Option, } impl client::Part for ProductPermission {} @@ -1628,7 +1628,7 @@ pub struct ProductPolicy { /// The auto-update mode for the product. #[serde(rename="autoUpdateMode")] - pub auto_update_mode: Option, + pub auto_update_mode: Option, /// An authentication URL configuration for the authenticator app of an identity provider. This helps to launch the identity provider's authenticator app during the authentication happening in a private app using Android WebView. Authenticator app should already be the [default handler](https://developer.android.com/training/app-links/verify-site-associations) for the authentication url on the device. #[serde(rename="enterpriseAuthenticationAppLinkConfigs")] @@ -1647,7 +1647,7 @@ pub struct ProductPolicy { pub track_ids: Option>, /// Deprecated. Use trackIds instead. - pub tracks: Option>, + pub tracks: Option>, } impl client::Part for ProductPolicy {} @@ -1672,7 +1672,7 @@ pub struct ProductSet { /// The interpretation of this product set. "unknown" should never be sent and is ignored if received. "whitelist" means that the user is entitled to access the product set. "includeAll" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. "allApproved" means that the user is entitled to access all products that are approved for the enterprise. If the value is "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll" does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "alpha" or "beta" tracks per user. #[serde(rename="productSetBehavior")] - pub product_set_behavior: Option, + pub product_set_behavior: Option, /// Additional list of product IDs making up the product set. Unlike the productID array, in this list It's possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error. #[serde(rename="productVisibility")] @@ -1720,7 +1720,7 @@ pub struct ProductVisibility { pub track_ids: Option>, /// Deprecated. Use trackIds instead. - pub tracks: Option>, + pub tracks: Option>, } impl client::Part for ProductVisibility {} @@ -1744,7 +1744,7 @@ pub struct ProductsApproveRequest { /// Sets how new permission requests for the product are handled. "allPermissions" automatically approves all current and future permissions for the product. "currentPermissionsOnly" approves the current set of permissions for the product, but any future permissions added through updates will require manual reapproval. If not specified, only the current set of permissions will be approved. #[serde(rename="approvedPermissions")] - pub approved_permissions: Option, + pub approved_permissions: Option, } impl client::RequestValue for ProductsApproveRequest {} @@ -1842,7 +1842,7 @@ pub struct ServiceAccountKey { /// The file format of the generated key data. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for ServiceAccountKey {} @@ -1948,7 +1948,7 @@ pub struct StoreLayout { /// The store layout type. By default, this value is set to "basic" if the homepageId field is not set, and to "custom" otherwise. If set to "basic", the layout will consist of all approved apps that have been whitelisted for the user. #[serde(rename="storeLayoutType")] - pub store_layout_type: Option, + pub store_layout_type: Option, } impl client::RequestValue for StoreLayout {} @@ -2087,7 +2087,7 @@ pub struct User { /// The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount. #[serde(rename="accountType")] - pub account_type: Option, + pub account_type: Option, /// The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts. @mutable androidenterprise.users.update #[serde(rename="displayName")] @@ -2098,7 +2098,7 @@ pub struct User { /// The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge. #[serde(rename="managementType")] - pub management_type: Option, + pub management_type: Option, /// The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users. #[serde(rename="primaryEmail")] @@ -2164,7 +2164,7 @@ pub struct WebApp { /// The display mode of the web app. Possible values include: - "minimalUi", the device's status bar, navigation bar, the app's URL, and a refresh button are visible when the app is open. For HTTP URLs, you can only select this option. - "standalone", the device's status bar and navigation bar are visible when the app is open. - "fullScreen", the app opens in full screen mode, hiding the device's status and navigation bars. All browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area. #[serde(rename="displayMode")] - pub display_mode: Option, + pub display_mode: Option, /// A list of icons representing this website. If absent, a default icon (for create) or the current icon (for update) will be used. pub icons: Option>, diff --git a/gen/androidmanagement1/src/api/call_builders.rs b/gen/androidmanagement1/src/api/call_builders.rs index 1e25517612..38d7333397 100644 --- a/gen/androidmanagement1/src/api/call_builders.rs +++ b/gen/androidmanagement1/src/api/call_builders.rs @@ -72,7 +72,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._language_code.as_ref() { params.push("languageCode", value); } @@ -344,7 +344,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()); @@ -606,7 +606,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()); @@ -868,7 +868,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()); @@ -1136,7 +1136,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); } @@ -1385,7 +1385,7 @@ where /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().devices_delete("name") /// .wipe_reason_message("ipsum") -/// .add_wipe_data_flags("sed") +/// .add_wipe_data_flags(&Default::default()) /// .doit().await; /// # } /// ``` @@ -1395,7 +1395,7 @@ pub struct EnterpriseDeviceDeleteCall<'a, S> pub(super) hub: &'a AndroidManagement, pub(super) _name: String, pub(super) _wipe_reason_message: Option, - pub(super) _wipe_data_flags: Vec, + pub(super) _wipe_data_flags: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, pub(super) _scopes: BTreeSet @@ -1432,7 +1432,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._wipe_reason_message.as_ref() { params.push("wipeReasonMessage", value); } @@ -1566,8 +1566,8 @@ where /// /// Append the given value to the *wipe data flags* query property. /// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters. - pub fn add_wipe_data_flags(mut self, new_value: &str) -> EnterpriseDeviceDeleteCall<'a, S> { - self._wipe_data_flags.push(new_value.to_string()); + pub fn add_wipe_data_flags(mut self, new_value: &EnterpriseWipeDataFlagsEnum) -> EnterpriseDeviceDeleteCall<'a, S> { + self._wipe_data_flags.push(new_value.clone()); self } /// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong @@ -1717,7 +1717,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()); @@ -1986,7 +1986,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()); @@ -2227,8 +2227,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().devices_list("parent") -/// .page_token("est") -/// .page_size(-50) +/// .page_token("rebum.") +/// .page_size(-57) /// .doit().await; /// # } /// ``` @@ -2275,7 +2275,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2566,7 +2566,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2868,7 +2868,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3153,7 +3153,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()); @@ -3415,7 +3415,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()); @@ -3633,8 +3633,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().enrollment_tokens_list("parent") -/// .page_token("Lorem") -/// .page_size(-25) +/// .page_token("dolor") +/// .page_size(-56) /// .doit().await; /// # } /// ``` @@ -3681,7 +3681,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3963,7 +3963,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()); @@ -4225,7 +4225,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()); @@ -4443,8 +4443,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().policies_list("parent") -/// .page_token("sed") -/// .page_size(-61) +/// .page_token("duo") +/// .page_size(-80) /// .doit().await; /// # } /// ``` @@ -4491,7 +4491,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4782,7 +4782,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5084,7 +5084,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5369,7 +5369,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()); @@ -5631,7 +5631,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()); @@ -5850,7 +5850,7 @@ where /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().web_apps_list("parent") /// .page_token("et") -/// .page_size(-76) +/// .page_size(-68) /// .doit().await; /// # } /// ``` @@ -5897,7 +5897,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -6188,7 +6188,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6490,7 +6490,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6737,9 +6737,9 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().create(req) -/// .signup_url_name("duo") -/// .project_id("dolore") -/// .enterprise_token("et") +/// .signup_url_name("sed") +/// .project_id("duo") +/// .enterprise_token("dolore") /// .agreement_accepted(false) /// .doit().await; /// # } @@ -7096,7 +7096,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()); @@ -7358,7 +7358,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()); @@ -7576,10 +7576,10 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.enterprises().list() -/// .view("et") +/// .view(&Default::default()) /// .project_id("et") -/// .page_token("sadipscing") -/// .page_size(-15) +/// .page_token("et") +/// .page_size(-95) /// .doit().await; /// # } /// ``` @@ -7587,7 +7587,7 @@ pub struct EnterpriseListCall<'a, S> where S: 'a { pub(super) hub: &'a AndroidManagement, - pub(super) _view: Option, + pub(super) _view: Option, pub(super) _project_id: Option, pub(super) _page_token: Option, pub(super) _page_size: Option, @@ -7739,8 +7739,8 @@ where /// Specifies which Enterprise fields to return. This method only supports BASIC. /// /// Sets the *view* query property to the given value. - pub fn view(mut self, new_value: &str) -> EnterpriseListCall<'a, S> { - self._view = Some(new_value.to_string()); + pub fn view(mut self, new_value: &EnterpriseViewEnum) -> EnterpriseListCall<'a, S> { + self._view = Some(new_value.clone()); self } /// Required. The Cloud project ID of the EMM managing the enterprises. @@ -7920,7 +7920,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8171,8 +8171,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.signup_urls().create() -/// .project_id("duo") -/// .callback_url("vero") +/// .project_id("dolor") +/// .callback_url("duo") /// .doit().await; /// # } /// ``` diff --git a/gen/androidmanagement1/src/api/mod.rs b/gen/androidmanagement1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/androidmanagement1/src/api/mod.rs +++ b/gen/androidmanagement1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/androidmanagement1/src/api/schemas.rs b/gen/androidmanagement1/src/api/schemas.rs index 7d46e95c6b..8e6876b561 100644 --- a/gen/androidmanagement1/src/api/schemas.rs +++ b/gen/androidmanagement1/src/api/schemas.rs @@ -9,15 +9,15 @@ pub struct AdvancedSecurityOverrides { /// Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, including AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration stores.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. #[serde(rename="commonCriteriaMode")] - pub common_criteria_mode: Option, + pub common_criteria_mode: Option, /// Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). #[serde(rename="developerSettings")] - pub developer_settings: Option, + pub developer_settings: Option, /// Whether Google Play Protect verification (https://support.google.com/accounts/answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated). #[serde(rename="googlePlayProtectVerifyApps")] - pub google_play_protect_verify_apps: Option, + pub google_play_protect_verify_apps: Option, /// Personal apps that can read work profile notifications using a NotificationListenerService (https://developer.android.com/reference/android/service/notification/NotificationListenerService). By default, no personal apps (aside from system apps) can read work notifications. Each value in the list must be a package name. #[serde(rename="personalAppsThatCanReadWorkNotifications")] @@ -25,7 +25,7 @@ pub struct AdvancedSecurityOverrides { /// The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated). #[serde(rename="untrustedAppsPolicy")] - pub untrusted_apps_policy: Option, + pub untrusted_apps_policy: Option, } impl client::Part for AdvancedSecurityOverrides {} @@ -128,7 +128,7 @@ pub struct Application { /// Whether this app is free, free with in-app purchases, or paid. If the pricing is unspecified, this means the app is not generally available anymore (even though it might still be available to people who own it). #[serde(rename="appPricing")] - pub app_pricing: Option, + pub app_pricing: Option, /// Application tracks visible to the enterprise. #[serde(rename="appTracks")] @@ -150,17 +150,17 @@ pub struct Application { /// The content rating for this app. #[serde(rename="contentRating")] - pub content_rating: Option, + pub content_rating: Option, /// The localized promotional description, if available. pub description: Option, /// How and to whom the package is made available. #[serde(rename="distributionChannel")] - pub distribution_channel: Option, + pub distribution_channel: Option, /// Noteworthy features (if any) of this app. - pub features: Option>, + pub features: Option>, /// Full app description, if available. #[serde(rename="fullDescription")] @@ -225,7 +225,7 @@ pub struct ApplicationEvent { /// App event type. #[serde(rename="eventType")] - pub event_type: Option, + pub event_type: Option, } impl client::Part for ApplicationEvent {} @@ -267,23 +267,23 @@ pub struct ApplicationPolicy { /// Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN_LOCKDOWN_ENFORCED, the app is not allowed networking, and if set to VPN_LOCKDOWN_EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non_compliance_reason set to API_LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non_compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy. #[serde(rename="alwaysOnVpnLockdownExemption")] - pub always_on_vpn_lockdown_exemption: Option, + pub always_on_vpn_lockdown_exemption: Option, /// Controls the auto-update mode for the app. #[serde(rename="autoUpdateMode")] - pub auto_update_mode: Option, + pub auto_update_mode: Option, /// Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. #[serde(rename="connectedWorkAndPersonalApp")] - pub connected_work_and_personal_app: Option, + pub connected_work_and_personal_app: Option, /// The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. #[serde(rename="defaultPermissionPolicy")] - pub default_permission_policy: Option, + pub default_permission_policy: Option, /// The scopes delegated to the app from Android Device Policy. #[serde(rename="delegatedScopes")] - pub delegated_scopes: Option>, + pub delegated_scopes: Option>, /// Whether the app is disabled. When disabled, the app data is still preserved. pub disabled: Option, @@ -294,7 +294,7 @@ pub struct ApplicationPolicy { /// The type of installation to perform. #[serde(rename="installType")] - pub install_type: Option, + pub install_type: Option, /// Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated device. #[serde(rename="lockTaskAllowed")] @@ -322,7 +322,7 @@ pub struct ApplicationPolicy { /// Specifies whether the app installed in the work profile is allowed to add widgets to the home screen. #[serde(rename="workProfileWidgets")] - pub work_profile_widgets: Option, + pub work_profile_widgets: Option, } impl client::Part for ApplicationPolicy {} @@ -338,7 +338,7 @@ pub struct ApplicationReport { /// The source of the package. #[serde(rename="applicationSource")] - pub application_source: Option, + pub application_source: Option, /// The display name of the app. #[serde(rename="displayName")] @@ -368,7 +368,7 @@ pub struct ApplicationReport { pub signing_key_cert_fingerprints: Option>, /// Application state. - pub state: Option, + pub state: Option, /// The app version code, which can be used to determine whether one version is more recent than another. #[serde(rename="versionCode")] @@ -412,7 +412,7 @@ pub struct BlockAction { /// Specifies the scope of this BlockAction. Only applicable to devices that are company-owned. #[serde(rename="blockScope")] - pub block_scope: Option, + pub block_scope: Option, } impl client::Part for BlockAction {} @@ -503,7 +503,7 @@ pub struct Command { /// If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// For commands of type RESET_PASSWORD, optionally specifies the new password. #[serde(rename="newPassword")] @@ -511,11 +511,11 @@ pub struct Command { /// For commands of type RESET_PASSWORD, optionally specifies flags. #[serde(rename="resetPasswordFlags")] - pub reset_password_flags: Option>, + pub reset_password_flags: Option>, /// The type of the command. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to. #[serde(rename="userName")] @@ -535,7 +535,7 @@ pub struct CommonCriteriaModeInfo { /// Whether Common Criteria Mode is enabled. #[serde(rename="commonCriteriaModeStatus")] - pub common_criteria_mode_status: Option, + pub common_criteria_mode_status: Option, } impl client::Part for CommonCriteriaModeInfo {} @@ -642,19 +642,19 @@ pub struct CrossProfilePolicies { /// Whether text copied from one profile (personal or work) can be pasted in the other profile. #[serde(rename="crossProfileCopyPaste")] - pub cross_profile_copy_paste: Option, + pub cross_profile_copy_paste: Option, /// Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy/paste, or connected work & personal apps, are configured separately. #[serde(rename="crossProfileDataSharing")] - pub cross_profile_data_sharing: Option, + pub cross_profile_data_sharing: Option, /// Whether contacts stored in the work profile can be shown in personal profile contact searches and incoming calls. #[serde(rename="showWorkContactsInPersonalProfile")] - pub show_work_contacts_in_personal_profile: Option, + pub show_work_contacts_in_personal_profile: Option, /// Specifies the default behaviour for work profile widgets. If the policy does not specify work_profile_widgets for a specific application, it will behave according to the value specified here. #[serde(rename="workProfileWidgetsDefault")] - pub work_profile_widgets_default: Option, + pub work_profile_widgets_default: Option, } impl client::Part for CrossProfilePolicies {} @@ -717,7 +717,7 @@ pub struct Device { /// The state currently applied to the device. #[serde(rename="appliedState")] - pub applied_state: Option, + pub applied_state: Option, /// Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. #[serde(rename="commonCriteriaModeInfo")] @@ -768,7 +768,7 @@ pub struct Device { /// The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. #[serde(rename="managementMode")] - pub management_mode: Option, + pub management_mode: Option, /// Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. #[serde(rename="memoryEvents")] @@ -790,7 +790,7 @@ pub struct Device { pub non_compliance_details: Option>, /// Ownership of the managed device. - pub ownership: Option, + pub ownership: Option, /// Whether the device is compliant with its policy. #[serde(rename="policyCompliant")] @@ -817,7 +817,7 @@ pub struct Device { pub software_info: Option, /// The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. - pub state: Option, + pub state: Option, /// Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. #[serde(rename="systemProperties")] @@ -853,7 +853,7 @@ pub struct DeviceSettings { /// Encryption status from DevicePolicyManager. #[serde(rename="encryptionStatus")] - pub encryption_status: Option, + pub encryption_status: Option, /// Whether the device is secured with PIN/password. #[serde(rename="isDeviceSecure")] @@ -901,7 +901,7 @@ pub struct Display { pub refresh_rate: Option, /// State of the display. - pub state: Option, + pub state: Option, /// Display width in pixels. pub width: Option, @@ -950,7 +950,7 @@ pub struct EnrollmentToken { /// Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device. #[serde(rename="allowPersonalUsage")] - pub allow_personal_usage: Option, + pub allow_personal_usage: Option, /// The length of time the enrollment token is valid, ranging from 1 minute to Durations.MAX_VALUE (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour. Please note that if requested duration causes the resulting expiration_timestamp to exceed Timestamps.MAX_VALUE (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Timestamps.html#MAX_VALUE), then expiration_timestamp is coerced to Timestamps.MAX_VALUE. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] @@ -1036,7 +1036,7 @@ pub struct Enterprise { /// The types of Google Pub/Sub notifications enabled for the enterprise. #[serde(rename="enabledNotificationTypes")] - pub enabled_notification_types: Option>, + pub enabled_notification_types: Option>, /// The name of the enterprise displayed to users. #[serde(rename="enterpriseDisplayName")] @@ -1263,7 +1263,7 @@ pub struct KeyedAppState { pub message: Option, /// The severity of the app state. - pub severity: Option, + pub severity: Option, } impl client::Part for KeyedAppState {} @@ -1279,23 +1279,23 @@ pub struct KioskCustomization { /// Specifies whether the Settings app is allowed in kiosk mode. #[serde(rename="deviceSettings")] - pub device_settings: Option, + pub device_settings: Option, /// Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button. #[serde(rename="powerButtonActions")] - pub power_button_actions: Option, + pub power_button_actions: Option, /// Specifies whether system info and notifications are disabled in kiosk mode. #[serde(rename="statusBar")] - pub status_bar: Option, + pub status_bar: Option, /// Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the "close app" option on the UI. #[serde(rename="systemErrorWarnings")] - pub system_error_warnings: Option, + pub system_error_warnings: Option, /// Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode. #[serde(rename="systemNavigation")] - pub system_navigation: Option, + pub system_navigation: Option, } impl client::Part for KioskCustomization {} @@ -1507,7 +1507,7 @@ pub struct ManagedProperty { /// The type of the property. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ManagedProperty {} @@ -1550,7 +1550,7 @@ pub struct MemoryEvent { /// Event type. #[serde(rename="eventType")] - pub event_type: Option, + pub event_type: Option, } impl client::Part for MemoryEvent {} @@ -1626,11 +1626,11 @@ pub struct NonComplianceDetail { /// If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. #[serde(rename="installationFailureReason")] - pub installation_failure_reason: Option, + pub installation_failure_reason: Option, /// The reason the device is not in compliance with the setting. #[serde(rename="nonComplianceReason")] - pub non_compliance_reason: Option, + pub non_compliance_reason: Option, /// The package name indicating which app is out of compliance, if applicable. #[serde(rename="packageName")] @@ -1646,7 +1646,7 @@ pub struct NonComplianceDetail { /// The policy-specific reason the device is not in compliance with the setting. #[serde(rename="specificNonComplianceReason")] - pub specific_non_compliance_reason: Option, + pub specific_non_compliance_reason: Option, } impl client::Part for NonComplianceDetail {} @@ -1662,7 +1662,7 @@ pub struct NonComplianceDetailCondition { /// The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. #[serde(rename="nonComplianceReason")] - pub non_compliance_reason: Option, + pub non_compliance_reason: Option, /// The package name of the app that's out of compliance. If not set, then this condition matches any package name. #[serde(rename="packageName")] @@ -1770,7 +1770,7 @@ pub struct PasswordPoliciesContext { /// The scope of non-compliant password. #[serde(rename="passwordPolicyScope")] - pub password_policy_scope: Option, + pub password_policy_scope: Option, } impl client::Part for PasswordPoliciesContext {} @@ -1827,19 +1827,19 @@ pub struct PasswordRequirements { /// The required password quality. #[serde(rename="passwordQuality")] - pub password_quality: Option, + pub password_quality: Option, /// The scope that the password requirement applies to. #[serde(rename="passwordScope")] - pub password_scope: Option, + pub password_scope: Option, /// The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile. #[serde(rename="requirePasswordUnlock")] - pub require_password_unlock: Option, + pub require_password_unlock: Option, /// Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This can be set only if password_scope is set to SCOPE_PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER_ACTION. #[serde(rename="unifiedLockSettings")] - pub unified_lock_settings: Option, + pub unified_lock_settings: Option, } impl client::Part for PasswordRequirements {} @@ -1855,7 +1855,7 @@ pub struct PerAppResult { /// The result of an attempt to clear the data of a single app. #[serde(rename="clearingResult")] - pub clearing_result: Option, + pub clearing_result: Option, } impl client::Part for PerAppResult {} @@ -1873,7 +1873,7 @@ pub struct PermissionGrant { pub permission: Option, /// The policy for granting the permission. - pub policy: Option, + pub policy: Option, } impl client::Part for PermissionGrant {} @@ -1911,7 +1911,7 @@ pub struct PersonalApplicationPolicy { /// The type of installation to perform. #[serde(rename="installType")] - pub install_type: Option, + pub install_type: Option, /// The package name of the application. #[serde(rename="packageName")] @@ -1947,7 +1947,7 @@ pub struct PersonalUsagePolicies { /// Used together with personalApplications to control how apps in the personal profile are allowed or blocked. #[serde(rename="personalPlayStoreMode")] - pub personal_play_store_mode: Option, + pub personal_play_store_mode: Option, /// If true, screen capture is disabled for all users. #[serde(rename="screenCaptureDisabled")] @@ -1992,18 +1992,18 @@ pub struct Policy { /// The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. #[serde(rename="androidDevicePolicyTracks")] - pub android_device_policy_tracks: Option>, + pub android_device_policy_tracks: Option>, /// Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. #[serde(rename="appAutoUpdatePolicy")] - pub app_auto_update_policy: Option, + pub app_auto_update_policy: Option, /// Policy applied to apps. pub applications: Option>, /// Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored. #[serde(rename="autoDateAndTimeZone")] - pub auto_date_and_time_zone: Option, + pub auto_date_and_time_zone: Option, /// Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored. #[serde(rename="autoTimeRequired")] @@ -2027,7 +2027,7 @@ pub struct Policy { /// Controls the use of the camera and whether the user has access to the camera access toggle. #[serde(rename="cameraAccess")] - pub camera_access: Option, + pub camera_access: Option, /// If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected. #[serde(rename="cameraDisabled")] @@ -2067,7 +2067,7 @@ pub struct Policy { /// The default permission policy for runtime permission requests. #[serde(rename="defaultPermissionPolicy")] - pub default_permission_policy: Option, + pub default_permission_policy: Option, /// The device owner information to be shown on the lock screen. #[serde(rename="deviceOwnerLockScreenInfo")] @@ -2075,7 +2075,7 @@ pub struct Policy { /// Whether encryption is enabled #[serde(rename="encryptionPolicy")] - pub encryption_policy: Option, + pub encryption_policy: Option, /// Whether app verification is force-enabled. #[serde(rename="ensureVerifyAppsEnabled")] @@ -2107,7 +2107,7 @@ pub struct Policy { /// Disabled keyguard customizations, such as widgets. #[serde(rename="keyguardDisabledFeatures")] - pub keyguard_disabled_features: Option>, + pub keyguard_disabled_features: Option>, /// Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior. #[serde(rename="kioskCustomLauncherEnabled")] @@ -2119,7 +2119,7 @@ pub struct Policy { /// The degree of location detection enabled. #[serde(rename="locationMode")] - pub location_mode: Option, + pub location_mode: Option, /// A message displayed to the user in the device administators settings screen. #[serde(rename="longSupportMessage")] @@ -2132,7 +2132,7 @@ pub struct Policy { /// Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices. #[serde(rename="microphoneAccess")] - pub microphone_access: Option, + pub microphone_access: Option, /// The minimum allowed Android API level. #[serde(rename="minimumApiLevel")] @@ -2207,7 +2207,7 @@ pub struct Policy { /// This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. #[serde(rename="playStoreMode")] - pub play_store_mode: Option, + pub play_store_mode: Option, /// Rules that define the behavior when a particular policy can not be applied on device #[serde(rename="policyEnforcementRules")] @@ -2215,7 +2215,7 @@ pub struct Policy { /// Controls whether preferential network service is enabled on the work profile. For example, an organization may have an agreement with a carrier that all of the work data from its employees' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This has no effect on fully managed devices. #[serde(rename="preferentialNetworkService")] - pub preferential_network_service: Option, + pub preferential_network_service: Option, /// Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. #[serde(rename="privateKeySelectionEnabled")] @@ -2275,7 +2275,7 @@ pub struct Policy { /// The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. #[serde(rename="stayOnPluggedModes")] - pub stay_on_plugged_modes: Option>, + pub stay_on_plugged_modes: Option>, /// The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. #[serde(rename="systemUpdate")] @@ -2363,7 +2363,7 @@ pub struct PostureDetail { /// A specific security risk that negatively affects the security posture of the device. #[serde(rename="securityRisk")] - pub security_risk: Option, + pub security_risk: Option, } impl client::Part for PostureDetail {} @@ -2387,7 +2387,7 @@ pub struct PowerManagementEvent { /// Event type. #[serde(rename="eventType")] - pub event_type: Option, + pub event_type: Option, } impl client::Part for PowerManagementEvent {} @@ -2429,7 +2429,7 @@ pub struct SecurityPosture { /// Device's security posture value. #[serde(rename="devicePosture")] - pub device_posture: Option, + pub device_posture: Option, /// Additional details regarding the security posture of the device. #[serde(rename="postureDetails")] @@ -2471,7 +2471,7 @@ pub struct SigninDetail { /// Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device. #[serde(rename="allowPersonalUsage")] - pub allow_personal_usage: Option, + pub allow_personal_usage: Option, /// A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server. #[serde(rename="qrCode")] @@ -2687,7 +2687,7 @@ pub struct SystemUpdate { /// The type of system update to configure. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SystemUpdate {} @@ -2707,7 +2707,7 @@ pub struct SystemUpdateInfo { /// The status of an update: whether an update exists and what type it is. #[serde(rename="updateStatus")] - pub update_status: Option, + pub update_status: Option, } impl client::Part for SystemUpdateInfo {} @@ -2761,11 +2761,11 @@ pub struct UsageLog { /// Specifies which log types are enabled. Note that users will receive on-device messaging when usage logging is enabled. #[serde(rename="enabledLogTypes")] - pub enabled_log_types: Option>, + pub enabled_log_types: Option>, /// Specifies which of the enabled log types can be uploaded over mobile data. By default logs are queued for upload when the device connects to WiFi. #[serde(rename="uploadOnCellularAllowed")] - pub upload_on_cellular_allowed: Option>, + pub upload_on_cellular_allowed: Option>, } impl client::Part for UsageLog {} @@ -2823,7 +2823,7 @@ pub struct WebApp { /// The display mode of the web app. #[serde(rename="displayMode")] - pub display_mode: Option, + pub display_mode: Option, /// A list of icons for the web app. Must have at least one element. pub icons: Option>, @@ -2878,7 +2878,7 @@ pub struct WebToken { /// The features to enable. Use this if you want to control exactly which feature(s) will be activated; leave empty to allow all features.Restrictions / things to note: - If no features are listed here, all features are enabled — this is the default behavior where you give access to all features to your admins. - This must not contain any FEATURE_UNSPECIFIED values. - Repeated values are ignored #[serde(rename="enabledFeatures")] - pub enabled_features: Option>, + pub enabled_features: Option>, /// The name of the web token, which is generated by the server during creation in the form enterprises/{enterpriseId}/webTokens/{webTokenId}. pub name: Option, @@ -2888,7 +2888,7 @@ pub struct WebToken { pub parent_frame_url: Option, /// Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. This field is deprecated. - pub permissions: Option>, + pub permissions: Option>, /// The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server. pub value: Option, diff --git a/gen/androidpublisher2/src/api/method_builders.rs b/gen/androidpublisher2/src/api/method_builders.rs index 8904ad7d7d..3ecf1c63f7 100644 --- a/gen/androidpublisher2/src/api/method_builders.rs +++ b/gen/androidpublisher2/src/api/method_builders.rs @@ -274,13 +274,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `apkVersionCode` - The version code of the APK whose deobfuscation file is being uploaded. /// * `deobfuscationFileType` - No description provided. - pub fn deobfuscationfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &str) -> EditDeobfuscationfileUploadCall<'a, S> { + pub fn deobfuscationfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &EditDeobfuscationFileTypeEnum) -> EditDeobfuscationfileUploadCall<'a, S> { EditDeobfuscationfileUploadCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _deobfuscation_file_type: deobfuscation_file_type.to_string(), + _deobfuscation_file_type: deobfuscation_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -358,13 +358,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `apkVersionCode` - The version code of the APK whose Expansion File configuration is being read or modified. /// * `expansionFileType` - No description provided. - pub fn expansionfiles_get(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileGetCall<'a, S> { + pub fn expansionfiles_get(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileGetCall<'a, S> { EditExpansionfileGetCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -382,14 +382,14 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `apkVersionCode` - The version code of the APK whose Expansion File configuration is being read or modified. /// * `expansionFileType` - No description provided. - pub fn expansionfiles_patch(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfilePatchCall<'a, S> { + pub fn expansionfiles_patch(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfilePatchCall<'a, S> { EditExpansionfilePatchCall { hub: self.hub, _request: request, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -407,14 +407,14 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `apkVersionCode` - The version code of the APK whose Expansion File configuration is being read or modified. /// * `expansionFileType` - No description provided. - pub fn expansionfiles_update(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileUpdateCall<'a, S> { + pub fn expansionfiles_update(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileUpdateCall<'a, S> { EditExpansionfileUpdateCall { hub: self.hub, _request: request, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -431,13 +431,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `apkVersionCode` - The version code of the APK whose Expansion File configuration is being read or modified. /// * `expansionFileType` - No description provided. - pub fn expansionfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileUploadCall<'a, S> { + pub fn expansionfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileUploadCall<'a, S> { EditExpansionfileUploadCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -455,13 +455,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `language` - The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". /// * `imageType` - No description provided. /// * `imageId` - Unique identifier an image within the set of images attached to this edit. - pub fn images_delete(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str, image_id: &str) -> EditImageDeleteCall<'a, S> { + pub fn images_delete(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum, image_id: &str) -> EditImageDeleteCall<'a, S> { EditImageDeleteCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _image_id: image_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -479,13 +479,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `language` - The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". /// * `imageType` - No description provided. - pub fn images_deleteall(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageDeleteallCall<'a, S> { + pub fn images_deleteall(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageDeleteallCall<'a, S> { EditImageDeleteallCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -502,13 +502,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `language` - The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". /// * `imageType` - No description provided. - pub fn images_list(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageListCall<'a, S> { + pub fn images_list(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageListCall<'a, S> { EditImageListCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -525,13 +525,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `language` - The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". /// * `imageType` - No description provided. - pub fn images_upload(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageUploadCall<'a, S> { + pub fn images_upload(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageUploadCall<'a, S> { EditImageUploadCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/androidpublisher2/src/api/mod.rs b/gen/androidpublisher2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/androidpublisher2/src/api/mod.rs +++ b/gen/androidpublisher2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/androidpublisher3/src/api/method_builders.rs b/gen/androidpublisher3/src/api/method_builders.rs index 4e764c192a..6baa049049 100644 --- a/gen/androidpublisher3/src/api/method_builders.rs +++ b/gen/androidpublisher3/src/api/method_builders.rs @@ -266,13 +266,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Unique identifier for this edit. /// * `apkVersionCode` - The version code of the APK whose Deobfuscation File is being uploaded. /// * `deobfuscationFileType` - The type of the deobfuscation file. - pub fn deobfuscationfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &str) -> EditDeobfuscationfileUploadCall<'a, S> { + pub fn deobfuscationfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &EditDeobfuscationFileTypeEnum) -> EditDeobfuscationfileUploadCall<'a, S> { EditDeobfuscationfileUploadCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _deobfuscation_file_type: deobfuscation_file_type.to_string(), + _deobfuscation_file_type: deobfuscation_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -350,13 +350,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `apkVersionCode` - The version code of the APK whose expansion file configuration is being read or modified. /// * `expansionFileType` - The file type of the file configuration which is being read or modified. - pub fn expansionfiles_get(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileGetCall<'a, S> { + pub fn expansionfiles_get(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileGetCall<'a, S> { EditExpansionfileGetCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -374,14 +374,14 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `apkVersionCode` - The version code of the APK whose expansion file configuration is being read or modified. /// * `expansionFileType` - The file type of the expansion file configuration which is being updated. - pub fn expansionfiles_patch(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfilePatchCall<'a, S> { + pub fn expansionfiles_patch(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfilePatchCall<'a, S> { EditExpansionfilePatchCall { hub: self.hub, _request: request, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -399,14 +399,14 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `apkVersionCode` - The version code of the APK whose expansion file configuration is being read or modified. /// * `expansionFileType` - The file type of the file configuration which is being read or modified. - pub fn expansionfiles_update(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileUpdateCall<'a, S> { + pub fn expansionfiles_update(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileUpdateCall<'a, S> { EditExpansionfileUpdateCall { hub: self.hub, _request: request, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -423,13 +423,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `apkVersionCode` - The version code of the APK whose expansion file configuration is being read or modified. /// * `expansionFileType` - The file type of the expansion file configuration which is being updated. - pub fn expansionfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileUploadCall<'a, S> { + pub fn expansionfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileUploadCall<'a, S> { EditExpansionfileUploadCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _apk_version_code: apk_version_code, - _expansion_file_type: expansion_file_type.to_string(), + _expansion_file_type: expansion_file_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -447,13 +447,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `language` - Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// * `imageType` - Type of the Image. /// * `imageId` - Unique identifier an image within the set of images attached to this edit. - pub fn images_delete(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str, image_id: &str) -> EditImageDeleteCall<'a, S> { + pub fn images_delete(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum, image_id: &str) -> EditImageDeleteCall<'a, S> { EditImageDeleteCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _image_id: image_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -471,13 +471,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `language` - Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing a language that is not supported by the App is a no-op. /// * `imageType` - Type of the Image. Providing an image type that refers to no images is a no-op. - pub fn images_deleteall(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageDeleteallCall<'a, S> { + pub fn images_deleteall(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageDeleteallCall<'a, S> { EditImageDeleteallCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -494,13 +494,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `language` - Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There must be a store listing for the specified language. /// * `imageType` - Type of the Image. Providing an image type that refers to no images will return an empty response. - pub fn images_list(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageListCall<'a, S> { + pub fn images_list(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageListCall<'a, S> { EditImageListCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -517,13 +517,13 @@ impl<'a, S> EditMethods<'a, S> { /// * `editId` - Identifier of the edit. /// * `language` - Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing a language that is not supported by the App is a no-op. /// * `imageType` - Type of the Image. - pub fn images_upload(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageUploadCall<'a, S> { + pub fn images_upload(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageUploadCall<'a, S> { EditImageUploadCall { hub: self.hub, _package_name: package_name.to_string(), _edit_id: edit_id.to_string(), _language: language.to_string(), - _image_type: image_type.to_string(), + _image_type: image_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/androidpublisher3/src/api/mod.rs b/gen/androidpublisher3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/androidpublisher3/src/api/mod.rs +++ b/gen/androidpublisher3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/androidpublisher3/src/api/schemas.rs b/gen/androidpublisher3/src/api/schemas.rs index e0a32f9334..c6a3f2c71b 100644 --- a/gen/androidpublisher3/src/api/schemas.rs +++ b/gen/androidpublisher3/src/api/schemas.rs @@ -250,11 +250,11 @@ pub struct AutoRenewingBasePlanType { /// The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE. #[serde(rename="prorationMode")] - pub proration_mode: Option, + pub proration_mode: Option, /// Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified. #[serde(rename="resubscribeState")] - pub resubscribe_state: Option, + pub resubscribe_state: Option, } impl client::Part for AutoRenewingBasePlanType {} @@ -313,7 +313,7 @@ pub struct BasePlan { pub regional_configs: Option>, /// Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead. - pub state: Option, + pub state: Option, } impl client::Part for BasePlan {} @@ -376,7 +376,7 @@ impl client::ResponseResult for BundlesListResponse {} pub struct CancelSurveyResult { /// The reason the user selected in the cancel survey. - pub reason: Option, + pub reason: Option, /// Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response to the survey. #[serde(rename="reasonUserInput")] @@ -579,7 +579,7 @@ pub struct DeobfuscationFile { /// The type of the deobfuscation file. #[serde(rename="symbolType")] - pub symbol_type: Option, + pub symbol_type: Option, } impl client::Part for DeobfuscationFile {} @@ -1178,7 +1178,7 @@ pub struct Grant { /// The permissions granted to the user for this app. #[serde(rename="appLevelPermissions")] - pub app_level_permissions: Option>, + pub app_level_permissions: Option>, /// Required. Resource name for this grant, following the pattern "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name. pub name: Option, @@ -1317,13 +1317,13 @@ pub struct InAppProduct { /// The type of the product, e.g. a recurring subscription. #[serde(rename="purchaseType")] - pub purchase_type: Option, + pub purchase_type: Option, /// Stock-keeping-unit (SKU) of the product, unique within an app. pub sku: Option, /// The status of the product, e.g. whether it's active. - pub status: Option, + pub status: Option, /// Subscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one year). #[serde(rename="subscriptionPeriod")] @@ -1632,7 +1632,7 @@ pub struct ManagedProductTaxAndComplianceSettings { /// Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information. #[serde(rename="eeaWithdrawalRightType")] - pub eea_withdrawal_right_type: Option, + pub eea_withdrawal_right_type: Option, /// A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR". #[serde(rename="taxRateInfoByRegionCode")] @@ -1881,7 +1881,7 @@ pub struct PrepaidBasePlanType { /// Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified. #[serde(rename="timeExtension")] - pub time_extension: Option, + pub time_extension: Option, } impl client::Part for PrepaidBasePlanType {} @@ -2117,11 +2117,11 @@ pub struct RegionalTaxRateInfo { /// To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax). #[serde(rename="streamingTaxType")] - pub streaming_tax_type: Option, + pub streaming_tax_type: Option, /// Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498). #[serde(rename="taxTier")] - pub tax_tier: Option, + pub tax_tier: Option, } impl client::Part for RegionalTaxRateInfo {} @@ -2405,11 +2405,11 @@ pub struct SubscriptionItemPriceChangeDetails { /// Price change mode specifies how the subscription item price is changing. #[serde(rename="priceChangeMode")] - pub price_change_mode: Option, + pub price_change_mode: Option, /// State the price change is currently in. #[serde(rename="priceChangeState")] - pub price_change_state: Option, + pub price_change_state: Option, } impl client::Part for SubscriptionItemPriceChangeDetails {} @@ -2488,7 +2488,7 @@ pub struct SubscriptionOffer { pub regional_configs: Option>, /// Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active. - pub state: Option, + pub state: Option, /// The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves. pub targeting: Option, @@ -2746,7 +2746,7 @@ pub struct SubscriptionPurchaseV2 { /// The acknowledgement state of the subscription. #[serde(rename="acknowledgementState")] - pub acknowledgement_state: Option, + pub acknowledgement_state: Option, /// Additional context around canceled subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_CANCELED. #[serde(rename="canceledStateContext")] @@ -2789,7 +2789,7 @@ pub struct SubscriptionPurchaseV2 { /// The current state of the subscription. #[serde(rename="subscriptionState")] - pub subscription_state: Option, + pub subscription_state: Option, /// Only present if this subscription purchase is a test purchase. #[serde(rename="testPurchase")] @@ -2870,7 +2870,7 @@ pub struct SubscriptionTaxAndComplianceSettings { /// Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information. #[serde(rename="eeaWithdrawalRightType")] - pub eea_withdrawal_right_type: Option, + pub eea_withdrawal_right_type: Option, /// A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR". #[serde(rename="taxRateInfoByRegionCode")] @@ -3090,7 +3090,7 @@ pub struct TrackRelease { pub release_notes: Option>, /// The status of the release. - pub status: Option, + pub status: Option, /// Fraction of users who are eligible for a staged release. 0 < fraction < 1. Can only be set when status is "inProgress" or "halted". #[serde(rename="userFraction")] @@ -3183,11 +3183,11 @@ pub struct User { /// Output only. The state of the user's access to the Play Console. #[serde(rename="accessState")] - pub access_state: Option, + pub access_state: Option, /// Permissions for the user which apply across the developer account. #[serde(rename="developerAccountPermissions")] - pub developer_account_permissions: Option>, + pub developer_account_permissions: Option>, /// Immutable. The user's email address. pub email: Option, diff --git a/gen/apigateway1/src/api/mod.rs b/gen/apigateway1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/apigateway1/src/api/mod.rs +++ b/gen/apigateway1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/apigateway1/src/api/schemas.rs b/gen/apigateway1/src/api/schemas.rs index 48c191370f..8206ad0115 100644 --- a/gen/apigateway1/src/api/schemas.rs +++ b/gen/apigateway1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct ApigatewayApi { pub name: Option, /// Output only. State of the API. - pub state: Option, + pub state: Option, /// Output only. Updated time. #[serde(rename="updateTime")] @@ -92,7 +92,7 @@ pub struct ApigatewayApiConfig { pub service_config_id: Option, /// Output only. State of the API Config. - pub state: Option, + pub state: Option, /// Output only. Updated time. #[serde(rename="updateTime")] @@ -189,7 +189,7 @@ pub struct ApigatewayAuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for ApigatewayAuditLogConfig {} @@ -292,7 +292,7 @@ pub struct ApigatewayGateway { pub name: Option, /// Output only. The current state of the Gateway. - pub state: Option, + pub state: Option, /// Output only. Updated time. #[serde(rename="updateTime")] diff --git a/gen/apigee1/src/api/mod.rs b/gen/apigee1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/apigee1/src/api/mod.rs +++ b/gen/apigee1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/apigee1/src/api/schemas.rs b/gen/apigee1/src/api/schemas.rs index e15f5e5e8e..560b52708c 100644 --- a/gen/apigee1/src/api/schemas.rs +++ b/gen/apigee1/src/api/schemas.rs @@ -229,7 +229,7 @@ pub struct GoogleCloudApigeeV1Alias { /// Type of alias. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::ResponseResult for GoogleCloudApigeeV1Alias {} @@ -251,7 +251,7 @@ pub struct GoogleCloudApigeeV1AliasRevisionConfig { /// no description provided #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudApigeeV1AliasRevisionConfig {} @@ -389,7 +389,7 @@ pub struct GoogleCloudApigeeV1ApiProduct { /// Scope of the quota decides how the quota counter gets applied and evaluate for quota violation. If the Scope is set as PROXY, then all the operations defined for the APIproduct that are associated with the same proxy will share the same quota counter set at the APIproduct level, making it a global counter at a proxy level. If the Scope is set as OPERATION, then each operations get the counter set at the API product dedicated, making it a local counter. Note that, the QuotaCounterScope applies only when an operation does not have dedicated quota set for itself. #[serde(rename="quotaCounterScope")] - pub quota_counter_scope: Option, + pub quota_counter_scope: Option, /// Time interval over which the number of request messages is calculated. #[serde(rename="quotaInterval")] @@ -441,7 +441,7 @@ pub struct GoogleCloudApigeeV1ApiProxy { /// Output only. The type of the API proxy. #[serde(rename="apiProxyType")] - pub api_proxy_type: Option, + pub api_proxy_type: Option, /// User labels applied to this API Proxy. pub labels: Option>, @@ -974,13 +974,13 @@ pub struct GoogleCloudApigeeV1CanaryEvaluation { pub start_time: Option>, /// Output only. The current state of the canary evaluation. - pub state: Option, + pub state: Option, /// Required. The newer version that is serving requests. pub treatment: Option, /// Output only. The resulting verdict of the canary evaluations: NONE, PASS, or FAIL. - pub verdict: Option, + pub verdict: Option, } impl client::RequestValue for GoogleCloudApigeeV1CanaryEvaluation {} @@ -1423,7 +1423,7 @@ pub struct GoogleCloudApigeeV1DataCollector { /// Immutable. The type of data this data collector will collect. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for GoogleCloudApigeeV1DataCollector {} @@ -1443,7 +1443,7 @@ pub struct GoogleCloudApigeeV1DataCollectorConfig { /// Data type accepted by the data collector. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudApigeeV1DataCollectorConfig {} @@ -1728,7 +1728,7 @@ pub struct GoogleCloudApigeeV1Deployment { pub service_account: Option, /// Current state of the deployment. **Note**: This field is displayed only when viewing deployment status. - pub state: Option, + pub state: Option, } impl client::ResponseResult for GoogleCloudApigeeV1Deployment {} @@ -2167,7 +2167,7 @@ pub struct GoogleCloudApigeeV1DeveloperMonetizationConfig { /// Billing type. #[serde(rename="billingType")] - pub billing_type: Option, + pub billing_type: Option, } impl client::RequestValue for GoogleCloudApigeeV1DeveloperMonetizationConfig {} @@ -2252,7 +2252,7 @@ pub struct GoogleCloudApigeeV1EndpointAttachment { /// Output only. State of the endpoint attachment connection to the service attachment. #[serde(rename="connectionState")] - pub connection_state: Option, + pub connection_state: Option, /// Output only. Host that can be used in either the HTTP target endpoint directly or as the host in target server. pub host: Option, @@ -2268,7 +2268,7 @@ pub struct GoogleCloudApigeeV1EndpointAttachment { pub service_attachment: Option, /// Output only. State of the endpoint attachment. Values other than `ACTIVE` mean the resource is not ready to use. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudApigeeV1EndpointAttachment {} @@ -2339,7 +2339,7 @@ pub struct GoogleCloudApigeeV1Environment { /// Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed. #[serde(rename="apiProxyType")] - pub api_proxy_type: Option, + pub api_proxy_type: Option, /// Output only. Creation time of this environment as milliseconds since epoch. #[serde(rename="createdAt")] @@ -2348,7 +2348,7 @@ pub struct GoogleCloudApigeeV1Environment { /// Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](https://cloud.google.com/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers #[serde(rename="deploymentType")] - pub deployment_type: Option, + pub deployment_type: Option, /// Optional. Description of the environment. pub description: Option, @@ -2377,7 +2377,7 @@ pub struct GoogleCloudApigeeV1Environment { pub properties: Option, /// Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudApigeeV1Environment {} @@ -2514,7 +2514,7 @@ pub struct GoogleCloudApigeeV1EnvironmentGroup { pub name: Option, /// Output only. State of the environment group. Values other than ACTIVE means the resource is not ready to use. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudApigeeV1EnvironmentGroup {} @@ -3032,7 +3032,7 @@ pub struct GoogleCloudApigeeV1Instance { /// Optional. Size of the CIDR block range that will be reserved by the instance. PAID organizations support `SLASH_16` to `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations support only `SLASH_23`. #[serde(rename="peeringCidrRange")] - pub peering_cidr_range: Option, + pub peering_cidr_range: Option, /// Output only. Port number of the exposed Apigee endpoint. pub port: Option, @@ -3046,7 +3046,7 @@ pub struct GoogleCloudApigeeV1Instance { pub service_attachment: Option, /// Output only. State of the instance. Values other than `ACTIVE` means the resource is not ready to use. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudApigeeV1Instance {} @@ -4023,13 +4023,13 @@ impl client::Part for GoogleCloudApigeeV1Metric {} pub struct GoogleCloudApigeeV1MetricAggregation { /// Aggregation function associated with the metric. - pub aggregation: Option, + pub aggregation: Option, /// Name of the metric pub name: Option, /// Ordering for this aggregation in the result. For time series this is ignored since the ordering of points depends only on the timestamp, not the values. - pub order: Option, + pub order: Option, } impl client::Part for GoogleCloudApigeeV1MetricAggregation {} @@ -4071,7 +4071,7 @@ pub struct GoogleCloudApigeeV1NatAddress { pub name: Option, /// Output only. State of the nat address. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudApigeeV1NatAddress {} @@ -4267,7 +4267,7 @@ pub struct GoogleCloudApigeeV1Organization { /// Billing type of the Apigee organization. See [Apigee pricing](https://cloud.google.com/apigee/pricing). #[serde(rename="billingType")] - pub billing_type: Option, + pub billing_type: Option, /// Output only. Base64-encoded public certificate for the root CA of the Apigee organization. Valid only when [RuntimeType](#RuntimeType) is `CLOUD`. #[serde(rename="caCertificate")] @@ -4323,18 +4323,18 @@ pub struct GoogleCloudApigeeV1Organization { /// Required. Runtime type of the Apigee organization based on the Apigee subscription purchased. #[serde(rename="runtimeType")] - pub runtime_type: Option, + pub runtime_type: Option, /// Output only. State of the organization. Values other than ACTIVE means the resource is not ready to use. - pub state: Option, + pub state: Option, /// Output only. DEPRECATED: This will eventually be replaced by BillingType. Subscription type of the Apigee organization. Valid values include trial (free, limited, and for evaluation purposes only) or paid (full subscription has been purchased). See [Apigee pricing](https://cloud.google.com/apigee/pricing/). #[serde(rename="subscriptionType")] - pub subscription_type: Option, + pub subscription_type: Option, /// Not used by Apigee. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for GoogleCloudApigeeV1Organization {} @@ -4716,11 +4716,11 @@ pub struct GoogleCloudApigeeV1QueryTimeSeriesStatsRequest { /// Order the sequences in increasing or decreasing order of timestamps. Default is descending order of timestamps (latest first). #[serde(rename="timestampOrder")] - pub timestamp_order: Option, + pub timestamp_order: Option, /// Time buckets to group the stats by. #[serde(rename="windowSize")] - pub window_size: Option, + pub window_size: Option, } impl client::RequestValue for GoogleCloudApigeeV1QueryTimeSeriesStatsRequest {} @@ -4812,7 +4812,7 @@ pub struct GoogleCloudApigeeV1RatePlan { /// Frequency at which the customer will be billed. #[serde(rename="billingPeriod")] - pub billing_period: Option, + pub billing_period: Option, /// API call volume ranges and the fees charged when the total number of API calls is within a given range. The method used to calculate the final fee depends on the selected pricing model. For example, if the pricing model is `STAIRSTEP` and the ranges are defined as follows: ``` { "start": 1, "end": 100, "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } ``` Then the following fees would be charged based on the total number of API calls (assuming the currency selected is `USD`): * 1 call costs $75 * 50 calls cost $75 * 150 calls cost $100 The number of API calls cannot exceed 200. #[serde(rename="consumptionPricingRates")] @@ -4820,7 +4820,7 @@ pub struct GoogleCloudApigeeV1RatePlan { /// Pricing model used for consumption-based charges. #[serde(rename="consumptionPricingType")] - pub consumption_pricing_type: Option, + pub consumption_pricing_type: Option, /// Output only. Time that the rate plan was created in milliseconds since epoch. #[serde(rename="createdAt")] @@ -4861,7 +4861,7 @@ pub struct GoogleCloudApigeeV1RatePlan { /// DEPRECATED: This field is no longer supported and will eventually be removed when Apigee Hybrid 1.5/1.6 is no longer supported. Instead, use the `billingType` field inside `DeveloperMonetizationConfig` resource. Flag that specifies the billing account type, prepaid or postpaid. #[serde(rename="paymentFundingModel")] - pub payment_funding_model: Option, + pub payment_funding_model: Option, /// Details of the revenue sharing model. #[serde(rename="revenueShareRates")] @@ -4869,7 +4869,7 @@ pub struct GoogleCloudApigeeV1RatePlan { /// Method used to calculate the revenue that is shared with developers. #[serde(rename="revenueShareType")] - pub revenue_share_type: Option, + pub revenue_share_type: Option, /// Initial, one-time fee paid when purchasing the API product. #[serde(rename="setupFee")] @@ -4881,7 +4881,7 @@ pub struct GoogleCloudApigeeV1RatePlan { pub start_time: Option, /// Current state of the rate plan (draft or published). - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudApigeeV1RatePlan {} @@ -5285,7 +5285,7 @@ pub struct GoogleCloudApigeeV1RuntimeTraceConfig { pub endpoint: Option, /// Exporter that is used to view the distributed trace captured using OpenCensus. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters. - pub exporter: Option, + pub exporter: Option, /// Name of the trace config in the following format: `organizations/{org}/environment/{env}/traceConfig` pub name: Option, @@ -5352,7 +5352,7 @@ impl client::Part for GoogleCloudApigeeV1RuntimeTraceConfigOverride {} pub struct GoogleCloudApigeeV1RuntimeTraceSamplingConfig { /// Sampler of distributed tracing. OFF is the default value. - pub sampler: Option, + pub sampler: Option, /// Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5. #[serde(rename="samplingRate")] @@ -6213,7 +6213,7 @@ pub struct GoogleCloudApigeeV1TargetServer { pub port: Option, /// Immutable. The protocol used by this TargetServer. - pub protocol: Option, + pub protocol: Option, /// Optional. Specifies TLS configuration info for this TargetServer. The JSON name is `sSLInfo` for legacy/backwards compatibility reasons -- Edge originally supported SSL, and the name is still used for TLS configuration. #[serde(rename="sSLInfo")] @@ -6245,7 +6245,7 @@ pub struct GoogleCloudApigeeV1TargetServerConfig { pub port: Option, /// The protocol used by this target server. - pub protocol: Option, + pub protocol: Option, /// TLS settings for the target server. #[serde(rename="tlsInfo")] @@ -6403,7 +6403,7 @@ pub struct GoogleCloudApigeeV1TraceConfig { pub endpoint: Option, /// Required. Exporter that is used to view the distributed trace captured using OpenCensus. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters. - pub exporter: Option, + pub exporter: Option, /// Distributed trace configuration for all API proxies in an environment. You can also override the configuration for a specific API proxy using the distributed trace configuration overrides API. #[serde(rename="samplingConfig")] @@ -6453,7 +6453,7 @@ impl client::ResponseResult for GoogleCloudApigeeV1TraceConfigOverride {} pub struct GoogleCloudApigeeV1TraceSamplingConfig { /// Sampler of distributed tracing. OFF is the default value. - pub sampler: Option, + pub sampler: Option, /// Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5. #[serde(rename="samplingRate")] @@ -6472,7 +6472,7 @@ impl client::Part for GoogleCloudApigeeV1TraceSamplingConfig {} pub struct GoogleCloudApigeeV1UpdateError { /// Status code. - pub code: Option, + pub code: Option, /// User-friendly error message. pub message: Option, @@ -6521,7 +6521,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/apikeys2/src/api/call_builders.rs b/gen/apikeys2/src/api/call_builders.rs index 145c4e905d..7f7f943e44 100644 --- a/gen/apikeys2/src/api/call_builders.rs +++ b/gen/apikeys2/src/api/call_builders.rs @@ -1121,7 +1121,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()); @@ -1392,7 +1392,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._key_id.as_ref() { params.push("keyId", value); } @@ -1689,7 +1689,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._etag.as_ref() { params.push("etag", value); } @@ -1961,7 +1961,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()); @@ -2223,7 +2223,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()); @@ -2491,7 +2491,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -2792,7 +2792,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3094,7 +3094,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()); diff --git a/gen/apikeys2/src/api/mod.rs b/gen/apikeys2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/apikeys2/src/api/mod.rs +++ b/gen/apikeys2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/appengine1/src/api/mod.rs b/gen/appengine1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/appengine1/src/api/mod.rs +++ b/gen/appengine1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/appengine1/src/api/schemas.rs b/gen/appengine1/src/api/schemas.rs index e65977277a..bbe8ead9d8 100644 --- a/gen/appengine1/src/api/schemas.rs +++ b/gen/appengine1/src/api/schemas.rs @@ -9,17 +9,17 @@ pub struct ApiConfigHandler { /// Action to take when users access resources that require authentication. Defaults to redirect. #[serde(rename="authFailAction")] - pub auth_fail_action: Option, + pub auth_fail_action: Option, /// Level of login required to access this resource. Defaults to optional. - pub login: Option, + pub login: Option, /// Path to the script from the application root directory. pub script: Option, /// Security (HTTPS) enforcement for this URL. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// URL to serve the endpoint at. pub url: Option, @@ -69,7 +69,7 @@ pub struct Application { /// The type of the Cloud Firestore or Cloud Datastore database associated with this application. #[serde(rename="databaseType")] - pub database_type: Option, + pub database_type: Option, /// Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly #[serde(rename="defaultBucket")] @@ -115,7 +115,7 @@ pub struct Application { /// Serving status of this application. #[serde(rename="servingStatus")] - pub serving_status: Option, + pub serving_status: Option, } impl client::RequestValue for Application {} @@ -541,7 +541,7 @@ pub struct EndpointsApiService { /// Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. #[serde(rename="rolloutStrategy")] - pub rollout_strategy: Option, + pub rollout_strategy: Option, } impl client::Part for EndpointsApiService {} @@ -572,7 +572,7 @@ pub struct ErrorHandler { /// Error condition this handler applies to. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// MIME type of file. Defaults to text/html. #[serde(rename="mimeType")] @@ -645,7 +645,7 @@ impl client::Part for FileInfo {} pub struct FirewallRule { /// The action to take on matched requests. - pub action: Option, + pub action: Option, /// An optional string description of this rule. This field has a maximum length of 400 characters. pub description: Option, @@ -746,7 +746,7 @@ pub struct Instance { pub app_engine_release: Option, /// Output only. Availability of the instance. - pub availability: Option, + pub availability: Option, /// Output only. Average latency (ms) over the last minute. #[serde(rename="averageLatency")] @@ -790,7 +790,7 @@ pub struct Instance { /// Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment. #[serde(rename="vmLiveness")] - pub vm_liveness: Option, + pub vm_liveness: Option, /// Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. #[serde(rename="vmName")] @@ -1121,7 +1121,7 @@ pub struct ManagedCertificate { pub last_renewal_time: Option>, /// Status of certificate management. Refers to the most recent certificate acquisition or renewal attempt.@OutputOnly - pub status: Option, + pub status: Option, } impl client::Part for ManagedCertificate {} @@ -1156,7 +1156,7 @@ pub struct Network { /// The IP mode for instances. Only applicable in the App Engine flexible environment. #[serde(rename="instanceIpMode")] - pub instance_ip_mode: Option, + pub instance_ip_mode: Option, /// Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment. #[serde(rename="instanceTag")] @@ -1187,7 +1187,7 @@ pub struct NetworkSettings { /// The ingress settings for version or service. #[serde(rename="ingressTrafficAllowed")] - pub ingress_traffic_allowed: Option, + pub ingress_traffic_allowed: Option, } impl client::Part for NetworkSettings {} @@ -1356,7 +1356,7 @@ pub struct ResourceRecord { /// Resource record type. Example: AAAA. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ResourceRecord {} @@ -1460,7 +1460,7 @@ pub struct SslSettings { /// SSL management type for this domain. If AUTOMATIC, a managed certificate is automatically provisioned. If MANUAL, certificate_id must be manually specified in order to configure SSL for this domain. #[serde(rename="sslManagementType")] - pub ssl_management_type: Option, + pub ssl_management_type: Option, } impl client::Part for SslSettings {} @@ -1567,7 +1567,7 @@ pub struct TrafficSplit { /// Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. #[serde(rename="shardBy")] - pub shard_by: Option, + pub shard_by: Option, } impl client::Part for TrafficSplit {} @@ -1608,21 +1608,21 @@ pub struct UrlMap { /// Action to take when users access resources that require authentication. Defaults to redirect. #[serde(rename="authFailAction")] - pub auth_fail_action: Option, + pub auth_fail_action: Option, /// Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment. - pub login: Option, + pub login: Option, /// 30x code to use when performing redirects for the secure field. Defaults to 302. #[serde(rename="redirectHttpResponseCode")] - pub redirect_http_response_code: Option, + pub redirect_http_response_code: Option, /// Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto". pub script: Option, /// Security (HTTPS) enforcement for this URL. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// Returns the contents of a file, such as an image, as the response. #[serde(rename="staticFiles")] @@ -1725,7 +1725,7 @@ pub struct Version { /// Before an application can receive email or XMPP messages, the application must be configured to enable the service. #[serde(rename="inboundServices")] - pub inbound_services: Option>, + pub inbound_services: Option>, /// Instance class that is used to run this version. Valid values are: AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. #[serde(rename="instanceClass")] @@ -1780,7 +1780,7 @@ pub struct Version { /// Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. #[serde(rename="servingStatus")] - pub serving_status: Option, + pub serving_status: Option, /// Whether multiple requests can be dispatched to this version at once. pub threadsafe: Option, @@ -1837,7 +1837,7 @@ pub struct VpcAccessConnector { /// The egress setting for the connector, controlling what traffic is diverted through it. #[serde(rename="egressSetting")] - pub egress_setting: Option, + pub egress_setting: Option, /// Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1. pub name: Option, diff --git a/gen/appengine1_beta4/src/api/mod.rs b/gen/appengine1_beta4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/appengine1_beta4/src/api/mod.rs +++ b/gen/appengine1_beta4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/appengine1_beta4/src/api/schemas.rs b/gen/appengine1_beta4/src/api/schemas.rs index 6df7861277..16202884ad 100644 --- a/gen/appengine1_beta4/src/api/schemas.rs +++ b/gen/appengine1_beta4/src/api/schemas.rs @@ -9,17 +9,17 @@ pub struct ApiConfigHandler { /// Action to take when users access resources that require authentication. Defaults to redirect. #[serde(rename="authFailAction")] - pub auth_fail_action: Option, + pub auth_fail_action: Option, /// Level of login required to access this resource. Defaults to optional. - pub login: Option, + pub login: Option, /// Path to the script from the application root directory. pub script: Option, /// Security (HTTPS) enforcement for this URL. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// URL to serve the endpoint at. pub url: Option, @@ -313,7 +313,7 @@ pub struct EndpointsApiService { /// Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. #[serde(rename="rolloutStrategy")] - pub rollout_strategy: Option, + pub rollout_strategy: Option, } impl client::Part for EndpointsApiService {} @@ -329,7 +329,7 @@ pub struct ErrorHandler { /// Error condition this handler applies to. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// MIME type of file. Defaults to text/html. #[serde(rename="mimeType")] @@ -451,7 +451,7 @@ pub struct Instance { pub app_engine_release: Option, /// Availability of the instance.@OutputOnly - pub availability: Option, + pub availability: Option, /// Average latency (ms) over the last minute.@OutputOnly #[serde(rename="averageLatency")] @@ -1006,7 +1006,7 @@ pub struct TrafficSplit { /// Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. #[serde(rename="shardBy")] - pub shard_by: Option, + pub shard_by: Option, } impl client::Part for TrafficSplit {} @@ -1047,21 +1047,21 @@ pub struct UrlMap { /// Action to take when users access resources that require authentication. Defaults to redirect. #[serde(rename="authFailAction")] - pub auth_fail_action: Option, + pub auth_fail_action: Option, /// Level of login required to access this resource. - pub login: Option, + pub login: Option, /// 30x code to use when performing redirects for the secure field. Defaults to 302. #[serde(rename="redirectHttpResponseCode")] - pub redirect_http_response_code: Option, + pub redirect_http_response_code: Option, /// Executes a script to handle the request that matches this URL pattern. pub script: Option, /// Security (HTTPS) enforcement for this URL. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// Serves the entire contents of a directory as static files.This attribute is deprecated. You can mimic the behavior of static directories using static files. #[serde(rename="staticDirectory")] @@ -1151,7 +1151,7 @@ pub struct Version { /// Before an application can receive email or XMPP messages, the application must be configured to enable the service. #[serde(rename="inboundServices")] - pub inbound_services: Option>, + pub inbound_services: Option>, /// Instance class that is used to run this version. Valid values are: /// AutomaticScaling: F1, F2, F4, F4_1G /// ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. @@ -1188,7 +1188,7 @@ pub struct Version { /// Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. #[serde(rename="servingStatus")] - pub serving_status: Option, + pub serving_status: Option, /// Whether multiple requests can be dispatched to this version at once. pub threadsafe: Option, diff --git a/gen/appengine1_beta5/src/api/mod.rs b/gen/appengine1_beta5/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/appengine1_beta5/src/api/mod.rs +++ b/gen/appengine1_beta5/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/appengine1_beta5/src/api/schemas.rs b/gen/appengine1_beta5/src/api/schemas.rs index f7f3582e6a..85c212d9e1 100644 --- a/gen/appengine1_beta5/src/api/schemas.rs +++ b/gen/appengine1_beta5/src/api/schemas.rs @@ -9,17 +9,17 @@ pub struct ApiConfigHandler { /// Action to take when users access resources that require authentication. Defaults to redirect. #[serde(rename="authFailAction")] - pub auth_fail_action: Option, + pub auth_fail_action: Option, /// Level of login required to access this resource. Defaults to optional. - pub login: Option, + pub login: Option, /// Path to the script from the application root directory. pub script: Option, /// Security (HTTPS) enforcement for this URL. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// URL to serve the endpoint at. pub url: Option, @@ -313,7 +313,7 @@ pub struct EndpointsApiService { /// Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. #[serde(rename="rolloutStrategy")] - pub rollout_strategy: Option, + pub rollout_strategy: Option, } impl client::Part for EndpointsApiService {} @@ -329,7 +329,7 @@ pub struct ErrorHandler { /// Error condition this handler applies to. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// MIME type of file. Defaults to text/html. #[serde(rename="mimeType")] @@ -451,7 +451,7 @@ pub struct Instance { pub app_engine_release: Option, /// Availability of the instance.@OutputOnly - pub availability: Option, + pub availability: Option, /// Average latency (ms) over the last minute.@OutputOnly #[serde(rename="averageLatency")] @@ -978,7 +978,7 @@ pub struct TrafficSplit { /// Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. #[serde(rename="shardBy")] - pub shard_by: Option, + pub shard_by: Option, } impl client::Part for TrafficSplit {} @@ -1019,21 +1019,21 @@ pub struct UrlMap { /// Action to take when users access resources that require authentication. Defaults to redirect. #[serde(rename="authFailAction")] - pub auth_fail_action: Option, + pub auth_fail_action: Option, /// Level of login required to access this resource. - pub login: Option, + pub login: Option, /// 30x code to use when performing redirects for the secure field. Defaults to 302. #[serde(rename="redirectHttpResponseCode")] - pub redirect_http_response_code: Option, + pub redirect_http_response_code: Option, /// Executes a script to handle the request that matches this URL pattern. pub script: Option, /// Security (HTTPS) enforcement for this URL. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// Returns the contents of a file, such as an image, as the response. #[serde(rename="staticFiles")] @@ -1124,7 +1124,7 @@ pub struct Version { /// Before an application can receive email or XMPP messages, the application must be configured to enable the service. #[serde(rename="inboundServices")] - pub inbound_services: Option>, + pub inbound_services: Option>, /// Instance class that is used to run this version. Valid values are: /// AutomaticScaling: F1, F2, F4, F4_1G /// ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. @@ -1161,7 +1161,7 @@ pub struct Version { /// Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. #[serde(rename="servingStatus")] - pub serving_status: Option, + pub serving_status: Option, /// Whether multiple requests can be dispatched to this version at once. pub threadsafe: Option, diff --git a/gen/appsactivity1/README.md b/gen/appsactivity1/README.md index c1e4d293e8..28900e68a8 100644 --- a/gen/appsactivity1/README.md +++ b/gen/appsactivity1/README.md @@ -99,9 +99,9 @@ let result = hub.activities().list() .source("magna") .page_token("no") .page_size(-55) - .grouping_strategy("voluptua.") - .drive_file_id("At") - .drive_ancestor_id("sanctus") + .grouping_strategy(&Default::default()) + .drive_file_id("voluptua.") + .drive_ancestor_id("At") .doit().await; match result { diff --git a/gen/appsactivity1/src/api/call_builders.rs b/gen/appsactivity1/src/api/call_builders.rs index f79e0dcbe2..d625e8c415 100644 --- a/gen/appsactivity1/src/api/call_builders.rs +++ b/gen/appsactivity1/src/api/call_builders.rs @@ -26,13 +26,13 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.activities().list() -/// .user_id("amet") -/// .source("duo") -/// .page_token("ipsum") -/// .page_size(-93) -/// .grouping_strategy("ut") -/// .drive_file_id("gubergren") -/// .drive_ancestor_id("rebum.") +/// .user_id("ea") +/// .source("ipsum") +/// .page_token("invidunt") +/// .page_size(-47) +/// .grouping_strategy(&Default::default()) +/// .drive_file_id("duo") +/// .drive_ancestor_id("ipsum") /// .doit().await; /// # } /// ``` @@ -44,7 +44,7 @@ pub struct ActivityListCall<'a, S> pub(super) _source: Option, pub(super) _page_token: Option, pub(super) _page_size: Option, - pub(super) _grouping_strategy: Option, + pub(super) _grouping_strategy: Option, pub(super) _drive_file_id: Option, pub(super) _drive_ancestor_id: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, @@ -233,8 +233,8 @@ where /// Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object. /// /// Sets the *grouping strategy* query property to the given value. - pub fn grouping_strategy(mut self, new_value: &str) -> ActivityListCall<'a, S> { - self._grouping_strategy = Some(new_value.to_string()); + pub fn grouping_strategy(mut self, new_value: &ActivityGroupingStrategyEnum) -> ActivityListCall<'a, S> { + self._grouping_strategy = Some(new_value.clone()); self } /// Identifies the Drive item to return activities for. diff --git a/gen/appsactivity1/src/api/hub.rs b/gen/appsactivity1/src/api/hub.rs index 49a80e6031..e1b71bb5ab 100644 --- a/gen/appsactivity1/src/api/hub.rs +++ b/gen/appsactivity1/src/api/hub.rs @@ -32,13 +32,13 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.activities().list() -/// .user_id("Lorem") +/// .user_id("ipsum") /// .source("gubergren") -/// .page_token("eos") -/// .page_size(-4) -/// .grouping_strategy("ea") -/// .drive_file_id("ipsum") -/// .drive_ancestor_id("invidunt") +/// .page_token("Lorem") +/// .page_size(-12) +/// .grouping_strategy(&Default::default()) +/// .drive_file_id("eos") +/// .drive_ancestor_id("dolor") /// .doit().await; /// /// match result { diff --git a/gen/appsactivity1/src/api/mod.rs b/gen/appsactivity1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/appsactivity1/src/api/mod.rs +++ b/gen/appsactivity1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/appsactivity1/src/api/schemas.rs b/gen/appsactivity1/src/api/schemas.rs index 9e923793a0..2b3ff20911 100644 --- a/gen/appsactivity1/src/api/schemas.rs +++ b/gen/appsactivity1/src/api/schemas.rs @@ -29,7 +29,7 @@ pub struct Event { /// Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event. #[serde(rename="additionalEventTypes")] - pub additional_event_types: Option>, + pub additional_event_types: Option>, /// The time at which the event occurred formatted as Unix time in milliseconds. #[serde(rename="eventTimeMillis")] @@ -50,7 +50,7 @@ pub struct Event { /// The main type of event that occurred. #[serde(rename="primaryEventType")] - pub primary_event_type: Option, + pub primary_event_type: Option, /// Extra information for rename type events, such as the old and new names. pub rename: Option, @@ -146,11 +146,11 @@ pub struct Permission { pub permission_id: Option, /// Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file. - pub role: Option, + pub role: Option, /// Indicates how widely permissions are granted. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The user's information if the type is USER. pub user: Option, diff --git a/gen/appsactivity1/src/lib.rs b/gen/appsactivity1/src/lib.rs index a569cafbf7..01251c429b 100644 --- a/gen/appsactivity1/src/lib.rs +++ b/gen/appsactivity1/src/lib.rs @@ -96,13 +96,13 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.activities().list() -//! .user_id("sed") -//! .source("amet.") -//! .page_token("takimata") -//! .page_size(-52) -//! .grouping_strategy("duo") -//! .drive_file_id("ipsum") -//! .drive_ancestor_id("gubergren") +//! .user_id("sanctus") +//! .source("sed") +//! .page_token("amet.") +//! .page_size(-59) +//! .grouping_strategy(&Default::default()) +//! .drive_file_id("amet.") +//! .drive_ancestor_id("duo") //! .doit().await; //! //! match result { diff --git a/gen/appstate1/src/api/call_builders.rs b/gen/appstate1/src/api/call_builders.rs index bc61151b00..d57862775f 100644 --- a/gen/appstate1/src/api/call_builders.rs +++ b/gen/appstate1/src/api/call_builders.rs @@ -481,7 +481,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("stateKey", self._state_key.to_string()); + params.push("stateKey", &self._state_key.to_string()); if let Some(value) = self._current_data_version.as_ref() { params.push("currentDataVersion", value); } @@ -749,7 +749,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("stateKey", self._state_key.to_string()); + params.push("stateKey", &self._state_key.to_string()); params.extend(self._additional_params.iter()); @@ -996,7 +996,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("stateKey", self._state_key.to_string()); + params.push("stateKey", &self._state_key.to_string()); params.extend(self._additional_params.iter()); @@ -1514,7 +1514,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("stateKey", self._state_key.to_string()); + params.push("stateKey", &self._state_key.to_string()); if let Some(value) = self._current_state_version.as_ref() { params.push("currentStateVersion", value); } diff --git a/gen/appstate1/src/api/mod.rs b/gen/appstate1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/appstate1/src/api/mod.rs +++ b/gen/appstate1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/area120tables1_alpha1/README.md b/gen/area120tables1_alpha1/README.md index b4302fdd58..bb2abec476 100644 --- a/gen/area120tables1_alpha1/README.md +++ b/gen/area120tables1_alpha1/README.md @@ -106,11 +106,11 @@ let mut hub = Area120Tables::new(hyper::Client::builder().build(hyper_rustls::Ht // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.tables().rows_list("parent") - .view("magna") - .page_token("no") - .page_size(-55) - .order_by("voluptua.") - .filter("At") + .view(&Default::default()) + .page_token("magna") + .page_size(-11) + .order_by("ipsum") + .filter("voluptua.") .doit().await; match result { diff --git a/gen/area120tables1_alpha1/src/api/hub.rs b/gen/area120tables1_alpha1/src/api/hub.rs index 7eb6c81bf3..70c00cb641 100644 --- a/gen/area120tables1_alpha1/src/api/hub.rs +++ b/gen/area120tables1_alpha1/src/api/hub.rs @@ -32,11 +32,11 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tables().rows_list("parent") -/// .view("gubergren") -/// .page_token("Lorem") -/// .page_size(-12) -/// .order_by("eos") -/// .filter("dolor") +/// .view(&Default::default()) +/// .page_token("duo") +/// .page_size(-55) +/// .order_by("gubergren") +/// .filter("Lorem") /// .doit().await; /// /// match result { diff --git a/gen/area120tables1_alpha1/src/api/mod.rs b/gen/area120tables1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/area120tables1_alpha1/src/api/mod.rs +++ b/gen/area120tables1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/area120tables1_alpha1/src/api/schemas.rs b/gen/area120tables1_alpha1/src/api/schemas.rs index eab79496aa..7dc81d865b 100644 --- a/gen/area120tables1_alpha1/src/api/schemas.rs +++ b/gen/area120tables1_alpha1/src/api/schemas.rs @@ -153,7 +153,7 @@ pub struct CreateRowRequest { pub row: Option, /// Optional. Column key to use for values in the row. Defaults to user entered name. - pub view: Option, + pub view: Option, } impl client::Part for CreateRowRequest {} @@ -433,7 +433,7 @@ pub struct UpdateRowRequest { pub update_mask: Option, /// Optional. Column key to use for values in the row. Defaults to user entered name. - pub view: Option, + pub view: Option, } impl client::Part for UpdateRowRequest {} diff --git a/gen/area120tables1_alpha1/src/lib.rs b/gen/area120tables1_alpha1/src/lib.rs index 628b6c656a..b7205c9661 100644 --- a/gen/area120tables1_alpha1/src/lib.rs +++ b/gen/area120tables1_alpha1/src/lib.rs @@ -107,11 +107,11 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.tables().rows_list("parent") -//! .view("sed") -//! .page_token("amet.") -//! .page_size(-59) +//! .view(&Default::default()) +//! .page_token("sanctus") +//! .page_size(-80) //! .order_by("amet.") -//! .filter("duo") +//! .filter("takimata") //! .doit().await; //! //! match result { diff --git a/gen/artifactregistry1/src/api/mod.rs b/gen/artifactregistry1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/artifactregistry1/src/api/mod.rs +++ b/gen/artifactregistry1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/artifactregistry1/src/api/schemas.rs b/gen/artifactregistry1/src/api/schemas.rs index 12578c7819..abe6095039 100644 --- a/gen/artifactregistry1/src/api/schemas.rs +++ b/gen/artifactregistry1/src/api/schemas.rs @@ -153,7 +153,7 @@ pub struct Hash { /// The algorithm used to compute the hash value. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The hash value. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -564,7 +564,7 @@ pub struct MavenRepositoryConfig { /// Version policy defines the versions that the registry will accept. #[serde(rename="versionPolicy")] - pub version_policy: Option, + pub version_policy: Option, } impl client::Part for MavenRepositoryConfig {} @@ -717,7 +717,7 @@ pub struct ProjectSettings { /// The redirection state of the legacy repositories in this project. #[serde(rename="legacyRedirectionState")] - pub legacy_redirection_state: Option, + pub legacy_redirection_state: Option, /// The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set pub name: Option, @@ -786,7 +786,7 @@ pub struct Repository { pub description: Option, /// The format of packages that are stored in the repository. - pub format: Option, + pub format: Option, /// The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created. #[serde(rename="kmsKeyName")] diff --git a/gen/artifactregistry1_beta1/src/api/mod.rs b/gen/artifactregistry1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/artifactregistry1_beta1/src/api/mod.rs +++ b/gen/artifactregistry1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/artifactregistry1_beta1/src/api/schemas.rs b/gen/artifactregistry1_beta1/src/api/schemas.rs index 88d7e46b7d..b98f7ae38a 100644 --- a/gen/artifactregistry1_beta1/src/api/schemas.rs +++ b/gen/artifactregistry1_beta1/src/api/schemas.rs @@ -107,7 +107,7 @@ pub struct Hash { /// The algorithm used to compute the hash value. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The hash value. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -403,7 +403,7 @@ pub struct Repository { pub description: Option, /// The format of packages that are stored in the repository. - pub format: Option, + pub format: Option, /// The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created. #[serde(rename="kmsKeyName")] diff --git a/gen/assuredworkloads1/src/api/call_builders.rs b/gen/assuredworkloads1/src/api/call_builders.rs index 7db557e976..81fd30d37d 100644 --- a/gen/assuredworkloads1/src/api/call_builders.rs +++ b/gen/assuredworkloads1/src/api/call_builders.rs @@ -1376,7 +1376,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()); @@ -1644,7 +1644,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); } @@ -1943,7 +1943,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()); @@ -2228,7 +2228,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()); @@ -2500,7 +2500,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._page_token.as_ref() { params.push("pageToken", value); } @@ -3134,7 +3134,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._external_id.as_ref() { params.push("externalId", value); } @@ -3431,7 +3431,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._etag.as_ref() { params.push("etag", value); } @@ -3965,7 +3965,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()); @@ -4233,7 +4233,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4532,7 +4532,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()); @@ -4826,7 +4826,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5128,7 +5128,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()); diff --git a/gen/assuredworkloads1/src/api/mod.rs b/gen/assuredworkloads1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/assuredworkloads1/src/api/mod.rs +++ b/gen/assuredworkloads1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/assuredworkloads1/src/api/schemas.rs b/gen/assuredworkloads1/src/api/schemas.rs index dc748db9b3..e632be46be 100644 --- a/gen/assuredworkloads1/src/api/schemas.rs +++ b/gen/assuredworkloads1/src/api/schemas.rs @@ -124,7 +124,7 @@ pub struct GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest { /// Required. The type of restriction for using gcp products in the Workload environment. #[serde(rename="restrictionType")] - pub restriction_type: Option, + pub restriction_type: Option, } impl client::RequestValue for GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest {} @@ -201,7 +201,7 @@ pub struct GoogleCloudAssuredworkloadsV1Violation { pub resolve_time: Option>, /// Output only. State of the violation - pub state: Option, + pub state: Option, /// Output only. The last time when the Violation record was updated. #[serde(rename="updateTime")] @@ -228,7 +228,7 @@ pub struct GoogleCloudAssuredworkloadsV1ViolationRemediation { /// Output only. Reemediation type based on the type of org policy values violated #[serde(rename="remediationType")] - pub remediation_type: Option, + pub remediation_type: Option, } impl client::Part for GoogleCloudAssuredworkloadsV1ViolationRemediation {} @@ -321,7 +321,7 @@ pub struct GoogleCloudAssuredworkloadsV1Workload { /// Required. Immutable. Compliance Regime associated with this workload. #[serde(rename="complianceRegime")] - pub compliance_regime: Option, + pub compliance_regime: Option, /// Output only. Count of active Violations in the Workload. #[serde(rename="complianceStatus")] @@ -348,7 +348,7 @@ pub struct GoogleCloudAssuredworkloadsV1Workload { /// Output only. Represents the KAJ enrollment state of the given workload. #[serde(rename="kajEnrollmentState")] - pub kaj_enrollment_state: Option, + pub kaj_enrollment_state: Option, /// Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. #[serde(rename="kmsSettings")] @@ -361,7 +361,7 @@ pub struct GoogleCloudAssuredworkloadsV1Workload { pub name: Option, /// Optional. Partner regime associated with this workload. - pub partner: Option, + pub partner: Option, /// Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id} #[serde(rename="provisionedResourcesParent")] @@ -463,7 +463,7 @@ pub struct GoogleCloudAssuredworkloadsV1WorkloadResourceInfo { /// Indicates the type of resource. #[serde(rename="resourceType")] - pub resource_type: Option, + pub resource_type: Option, } impl client::Part for GoogleCloudAssuredworkloadsV1WorkloadResourceInfo {} @@ -487,7 +487,7 @@ pub struct GoogleCloudAssuredworkloadsV1WorkloadResourceSettings { /// Indicates the type of resource. This field should be specified to correspond the id to the right resource type (CONSUMER_FOLDER or ENCRYPTION_KEYS_PROJECT) #[serde(rename="resourceType")] - pub resource_type: Option, + pub resource_type: Option, } impl client::Part for GoogleCloudAssuredworkloadsV1WorkloadResourceSettings {} @@ -503,11 +503,11 @@ pub struct GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse { /// Indicates SAA enrollment setup error if any. #[serde(rename="setupErrors")] - pub setup_errors: Option>, + pub setup_errors: Option>, /// Indicates SAA enrollment status of a given workload. #[serde(rename="setupStatus")] - pub setup_status: Option, + pub setup_status: Option, } impl client::Part for GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse {} diff --git a/gen/authorizedbuyersmarketplace1/src/api/call_builders.rs b/gen/authorizedbuyersmarketplace1/src/api/call_builders.rs index f9f5eb4ed6..4993765f4d 100644 --- a/gen/authorizedbuyersmarketplace1/src/api/call_builders.rs +++ b/gen/authorizedbuyersmarketplace1/src/api/call_builders.rs @@ -2761,7 +2761,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); } @@ -3063,7 +3063,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()); @@ -3329,7 +3329,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3618,7 +3618,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()); @@ -3910,7 +3910,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("auctionPackage", self._auction_package); + params.push("auctionPackage", &self._auction_package); params.extend(self._additional_params.iter()); @@ -4202,7 +4202,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()); @@ -4494,7 +4494,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("auctionPackage", self._auction_package); + params.push("auctionPackage", &self._auction_package); params.extend(self._additional_params.iter()); @@ -4786,7 +4786,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()); @@ -5078,7 +5078,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5370,7 +5370,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()); @@ -5655,7 +5655,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()); @@ -5917,7 +5917,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()); @@ -6183,7 +6183,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -6472,7 +6472,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()); @@ -6764,7 +6764,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7056,7 +7056,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()); @@ -7341,7 +7341,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()); @@ -7609,7 +7609,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7910,7 +7910,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8212,7 +8212,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("deal", self._deal); + params.push("deal", &self._deal); params.extend(self._additional_params.iter()); @@ -8497,7 +8497,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()); @@ -8767,7 +8767,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); } @@ -9076,7 +9076,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()); @@ -9368,7 +9368,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()); @@ -9660,7 +9660,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("deal", self._deal); + params.push("deal", &self._deal); params.extend(self._additional_params.iter()); @@ -9952,7 +9952,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10237,7 +10237,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()); @@ -10503,7 +10503,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -10794,7 +10794,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -11096,7 +11096,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()); @@ -11388,7 +11388,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("proposal", self._proposal); + params.push("proposal", &self._proposal); params.extend(self._additional_params.iter()); @@ -11680,7 +11680,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("proposal", self._proposal); + params.push("proposal", &self._proposal); params.extend(self._additional_params.iter()); @@ -11965,7 +11965,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()); @@ -12233,7 +12233,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._page_token.as_ref() { params.push("pageToken", value); } @@ -12534,7 +12534,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12836,7 +12836,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("buyer", self._buyer); + params.push("buyer", &self._buyer); params.extend(self._additional_params.iter()); @@ -13121,7 +13121,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()); @@ -13389,7 +13389,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._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/authorizedbuyersmarketplace1/src/api/mod.rs b/gen/authorizedbuyersmarketplace1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/authorizedbuyersmarketplace1/src/api/mod.rs +++ b/gen/authorizedbuyersmarketplace1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/authorizedbuyersmarketplace1/src/api/schemas.rs b/gen/authorizedbuyersmarketplace1/src/api/schemas.rs index 1b67e269a5..76a103bb0d 100644 --- a/gen/authorizedbuyersmarketplace1/src/api/schemas.rs +++ b/gen/authorizedbuyersmarketplace1/src/api/schemas.rs @@ -64,7 +64,7 @@ pub struct AdSize { /// The type of the ad slot size. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -238,14 +238,14 @@ pub struct Client { pub partner_client_id: Option, /// Required. The role assigned to the client. Each role implies a set of permissions granted to the client. - pub role: Option, + pub role: Option, /// Whether the client will be visible to sellers. #[serde(rename="sellerVisible")] pub seller_visible: Option, /// Output only. The state of the client. - pub state: Option, + pub state: Option, } impl client::RequestValue for Client {} @@ -274,7 +274,7 @@ pub struct ClientUser { pub name: Option, /// Output only. The state of the client user. - pub state: Option, + pub state: Option, } impl client::RequestValue for ClientUser {} @@ -310,15 +310,15 @@ pub struct CreativeRequirements { /// Output only. The format of the creative, only applicable for programmatic guaranteed and preferred deals. #[serde(rename="creativeFormat")] - pub creative_format: Option, + pub creative_format: Option, /// Output only. Specifies the creative pre-approval policy. #[serde(rename="creativePreApprovalPolicy")] - pub creative_pre_approval_policy: Option, + pub creative_pre_approval_policy: Option, /// Output only. Specifies whether the creative is safeFrame compatible. #[serde(rename="creativeSafeFrameCompatibility")] - pub creative_safe_frame_compatibility: Option, + pub creative_safe_frame_compatibility: Option, /// Output only. The max duration of the video creative in milliseconds. only applicable for deals with video creatives. #[serde(rename="maxAdDurationMs")] @@ -327,11 +327,11 @@ pub struct CreativeRequirements { /// Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by the buyer. #[serde(rename="programmaticCreativeSource")] - pub programmatic_creative_source: Option, + pub programmatic_creative_source: Option, /// Output only. Skippable video ads allow viewers to skip ads after 5 seconds. Only applicable for deals with video creatives. #[serde(rename="skippableAdType")] - pub skippable_ad_type: Option, + pub skippable_ad_type: Option, } impl client::Part for CreativeRequirements {} @@ -369,7 +369,7 @@ pub struct DayPart { /// Day of week for the period. #[serde(rename="dayOfWeek")] - pub day_of_week: Option, + pub day_of_week: Option, /// Hours in 24 hour time between 0 and 24, inclusive. Note: 24 is logically equivalent to 0, but is supported since in some cases there may need to be differentiation made between midnight on one day and midnight on the next day. Accepted values for minutes are [0, 15, 30, 45]. 0 is the only acceptable minute value for hour 24. Seconds and nanos are ignored. #[serde(rename="endTime")] @@ -397,7 +397,7 @@ pub struct DayPartTargeting { /// The time zone type of the day parts #[serde(rename="timeZoneType")] - pub time_zone_type: Option, + pub time_zone_type: Option, } impl client::Part for DayPartTargeting {} @@ -466,7 +466,7 @@ pub struct Deal { /// Output only. Type of deal. #[serde(rename="dealType")] - pub deal_type: Option, + pub deal_type: Option, /// Output only. Specifies the pacing set by the publisher. #[serde(rename="deliveryControl")] @@ -545,7 +545,7 @@ pub struct DealPausingInfo { /// The party that first paused the deal; unspecified for active deals. #[serde(rename="pauseRole")] - pub pause_role: Option, + pub pause_role: Option, /// Whether pausing is consented between buyer and seller for the deal. #[serde(rename="pausingConsented")] @@ -565,15 +565,15 @@ pub struct DeliveryControl { /// Output only. Specifies roadblocking in a main companion lineitem. #[serde(rename="companionDeliveryType")] - pub companion_delivery_type: Option, + pub companion_delivery_type: Option, /// Output only. Specifies strategy to use for selecting a creative when multiple creatives of the same size are available. #[serde(rename="creativeRotationType")] - pub creative_rotation_type: Option, + pub creative_rotation_type: Option, /// Output only. Specifies how the impression delivery will be paced. #[serde(rename="deliveryRateType")] - pub delivery_rate_type: Option, + pub delivery_rate_type: Option, /// Output only. Specifies any frequency caps. Cannot be filtered within ListDealsRequest. #[serde(rename="frequencyCap")] @@ -581,7 +581,7 @@ pub struct DeliveryControl { /// Output only. Specifies the roadblocking type in display creatives. #[serde(rename="roadblockingType")] - pub roadblocking_type: Option, + pub roadblocking_type: Option, } impl client::Part for DeliveryControl {} @@ -627,7 +627,7 @@ pub struct FinalizedDeal { /// Serving status of the deal. #[serde(rename="dealServingStatus")] - pub deal_serving_status: Option, + pub deal_serving_status: Option, /// The resource name of the finalized deal. Format: `buyers/{accountId}/finalizeddeals/{finalizedDealId}` pub name: Option, @@ -678,7 +678,7 @@ pub struct FrequencyCap { /// The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped. #[serde(rename="timeUnitType")] - pub time_unit_type: Option, + pub time_unit_type: Option, /// The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped. #[serde(rename="timeUnitsCount")] @@ -718,7 +718,7 @@ pub struct InventoryTypeTargeting { /// The list of targeted inventory types for the bid request. #[serde(rename="inventoryTypes")] - pub inventory_types: Option>, + pub inventory_types: Option>, } impl client::Part for InventoryTypeTargeting {} @@ -987,7 +987,7 @@ pub struct Note { /// Output only. The role who created the note. #[serde(rename="creatorRole")] - pub creator_role: Option, + pub creator_role: Option, /// The text of the note. Maximum length is 1024 characters. pub note: Option, @@ -1084,7 +1084,7 @@ pub struct Price { /// The pricing type for the deal. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Price {} @@ -1160,7 +1160,7 @@ pub struct ProgrammaticGuaranteedTerms { /// The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD. #[serde(rename="reservationType")] - pub reservation_type: Option, + pub reservation_type: Option, } impl client::Part for ProgrammaticGuaranteedTerms {} @@ -1203,7 +1203,7 @@ pub struct Proposal { /// Output only. Type of deal the proposal contains. #[serde(rename="dealType")] - pub deal_type: Option, + pub deal_type: Option, /// Output only. The descriptive name for the proposal. Maximum length of 255 unicode characters is allowed. Control characters are not allowed. Buyers cannot update this field. Note: Not to be confused with name, which is a unique identifier of the proposal. #[serde(rename="displayName")] @@ -1215,7 +1215,7 @@ pub struct Proposal { /// Output only. The role of the last user that either updated the proposal or left a comment. #[serde(rename="lastUpdaterOrCommentorRole")] - pub last_updater_or_commentor_role: Option, + pub last_updater_or_commentor_role: Option, /// Immutable. The name of the proposal serving as a unique identifier. Format: buyers/{accountId}/proposals/{proposalId} pub name: Option, @@ -1225,7 +1225,7 @@ pub struct Proposal { /// Output only. Indicates whether the buyer/seller created the proposal. #[serde(rename="originatorRole")] - pub originator_role: Option, + pub originator_role: Option, /// Whether pausing is allowed for the proposal. This is a negotiable term between buyers and publishers. #[serde(rename="pausingConsented")] @@ -1245,7 +1245,7 @@ pub struct Proposal { pub seller_contacts: Option>, /// Output only. Indicates the state of the proposal. - pub state: Option, + pub state: Option, /// Output only. The terms and conditions associated with this proposal. Accepting a proposal implies acceptance of this field. This is created by the seller, the buyer can only view it. #[serde(rename="termsAndConditions")] @@ -1343,7 +1343,7 @@ pub struct PublisherProfileMobileApplication { /// The app store the app belongs to. Can be used to filter the response of the publisherProfiles.list method. #[serde(rename="appStore")] - pub app_store: Option, + pub app_store: Option, /// The external ID for the app from its app store. Can be used to filter the response of the publisherProfiles.list method. #[serde(rename="externalAppId")] @@ -1670,11 +1670,11 @@ pub struct VideoTargeting { /// A list of video positions to be excluded. When this field is populated, the targeted_position_types field must be empty. #[serde(rename="excludedPositionTypes")] - pub excluded_position_types: Option>, + pub excluded_position_types: Option>, /// A list of video positions to be included. When this field is populated, the excluded_position_types field must be empty. #[serde(rename="targetedPositionTypes")] - pub targeted_position_types: Option>, + pub targeted_position_types: Option>, } impl client::Part for VideoTargeting {} diff --git a/gen/autoscaler1_beta2/src/api/call_builders.rs b/gen/autoscaler1_beta2/src/api/call_builders.rs index 8186f85021..5e88ac81e6 100644 --- a/gen/autoscaler1_beta2/src/api/call_builders.rs +++ b/gen/autoscaler1_beta2/src/api/call_builders.rs @@ -1110,9 +1110,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("autoscaler", self._autoscaler); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("autoscaler", &self._autoscaler); params.extend(self._additional_params.iter()); @@ -1392,9 +1392,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("autoscaler", self._autoscaler); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("autoscaler", &self._autoscaler); params.extend(self._additional_params.iter()); @@ -1680,8 +1680,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); params.extend(self._additional_params.iter()); @@ -1979,8 +1979,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2284,9 +2284,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("autoscaler", self._autoscaler); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("autoscaler", &self._autoscaler); params.extend(self._additional_params.iter()); @@ -2596,9 +2596,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("autoscaler", self._autoscaler); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("autoscaler", &self._autoscaler); params.extend(self._additional_params.iter()); @@ -2901,9 +2901,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -3169,9 +3169,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -3453,8 +3453,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3753,7 +3753,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/autoscaler1_beta2/src/api/mod.rs b/gen/autoscaler1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/autoscaler1_beta2/src/api/mod.rs +++ b/gen/autoscaler1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/baremetalsolution2/src/api/mod.rs b/gen/baremetalsolution2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/baremetalsolution2/src/api/mod.rs +++ b/gen/baremetalsolution2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/baremetalsolution2/src/api/schemas.rs b/gen/baremetalsolution2/src/api/schemas.rs index 3240a66d12..d4e377f4cf 100644 --- a/gen/baremetalsolution2/src/api/schemas.rs +++ b/gen/baremetalsolution2/src/api/schemas.rs @@ -21,7 +21,7 @@ pub struct AllowedClient { /// Mount permissions. #[serde(rename="mountPermissions")] - pub mount_permissions: Option, + pub mount_permissions: Option, /// The network the access point sits on. pub network: Option, @@ -169,7 +169,7 @@ pub struct GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface { /// Interface type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface {} @@ -240,7 +240,7 @@ pub struct Instance { pub pod: Option, /// Output only. The state of the server. - pub state: Option, + pub state: Option, /// Output only. Update a time stamp. #[serde(rename="updateTime")] @@ -251,7 +251,7 @@ pub struct Instance { /// The workload profile for the instance. #[serde(rename="workloadProfile")] - pub workload_profile: Option, + pub workload_profile: Option, } impl client::RequestValue for Instance {} @@ -293,7 +293,7 @@ pub struct InstanceConfig { /// The type of network configuration on the instance. #[serde(rename="networkConfig")] - pub network_config: Option, + pub network_config: Option, /// Server network template name. Filled if InstanceConfig.multivlan_config is true. #[serde(rename="networkTemplate")] @@ -669,7 +669,7 @@ pub struct LogicalNetworkInterface { /// Type of network. #[serde(rename="networkType")] - pub network_type: Option, + pub network_type: Option, } impl client::Part for LogicalNetworkInterface {} @@ -696,7 +696,7 @@ pub struct Lun { /// The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system. #[serde(rename="multiprotocolType")] - pub multiprotocol_type: Option, + pub multiprotocol_type: Option, /// Output only. The name of the LUN. pub name: Option, @@ -710,11 +710,11 @@ pub struct Lun { pub size_gb: Option, /// The state of this storage volume. - pub state: Option, + pub state: Option, /// The storage type for this LUN. #[serde(rename="storageType")] - pub storage_type: Option, + pub storage_type: Option, /// Display the storage volume for this LUN. #[serde(rename="storageVolume")] @@ -802,11 +802,11 @@ pub struct Network { pub services_cidr: Option, /// The Network state. - pub state: Option, + pub state: Option, /// The type of this network. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The vlan id of the Network. #[serde(rename="vlanId")] @@ -875,7 +875,7 @@ impl client::Part for NetworkAddressReservation {} pub struct NetworkConfig { /// Interconnect bandwidth. Set only when type is CLIENT. - pub bandwidth: Option, + pub bandwidth: Option, /// CIDR range of the network. pub cidr: Option, @@ -896,11 +896,11 @@ pub struct NetworkConfig { /// Service CIDR, if any. #[serde(rename="serviceCidr")] - pub service_cidr: Option, + pub service_cidr: Option, /// The type of this network, either Client or Private. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// User note field, it can be used by customers to add additional information for the BMS Ops team . #[serde(rename="userNote")] @@ -996,7 +996,7 @@ pub struct NfsExport { pub no_root_squash: Option, /// Export permissions. - pub permissions: Option, + pub permissions: Option, } impl client::Part for NfsExport {} @@ -1039,11 +1039,11 @@ pub struct NfsShare { pub requested_size_gib: Option, /// Output only. The state of the NFS share. - pub state: Option, + pub state: Option, /// Immutable. The storage type of the underlying volume. #[serde(rename="storageType")] - pub storage_type: Option, + pub storage_type: Option, /// Output only. The underlying volume of the share. Created automatically during provisioning. pub volume: Option, @@ -1170,7 +1170,7 @@ pub struct ProvisioningConfig { pub networks: Option>, /// Output only. State of ProvisioningConfig. - pub state: Option, + pub state: Option, /// Optional status messages associated with the FAILED state. #[serde(rename="statusMessage")] @@ -1206,7 +1206,7 @@ pub struct ProvisioningQuota { /// The asset type of this provisioning quota. #[serde(rename="assetType")] - pub asset_type: Option, + pub asset_type: Option, /// The available count of the provisioning quota. #[serde(rename="availableCount")] @@ -1499,7 +1499,7 @@ pub struct VRF { pub qos_policy: Option, /// The possible state of VRF. - pub state: Option, + pub state: Option, /// The list of VLAN attachments for the VRF. #[serde(rename="vlanAttachments")] @@ -1601,13 +1601,13 @@ pub struct Volume { /// Immutable. Performance tier of the Volume. Default is SHARED. #[serde(rename="performanceTier")] - pub performance_tier: Option, + pub performance_tier: Option, /// Immutable. Pod name. pub pod: Option, /// Output only. Storage protocol for the Volume. - pub protocol: Option, + pub protocol: Option, /// The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots. #[serde(rename="remainingSpaceGib")] @@ -1621,7 +1621,7 @@ pub struct Volume { /// The behavior to use when snapshot reserved space is full. #[serde(rename="snapshotAutoDeleteBehavior")] - pub snapshot_auto_delete_behavior: Option, + pub snapshot_auto_delete_behavior: Option, /// Whether snapshots are enabled. #[serde(rename="snapshotEnabled")] @@ -1636,7 +1636,7 @@ pub struct Volume { pub snapshot_schedule_policy: Option, /// The state of this storage volume. - pub state: Option, + pub state: Option, /// Input only. Name of the storage aggregate pool to allocate the volume in. Can be used only for VOLUME_PERFORMANCE_TIER_ASSIGNED volumes. #[serde(rename="storageAggregatePool")] @@ -1644,11 +1644,11 @@ pub struct Volume { /// The storage type for this volume. #[serde(rename="storageType")] - pub storage_type: Option, + pub storage_type: Option, /// The workload profile for the volume. #[serde(rename="workloadProfile")] - pub workload_profile: Option, + pub workload_profile: Option, } impl client::RequestValue for Volume {} @@ -1687,10 +1687,10 @@ pub struct VolumeConfig { /// Performance tier of the Volume. Default is SHARED. #[serde(rename="performanceTier")] - pub performance_tier: Option, + pub performance_tier: Option, /// Volume protocol. - pub protocol: Option, + pub protocol: Option, /// The requested size of this volume, in GB. #[serde(rename="sizeGb")] @@ -1706,7 +1706,7 @@ pub struct VolumeConfig { /// The type of this Volume. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// User note field, it can be used by customers to add additional information for the BMS Ops team . #[serde(rename="userNote")] @@ -1748,7 +1748,7 @@ pub struct VolumeSnapshot { /// Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for VolumeSnapshot {} diff --git a/gen/bigquery2/README.md b/gen/bigquery2/README.md index 3fe3b24576..0c428f0ca3 100644 --- a/gen/bigquery2/README.md +++ b/gen/bigquery2/README.md @@ -121,8 +121,8 @@ let mut hub = Bigquery::new(hyper::Client::builder().build(hyper_rustls::HttpsCo // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.tables().get("projectId", "datasetId", "tableId") - .view("ipsum") - .selected_fields("voluptua.") + .view(&Default::default()) + .selected_fields("ipsum") .doit().await; match result { diff --git a/gen/bigquery2/src/api/call_builders.rs b/gen/bigquery2/src/api/call_builders.rs index 924d9fed70..6eb634693c 100644 --- a/gen/bigquery2/src/api/call_builders.rs +++ b/gen/bigquery2/src/api/call_builders.rs @@ -73,8 +73,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); if let Some(value) = self._delete_contents.as_ref() { params.push("deleteContents", value.to_string()); } @@ -342,8 +342,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -618,7 +618,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -855,9 +855,9 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.datasets().list("projectId") -/// .page_token("sed") -/// .max_results(64) -/// .filter("gubergren") +/// .page_token("ipsum") +/// .max_results(13) +/// .filter("amet") /// .all(true) /// .doit().await; /// # } @@ -907,7 +907,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -1213,8 +1213,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -1513,8 +1513,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -1761,7 +1761,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.jobs().cancel("projectId", "jobId") -/// .location("Lorem") +/// .location("ipsum") /// .doit().await; /// # } /// ``` @@ -1808,8 +1808,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("jobId", self._job_id); + params.push("projectId", &self._project_id); + params.push("jobId", &self._job_id); if let Some(value) = self._location.as_ref() { params.push("location", value); } @@ -2043,7 +2043,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.jobs().delete("projectId", "jobId") -/// .location("sed") +/// .location("ea") /// .doit().await; /// # } /// ``` @@ -2090,8 +2090,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("jobId", self._job_id); + params.push("projectId", &self._project_id); + params.push("jobId", &self._job_id); if let Some(value) = self._location.as_ref() { params.push("location", value); } @@ -2314,7 +2314,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.jobs().get("projectId", "jobId") -/// .location("no") +/// .location("eos") /// .doit().await; /// # } /// ``` @@ -2361,8 +2361,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("jobId", self._job_id); + params.push("projectId", &self._project_id); + params.push("jobId", &self._job_id); if let Some(value) = self._location.as_ref() { params.push("location", value); } @@ -2596,11 +2596,11 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.jobs().get_query_results("projectId", "jobId") -/// .timeout_ms(77) -/// .start_index(58) -/// .page_token("et") -/// .max_results(33) -/// .location("vero") +/// .timeout_ms(31) +/// .start_index(21) +/// .page_token("no") +/// .max_results(86) +/// .location("kasd") /// .doit().await; /// # } /// ``` @@ -2651,8 +2651,8 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("jobId", self._job_id); + params.push("projectId", &self._project_id); + params.push("jobId", &self._job_id); if let Some(value) = self._timeout_ms.as_ref() { params.push("timeoutMs", value.to_string()); } @@ -2977,7 +2977,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3118,7 +3118,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3463,14 +3463,14 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.jobs().list("projectId") -/// .add_state_filter("duo") -/// .projection("dolore") +/// .add_state_filter(&Default::default()) +/// .projection(&Default::default()) /// .parent_job_id("et") -/// .page_token("voluptua.") -/// .min_creation_time(99) -/// .max_results(5) -/// .max_creation_time(9) -/// .all_users(true) +/// .page_token("et") +/// .min_creation_time(25) +/// .max_results(70) +/// .max_creation_time(8) +/// .all_users(false) /// .doit().await; /// # } /// ``` @@ -3479,8 +3479,8 @@ pub struct JobListCall<'a, S> pub(super) hub: &'a Bigquery, pub(super) _project_id: String, - pub(super) _state_filter: Vec, - pub(super) _projection: Option, + pub(super) _state_filter: Option, + pub(super) _projection: Option, pub(super) _parent_job_id: Option, pub(super) _page_token: Option, pub(super) _min_creation_time: Option, @@ -3523,7 +3523,7 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if self._state_filter.len() > 0 { for f in self._state_filter.iter() { params.push("stateFilter", f); @@ -3668,15 +3668,15 @@ where /// /// Append the given value to the *state filter* query property. /// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters. - pub fn add_state_filter(mut self, new_value: &str) -> JobListCall<'a, S> { - self._state_filter.push(new_value.to_string()); + pub fn add_state_filter(mut self, new_value: &JobStateFilterEnum) -> JobListCall<'a, S> { + self._state_filter.push(new_value.clone()); self } /// Restrict information returned to a set of selected fields /// /// Sets the *projection* query property to the given value. - pub fn projection(mut self, new_value: &str) -> JobListCall<'a, S> { - self._projection = Some(new_value.to_string()); + pub fn projection(mut self, new_value: &JobProjectionEnum) -> JobListCall<'a, S> { + self._projection = Some(new_value.clone()); self } /// If set, retrieves only jobs whose parent is this job. Otherwise, retrieves only jobs which have no parent @@ -3871,7 +3871,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -4154,9 +4154,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("modelId", self._model_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("modelId", &self._model_id); params.extend(self._additional_params.iter()); @@ -4425,9 +4425,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("modelId", self._model_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("modelId", &self._model_id); params.extend(self._additional_params.iter()); @@ -4661,8 +4661,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.models().list("projectId", "datasetId") -/// .page_token("Stet") -/// .max_results(25) +/// .page_token("vero") +/// .max_results(13) /// .doit().await; /// # } /// ``` @@ -4710,8 +4710,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5008,9 +5008,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("modelId", self._model_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("modelId", &self._model_id); params.extend(self._additional_params.iter()); @@ -5311,7 +5311,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -5525,8 +5525,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.projects().list() -/// .page_token("ipsum") -/// .max_results(78) +/// .page_token("diam") +/// .max_results(40) /// .doit().await; /// # } /// ``` @@ -5834,9 +5834,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("routineId", self._routine_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("routineId", &self._routine_id); params.extend(self._additional_params.iter()); @@ -6107,9 +6107,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("routineId", self._routine_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("routineId", &self._routine_id); if let Some(value) = self._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -6405,8 +6405,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -6654,9 +6654,9 @@ where /// // Values shown here are possibly random and not representative ! /// let result = hub.routines().list("projectId", "datasetId") /// .read_mask(&Default::default()) -/// .page_token("gubergren") -/// .max_results(27) -/// .filter("accusam") +/// .page_token("takimata") +/// .max_results(82) +/// .filter("gubergren") /// .doit().await; /// # } /// ``` @@ -6706,8 +6706,8 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); if let Some(value) = self._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -7024,9 +7024,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("routineId", self._routine_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("routineId", &self._routine_id); params.extend(self._additional_params.iter()); @@ -7334,7 +7334,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()); @@ -7571,8 +7571,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.row_access_policies().list("projectId", "datasetId", "tableId") -/// .page_token("sadipscing") -/// .page_size(-6) +/// .page_token("amet.") +/// .page_size(-17) /// .doit().await; /// # } /// ``` @@ -7621,9 +7621,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -7928,7 +7928,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()); @@ -8216,7 +8216,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()); @@ -8506,9 +8506,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -8765,10 +8765,10 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tabledata().list("projectId", "datasetId", "tableId") -/// .start_index(69) -/// .selected_fields("ipsum") -/// .page_token("et") -/// .max_results(93) +/// .start_index(66) +/// .selected_fields("tempor") +/// .page_token("aliquyam") +/// .max_results(96) /// .doit().await; /// # } /// ``` @@ -8819,9 +8819,9 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); if let Some(value) = self._start_index.as_ref() { params.push("startIndex", value.to_string()); } @@ -9141,9 +9141,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -9366,8 +9366,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tables().get("projectId", "datasetId", "tableId") -/// .view("et") -/// .selected_fields("sed") +/// .view(&Default::default()) +/// .selected_fields("dolores") /// .doit().await; /// # } /// ``` @@ -9378,7 +9378,7 @@ pub struct TableGetCall<'a, S> pub(super) _project_id: String, pub(super) _dataset_id: String, pub(super) _table_id: String, - pub(super) _view: Option, + pub(super) _view: Option, pub(super) _selected_fields: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -9416,9 +9416,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); if let Some(value) = self._view.as_ref() { params.push("view", value); } @@ -9562,8 +9562,8 @@ where /// Specifies the view that determines which table information is returned. By default, basic table information and storage statistics (STORAGE_STATS) are returned. /// /// Sets the *view* query property to the given value. - pub fn view(mut self, new_value: &str) -> TableGetCall<'a, S> { - self._view = Some(new_value.to_string()); + pub fn view(mut self, new_value: &TableViewEnum) -> TableGetCall<'a, S> { + self._view = Some(new_value.clone()); self } /// List of fields to return (comma-separated). If unspecified, all fields are returned @@ -9723,7 +9723,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()); @@ -10012,8 +10012,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -10260,8 +10260,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tables().list("projectId", "datasetId") -/// .page_token("nonumy") -/// .max_results(24) +/// .page_token("elitr") +/// .max_results(21) /// .doit().await; /// # } /// ``` @@ -10309,8 +10309,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -10560,7 +10560,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tables().patch(req, "projectId", "datasetId", "tableId") -/// .autodetect_schema(false) +/// .autodetect_schema(true) /// .doit().await; /// # } /// ``` @@ -10609,9 +10609,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); if let Some(value) = self._autodetect_schema.as_ref() { params.push("autodetect_schema", value.to_string()); } @@ -10929,7 +10929,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()); @@ -11217,7 +11217,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()); @@ -11460,7 +11460,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tables().update(req, "projectId", "datasetId", "tableId") -/// .autodetect_schema(false) +/// .autodetect_schema(true) /// .doit().await; /// # } /// ``` @@ -11509,9 +11509,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("datasetId", self._dataset_id); - params.push("tableId", self._table_id); + params.push("projectId", &self._project_id); + params.push("datasetId", &self._dataset_id); + params.push("tableId", &self._table_id); if let Some(value) = self._autodetect_schema.as_ref() { params.push("autodetect_schema", value.to_string()); } diff --git a/gen/bigquery2/src/api/hub.rs b/gen/bigquery2/src/api/hub.rs index f7b38588aa..632f6f4c4b 100644 --- a/gen/bigquery2/src/api/hub.rs +++ b/gen/bigquery2/src/api/hub.rs @@ -32,8 +32,8 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.tables().get("projectId", "datasetId", "tableId") -/// .view("gubergren") -/// .selected_fields("Lorem") +/// .view(&Default::default()) +/// .selected_fields("duo") /// .doit().await; /// /// match result { diff --git a/gen/bigquery2/src/api/mod.rs b/gen/bigquery2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/bigquery2/src/api/mod.rs +++ b/gen/bigquery2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/bigquery2/src/api/schemas.rs b/gen/bigquery2/src/api/schemas.rs index 50ad9637f1..7bfa5ee1a8 100644 --- a/gen/bigquery2/src/api/schemas.rs +++ b/gen/bigquery2/src/api/schemas.rs @@ -45,14 +45,14 @@ pub struct Argument { /// Optional. Defaults to FIXED_TYPE. #[serde(rename="argumentKind")] - pub argument_kind: Option, + pub argument_kind: Option, /// Required unless argument_kind = ANY_TYPE. #[serde(rename="dataType")] pub data_type: Option, /// Optional. Specifies whether the argument is input or output. Can be set for procedures only. - pub mode: Option, + pub mode: Option, /// Optional. The name of this argument. Can be absent for function return argument. pub name: Option, @@ -109,7 +109,7 @@ pub struct ArimaForecastingMetrics { /// Seasonal periods. Repeated because multiple periods are supported for one time series. #[serde(rename="seasonalPeriods")] - pub seasonal_periods: Option>, + pub seasonal_periods: Option>, /// Id to differentiate different time series for the large-scale case. #[serde(rename="timeSeriesId")] @@ -177,7 +177,7 @@ pub struct ArimaSingleModelForecastingMetrics { /// Seasonal periods. Repeated because multiple periods are supported for one time series. #[serde(rename="seasonalPeriods")] - pub seasonal_periods: Option>, + pub seasonal_periods: Option>, /// The time_series_id value for this time series. It will be one of the unique values from the time_series_id_column specified during ARIMA model training. Only present when time_series_id_column training option was used. #[serde(rename="timeSeriesId")] @@ -224,7 +224,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -910,7 +910,7 @@ pub struct DatasetAccessEntry { /// no description provided #[serde(rename="targetTypes")] - pub target_types: Option>, + pub target_types: Option>, } impl client::Part for DatasetAccessEntry {} @@ -1816,7 +1816,7 @@ pub struct HparamTuningTrial { pub start_time_ms: Option, /// The status of the trial. - pub status: Option, + pub status: Option, /// Loss computed on the training data at the end of trial. #[serde(rename="trainingLoss")] @@ -3064,7 +3064,7 @@ pub struct Model { /// Output only. Type of the model resource. #[serde(rename="modelType")] - pub model_type: Option, + pub model_type: Option, /// Output only. For single-objective [hyperparameter tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it only contains the best trial. For multi-objective [hyperparameter tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it contains all Pareto optimal trials sorted by trial_id. #[serde(rename="optimalTrialIds")] @@ -3645,7 +3645,7 @@ pub struct Routine { /// Optional. The determinism level of the JavaScript UDF, if defined. #[serde(rename="determinismLevel")] - pub determinism_level: Option, + pub determinism_level: Option, /// Output only. A hash of this resource. pub etag: Option, @@ -3655,7 +3655,7 @@ pub struct Routine { pub imported_libraries: Option>, /// Optional. Defaults to "SQL" if remote_function_options field is absent, not set otherwise. - pub language: Option, + pub language: Option, /// Output only. The time when this routine was last modified, in milliseconds since the epoch. #[serde(rename="lastModifiedTime")] @@ -3680,7 +3680,7 @@ pub struct Routine { /// Required. The type of routine. #[serde(rename="routineType")] - pub routine_type: Option, + pub routine_type: Option, /// Optional. Spark specific options. #[serde(rename="sparkOptions")] @@ -4055,7 +4055,7 @@ pub struct StandardSqlDataType { /// Required. The top level type of this field. Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY"). #[serde(rename="typeKind")] - pub type_kind: Option, + pub type_kind: Option, } impl client::Part for StandardSqlDataType {} @@ -4680,7 +4680,7 @@ pub struct TrainingOptions { /// Booster type for boosted tree models. #[serde(rename="boosterType")] - pub booster_type: Option, + pub booster_type: Option, /// Whether or not p-value test should be computed for this model. Only available for linear and logistic regression models. #[serde(rename="calculatePValues")] @@ -4692,7 +4692,7 @@ pub struct TrainingOptions { /// Enums for color space, used for processing images in Object Table. See more details at https://www.tensorflow.org/io/tutorials/colorspace. #[serde(rename="colorSpace")] - pub color_space: Option, + pub color_space: Option, /// Subsample ratio of columns for each level for boosted tree models. #[serde(rename="colsampleBylevel")] @@ -4708,11 +4708,11 @@ pub struct TrainingOptions { /// Type of normalization algorithm for boosted tree models using dart booster. #[serde(rename="dartNormalizeType")] - pub dart_normalize_type: Option, + pub dart_normalize_type: Option, /// The data frequency of a time series. #[serde(rename="dataFrequency")] - pub data_frequency: Option, + pub data_frequency: Option, /// The column to split data with. This column won't be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties #[serde(rename="dataSplitColumn")] @@ -4724,7 +4724,7 @@ pub struct TrainingOptions { /// The data split type for training and evaluation, e.g. RANDOM. #[serde(rename="dataSplitMethod")] - pub data_split_method: Option, + pub data_split_method: Option, /// If true, perform decompose time series and save the results. #[serde(rename="decomposeTimeSeries")] @@ -4732,7 +4732,7 @@ pub struct TrainingOptions { /// Distance type for clustering models. #[serde(rename="distanceType")] - pub distance_type: Option, + pub distance_type: Option, /// Dropout probability for dnn models. pub dropout: Option, @@ -4747,7 +4747,7 @@ pub struct TrainingOptions { /// Feedback type that specifies which algorithm to run for matrix factorization. #[serde(rename="feedbackType")] - pub feedback_type: Option, + pub feedback_type: Option, /// Hidden units for dnn models. #[serde(rename="hiddenUnits")] @@ -4756,7 +4756,7 @@ pub struct TrainingOptions { /// The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled. #[serde(rename="holidayRegion")] - pub holiday_region: Option, + pub holiday_region: Option, /// The number of periods ahead that need to be forecasted. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4764,7 +4764,7 @@ pub struct TrainingOptions { /// The target evaluation metrics to optimize the hyperparameters for. #[serde(rename="hparamTuningObjectives")] - pub hparam_tuning_objectives: Option>, + pub hparam_tuning_objectives: Option>, /// Include drift when fitting an ARIMA model. #[serde(rename="includeDrift")] @@ -4793,7 +4793,7 @@ pub struct TrainingOptions { /// The method used to initialize the centroids for kmeans algorithm. #[serde(rename="kmeansInitializationMethod")] - pub kmeans_initialization_method: Option, + pub kmeans_initialization_method: Option, /// L1 regularization coefficient. #[serde(rename="l1Regularization")] @@ -4813,11 +4813,11 @@ pub struct TrainingOptions { /// The strategy to determine learn rate for the current iteration. #[serde(rename="learnRateStrategy")] - pub learn_rate_strategy: Option, + pub learn_rate_strategy: Option, /// Type of loss function used during training run. #[serde(rename="lossType")] - pub loss_type: Option, + pub loss_type: Option, /// The maximum number of iterations in training. Used only for iterative training algorithms. #[serde(rename="maxIterations")] @@ -4887,7 +4887,7 @@ pub struct TrainingOptions { /// Optimization strategy for training linear regression models. #[serde(rename="optimizationStrategy")] - pub optimization_strategy: Option, + pub optimization_strategy: Option, /// Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b. #[serde(rename="preserveInputStructs")] @@ -4923,7 +4923,7 @@ pub struct TrainingOptions { /// Tree construction algorithm for boosted tree models. #[serde(rename="treeMethod")] - pub tree_method: Option, + pub tree_method: Option, /// The smoothing window size for the trend component of the time series. #[serde(rename="trendSmoothingWindowSize")] diff --git a/gen/bigquery2/src/lib.rs b/gen/bigquery2/src/lib.rs index e1983fef08..93cc9c62f6 100644 --- a/gen/bigquery2/src/lib.rs +++ b/gen/bigquery2/src/lib.rs @@ -122,8 +122,8 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.tables().get("projectId", "datasetId", "tableId") -//! .view("amet.") -//! .selected_fields("takimata") +//! .view(&Default::default()) +//! .selected_fields("sed") //! .doit().await; //! //! match result { diff --git a/gen/bigqueryconnection1_beta1/src/api/call_builders.rs b/gen/bigqueryconnection1_beta1/src/api/call_builders.rs index 25c9cdac85..175a591d24 100644 --- a/gen/bigqueryconnection1_beta1/src/api/call_builders.rs +++ b/gen/bigqueryconnection1_beta1/src/api/call_builders.rs @@ -835,7 +835,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._connection_id.as_ref() { params.push("connectionId", value); } @@ -1130,7 +1130,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()); @@ -1392,7 +1392,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()); @@ -1661,7 +1661,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()); @@ -1950,7 +1950,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2241,7 +2241,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2543,7 +2543,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()); @@ -2835,7 +2835,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()); @@ -3127,7 +3127,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()); diff --git a/gen/bigqueryconnection1_beta1/src/api/mod.rs b/gen/bigqueryconnection1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/bigqueryconnection1_beta1/src/api/mod.rs +++ b/gen/bigqueryconnection1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/bigqueryconnection1_beta1/src/api/schemas.rs b/gen/bigqueryconnection1_beta1/src/api/schemas.rs index e57a143fcf..ce89871142 100644 --- a/gen/bigqueryconnection1_beta1/src/api/schemas.rs +++ b/gen/bigqueryconnection1_beta1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -101,7 +101,7 @@ pub struct CloudSqlProperties { /// Type of the Cloud SQL database. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CloudSqlProperties {} diff --git a/gen/bigquerydatatransfer1/src/api/mod.rs b/gen/bigquerydatatransfer1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/bigquerydatatransfer1/src/api/mod.rs +++ b/gen/bigquerydatatransfer1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/bigquerydatatransfer1/src/api/schemas.rs b/gen/bigquerydatatransfer1/src/api/schemas.rs index 017acd0c95..8c6720c653 100644 --- a/gen/bigquerydatatransfer1/src/api/schemas.rs +++ b/gen/bigquerydatatransfer1/src/api/schemas.rs @@ -51,7 +51,7 @@ pub struct DataSource { /// Indicates the type of authorization. #[serde(rename="authorizationType")] - pub authorization_type: Option, + pub authorization_type: Option, /// Data source client id which should be used to receive refresh token. #[serde(rename="clientId")] @@ -59,7 +59,7 @@ pub struct DataSource { /// Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically. #[serde(rename="dataRefreshType")] - pub data_refresh_type: Option, + pub data_refresh_type: Option, /// Data source id. #[serde(rename="dataSourceId")] @@ -112,7 +112,7 @@ pub struct DataSource { /// Deprecated. This field has no effect. #[serde(rename="transferType")] - pub transfer_type: Option, + pub transfer_type: Option, /// The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED. #[serde(rename="updateDeadlineSeconds")] @@ -173,7 +173,7 @@ pub struct DataSourceParameter { /// Parameter type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values. #[serde(rename="validationDescription")] @@ -629,7 +629,7 @@ pub struct TransferConfig { pub schedule_options: Option, /// Output only. State of the most recently updated transfer run. - pub state: Option, + pub state: Option, /// Output only. Data transfer modification time. Ignored by server on input. #[serde(rename="updateTime")] @@ -662,7 +662,7 @@ pub struct TransferMessage { pub message_time: Option>, /// Message severity. - pub severity: Option, + pub severity: Option, } impl client::Part for TransferMessage {} @@ -727,7 +727,7 @@ pub struct TransferRun { pub start_time: Option>, /// Data transfer run state. Ignored for input requests. - pub state: Option, + pub state: Option, /// Output only. Last time the data transfer run state was updated. #[serde(rename="updateTime")] diff --git a/gen/bigqueryreservation1/src/api/call_builders.rs b/gen/bigqueryreservation1/src/api/call_builders.rs index 7a3021d537..7cc8e64121 100644 --- a/gen/bigqueryreservation1/src/api/call_builders.rs +++ b/gen/bigqueryreservation1/src/api/call_builders.rs @@ -1168,7 +1168,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._enforce_single_admin_project_per_org.as_ref() { params.push("enforceSingleAdminProjectPerOrg", value.to_string()); } @@ -1475,7 +1475,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._force.as_ref() { params.push("force", value.to_string()); } @@ -1747,7 +1747,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()); @@ -2013,7 +2013,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2302,7 +2302,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2596,7 +2596,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2898,7 +2898,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()); @@ -3192,7 +3192,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._assignment_id.as_ref() { params.push("assignmentId", value); } @@ -3487,7 +3487,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()); @@ -3753,7 +3753,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4042,7 +4042,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()); @@ -4336,7 +4336,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4640,7 +4640,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._reservation_id.as_ref() { params.push("reservationId", value); } @@ -4935,7 +4935,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()); @@ -5197,7 +5197,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()); @@ -5463,7 +5463,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5754,7 +5754,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6049,7 +6049,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()); @@ -6317,7 +6317,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._query.as_ref() { params.push("query", value); } @@ -6615,7 +6615,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._query.as_ref() { params.push("query", value); } @@ -6916,7 +6916,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/bigqueryreservation1/src/api/mod.rs b/gen/bigqueryreservation1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/bigqueryreservation1/src/api/mod.rs +++ b/gen/bigqueryreservation1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/bigqueryreservation1/src/api/schemas.rs b/gen/bigqueryreservation1/src/api/schemas.rs index 1e3aefb382..70f5c4e8e7 100644 --- a/gen/bigqueryreservation1/src/api/schemas.rs +++ b/gen/bigqueryreservation1/src/api/schemas.rs @@ -18,13 +18,13 @@ pub struct Assignment { /// Which type of jobs will use the reservation. #[serde(rename="jobType")] - pub job_type: Option, + pub job_type: Option, /// Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters. pub name: Option, /// Output only. State of the assignment. - pub state: Option, + pub state: Option, } impl client::RequestValue for Assignment {} @@ -99,11 +99,11 @@ pub struct CapacityCommitment { pub name: Option, /// Capacity commitment commitment plan. - pub plan: Option, + pub plan: Option, /// The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments. #[serde(rename="renewalPlan")] - pub renewal_plan: Option, + pub renewal_plan: Option, /// Number of slots in this commitment. #[serde(rename="slotCount")] @@ -111,7 +111,7 @@ pub struct CapacityCommitment { pub slot_count: Option, /// Output only. State of the commitment. - pub state: Option, + pub state: Option, } impl client::RequestValue for CapacityCommitment {} diff --git a/gen/bigtableadmin2/src/api/mod.rs b/gen/bigtableadmin2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/bigtableadmin2/src/api/mod.rs +++ b/gen/bigtableadmin2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/bigtableadmin2/src/api/schemas.rs b/gen/bigtableadmin2/src/api/schemas.rs index a7e85ef297..c05a0a991d 100644 --- a/gen/bigtableadmin2/src/api/schemas.rs +++ b/gen/bigtableadmin2/src/api/schemas.rs @@ -68,7 +68,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -161,7 +161,7 @@ pub struct Backup { pub start_time: Option>, /// Output only. The current state of the backup. - pub state: Option, + pub state: Option, } impl client::RequestValue for Backup {} @@ -280,7 +280,7 @@ pub struct Cluster { /// Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden. #[serde(rename="defaultStorageType")] - pub default_storage_type: Option, + pub default_storage_type: Option, /// Immutable. The encryption configuration for CMEK-protected clusters. #[serde(rename="encryptionConfig")] @@ -297,7 +297,7 @@ pub struct Cluster { pub serve_nodes: Option, /// Output only. The current state of the cluster. - pub state: Option, + pub state: Option, } impl client::RequestValue for Cluster {} @@ -354,7 +354,7 @@ pub struct ClusterState { /// Output only. The state of replication for the table in this cluster. #[serde(rename="replicationState")] - pub replication_state: Option, + pub replication_state: Option, } impl client::Part for ClusterState {} @@ -565,7 +565,7 @@ pub struct EncryptionInfo { /// Output only. The type of encryption used to protect this resource. #[serde(rename="encryptionType")] - pub encryption_type: Option, + pub encryption_type: Option, /// Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table. #[serde(rename="kmsKeyVersion")] @@ -770,11 +770,11 @@ pub struct Instance { pub satisfies_pzs: Option, /// Output only. The current state of the instance. - pub state: Option, + pub state: Option, /// The type of the instance. Defaults to `PRODUCTION`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Instance {} @@ -1181,7 +1181,7 @@ pub struct RestoreInfo { /// The type of the restore source. #[serde(rename="sourceType")] - pub source_type: Option, + pub source_type: Option, } impl client::Part for RestoreInfo {} @@ -1320,7 +1320,7 @@ pub struct Table { pub deletion_protection: Option, /// Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`. - pub granularity: Option, + pub granularity: Option, /// The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` pub name: Option, diff --git a/gen/billingbudgets1/src/api/mod.rs b/gen/billingbudgets1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/billingbudgets1/src/api/mod.rs +++ b/gen/billingbudgets1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/billingbudgets1/src/api/schemas.rs b/gen/billingbudgets1/src/api/schemas.rs index 9a8e4a4756..43a1bd2d4f 100644 --- a/gen/billingbudgets1/src/api/schemas.rs +++ b/gen/billingbudgets1/src/api/schemas.rs @@ -93,7 +93,7 @@ pub struct GoogleCloudBillingBudgetsV1Filter { /// Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on. #[serde(rename="calendarPeriod")] - pub calendar_period: Option, + pub calendar_period: Option, /// Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If Filter.credit_types_treatment is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty. #[serde(rename="creditTypes")] @@ -101,7 +101,7 @@ pub struct GoogleCloudBillingBudgetsV1Filter { /// Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`. #[serde(rename="creditTypesTreatment")] - pub credit_types_treatment: Option, + pub credit_types_treatment: Option, /// Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur. #[serde(rename="customPeriod")] @@ -194,7 +194,7 @@ pub struct GoogleCloudBillingBudgetsV1ThresholdRule { /// Optional. The type of basis used to determine if spend has passed the threshold. Behavior defaults to CURRENT_SPEND if not set. #[serde(rename="spendBasis")] - pub spend_basis: Option, + pub spend_basis: Option, /// Required. Send an alert when this threshold is exceeded. This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative number. #[serde(rename="thresholdPercent")] diff --git a/gen/billingbudgets1_beta1/src/api/mod.rs b/gen/billingbudgets1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/billingbudgets1_beta1/src/api/mod.rs +++ b/gen/billingbudgets1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/billingbudgets1_beta1/src/api/schemas.rs b/gen/billingbudgets1_beta1/src/api/schemas.rs index 53133780fb..10d9e4c285 100644 --- a/gen/billingbudgets1_beta1/src/api/schemas.rs +++ b/gen/billingbudgets1_beta1/src/api/schemas.rs @@ -139,7 +139,7 @@ pub struct GoogleCloudBillingBudgetsV1beta1Filter { /// Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on. #[serde(rename="calendarPeriod")] - pub calendar_period: Option, + pub calendar_period: Option, /// Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If Filter.credit_types_treatment is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty. #[serde(rename="creditTypes")] @@ -147,7 +147,7 @@ pub struct GoogleCloudBillingBudgetsV1beta1Filter { /// Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`. #[serde(rename="creditTypesTreatment")] - pub credit_types_treatment: Option, + pub credit_types_treatment: Option, /// Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur. #[serde(rename="customPeriod")] @@ -212,7 +212,7 @@ pub struct GoogleCloudBillingBudgetsV1beta1ThresholdRule { /// Optional. The type of basis used to determine if spend has passed the threshold. Behavior defaults to CURRENT_SPEND if not set. #[serde(rename="spendBasis")] - pub spend_basis: Option, + pub spend_basis: Option, /// Required. Send an alert when this threshold is exceeded. This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative number. #[serde(rename="thresholdPercent")] diff --git a/gen/binaryauthorization1/src/api/call_builders.rs b/gen/binaryauthorization1/src/api/call_builders.rs index b5af9382da..b87058badf 100644 --- a/gen/binaryauthorization1/src/api/call_builders.rs +++ b/gen/binaryauthorization1/src/api/call_builders.rs @@ -1865,7 +1865,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._attestor_id.as_ref() { params.push("attestorId", value); } @@ -2160,7 +2160,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()); @@ -2422,7 +2422,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()); @@ -2686,7 +2686,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()); } @@ -2962,7 +2962,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3251,7 +3251,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()); @@ -3543,7 +3543,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()); @@ -3835,7 +3835,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()); @@ -4127,7 +4127,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("attestor", self._attestor); + params.push("attestor", &self._attestor); params.extend(self._additional_params.iter()); @@ -6112,7 +6112,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()); } @@ -6391,7 +6391,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()); @@ -6683,7 +6683,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()); @@ -6968,7 +6968,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()); @@ -7237,7 +7237,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()); @@ -7522,7 +7522,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()); diff --git a/gen/binaryauthorization1/src/api/mod.rs b/gen/binaryauthorization1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/binaryauthorization1/src/api/mod.rs +++ b/gen/binaryauthorization1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/binaryauthorization1/src/api/schemas.rs b/gen/binaryauthorization1/src/api/schemas.rs index 151cc54578..3c13456440 100644 --- a/gen/binaryauthorization1/src/api/schemas.rs +++ b/gen/binaryauthorization1/src/api/schemas.rs @@ -9,11 +9,11 @@ pub struct AdmissionRule { /// Required. The action when a pod creation is denied by the admission rule. #[serde(rename="enforcementMode")] - pub enforcement_mode: Option, + pub enforcement_mode: Option, /// Required. How this admission rule will be evaluated. #[serde(rename="evaluationMode")] - pub evaluation_mode: Option, + pub evaluation_mode: Option, /// Optional. The resource names of the attestors that must attest to a container image, in the format `projects/*/attestors/*`. Each attestor must exist before a policy can reference it. To add an attestor to a policy the principal issuing the policy change request must be able to read the attestor resource. Note: this field must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION, otherwise it must be empty. #[serde(rename="requireAttestationsBy")] @@ -266,7 +266,7 @@ pub struct PkixPublicKey { /// The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key). #[serde(rename="signatureAlgorithm")] - pub signature_algorithm: Option, + pub signature_algorithm: Option, } impl client::Part for PkixPublicKey {} @@ -306,7 +306,7 @@ pub struct Policy { /// Optional. Controls the evaluation of a Google-maintained global admission policy for common system-level images. Images not covered by the global policy will be subject to the project admission policy. This setting has no effect when specified inside a global admission policy. #[serde(rename="globalPolicyEvaluationMode")] - pub global_policy_evaluation_mode: Option, + pub global_policy_evaluation_mode: Option, /// Optional. Per-istio-service-identity admission rules. Istio service identity spec format: `spiffe:///ns//sa/` or `/ns//sa/` e.g. `spiffe://example.com/ns/test-ns/sa/default` #[serde(rename="istioServiceIdentityAdmissionRules")] @@ -480,7 +480,7 @@ pub struct ValidateAttestationOccurrenceResponse { pub denial_reason: Option, /// The result of the Attestation validation. - pub result: Option, + pub result: Option, } impl client::ResponseResult for ValidateAttestationOccurrenceResponse {} diff --git a/gen/binaryauthorization1_beta1/src/api/call_builders.rs b/gen/binaryauthorization1_beta1/src/api/call_builders.rs index 4f8cd4d349..5d03650a45 100644 --- a/gen/binaryauthorization1_beta1/src/api/call_builders.rs +++ b/gen/binaryauthorization1_beta1/src/api/call_builders.rs @@ -1098,7 +1098,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._attestor_id.as_ref() { params.push("attestorId", value); } @@ -1393,7 +1393,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()); @@ -1655,7 +1655,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()); @@ -1919,7 +1919,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()); } @@ -2195,7 +2195,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2484,7 +2484,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()); @@ -2776,7 +2776,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()); @@ -3068,7 +3068,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()); @@ -3360,7 +3360,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("attestor", self._attestor); + params.push("attestor", &self._attestor); params.extend(self._additional_params.iter()); @@ -3647,7 +3647,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()); } @@ -3926,7 +3926,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()); @@ -4218,7 +4218,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()); @@ -4503,7 +4503,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()); @@ -4772,7 +4772,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()); @@ -5057,7 +5057,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()); diff --git a/gen/binaryauthorization1_beta1/src/api/mod.rs b/gen/binaryauthorization1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/binaryauthorization1_beta1/src/api/mod.rs +++ b/gen/binaryauthorization1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/binaryauthorization1_beta1/src/api/schemas.rs b/gen/binaryauthorization1_beta1/src/api/schemas.rs index c42a8af071..0055170867 100644 --- a/gen/binaryauthorization1_beta1/src/api/schemas.rs +++ b/gen/binaryauthorization1_beta1/src/api/schemas.rs @@ -9,11 +9,11 @@ pub struct AdmissionRule { /// Required. The action when a pod creation is denied by the admission rule. #[serde(rename="enforcementMode")] - pub enforcement_mode: Option, + pub enforcement_mode: Option, /// Required. How this admission rule will be evaluated. #[serde(rename="evaluationMode")] - pub evaluation_mode: Option, + pub evaluation_mode: Option, /// Optional. The resource names of the attestors that must attest to a container image, in the format `projects/*/attestors/*`. Each attestor must exist before a policy can reference it. To add an attestor to a policy the principal issuing the policy change request must be able to read the attestor resource. Note: this field must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION, otherwise it must be empty. #[serde(rename="requireAttestationsBy")] @@ -266,7 +266,7 @@ pub struct PkixPublicKey { /// The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key). #[serde(rename="signatureAlgorithm")] - pub signature_algorithm: Option, + pub signature_algorithm: Option, } impl client::Part for PkixPublicKey {} @@ -306,7 +306,7 @@ pub struct Policy { /// Optional. Controls the evaluation of a Google-maintained global admission policy for common system-level images. Images not covered by the global policy will be subject to the project admission policy. This setting has no effect when specified inside a global admission policy. #[serde(rename="globalPolicyEvaluationMode")] - pub global_policy_evaluation_mode: Option, + pub global_policy_evaluation_mode: Option, /// Optional. Per-istio-service-identity admission rules. Istio service identity spec format: `spiffe:///ns//sa/` or `/ns//sa/` e.g. `spiffe://example.com/ns/test-ns/sa/default` #[serde(rename="istioServiceIdentityAdmissionRules")] @@ -480,7 +480,7 @@ pub struct ValidateAttestationOccurrenceResponse { pub denial_reason: Option, /// The result of the Attestation validation. - pub result: Option, + pub result: Option, } impl client::ResponseResult for ValidateAttestationOccurrenceResponse {} diff --git a/gen/blogger3/README.md b/gen/blogger3/README.md index 1661655d5f..b6ec63e295 100644 --- a/gen/blogger3/README.md +++ b/gen/blogger3/README.md @@ -118,17 +118,17 @@ let mut hub = Blogger::new(hyper::Client::builder().build(hyper_rustls::HttpsCon // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.posts().list("blogId") - .view("magna") - .add_status("no") - .start_date("ipsum") - .sort_option("voluptua.") - .page_token("At") - .order_by("sanctus") - .max_results(21) - .labels("amet.") - .fetch_images(true) + .view(&Default::default()) + .add_status(&Default::default()) + .start_date("magna") + .sort_option(&Default::default()) + .page_token("no") + .order_by(&Default::default()) + .max_results(46) + .labels("voluptua.") + .fetch_images(false) .fetch_bodies(true) - .end_date("duo") + .end_date("amet.") .doit().await; match result { diff --git a/gen/blogger3/src/api/hub.rs b/gen/blogger3/src/api/hub.rs index 58aa5712d9..bd71a0541d 100644 --- a/gen/blogger3/src/api/hub.rs +++ b/gen/blogger3/src/api/hub.rs @@ -32,17 +32,17 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.posts().list("blogId") -/// .view("gubergren") -/// .add_status("rebum.") -/// .start_date("est") -/// .sort_option("ipsum") +/// .view(&Default::default()) +/// .add_status(&Default::default()) +/// .start_date("duo") +/// .sort_option(&Default::default()) /// .page_token("ipsum") -/// .order_by("est") -/// .max_results(39) -/// .labels("ea") -/// .fetch_images(false) +/// .order_by(&Default::default()) +/// .max_results(8) +/// .labels("ut") +/// .fetch_images(true) /// .fetch_bodies(true) -/// .end_date("eos") +/// .end_date("ipsum") /// .doit().await; /// /// match result { diff --git a/gen/blogger3/src/api/mod.rs b/gen/blogger3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/blogger3/src/api/mod.rs +++ b/gen/blogger3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/blogger3/src/api/schemas.rs b/gen/blogger3/src/api/schemas.rs index ec3a0031e5..056de516c8 100644 --- a/gen/blogger3/src/api/schemas.rs +++ b/gen/blogger3/src/api/schemas.rs @@ -46,7 +46,7 @@ pub struct Blog { pub self_link: Option, /// The status of the blog. - pub status: Option, + pub status: Option, /// RFC 3339 date-time when this blog was last updated. pub updated: Option, @@ -109,7 +109,7 @@ pub struct BlogPerUserInfo { pub photos_album_key: Option, /// Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER). - pub role: Option, + pub role: Option, /// ID of the User. #[serde(rename="userId")] @@ -193,7 +193,7 @@ pub struct Comment { pub self_link: Option, /// The status of the comment (only populated for admin users). - pub status: Option, + pub status: Option, /// RFC 3339 date-time when this comment was last updated. pub updated: Option, @@ -282,7 +282,7 @@ pub struct Page { pub self_link: Option, /// The status of the page for admin resources (either LIVE or DRAFT). - pub status: Option, + pub status: Option, /// The title of this entity. This is the name displayed in the Admin user interface. pub title: Option, @@ -414,7 +414,7 @@ pub struct Post { /// Comment control and display setting for readers of this post. #[serde(rename="readerComments")] - pub reader_comments: Option, + pub reader_comments: Option, /// The container of comments on this Post. pub replies: Option, @@ -424,7 +424,7 @@ pub struct Post { pub self_link: Option, /// Status of the post. Only set for admin-level requests. - pub status: Option, + pub status: Option, /// The title of the Post. pub title: Option, @@ -841,7 +841,7 @@ pub struct PageviewsCounts { /// Time range the given count applies to. #[serde(rename="timeRange")] - pub time_range: Option, + pub time_range: Option, } impl client::NestedType for PageviewsCounts {} diff --git a/gen/blogger3/src/lib.rs b/gen/blogger3/src/lib.rs index 0fbfc4a9b1..364e2e11a5 100644 --- a/gen/blogger3/src/lib.rs +++ b/gen/blogger3/src/lib.rs @@ -119,17 +119,17 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.posts().list("blogId") -//! .view("gubergren") -//! .add_status("Lorem") -//! .start_date("gubergren") -//! .sort_option("eos") -//! .page_token("dolor") -//! .order_by("ea") -//! .max_results(46) -//! .labels("invidunt") -//! .fetch_images(true) +//! .view(&Default::default()) +//! .add_status(&Default::default()) +//! .start_date("ipsum") +//! .sort_option(&Default::default()) +//! .page_token("gubergren") +//! .order_by(&Default::default()) +//! .max_results(50) +//! .labels("gubergren") +//! .fetch_images(false) //! .fetch_bodies(true) -//! .end_date("sed") +//! .end_date("invidunt") //! .doit().await; //! //! match result { diff --git a/gen/books1/src/api/method_builders.rs b/gen/books1/src/api/method_builders.rs index ad164311bf..9d0cdc9214 100644 --- a/gen/books1/src/api/method_builders.rs +++ b/gen/books1/src/api/method_builders.rs @@ -1461,10 +1461,10 @@ impl<'a, S> VolumeMethods<'a, S> { /// /// * `rating` - Rating to be given to the volume. /// * `volumeId` - ID of the source volume. - pub fn recommended_rate(&self, rating: &str, volume_id: &str) -> VolumeRecommendedRateCall<'a, S> { + pub fn recommended_rate(&self, rating: &VolumeRatingEnum, volume_id: &str) -> VolumeRecommendedRateCall<'a, S> { VolumeRecommendedRateCall { hub: self.hub, - _rating: rating.to_string(), + _rating: rating.clone(), _volume_id: volume_id.to_string(), _source: Default::default(), _locale: Default::default(), diff --git a/gen/books1/src/api/mod.rs b/gen/books1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/books1/src/api/mod.rs +++ b/gen/books1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/calendar3/src/api/hub.rs b/gen/calendar3/src/api/hub.rs index 9661b5b305..aa085b1999 100644 --- a/gen/calendar3/src/api/hub.rs +++ b/gen/calendar3/src/api/hub.rs @@ -50,10 +50,10 @@ use super::*; /// .q("erat") /// .add_private_extended_property("sed") /// .page_token("duo") -/// .order_by("dolore") -/// .max_results(-22) -/// .max_attendees(-28) -/// .i_cal_uid("amet.") +/// .order_by(&Default::default()) +/// .max_results(-34) +/// .max_attendees(-22) +/// .i_cal_uid("voluptua.") /// .always_include_email(false) /// .doit().await; /// diff --git a/gen/calendar3/src/api/mod.rs b/gen/calendar3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/calendar3/src/api/mod.rs +++ b/gen/calendar3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/certificatemanager1/src/api/call_builders.rs b/gen/certificatemanager1/src/api/call_builders.rs index b6da17d561..620b6f7546 100644 --- a/gen/certificatemanager1/src/api/call_builders.rs +++ b/gen/certificatemanager1/src/api/call_builders.rs @@ -1831,7 +1831,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._certificate_issuance_config_id.as_ref() { params.push("certificateIssuanceConfigId", value); } @@ -2126,7 +2126,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()); @@ -2388,7 +2388,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()); @@ -2658,7 +2658,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); } @@ -2969,7 +2969,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._certificate_map_entry_id.as_ref() { params.push("certificateMapEntryId", value); } @@ -3264,7 +3264,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()); @@ -3526,7 +3526,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()); @@ -3796,7 +3796,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); } @@ -4107,7 +4107,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4411,7 +4411,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._certificate_map_id.as_ref() { params.push("certificateMapId", value); } @@ -4706,7 +4706,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()); @@ -4968,7 +4968,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()); @@ -5238,7 +5238,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); } @@ -5549,7 +5549,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5853,7 +5853,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._certificate_id.as_ref() { params.push("certificateId", value); } @@ -6148,7 +6148,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()); @@ -6410,7 +6410,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()); @@ -6680,7 +6680,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); } @@ -6991,7 +6991,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7295,7 +7295,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._dns_authorization_id.as_ref() { params.push("dnsAuthorizationId", value); } @@ -7590,7 +7590,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()); @@ -7852,7 +7852,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()); @@ -8122,7 +8122,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); } @@ -8433,7 +8433,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8735,7 +8735,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()); @@ -9020,7 +9020,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()); @@ -9282,7 +9282,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()); @@ -9550,7 +9550,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); } @@ -11296,7 +11296,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()); @@ -11564,7 +11564,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); } diff --git a/gen/certificatemanager1/src/api/mod.rs b/gen/certificatemanager1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/certificatemanager1/src/api/mod.rs +++ b/gen/certificatemanager1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/certificatemanager1/src/api/schemas.rs b/gen/certificatemanager1/src/api/schemas.rs index 8c48ac7ea4..4aaba0a4cf 100644 --- a/gen/certificatemanager1/src/api/schemas.rs +++ b/gen/certificatemanager1/src/api/schemas.rs @@ -15,10 +15,10 @@ pub struct AuthorizationAttemptInfo { /// Output only. Reason for failure of the authorization attempt for the domain. #[serde(rename="failureReason")] - pub failure_reason: Option, + pub failure_reason: Option, /// Output only. State of the domain for managed certificate issuance. - pub state: Option, + pub state: Option, } impl client::Part for AuthorizationAttemptInfo {} @@ -82,7 +82,7 @@ pub struct Certificate { pub san_dnsnames: Option>, /// Immutable. The scope of the certificate. - pub scope: Option, + pub scope: Option, /// If set, defines data of a self-managed certificate. #[serde(rename="selfManaged")] @@ -155,7 +155,7 @@ pub struct CertificateIssuanceConfig { /// Required. The key algorithm to use when generating the private key. #[serde(rename="keyAlgorithm")] - pub key_algorithm: Option, + pub key_algorithm: Option, /// Set of labels associated with a CertificateIssuanceConfig. pub labels: Option>, @@ -251,13 +251,13 @@ pub struct CertificateMapEntry { pub labels: Option>, /// A predefined matcher for particular cases, other than SNI selection. - pub matcher: Option, + pub matcher: Option, /// A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`. pub name: Option, /// Output only. A serving state of this Certificate Map Entry. - pub state: Option, + pub state: Option, /// Output only. The update timestamp of a Certificate Map Entry. #[serde(rename="updateTime")] @@ -633,7 +633,7 @@ pub struct ManagedCertificate { pub provisioning_issue: Option, /// Output only. State of the managed certificate resource. - pub state: Option, + pub state: Option, } impl client::Part for ManagedCertificate {} @@ -696,7 +696,7 @@ pub struct ProvisioningIssue { pub details: Option, /// Output only. Reason for provisioning failures. - pub reason: Option, + pub reason: Option, } impl client::Part for ProvisioningIssue {} diff --git a/gen/chromemanagement1/src/api/mod.rs b/gen/chromemanagement1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/chromemanagement1/src/api/mod.rs +++ b/gen/chromemanagement1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/chromemanagement1/src/api/schemas.rs b/gen/chromemanagement1/src/api/schemas.rs index b3047f411e..b2e9014ba1 100644 --- a/gen/chromemanagement1/src/api/schemas.rs +++ b/gen/chromemanagement1/src/api/schemas.rs @@ -116,7 +116,7 @@ pub struct GoogleChromeManagementV1AppDetails { /// Output only. App type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::ResponseResult for GoogleChromeManagementV1AppDetails {} @@ -250,7 +250,7 @@ pub struct GoogleChromeManagementV1BatteryStatusReport { /// Output only. Battery health. #[serde(rename="batteryHealth")] - pub battery_health: Option, + pub battery_health: Option, /// Output only. Cycle count. #[serde(rename="cycleCount")] @@ -304,7 +304,7 @@ pub struct GoogleChromeManagementV1BootPerformanceReport { /// The shutdown reason. #[serde(rename="shutdownReason")] - pub shutdown_reason: Option, + pub shutdown_reason: Option, /// The timestamp when shutdown. #[serde(rename="shutdownTime")] @@ -323,7 +323,7 @@ impl client::Part for GoogleChromeManagementV1BootPerformanceReport {} pub struct GoogleChromeManagementV1BrowserVersion { /// Output only. The release channel of the installed browser. - pub channel: Option, + pub channel: Option, /// Output only. Count grouped by device_system and major version #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -334,7 +334,7 @@ pub struct GoogleChromeManagementV1BrowserVersion { pub device_os_version: Option, /// Output only. The device operating system. - pub system: Option, + pub system: Option, /// Output only. The full version of the installed browser. pub version: Option, @@ -392,7 +392,7 @@ pub struct GoogleChromeManagementV1ChromeAppInfo { /// Output only. Types of an item in the Chrome Web Store #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleChromeManagementV1ChromeAppInfo {} @@ -665,7 +665,7 @@ impl client::ResponseResult for GoogleChromeManagementV1CountInstalledAppsRespon pub struct GoogleChromeManagementV1CpuInfo { /// Output only. Architecture type for the CPU. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A - pub architecture: Option, + pub architecture: Option, /// Output only. Whether keylocker is configured.`TRUE` = Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`. #[serde(rename="keylockerConfigured")] @@ -763,7 +763,7 @@ pub struct GoogleChromeManagementV1DeviceAueCountReport { /// Enum value of month corresponding to the auto update expiration date in UTC time zone. If the device is already expired, this field is empty. #[serde(rename="aueMonth")] - pub aue_month: Option, + pub aue_month: Option, /// Int value of year corresponding to the Auto Update Expiration date in UTC time zone. If the device is already expired, this field is empty. #[serde(rename="aueYear")] @@ -1003,7 +1003,7 @@ pub struct GoogleChromeManagementV1HttpsLatencyRoutineData { pub latency: Option, /// Output only. HTTPS latency routine problem if a problem occurred. - pub problem: Option, + pub problem: Option, } impl client::Part for GoogleChromeManagementV1HttpsLatencyRoutineData {} @@ -1023,15 +1023,15 @@ pub struct GoogleChromeManagementV1InstalledApp { /// Output only. How the app was installed. #[serde(rename="appInstallType")] - pub app_install_type: Option, + pub app_install_type: Option, /// Output only. Source of the installed app. #[serde(rename="appSource")] - pub app_source: Option, + pub app_source: Option, /// Output only. Type of the app. #[serde(rename="appType")] - pub app_type: Option, + pub app_type: Option, /// Output only. Count of browser devices with this app installed. #[serde(rename="browserDeviceCount")] @@ -1193,7 +1193,7 @@ pub struct GoogleChromeManagementV1NetworkDevice { /// Output only. Network device type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleChromeManagementV1NetworkDevice {} @@ -1245,11 +1245,11 @@ pub struct GoogleChromeManagementV1NetworkStatusReport { /// Output only. Current connection state of the network. #[serde(rename="connectionState")] - pub connection_state: Option, + pub connection_state: Option, /// Output only. Network connection type. #[serde(rename="connectionType")] - pub connection_type: Option, + pub connection_type: Option, /// Output only. Whether the wifi encryption key is turned off. #[serde(rename="encryptionOn")] @@ -1336,7 +1336,7 @@ pub struct GoogleChromeManagementV1OsUpdateStatus { /// Output only. Current state of the os update. #[serde(rename="updateState")] - pub update_state: Option, + pub update_state: Option, } impl client::Part for GoogleChromeManagementV1OsUpdateStatus {} @@ -1562,7 +1562,7 @@ pub struct GoogleChromeManagementV1TelemetryEvent { /// The event type of the current event. #[serde(rename="eventType")] - pub event_type: Option, + pub event_type: Option, /// Output only. Payload for HTTPS latency change event. Present only when `event_type` is `NETWORK_HTTPS_LATENCY_CHANGE`. #[serde(rename="httpsLatencyChangeEvent")] @@ -1600,7 +1600,7 @@ pub struct GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent { /// Current HTTPS latency state. #[serde(rename="httpsLatencyState")] - pub https_latency_state: Option, + pub https_latency_state: Option, } impl client::Part for GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent {} @@ -1651,7 +1651,7 @@ pub struct GoogleChromeManagementV1ThunderboltInfo { /// Security level of the Thunderbolt bus. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, } impl client::Part for GoogleChromeManagementV1ThunderboltInfo {} @@ -1667,11 +1667,11 @@ pub struct GoogleChromeManagementV1TotalMemoryEncryptionInfo { /// Memory encryption algorithm. #[serde(rename="encryptionAlgorithm")] - pub encryption_algorithm: Option, + pub encryption_algorithm: Option, /// The state of memory encryption on the device. #[serde(rename="encryptionState")] - pub encryption_state: Option, + pub encryption_state: Option, /// The length of the encryption keys. #[serde(rename="keyLength")] diff --git a/gen/chromepolicy1/src/api/call_builders.rs b/gen/chromepolicy1/src/api/call_builders.rs index b2e1416027..541010d661 100644 --- a/gen/chromepolicy1/src/api/call_builders.rs +++ b/gen/chromepolicy1/src/api/call_builders.rs @@ -1773,7 +1773,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -2065,7 +2065,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -2357,7 +2357,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -2649,7 +2649,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -2941,7 +2941,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -3233,7 +3233,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -3525,7 +3525,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -3817,7 +3817,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -4109,7 +4109,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -4401,7 +4401,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -4693,7 +4693,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); @@ -4978,7 +4978,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()); @@ -5246,7 +5246,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5547,7 +5547,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("customer", self._customer); + params.push("customer", &self._customer); params.extend(self._additional_params.iter()); diff --git a/gen/chromepolicy1/src/api/mod.rs b/gen/chromepolicy1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/chromepolicy1/src/api/mod.rs +++ b/gen/chromepolicy1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/chromepolicy1/src/api/schemas.rs b/gen/chromepolicy1/src/api/schemas.rs index 28e0d5e799..5b3ac2951b 100644 --- a/gen/chromepolicy1/src/api/schemas.rs +++ b/gen/chromepolicy1/src/api/schemas.rs @@ -16,7 +16,7 @@ pub struct ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle { /// Indicate current life cycle stage of the policy API. #[serde(rename="policyApiLifecycleStage")] - pub policy_api_lifecycle_stage: Option, + pub policy_api_lifecycle_stage: Option, } impl client::Part for ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle {} @@ -505,7 +505,7 @@ pub struct GoogleChromePolicyVersionsV1PolicySchema { /// Output only. Information about applicable target resources for the policy. #[serde(rename="validTargetResources")] - pub valid_target_resources: Option>, + pub valid_target_resources: Option>, } impl client::ResponseResult for GoogleChromePolicyVersionsV1PolicySchema {} @@ -1040,7 +1040,7 @@ pub struct Proto2FieldDescriptorProto { pub json_name: Option, /// no description provided - pub label: Option, + pub label: Option, /// no description provided pub name: Option, @@ -1058,7 +1058,7 @@ pub struct Proto2FieldDescriptorProto { /// If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace). #[serde(rename="typeName")] diff --git a/gen/chromeuxreport1/src/api/mod.rs b/gen/chromeuxreport1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/chromeuxreport1/src/api/mod.rs +++ b/gen/chromeuxreport1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/chromeuxreport1/src/api/schemas.rs b/gen/chromeuxreport1/src/api/schemas.rs index d30767313a..3aac1eb98c 100644 --- a/gen/chromeuxreport1/src/api/schemas.rs +++ b/gen/chromeuxreport1/src/api/schemas.rs @@ -75,7 +75,7 @@ pub struct Key { /// The form factor is the device class that all users used to access the site for this record. If the form factor is unspecified, then aggregated data over all form factors will be returned. #[serde(rename="formFactor")] - pub form_factor: Option, + pub form_factor: Option, /// Origin specifies the origin that this record is for. Note: When specifying an origin, data for loads under this origin over all pages are aggregated into origin level user experience data. pub origin: Option, @@ -138,7 +138,7 @@ pub struct QueryRequest { /// The form factor is a query dimension that specifies the device class that the record's data should belong to. Note: If no form factor is specified, then a special record with aggregated data over all form factors will be returned. #[serde(rename="formFactor")] - pub form_factor: Option, + pub form_factor: Option, /// The metrics that should be included in the response. If none are specified then any metrics found will be returned. Allowed values: ["first_contentful_paint", "first_input_delay", "largest_contentful_paint", "cumulative_layout_shift", "experimental_time_to_first_byte", "experimental_interaction_to_next_paint"] pub metrics: Option>, diff --git a/gen/classroom1/README.md b/gen/classroom1/README.md index 19f8de8c6d..bd316a5835 100644 --- a/gen/classroom1/README.md +++ b/gen/classroom1/README.md @@ -147,10 +147,10 @@ let mut hub = Classroom::new(hyper::Client::builder().build(hyper_rustls::HttpsC // Values shown here are possibly random and not representative ! let result = hub.courses().course_work_student_submissions_list("courseId", "courseWorkId") .user_id("no") - .add_states("ipsum") - .page_token("voluptua.") - .page_size(-27) - .late("sanctus") + .add_states(&Default::default()) + .page_token("ipsum") + .page_size(-28) + .late(&Default::default()) .doit().await; match result { diff --git a/gen/classroom1/src/api/hub.rs b/gen/classroom1/src/api/hub.rs index cbe43cba62..9a7115d827 100644 --- a/gen/classroom1/src/api/hub.rs +++ b/gen/classroom1/src/api/hub.rs @@ -32,11 +32,11 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.courses().course_work_student_submissions_list("courseId", "courseWorkId") -/// .user_id("eos") -/// .add_states("dolor") -/// .page_token("ea") -/// .page_size(-55) -/// .late("invidunt") +/// .user_id("ipsum") +/// .add_states(&Default::default()) +/// .page_token("gubergren") +/// .page_size(-51) +/// .late(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/classroom1/src/api/mod.rs b/gen/classroom1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/classroom1/src/api/mod.rs +++ b/gen/classroom1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/classroom1/src/api/schemas.rs b/gen/classroom1/src/api/schemas.rs index 15f865733e..4c896940f2 100644 --- a/gen/classroom1/src/api/schemas.rs +++ b/gen/classroom1/src/api/schemas.rs @@ -20,7 +20,7 @@ pub struct Announcement { /// Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`. #[serde(rename="assigneeMode")] - pub assignee_mode: Option, + pub assignee_mode: Option, /// Identifier of the course. Read-only. #[serde(rename="courseId")] @@ -49,7 +49,7 @@ pub struct Announcement { pub scheduled_time: Option>, /// Status of this announcement. If unspecified, the default state is `DRAFT`. - pub state: Option, + pub state: Option, /// Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters. pub text: Option, @@ -211,7 +211,7 @@ pub struct Course { /// State of the course. If unspecified, the default state is `PROVISIONED`. #[serde(rename="courseState")] - pub course_state: Option, + pub course_state: Option, /// Creation time of the course. Specifying this field in a course update mask results in an error. Read-only. #[serde(rename="creationTime")] @@ -371,7 +371,7 @@ pub struct CourseWork { /// Assignee mode of the coursework. If unspecified, the default value is `ALL_STUDENTS`. #[serde(rename="assigneeMode")] - pub assignee_mode: Option, + pub assignee_mode: Option, /// Assignment details. This is populated only when `work_type` is `ASSIGNMENT`. Read-only. pub assignment: Option, @@ -430,11 +430,11 @@ pub struct CourseWork { pub scheduled_time: Option>, /// Status of this course work. If unspecified, the default state is `DRAFT`. - pub state: Option, + pub state: Option, /// Setting to determine when students are allowed to modify submissions. If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`. #[serde(rename="submissionModificationMode")] - pub submission_modification_mode: Option, + pub submission_modification_mode: Option, /// Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters. pub title: Option, @@ -449,7 +449,7 @@ pub struct CourseWork { /// Type of this course work. The type is set when the course work is created and cannot be changed. #[serde(rename="workType")] - pub work_type: Option, + pub work_type: Option, } impl client::RequestValue for CourseWork {} @@ -492,7 +492,7 @@ pub struct CourseWorkMaterial { /// Assignee mode of the course work material. If unspecified, the default value is `ALL_STUDENTS`. #[serde(rename="assigneeMode")] - pub assignee_mode: Option, + pub assignee_mode: Option, /// Identifier of the course. Read-only. #[serde(rename="courseId")] @@ -524,7 +524,7 @@ pub struct CourseWorkMaterial { pub scheduled_time: Option>, /// Status of this course work material. If unspecified, the default state is `DRAFT`. - pub state: Option, + pub state: Option, /// Title of this course work material. The title must be a valid UTF-8 string containing between 1 and 3000 characters. pub title: Option, @@ -658,7 +658,7 @@ pub struct Feed { /// The type of feed. #[serde(rename="feedType")] - pub feed_type: Option, + pub feed_type: Option, } impl client::Part for Feed {} @@ -700,7 +700,7 @@ impl client::Part for Form {} pub struct GlobalPermission { /// Permission value. - pub permission: Option, + pub permission: Option, } impl client::Part for GlobalPermission {} @@ -745,7 +745,7 @@ pub struct GradeHistory { /// The type of grade change at this time in the submission grade history. #[serde(rename="gradeChangeType")] - pub grade_change_type: Option, + pub grade_change_type: Option, /// When the grade of the submission was changed. #[serde(rename="gradeTimestamp")] @@ -773,11 +773,11 @@ pub struct GradebookSettings { /// Indicates how the overall grade is calculated. #[serde(rename="calculationType")] - pub calculation_type: Option, + pub calculation_type: Option, /// Indicates who can see the overall grade.. #[serde(rename="displaySetting")] - pub display_setting: Option, + pub display_setting: Option, /// Grade categories that are available for coursework in the course. #[serde(rename="gradeCategories")] @@ -846,7 +846,7 @@ pub struct GuardianInvitation { pub invited_email_address: Option, /// The state that this invitation is in. - pub state: Option, + pub state: Option, /// ID of the student (in standard format) #[serde(rename="studentId")] @@ -897,7 +897,7 @@ pub struct Invitation { pub id: Option, /// Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`. - pub role: Option, + pub role: Option, /// Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user #[serde(rename="userId")] @@ -1251,7 +1251,7 @@ pub struct ModifyAnnouncementAssigneesRequest { /// Mode of the announcement describing whether it is accessible by all students or specified individual students. #[serde(rename="assigneeMode")] - pub assignee_mode: Option, + pub assignee_mode: Option, /// Set which students can view or cannot view the announcement. Must be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`. #[serde(rename="modifyIndividualStudentsOptions")] @@ -1295,7 +1295,7 @@ pub struct ModifyCourseWorkAssigneesRequest { /// Mode of the coursework describing whether it will be assigned to all students or specified individual students. #[serde(rename="assigneeMode")] - pub assignee_mode: Option, + pub assignee_mode: Option, /// Set which students are assigned or not assigned to the coursework. Must be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`. #[serde(rename="modifyIndividualStudentsOptions")] @@ -1457,7 +1457,7 @@ pub struct SharedDriveFile { /// Mechanism by which students access the Drive item. #[serde(rename="shareMode")] - pub share_mode: Option, + pub share_mode: Option, } impl client::Part for SharedDriveFile {} @@ -1491,7 +1491,7 @@ pub struct StateHistory { pub actor_user_id: Option, /// The workflow pipeline stage. - pub state: Option, + pub state: Option, /// When the submission entered this state. #[serde(rename="stateTimestamp")] @@ -1574,7 +1574,7 @@ pub struct StudentSubmission { /// Type of course work this submission is for. Read-only. #[serde(rename="courseWorkType")] - pub course_work_type: Option, + pub course_work_type: Option, /// Creation time of this submission. This may be unset if the student has not accessed this item. Read-only. #[serde(rename="creationTime")] @@ -1599,7 +1599,7 @@ pub struct StudentSubmission { pub short_answer_submission: Option, /// State of this submission. Read-only. - pub state: Option, + pub state: Option, /// The history of the submission (includes state and grade histories). Read-only. #[serde(rename="submissionHistory")] diff --git a/gen/classroom1/src/lib.rs b/gen/classroom1/src/lib.rs index 7af9d42e0d..4d8c1109c3 100644 --- a/gen/classroom1/src/lib.rs +++ b/gen/classroom1/src/lib.rs @@ -147,11 +147,11 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.courses().course_work_student_submissions_list("courseId", "courseWorkId") -//! .user_id("takimata") -//! .add_states("amet.") -//! .page_token("duo") -//! .page_size(-55) -//! .late("gubergren") +//! .user_id("sed") +//! .add_states(&Default::default()) +//! .page_token("amet.") +//! .page_size(-59) +//! .late(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/cloudasset1/src/api/call_builders.rs b/gen/cloudasset1/src/api/call_builders.rs index 59b1a4d54f..ea4ff520fe 100644 --- a/gen/cloudasset1/src/api/call_builders.rs +++ b/gen/cloudasset1/src/api/call_builders.rs @@ -30,8 +30,8 @@ use super::*; /// .read_time(chrono::Utc::now()) /// .page_token("At") /// .page_size(-8) -/// .content_type("sed") -/// .add_asset_types("amet.") +/// .content_type(&Default::default()) +/// .add_asset_types("sed") /// .doit().await; /// # } /// ``` @@ -44,7 +44,7 @@ pub struct AssetListCall<'a, S> pub(super) _read_time: Option>, pub(super) _page_token: Option, pub(super) _page_size: Option, - pub(super) _content_type: Option, + pub(super) _content_type: Option, pub(super) _asset_types: Vec, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -82,7 +82,7 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._relationship_types.len() > 0 { for f in self._relationship_types.iter() { params.push("relationshipTypes", f); @@ -251,8 +251,8 @@ where /// Asset content type. If not specified, no content but the asset name will be returned. /// /// Sets the *content type* query property to the given value. - pub fn content_type(mut self, new_value: &str) -> AssetListCall<'a, S> { - self._content_type = Some(new_value.to_string()); + pub fn content_type(mut self, new_value: &AssetContentTypeEnum) -> AssetListCall<'a, S> { + self._content_type = Some(new_value.clone()); self } /// A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types. @@ -366,7 +366,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.effective_iam_policies().batch_get("scope") -/// .add_names("amet.") +/// .add_names("takimata") /// .doit().await; /// # } /// ``` @@ -412,7 +412,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -694,7 +694,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -979,7 +979,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()); @@ -1241,7 +1241,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()); @@ -1503,7 +1503,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1772,7 +1772,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()); @@ -2057,7 +2057,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()); @@ -2281,7 +2281,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.saved_queries().create(req, "parent") -/// .saved_query_id("ea") +/// .saved_query_id("dolor") /// .doit().await; /// # } /// ``` @@ -2328,7 +2328,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._saved_query_id.as_ref() { params.push("savedQueryId", value); } @@ -2623,7 +2623,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()); @@ -2885,7 +2885,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()); @@ -3103,9 +3103,9 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.saved_queries().list("parent") -/// .page_token("duo") -/// .page_size(-50) -/// .filter("sed") +/// .page_token("amet") +/// .page_size(-20) +/// .filter("ipsum") /// .doit().await; /// # } /// ``` @@ -3153,7 +3153,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._page_token.as_ref() { params.push("pageToken", value); } @@ -3454,7 +3454,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3705,7 +3705,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().analyze_iam_policy("scope") -/// .saved_analysis_query("rebum.") +/// .saved_analysis_query("gubergren") /// .execution_timeout(chrono::Duration::seconds(5840181)) /// .analysis_query_resource_selector_full_resource_name("ipsum") /// .analysis_query_options_output_resource_edges(true) @@ -3775,7 +3775,7 @@ where } let mut params = Params::with_capacity(16 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if let Some(value) = self._saved_analysis_query.as_ref() { params.push("savedAnalysisQuery", value); } @@ -4180,7 +4180,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); params.extend(self._additional_params.iter()); @@ -4421,8 +4421,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().analyze_move("resource") -/// .view("et") -/// .destination_parent("sed") +/// .view(&Default::default()) +/// .destination_parent("et") /// .doit().await; /// # } /// ``` @@ -4431,7 +4431,7 @@ pub struct MethodAnalyzeMoveCall<'a, S> pub(super) hub: &'a CloudAsset, pub(super) _resource: String, - pub(super) _view: Option, + pub(super) _view: Option, pub(super) _destination_parent: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -4469,7 +4469,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._view.as_ref() { params.push("view", value); } @@ -4593,8 +4593,8 @@ where /// Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL. /// /// Sets the *view* query property to the given value. - pub fn view(mut self, new_value: &str) -> MethodAnalyzeMoveCall<'a, S> { - self._view = Some(new_value.to_string()); + pub fn view(mut self, new_value: &MethodViewEnum) -> MethodAnalyzeMoveCall<'a, S> { + self._view = Some(new_value.clone()); self } /// Required. Name of the Google Cloud folder or organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a folder number (such as "folders/123") or an organization number (such as "organizations/123"). @@ -4708,9 +4708,9 @@ where /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().analyze_org_policies("scope") /// .page_token("et") -/// .page_size(-76) -/// .filter("erat") -/// .constraint("sed") +/// .page_size(-68) +/// .filter("vero") +/// .constraint("erat") /// .doit().await; /// # } /// ``` @@ -4759,7 +4759,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5017,10 +5017,10 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().analyze_org_policy_governed_assets("scope") -/// .page_token("dolore") -/// .page_size(-22) -/// .filter("voluptua.") -/// .constraint("amet.") +/// .page_token("duo") +/// .page_size(-34) +/// .filter("et") +/// .constraint("voluptua.") /// .doit().await; /// # } /// ``` @@ -5069,7 +5069,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5327,9 +5327,9 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().analyze_org_policy_governed_containers("scope") -/// .page_token("diam") -/// .page_size(-49) -/// .filter("et") +/// .page_token("consetetur") +/// .page_size(-92) +/// .filter("dolor") /// .constraint("et") /// .doit().await; /// # } @@ -5379,7 +5379,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5637,11 +5637,11 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().batch_get_assets_history("parent") -/// .add_relationship_types("Stet") +/// .add_relationship_types("sadipscing") /// .read_time_window_start_time(chrono::Utc::now()) /// .read_time_window_end_time(chrono::Utc::now()) -/// .content_type("dolor") -/// .add_asset_names("duo") +/// .content_type(&Default::default()) +/// .add_asset_names("Stet") /// .doit().await; /// # } /// ``` @@ -5653,7 +5653,7 @@ pub struct MethodBatchGetAssetsHistoryCall<'a, S> pub(super) _relationship_types: Vec, pub(super) _read_time_window_start_time: Option>, pub(super) _read_time_window_end_time: Option>, - pub(super) _content_type: Option, + pub(super) _content_type: Option, pub(super) _asset_names: Vec, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -5691,7 +5691,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._relationship_types.len() > 0 { for f in self._relationship_types.iter() { params.push("relationshipTypes", f); @@ -5850,8 +5850,8 @@ where /// Optional. The content type. /// /// Sets the *content type* query property to the given value. - pub fn content_type(mut self, new_value: &str) -> MethodBatchGetAssetsHistoryCall<'a, S> { - self._content_type = Some(new_value.to_string()); + pub fn content_type(mut self, new_value: &MethodContentTypeEnum) -> MethodBatchGetAssetsHistoryCall<'a, S> { + self._content_type = Some(new_value.clone()); self } /// A list of the full names of the assets. See: https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request. @@ -6016,7 +6016,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6308,7 +6308,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6549,11 +6549,11 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().search_all_iam_policies("scope") -/// .query("Stet") -/// .page_token("vero") -/// .page_size(-44) -/// .order_by("Lorem") -/// .add_asset_types("diam") +/// .query("vero") +/// .page_token("invidunt") +/// .page_size(-65) +/// .order_by("vero") +/// .add_asset_types("elitr") /// .doit().await; /// # } /// ``` @@ -6603,7 +6603,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -6875,11 +6875,11 @@ where /// // Values shown here are possibly random and not representative ! /// let result = hub.methods().search_all_resources("scope") /// .read_mask(&Default::default()) -/// .query("ipsum") -/// .page_token("accusam") -/// .page_size(-59) -/// .order_by("consetetur") -/// .add_asset_types("voluptua.") +/// .query("diam") +/// .page_token("no") +/// .page_size(-100) +/// .order_by("accusam") +/// .add_asset_types("takimata") /// .doit().await; /// # } /// ``` @@ -6930,7 +6930,7 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("scope", self._scope); + params.push("scope", &self._scope); if let Some(value) = self._read_mask.as_ref() { params.push("readMask", value.to_string()); } diff --git a/gen/cloudasset1/src/api/mod.rs b/gen/cloudasset1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudasset1/src/api/mod.rs +++ b/gen/cloudasset1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudasset1/src/api/schemas.rs b/gen/cloudasset1/src/api/schemas.rs index 245ed552c2..f0493baa20 100644 --- a/gen/cloudasset1/src/api/schemas.rs +++ b/gen/cloudasset1/src/api/schemas.rs @@ -342,7 +342,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -463,7 +463,7 @@ pub struct ConditionEvaluation { /// The evaluation result. #[serde(rename="evaluationValue")] - pub evaluation_value: Option, + pub evaluation_value: Option, } impl client::Part for ConditionEvaluation {} @@ -582,7 +582,7 @@ pub struct ExportAssetsRequest { /// Asset content type. If not specified, no content but the asset name will be returned. #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// Required. Output configuration indicating where the results will be output to. #[serde(rename="outputConfig")] @@ -653,7 +653,7 @@ pub struct Feed { /// Asset content type. If not specified, no content but the asset name and type will be returned. #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// Required. Feed output configuration defining where the asset updates are published to. #[serde(rename="feedOutputConfig")] @@ -851,7 +851,7 @@ pub struct GoogleCloudAssetV1BigQueryDestination { /// The partition key for BigQuery partitioned table. #[serde(rename="partitionKey")] - pub partition_key: Option, + pub partition_key: Option, /// Required. The prefix of the BigQuery tables to which the analysis results will be written. Tables will be created based on this table_prefix if not exist: * _analysis table will contain export operation's metadata. * _analysis_result will contain all the IamPolicyAnalysisResult. When [partition_key] is specified, both tables will be partitioned based on the [partition_key]. #[serde(rename="tablePrefix")] @@ -890,7 +890,7 @@ pub struct GoogleCloudAssetV1Constraint { /// The evaluation behavior of this constraint in the absence of 'Policy'. #[serde(rename="constraintDefault")] - pub constraint_default: Option, + pub constraint_default: Option, /// Detailed description of what this `Constraint` controls as well as how and where it is enforced. pub description: Option, @@ -920,7 +920,7 @@ pub struct GoogleCloudAssetV1CustomConstraint { /// Allow or deny type. #[serde(rename="actionType")] - pub action_type: Option, + pub action_type: Option, /// Organization Policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true` pub condition: Option, @@ -934,7 +934,7 @@ pub struct GoogleCloudAssetV1CustomConstraint { /// All the operations being applied for this constraint. #[serde(rename="methodTypes")] - pub method_types: Option>, + pub method_types: Option>, /// Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms" pub name: Option, @@ -1183,7 +1183,7 @@ pub struct GoogleCloudOrgpolicyV1ListPolicy { /// The policy all_values state. #[serde(rename="allValues")] - pub all_values: Option, + pub all_values: Option, /// List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. #[serde(rename="allowedValues")] @@ -1338,7 +1338,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1BasicLevel { /// How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND. #[serde(rename="combiningFunction")] - pub combining_function: Option, + pub combining_function: Option, /// Required. A list of requirements for the `AccessLevel` to be granted. pub conditions: Option>, @@ -1405,11 +1405,11 @@ pub struct GoogleIdentityAccesscontextmanagerV1DevicePolicy { /// Allowed device management levels, an empty list allows all management levels. #[serde(rename="allowedDeviceManagementLevels")] - pub allowed_device_management_levels: Option>, + pub allowed_device_management_levels: Option>, /// Allowed encryptions statuses, an empty list allows all statuses. #[serde(rename="allowedEncryptionStatuses")] - pub allowed_encryption_statuses: Option>, + pub allowed_encryption_statuses: Option>, /// Allowed OS versions, an empty list allows all types and all versions. #[serde(rename="osConstraints")] @@ -1444,7 +1444,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1EgressFrom { /// Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. #[serde(rename="identityType")] - pub identity_type: Option, + pub identity_type: Option, } impl client::Part for GoogleIdentityAccesscontextmanagerV1EgressFrom {} @@ -1505,7 +1505,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1IngressFrom { /// Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. #[serde(rename="identityType")] - pub identity_type: Option, + pub identity_type: Option, /// Sources that this IngressPolicy authorizes access from. pub sources: Option>, @@ -1603,7 +1603,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1OsConstraint { /// Required. The allowed OS type. #[serde(rename="osType")] - pub os_type: Option, + pub os_type: Option, /// Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to domain policies, and the caller has permission to call the API targeted by the request. #[serde(rename="requireVerifiedChromeOs")] @@ -1629,7 +1629,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1ServicePerimeter { /// Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, the restricted service list as well as access level lists must be empty. #[serde(rename="perimeterType")] - pub perimeter_type: Option, + pub perimeter_type: Option, /// Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the "use_explicit_dry_run_spec" flag is set. pub spec: Option, @@ -1829,7 +1829,7 @@ pub struct IamPolicyAnalysisState { pub cause: Option, /// The Google standard error code that best describes the state. For example: - OK means the analysis on this entity has been successfully finished; - PERMISSION_DENIED means an access denied error is encountered; - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time; - pub code: Option, + pub code: Option, } impl client::Part for IamPolicyAnalysisState {} @@ -1935,11 +1935,11 @@ pub struct Item { /// The origin of this inventory item. #[serde(rename="originType")] - pub origin_type: Option, + pub origin_type: Option, /// The specific type of inventory, correlating to its specific details. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// When this inventory item was last modified. #[serde(rename="updateTime")] @@ -2235,7 +2235,7 @@ pub struct PartitionSpec { /// The partition key for BigQuery partitioned table. #[serde(rename="partitionKey")] - pub partition_key: Option, + pub partition_key: Option, } impl client::Part for PartitionSpec {} @@ -2936,7 +2936,7 @@ pub struct TemporalAsset { /// State of prior_asset. #[serde(rename="priorAssetState")] - pub prior_asset_state: Option, + pub prior_asset_state: Option, /// The time window when the asset data and state was observed. pub window: Option, diff --git a/gen/cloudasset1_beta1/src/api/call_builders.rs b/gen/cloudasset1_beta1/src/api/call_builders.rs index aa3b468af0..1f2ccf5245 100644 --- a/gen/cloudasset1_beta1/src/api/call_builders.rs +++ b/gen/cloudasset1_beta1/src/api/call_builders.rs @@ -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()); @@ -339,7 +339,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -624,7 +624,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()); @@ -844,8 +844,8 @@ where /// let result = hub.organizations().batch_get_assets_history("parent") /// .read_time_window_start_time(chrono::Utc::now()) /// .read_time_window_end_time(chrono::Utc::now()) -/// .content_type("sed") -/// .add_asset_names("amet.") +/// .content_type(&Default::default()) +/// .add_asset_names("sed") /// .doit().await; /// # } /// ``` @@ -856,7 +856,7 @@ pub struct OrganizationBatchGetAssetsHistoryCall<'a, S> pub(super) _parent: String, pub(super) _read_time_window_start_time: Option>, pub(super) _read_time_window_end_time: Option>, - pub(super) _content_type: Option, + pub(super) _content_type: Option, pub(super) _asset_names: Vec, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -894,7 +894,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._read_time_window_start_time.as_ref() { params.push("readTimeWindow.startTime", ::client::serde::datetime_to_string(&value)); } @@ -1040,8 +1040,8 @@ where /// Optional. The content type. /// /// Sets the *content type* query property to the given value. - pub fn content_type(mut self, new_value: &str) -> OrganizationBatchGetAssetsHistoryCall<'a, S> { - self._content_type = Some(new_value.to_string()); + pub fn content_type(mut self, new_value: &OrganizationContentTypeEnum) -> OrganizationBatchGetAssetsHistoryCall<'a, S> { + self._content_type = Some(new_value.clone()); self } /// A list of the full names of the assets. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request. @@ -1206,7 +1206,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1491,7 +1491,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()); @@ -1711,8 +1711,8 @@ where /// let result = hub.projects().batch_get_assets_history("parent") /// .read_time_window_start_time(chrono::Utc::now()) /// .read_time_window_end_time(chrono::Utc::now()) -/// .content_type("ipsum") -/// .add_asset_names("gubergren") +/// .content_type(&Default::default()) +/// .add_asset_names("duo") /// .doit().await; /// # } /// ``` @@ -1723,7 +1723,7 @@ pub struct ProjectBatchGetAssetsHistoryCall<'a, S> pub(super) _parent: String, pub(super) _read_time_window_start_time: Option>, pub(super) _read_time_window_end_time: Option>, - pub(super) _content_type: Option, + pub(super) _content_type: Option, pub(super) _asset_names: Vec, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -1761,7 +1761,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._read_time_window_start_time.as_ref() { params.push("readTimeWindow.startTime", ::client::serde::datetime_to_string(&value)); } @@ -1907,8 +1907,8 @@ where /// Optional. The content type. /// /// Sets the *content type* query property to the given value. - pub fn content_type(mut self, new_value: &str) -> ProjectBatchGetAssetsHistoryCall<'a, S> { - self._content_type = Some(new_value.to_string()); + pub fn content_type(mut self, new_value: &ProjectContentTypeEnum) -> ProjectBatchGetAssetsHistoryCall<'a, S> { + self._content_type = Some(new_value.clone()); self } /// A list of the full names of the assets. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request. @@ -2073,7 +2073,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); diff --git a/gen/cloudasset1_beta1/src/api/mod.rs b/gen/cloudasset1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudasset1_beta1/src/api/mod.rs +++ b/gen/cloudasset1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudasset1_beta1/src/api/schemas.rs b/gen/cloudasset1_beta1/src/api/schemas.rs index 1f50b94116..935d0218de 100644 --- a/gen/cloudasset1_beta1/src/api/schemas.rs +++ b/gen/cloudasset1_beta1/src/api/schemas.rs @@ -74,7 +74,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -141,7 +141,7 @@ pub struct ExportAssetsRequest { /// Asset content type. If not specified, no content but the asset name will be returned. #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// Required. Output configuration indicating where the results will be output to. All results will be in newline delimited JSON format. #[serde(rename="outputConfig")] @@ -223,7 +223,7 @@ pub struct GoogleCloudOrgpolicyV1ListPolicy { /// The policy all_values state. #[serde(rename="allValues")] - pub all_values: Option, + pub all_values: Option, /// List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. #[serde(rename="allowedValues")] @@ -378,7 +378,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1BasicLevel { /// How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND. #[serde(rename="combiningFunction")] - pub combining_function: Option, + pub combining_function: Option, /// Required. A list of requirements for the `AccessLevel` to be granted. pub conditions: Option>, @@ -445,11 +445,11 @@ pub struct GoogleIdentityAccesscontextmanagerV1DevicePolicy { /// Allowed device management levels, an empty list allows all management levels. #[serde(rename="allowedDeviceManagementLevels")] - pub allowed_device_management_levels: Option>, + pub allowed_device_management_levels: Option>, /// Allowed encryptions statuses, an empty list allows all statuses. #[serde(rename="allowedEncryptionStatuses")] - pub allowed_encryption_statuses: Option>, + pub allowed_encryption_statuses: Option>, /// Allowed OS versions, an empty list allows all types and all versions. #[serde(rename="osConstraints")] @@ -484,7 +484,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1EgressFrom { /// Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. #[serde(rename="identityType")] - pub identity_type: Option, + pub identity_type: Option, } impl client::Part for GoogleIdentityAccesscontextmanagerV1EgressFrom {} @@ -545,7 +545,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1IngressFrom { /// Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. #[serde(rename="identityType")] - pub identity_type: Option, + pub identity_type: Option, /// Sources that this IngressPolicy authorizes access from. pub sources: Option>, @@ -643,7 +643,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1OsConstraint { /// Required. The allowed OS type. #[serde(rename="osType")] - pub os_type: Option, + pub os_type: Option, /// Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to domain policies, and the caller has permission to call the API targeted by the request. #[serde(rename="requireVerifiedChromeOs")] @@ -669,7 +669,7 @@ pub struct GoogleIdentityAccesscontextmanagerV1ServicePerimeter { /// Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, the restricted service list as well as access level lists must be empty. #[serde(rename="perimeterType")] - pub perimeter_type: Option, + pub perimeter_type: Option, /// Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the "use_explicit_dry_run_spec" flag is set. pub spec: Option, diff --git a/gen/cloudbilling1/src/api/call_builders.rs b/gen/cloudbilling1/src/api/call_builders.rs index f2dc3eef2b..c71b62183a 100644 --- a/gen/cloudbilling1/src/api/call_builders.rs +++ b/gen/cloudbilling1/src/api/call_builders.rs @@ -1392,7 +1392,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2549,7 +2549,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()); @@ -2813,7 +2813,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()); } @@ -3677,7 +3677,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3979,7 +3979,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()); @@ -4271,7 +4271,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()); @@ -5420,7 +5420,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()); @@ -5689,7 +5689,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()); @@ -5984,7 +5984,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._start_time.as_ref() { params.push("startTime", ::client::serde::datetime_to_string(&value)); } diff --git a/gen/cloudbilling1/src/api/mod.rs b/gen/cloudbilling1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudbilling1/src/api/mod.rs +++ b/gen/cloudbilling1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudbilling1/src/api/schemas.rs b/gen/cloudbilling1/src/api/schemas.rs index b6ce8eacdf..159a1dd4b2 100644 --- a/gen/cloudbilling1/src/api/schemas.rs +++ b/gen/cloudbilling1/src/api/schemas.rs @@ -13,11 +13,11 @@ pub struct AggregationInfo { /// no description provided #[serde(rename="aggregationInterval")] - pub aggregation_interval: Option, + pub aggregation_interval: Option, /// no description provided #[serde(rename="aggregationLevel")] - pub aggregation_level: Option, + pub aggregation_level: Option, } impl client::Part for AggregationInfo {} @@ -56,7 +56,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -187,7 +187,7 @@ pub struct GeoTaxonomy { /// The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GeoTaxonomy {} diff --git a/gen/cloudbuild1/src/api/mod.rs b/gen/cloudbuild1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudbuild1/src/api/mod.rs +++ b/gen/cloudbuild1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudbuild1/src/api/schemas.rs b/gen/cloudbuild1/src/api/schemas.rs index 0cb60ac103..f67ab0170a 100644 --- a/gen/cloudbuild1/src/api/schemas.rs +++ b/gen/cloudbuild1/src/api/schemas.rs @@ -35,7 +35,7 @@ pub struct ApprovalResult { pub comment: Option, /// Required. The decision of this manual approval. - pub decision: Option, + pub decision: Option, /// Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build. pub url: Option, @@ -434,7 +434,7 @@ pub struct Build { pub start_time: Option>, /// Output only. Status of the build. - pub status: Option, + pub status: Option, /// Output only. Customer-readable message about the current status. #[serde(rename="statusDetail")] @@ -479,7 +479,7 @@ pub struct BuildApproval { pub result: Option, /// Output only. The state of this build's approval. - pub state: Option, + pub state: Option, } impl client::Part for BuildApproval {} @@ -507,21 +507,21 @@ pub struct BuildOptions { /// Option to define build log streaming behavior to Google Cloud Storage. #[serde(rename="logStreamingOption")] - pub log_streaming_option: Option, + pub log_streaming_option: Option, /// Option to specify the logging mode, which determines if and where build logs are stored. - pub logging: Option, + pub logging: Option, /// Compute Engine machine type on which to run the build. #[serde(rename="machineType")] - pub machine_type: Option, + pub machine_type: Option, /// Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. pub pool: Option, /// Requested verifiability options. #[serde(rename="requestedVerifyOption")] - pub requested_verify_option: Option, + pub requested_verify_option: Option, /// A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build. #[serde(rename="secretEnv")] @@ -529,11 +529,11 @@ pub struct BuildOptions { /// Requested hash for SourceProvenance. #[serde(rename="sourceProvenanceHash")] - pub source_provenance_hash: Option>, + pub source_provenance_hash: Option>, /// Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file. #[serde(rename="substitutionOption")] - pub substitution_option: Option, + pub substitution_option: Option, /// Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration. pub volumes: Option>, @@ -596,7 +596,7 @@ pub struct BuildStep { pub secret_env: Option>, /// Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses. - pub status: Option, + pub status: Option, /// Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] @@ -659,7 +659,7 @@ pub struct BuildTrigger { /// EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set. #[serde(rename="eventType")] - pub event_type: Option, + pub event_type: Option, /// Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml). pub filename: Option, @@ -687,7 +687,7 @@ pub struct BuildTrigger { /// If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error. #[serde(rename="includeBuildLogs")] - pub include_build_logs: Option, + pub include_build_logs: Option, /// If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build. #[serde(rename="includedFiles")] @@ -874,7 +874,7 @@ pub struct FailureInfo { /// The name of the failure. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for FailureInfo {} @@ -917,7 +917,7 @@ pub struct GitFileSource { /// See RepoType above. #[serde(rename="repoType")] - pub repo_type: Option, + pub repo_type: Option, /// The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path. pub revision: Option, @@ -1283,7 +1283,7 @@ pub struct GitRepoSource { /// See RepoType below. #[serde(rename="repoType")] - pub repo_type: Option, + pub repo_type: Option, /// The URI of the repo. Either uri or repository can be specified and is required. pub uri: Option, @@ -1302,7 +1302,7 @@ pub struct Hash { /// The type of hash that was performed. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The hash value. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -1591,7 +1591,7 @@ pub struct NetworkConfig { /// Option to configure network egress for the workers. #[serde(rename="egressOption")] - pub egress_option: Option, + pub egress_option: Option, /// Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment) #[serde(rename="peeredNetwork")] @@ -1712,7 +1712,7 @@ pub struct PubsubConfig { pub service_account_email: Option, /// Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. - pub state: Option, + pub state: Option, /// Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`. pub subscription: Option, @@ -1737,7 +1737,7 @@ pub struct PullRequestFilter { /// Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`. #[serde(rename="commentControl")] - pub comment_control: Option, + pub comment_control: Option, /// If true, branches that do NOT match the git_ref will trigger a build. #[serde(rename="invertRegex")] @@ -1909,7 +1909,7 @@ pub struct RepositoryEventConfig { /// Output only. The type of the SCM vendor the repository points to. #[serde(rename="repositoryType")] - pub repository_type: Option, + pub repository_type: Option, } impl client::Part for RepositoryEventConfig {} @@ -2298,7 +2298,7 @@ impl client::Part for Volume {} pub struct Warning { /// The priority for this warning. - pub priority: Option, + pub priority: Option, /// Explanation of the warning generated. pub text: Option, @@ -2319,7 +2319,7 @@ pub struct WebhookConfig { pub secret: Option, /// Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. - pub state: Option, + pub state: Option, } impl client::Part for WebhookConfig {} @@ -2386,7 +2386,7 @@ pub struct WorkerPool { pub private_pool_v1_config: Option, /// Output only. `WorkerPool` state. - pub state: Option, + pub state: Option, /// Output only. A unique identifier for the `WorkerPool`. pub uid: Option, diff --git a/gen/cloudchannel1/src/api/mod.rs b/gen/cloudchannel1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudchannel1/src/api/mod.rs +++ b/gen/cloudchannel1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudchannel1/src/api/schemas.rs b/gen/cloudchannel1/src/api/schemas.rs index be067a900f..25285b9647 100644 --- a/gen/cloudchannel1/src/api/schemas.rs +++ b/gen/cloudchannel1/src/api/schemas.rs @@ -187,7 +187,7 @@ pub struct GoogleCloudChannelV1ChannelPartnerLink { /// Required. State of the channel partner link. #[serde(rename="linkState")] - pub link_state: Option, + pub link_state: Option, /// Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}. pub name: Option, @@ -322,7 +322,7 @@ pub struct GoogleCloudChannelV1CloudIdentityInfo { /// CustomerType indicates verification type needed for using services. #[serde(rename="customerType")] - pub customer_type: Option, + pub customer_type: Option, /// Edu information about the customer. #[serde(rename="eduData")] @@ -362,7 +362,7 @@ pub struct GoogleCloudChannelV1Column { /// The type of the values for this column. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// The column's display name. #[serde(rename="displayName")] @@ -409,7 +409,7 @@ pub struct GoogleCloudChannelV1ConditionalOverride { /// Required. The RebillingBasis to use for the applied override. Shows the relative cost based on your repricing costs. #[serde(rename="rebillingBasis")] - pub rebilling_basis: Option, + pub rebilling_basis: Option, /// Required. Specifies the condition which, if met, will apply the override. #[serde(rename="repricingCondition")] @@ -571,7 +571,7 @@ pub struct GoogleCloudChannelV1CustomerConstraints { /// Allowed Customer Type. #[serde(rename="allowedCustomerTypes")] - pub allowed_customer_types: Option>, + pub allowed_customer_types: Option>, /// Allowed geographical regions of the customer. #[serde(rename="allowedRegions")] @@ -579,7 +579,7 @@ pub struct GoogleCloudChannelV1CustomerConstraints { /// Allowed Promotional Order Type. Present for Promotional offers. #[serde(rename="promotionalOrderTypes")] - pub promotional_order_types: Option>, + pub promotional_order_types: Option>, } impl client::Part for GoogleCloudChannelV1CustomerConstraints {} @@ -653,11 +653,11 @@ pub struct GoogleCloudChannelV1EduData { /// Size of the institute. #[serde(rename="instituteSize")] - pub institute_size: Option, + pub institute_size: Option, /// Designated institute type of customer. #[serde(rename="instituteType")] - pub institute_type: Option, + pub institute_type: Option, /// Web address for the edu customer's institution. pub website: Option, @@ -705,7 +705,7 @@ pub struct GoogleCloudChannelV1Entitlement { /// Output only. Current provisioning state of the entitlement. #[serde(rename="provisioningState")] - pub provisioning_state: Option, + pub provisioning_state: Option, /// Optional. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given, it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters. This is only supported for Google Workspace entitlements. #[serde(rename="purchaseOrderId")] @@ -713,7 +713,7 @@ pub struct GoogleCloudChannelV1Entitlement { /// Output only. Enumerable of all current suspension reasons for an entitlement. #[serde(rename="suspensionReasons")] - pub suspension_reasons: Option>, + pub suspension_reasons: Option>, /// Output only. Settings for trial offers. #[serde(rename="trialSettings")] @@ -1269,7 +1269,7 @@ pub struct GoogleCloudChannelV1Media { /// Type of the media. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudChannelV1Media {} @@ -1376,7 +1376,7 @@ pub struct GoogleCloudChannelV1ParameterDefinition { /// Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here. #[serde(rename="parameterType")] - pub parameter_type: Option, + pub parameter_type: Option, } impl client::Part for GoogleCloudChannelV1ParameterDefinition {} @@ -1410,7 +1410,7 @@ pub struct GoogleCloudChannelV1Period { /// Period Type. #[serde(rename="periodType")] - pub period_type: Option, + pub period_type: Option, } impl client::Part for GoogleCloudChannelV1Period {} @@ -1434,11 +1434,11 @@ pub struct GoogleCloudChannelV1Plan { /// Describes how a reseller will be billed. #[serde(rename="paymentPlan")] - pub payment_plan: Option, + pub payment_plan: Option, /// Specifies when the payment needs to happen. #[serde(rename="paymentType")] - pub payment_type: Option, + pub payment_type: Option, /// Present for Offers with a trial period. For trial-only Offers, a paid service needs to start before the trial period ends for continued service. For Regular Offers with a trial period, the regular pricing goes into effect when trial period ends, or if paid service is started before the end of the trial period. #[serde(rename="trialPeriod")] @@ -1492,7 +1492,7 @@ pub struct GoogleCloudChannelV1PriceByResource { /// Resource Type. Example: SEAT #[serde(rename="resourceType")] - pub resource_type: Option, + pub resource_type: Option, } impl client::Part for GoogleCloudChannelV1PriceByResource {} @@ -1516,7 +1516,7 @@ pub struct GoogleCloudChannelV1PricePhase { /// Defines the phase period type. #[serde(rename="periodType")] - pub period_type: Option, + pub period_type: Option, /// Price of the phase. Present if there are no price tiers. pub price: Option, @@ -1709,7 +1709,7 @@ pub struct GoogleCloudChannelV1RenewalSettings { /// Describes how a reseller will be billed. #[serde(rename="paymentPlan")] - pub payment_plan: Option, + pub payment_plan: Option, /// If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time. #[serde(rename="resizeUnitCount")] @@ -1870,7 +1870,7 @@ pub struct GoogleCloudChannelV1RepricingConfig { /// Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply. #[serde(rename="rebillingBasis")] - pub rebilling_basis: Option, + pub rebilling_basis: Option, } impl client::Part for GoogleCloudChannelV1RepricingConfig {} @@ -2035,7 +2035,7 @@ pub struct GoogleCloudChannelV1TransferEligibility { /// Specified the reason for ineligibility. #[serde(rename="ineligibilityReason")] - pub ineligibility_reason: Option, + pub ineligibility_reason: Option, /// Whether reseller is eligible to transfer the SKU. #[serde(rename="isEligible")] diff --git a/gen/clouddebugger2/README.md b/gen/clouddebugger2/README.md index c541c8aabf..f0dd36e229 100644 --- a/gen/clouddebugger2/README.md +++ b/gen/clouddebugger2/README.md @@ -104,7 +104,7 @@ let mut req = Breakpoint::default(); // Values shown here are possibly random and not representative ! let result = hub.debugger().debuggees_breakpoints_set(req, "debuggeeId") .client_version("magna") - .canary_option("no") + .canary_option(&Default::default()) .doit().await; match result { diff --git a/gen/clouddebugger2/src/api/hub.rs b/gen/clouddebugger2/src/api/hub.rs index 77f3db8e64..1309ae6356 100644 --- a/gen/clouddebugger2/src/api/hub.rs +++ b/gen/clouddebugger2/src/api/hub.rs @@ -38,8 +38,8 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.debugger().debuggees_breakpoints_set(req, "debuggeeId") -/// .client_version("sed") -/// .canary_option("amet.") +/// .client_version("At") +/// .canary_option(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/clouddebugger2/src/api/mod.rs b/gen/clouddebugger2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/clouddebugger2/src/api/mod.rs +++ b/gen/clouddebugger2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/clouddebugger2/src/api/schemas.rs b/gen/clouddebugger2/src/api/schemas.rs index f28d938f15..42ebc7f08b 100644 --- a/gen/clouddebugger2/src/api/schemas.rs +++ b/gen/clouddebugger2/src/api/schemas.rs @@ -8,7 +8,7 @@ use super::*; pub struct AliasContext { /// The alias kind. - pub kind: Option, + pub kind: Option, /// The alias name. pub name: Option, @@ -30,7 +30,7 @@ impl client::Part for AliasContext {} pub struct Breakpoint { /// Action that the agent should perform when the code at the breakpoint location is hit. - pub action: Option, + pub action: Option, /// The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value is meaningless when the breakpoint is not in CANARY_ACTIVE state. #[serde(rename="canaryExpireTime")] @@ -69,7 +69,7 @@ pub struct Breakpoint { /// Indicates the severity of the log. Only relevant when action is `LOG`. #[serde(rename="logLevel")] - pub log_level: Option, + pub log_level: Option, /// Only relevant when action is `LOG`. Defines the message to log when the breakpoint hits. The message may include parameter placeholders `$0`, `$1`, etc. These placeholders are replaced with the evaluated value of the appropriate expression. Expressions not referenced in `log_message_format` are not logged. Example: `Message received, id = $0, count = $1` with `expressions` = `[ message.id, message.count ]`. #[serde(rename="logMessageFormat")] @@ -80,7 +80,7 @@ pub struct Breakpoint { pub stack_frames: Option>, /// The current state of the breakpoint. - pub state: Option, + pub state: Option, /// Breakpoint status. The status includes an error flag and a human readable message. This field is usually unset. The message can be either informational or an error message. Regardless, clients should always display the text message back to the user. Error status indicates complete failure of the breakpoint. Example (non-final state): `Still loading symbols...` Examples (final state): * `Invalid line number` referring to location * `Field f not found in class C` referring to condition pub status: Option, @@ -178,7 +178,7 @@ pub struct Debuggee { /// Used when setting breakpoint canary for this debuggee. #[serde(rename="canaryMode")] - pub canary_mode: Option, + pub canary_mode: Option, /// Human readable description of the debuggee. Including a human-readable project name, environment name and version information is recommended. pub description: Option, @@ -596,7 +596,7 @@ pub struct StatusMessage { /// Reference to which the message applies. #[serde(rename="refersTo")] - pub refers_to: Option, + pub refers_to: Option, } impl client::Part for StatusMessage {} diff --git a/gen/clouddebugger2/src/lib.rs b/gen/clouddebugger2/src/lib.rs index 1b3d8ca1c4..5b037b6bb5 100644 --- a/gen/clouddebugger2/src/lib.rs +++ b/gen/clouddebugger2/src/lib.rs @@ -104,8 +104,8 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.debugger().debuggees_breakpoints_set(req, "debuggeeId") -//! .client_version("voluptua.") -//! .canary_option("At") +//! .client_version("ipsum") +//! .canary_option(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/clouddeploy1/src/api/mod.rs b/gen/clouddeploy1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/clouddeploy1/src/api/mod.rs +++ b/gen/clouddeploy1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/clouddeploy1/src/api/schemas.rs b/gen/clouddeploy1/src/api/schemas.rs index 7e151ea434..52fb995e8b 100644 --- a/gen/clouddeploy1/src/api/schemas.rs +++ b/gen/clouddeploy1/src/api/schemas.rs @@ -111,7 +111,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -355,7 +355,7 @@ pub struct DeployJobRun { /// Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded. #[serde(rename="failureCause")] - pub failure_cause: Option, + pub failure_cause: Option, /// Output only. Additional information about the deploy failure, if available. #[serde(rename="failureMessage")] @@ -450,7 +450,7 @@ pub struct ExecutionConfig { pub service_account: Option, /// Required. Usages when this configuration should be applied. - pub usages: Option>, + pub usages: Option>, /// Optional. The resource name of the `WorkerPool`, with the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this optional field is unspecified, the default Cloud Build pool will be used. #[serde(rename="workerPool")] @@ -523,7 +523,7 @@ pub struct Job { pub job_run: Option, /// Output only. The current state of the Job. - pub state: Option, + pub state: Option, /// Output only. A verify Job. #[serde(rename="verifyJob")] @@ -576,7 +576,7 @@ pub struct JobRun { pub start_time: Option>, /// Output only. The current state of the `JobRun`. - pub state: Option, + pub state: Option, /// Output only. Unique identifier of the `JobRun`. pub uid: Option, @@ -871,7 +871,7 @@ pub struct Phase { pub id: Option, /// Output only. Current state of the Phase. - pub state: Option, + pub state: Option, } impl client::Part for Phase {} @@ -1030,7 +1030,7 @@ pub struct Release { /// Output only. Current state of the render operation. #[serde(rename="renderState")] - pub render_state: Option, + pub render_state: Option, /// Filepath of the Skaffold config inside of the config URI. #[serde(rename="skaffoldConfigPath")] @@ -1121,7 +1121,7 @@ pub struct Rollout { /// Output only. Approval state of the `Rollout`. #[serde(rename="approvalState")] - pub approval_state: Option, + pub approval_state: Option, /// Output only. Time at which the `Rollout` was approved. #[serde(rename="approveTime")] @@ -1137,7 +1137,7 @@ pub struct Rollout { /// Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress. #[serde(rename="deployFailureCause")] - pub deploy_failure_cause: Option, + pub deploy_failure_cause: Option, /// Output only. Time at which the `Rollout` started deploying. #[serde(rename="deployStartTime")] @@ -1174,7 +1174,7 @@ pub struct Rollout { pub phases: Option>, /// Output only. Current state of the `Rollout`. - pub state: Option, + pub state: Option, /// Required. The ID of Target to which this `Rollout` is deploying. #[serde(rename="targetId")] @@ -1420,7 +1420,7 @@ pub struct TargetRender { /// Output only. Reason this render failed. This will always be unspecified while the render in progress. #[serde(rename="failureCause")] - pub failure_cause: Option, + pub failure_cause: Option, /// Output only. Additional information about the render failure, if available. #[serde(rename="failureMessage")] @@ -1432,7 +1432,7 @@ pub struct TargetRender { /// Output only. Current state of the render operation for this Target. #[serde(rename="renderingState")] - pub rendering_state: Option, + pub rendering_state: Option, } impl client::Part for TargetRender {} @@ -1552,7 +1552,7 @@ pub struct VerifyJobRun { /// Output only. The reason the verify failed. This will always be unspecified while the verify is in progress or if it succeeded. #[serde(rename="failureCause")] - pub failure_cause: Option, + pub failure_cause: Option, /// Output only. Additional information about the verify failure, if available. #[serde(rename="failureMessage")] diff --git a/gen/clouderrorreporting1_beta1/src/api/mod.rs b/gen/clouderrorreporting1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/clouderrorreporting1_beta1/src/api/mod.rs +++ b/gen/clouderrorreporting1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/clouderrorreporting1_beta1/src/api/schemas.rs b/gen/clouderrorreporting1_beta1/src/api/schemas.rs index 161e64fd4f..69ec83facc 100644 --- a/gen/clouderrorreporting1_beta1/src/api/schemas.rs +++ b/gen/clouderrorreporting1_beta1/src/api/schemas.rs @@ -89,7 +89,7 @@ pub struct ErrorGroup { /// Error group's resolution status. An unspecified resolution status will be interpreted as OPEN #[serde(rename="resolutionStatus")] - pub resolution_status: Option, + pub resolution_status: Option, /// Associated tracking issues. #[serde(rename="trackingIssues")] diff --git a/gen/cloudfunctions1/src/api/mod.rs b/gen/cloudfunctions1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudfunctions1/src/api/mod.rs +++ b/gen/cloudfunctions1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudfunctions1/src/api/schemas.rs b/gen/cloudfunctions1/src/api/schemas.rs index 97bc6b0c32..0cb681aba2 100644 --- a/gen/cloudfunctions1/src/api/schemas.rs +++ b/gen/cloudfunctions1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -143,7 +143,7 @@ pub struct CloudFunction { /// Docker Registry to use for this deployment. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments. #[serde(rename="dockerRegistry")] - pub docker_registry: Option, + pub docker_registry: Option, /// User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'. #[serde(rename="dockerRepository")] @@ -167,7 +167,7 @@ pub struct CloudFunction { /// The ingress settings for the function, controlling what traffic can reach it. #[serde(rename="ingressSettings")] - pub ingress_settings: Option, + pub ingress_settings: Option, /// Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user. #[serde(rename="kmsKeyName")] @@ -222,7 +222,7 @@ pub struct CloudFunction { pub source_upload_url: Option, /// Output only. Status of the function deployment. - pub status: Option, + pub status: Option, /// The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] @@ -243,7 +243,7 @@ pub struct CloudFunction { /// The egress settings for the connector, controlling what traffic is diverted through it. #[serde(rename="vpcConnectorEgressSettings")] - pub vpc_connector_egress_settings: Option, + pub vpc_connector_egress_settings: Option, } impl client::RequestValue for CloudFunction {} @@ -406,7 +406,7 @@ pub struct HttpsTrigger { /// The security level for the function. #[serde(rename="securityLevel")] - pub security_level: Option, + pub security_level: Option, /// Output only. The deployed url for the function. pub url: Option, diff --git a/gen/cloudidentity1/src/api/mod.rs b/gen/cloudidentity1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudidentity1/src/api/mod.rs +++ b/gen/cloudidentity1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudidentity1/src/api/schemas.rs b/gen/cloudidentity1/src/api/schemas.rs index bc755e010f..d2630fe1bd 100644 --- a/gen/cloudidentity1/src/api/schemas.rs +++ b/gen/cloudidentity1/src/api/schemas.rs @@ -101,7 +101,7 @@ pub struct DynamicGroupQuery { /// Resource type for the Dynamic Group Query #[serde(rename="resourceType")] - pub resource_type: Option, + pub resource_type: Option, } impl client::Part for DynamicGroupQuery {} @@ -116,7 +116,7 @@ impl client::Part for DynamicGroupQuery {} pub struct DynamicGroupStatus { /// Status of the dynamic group. - pub status: Option, + pub status: Option, /// The latest time at which the dynamic group is guaranteed to be in the given status. If status is `UP_TO_DATE`, the latest time at which the dynamic group was confirmed to be up-to-date. If status is `UPDATING_MEMBERSHIPS`, the time at which dynamic group was created. #[serde(rename="statusTime")] @@ -178,7 +178,7 @@ pub struct GoogleAppsCloudidentityDevicesV1AndroidAttributes { /// Ownership privileges on device. #[serde(rename="ownershipPrivilege")] - pub ownership_privilege: Option, + pub ownership_privilege: Option, /// Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy. #[serde(rename="supportsWorkProfile")] @@ -283,7 +283,7 @@ pub struct GoogleAppsCloudidentityDevicesV1ClientState { /// The compliance state of the resource as specified by the API client. #[serde(rename="complianceState")] - pub compliance_state: Option, + pub compliance_state: Option, /// Output only. The time the client state data was created. #[serde(rename="createTime")] @@ -298,7 +298,7 @@ pub struct GoogleAppsCloudidentityDevicesV1ClientState { /// The Health score of the resource. The Health score is the callers specification of the condition of the device from a usability point of view. For example, a third-party device management provider may specify a health score based on its compliance with organizational policies. #[serde(rename="healthScore")] - pub health_score: Option, + pub health_score: Option, /// The map of key-value attributes stored by callers specific to a device. The total serialized length of this map may not exceed 10KB. No limit is placed on the number of attributes in a map. #[serde(rename="keyValuePairs")] @@ -309,14 +309,14 @@ pub struct GoogleAppsCloudidentityDevicesV1ClientState { pub last_update_time: Option>, /// The management state of the resource as specified by the API client. - pub managed: Option, + pub managed: Option, /// Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device}/deviceUsers/{device_user}/clientState/{partner}`, where partner corresponds to the partner storing the data. For partners belonging to the "BeyondCorp Alliance", this is the partner ID specified to you by Google. For all other callers, this is a string of the form: `{customer}-suffix`, where `customer` is your customer ID. The *suffix* is any string the caller specifies. This string will be displayed verbatim in the administration console. This suffix is used in setting up Custom Access Levels in Context-Aware Access. Your organization's customer ID can be obtained from the URL: `GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `id` field in the response contains the customer ID starting with the letter 'C'. The customer ID to be used in this API is the string after the letter 'C' (not including 'C') pub name: Option, /// Output only. The owner of the ClientState #[serde(rename="ownerType")] - pub owner_type: Option, + pub owner_type: Option, /// A descriptive cause of the health score. #[serde(rename="scoreReason")] @@ -389,7 +389,7 @@ pub struct GoogleAppsCloudidentityDevicesV1Device { /// Output only. Represents whether the Device is compromised. #[serde(rename="compromisedState")] - pub compromised_state: Option, + pub compromised_state: Option, /// Output only. When the Company-Owned device was imported. This field is empty for BYOD devices. #[serde(rename="createTime")] @@ -401,7 +401,7 @@ pub struct GoogleAppsCloudidentityDevicesV1Device { /// Output only. Type of device. #[serde(rename="deviceType")] - pub device_type: Option, + pub device_type: Option, /// Output only. Whether developer options is enabled on device. #[serde(rename="enabledDeveloperOptions")] @@ -413,7 +413,7 @@ pub struct GoogleAppsCloudidentityDevicesV1Device { /// Output only. Device encryption state. #[serde(rename="encryptionState")] - pub encryption_state: Option, + pub encryption_state: Option, /// Output only. IMEI number of device if GSM device; empty otherwise. pub imei: Option, @@ -428,7 +428,7 @@ pub struct GoogleAppsCloudidentityDevicesV1Device { /// Output only. Management state of the device #[serde(rename="managementState")] - pub management_state: Option, + pub management_state: Option, /// Output only. Device manufacturer. Example: Motorola. pub manufacturer: Option, @@ -456,7 +456,7 @@ pub struct GoogleAppsCloudidentityDevicesV1Device { /// Output only. Whether the device is owned by the company or an individual #[serde(rename="ownerType")] - pub owner_type: Option, + pub owner_type: Option, /// Output only. OS release version. Example: 6.0. #[serde(rename="releaseVersion")] @@ -493,7 +493,7 @@ pub struct GoogleAppsCloudidentityDevicesV1DeviceUser { /// Compromised State of the DeviceUser object #[serde(rename="compromisedState")] - pub compromised_state: Option, + pub compromised_state: Option, /// When the user first signed in to the device #[serde(rename="createTime")] @@ -513,14 +513,14 @@ pub struct GoogleAppsCloudidentityDevicesV1DeviceUser { /// Output only. Management state of the user on the device. #[serde(rename="managementState")] - pub management_state: Option, + pub management_state: Option, /// Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the DeviceUser in format: `devices/{device}/deviceUsers/{device_user}`, where `device_user` uniquely identifies a user's use of a device. pub name: Option, /// Password state of the DeviceUser object #[serde(rename="passwordState")] - pub password_state: Option, + pub password_state: Option, /// Output only. User agent on the device for this specific user #[serde(rename="userAgent")] @@ -765,7 +765,7 @@ pub struct GroupRelation { /// The relation between the member and the transitive group. #[serde(rename="relationType")] - pub relation_type: Option, + pub relation_type: Option, /// Membership roles of the member for the group. pub roles: Option>, @@ -884,7 +884,7 @@ pub struct InboundSsoAssignment { /// Inbound SSO behavior. #[serde(rename="ssoMode")] - pub sso_mode: Option, + pub sso_mode: Option, /// Immutable. Must be of the form `groups/{group}`. #[serde(rename="targetGroup")] @@ -1117,7 +1117,7 @@ pub struct MemberRelation { /// The relation between the group and the transitive member. #[serde(rename="relationType")] - pub relation_type: Option, + pub relation_type: Option, /// The membership role details (i.e name of role and expiry time). pub roles: Option>, @@ -1173,7 +1173,7 @@ pub struct Membership { /// Output only. The type of the membership. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The time when the `Membership` was last updated. #[serde(rename="updateTime")] @@ -1216,7 +1216,7 @@ impl client::Part for MembershipRole {} pub struct MembershipRoleRestrictionEvaluation { /// Output only. The current state of the restriction - pub state: Option, + pub state: Option, } impl client::Part for MembershipRoleRestrictionEvaluation {} @@ -1335,7 +1335,7 @@ impl client::ResponseResult for Operation {} pub struct RestrictionEvaluation { /// Output only. The current state of the restriction - pub state: Option, + pub state: Option, } impl client::Part for RestrictionEvaluation {} @@ -1556,7 +1556,7 @@ pub struct SignInBehavior { /// When to redirect sign-ins to the IdP. #[serde(rename="redirectCondition")] - pub redirect_condition: Option, + pub redirect_condition: Option, } impl client::Part for SignInBehavior {} @@ -1639,7 +1639,7 @@ pub struct UserInvitation { pub name: Option, /// State of the `UserInvitation`. - pub state: Option, + pub state: Option, /// Time when the `UserInvitation` was last updated. #[serde(rename="updateTime")] diff --git a/gen/cloudiot1/src/api/mod.rs b/gen/cloudiot1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudiot1/src/api/mod.rs +++ b/gen/cloudiot1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudiot1/src/api/schemas.rs b/gen/cloudiot1/src/api/schemas.rs index 042d725e07..49bfefa9d5 100644 --- a/gen/cloudiot1/src/api/schemas.rs +++ b/gen/cloudiot1/src/api/schemas.rs @@ -119,7 +119,7 @@ pub struct Device { /// **Beta Feature** The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used. #[serde(rename="logLevel")] - pub log_level: Option, + pub log_level: Option, /// The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500. pub metadata: Option>, @@ -223,7 +223,7 @@ pub struct DeviceRegistry { /// **Beta Feature** The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level. #[serde(rename="logLevel")] - pub log_level: Option, + pub log_level: Option, /// The MQTT configuration for this device registry. #[serde(rename="mqttConfig")] @@ -332,11 +332,11 @@ pub struct GatewayConfig { /// Indicates how to authorize and/or authenticate devices to access the gateway. #[serde(rename="gatewayAuthMethod")] - pub gateway_auth_method: Option, + pub gateway_auth_method: Option, /// Indicates whether the device is a gateway. #[serde(rename="gatewayType")] - pub gateway_type: Option, + pub gateway_type: Option, /// [Output only] The ID of the gateway the device accessed most recently. #[serde(rename="lastAccessedGatewayId")] @@ -396,7 +396,7 @@ pub struct HttpConfig { /// If enabled, allows devices to use DeviceService via the HTTP protocol. Otherwise, any requests to DeviceService will fail for this registry. #[serde(rename="httpEnabledState")] - pub http_enabled_state: Option, + pub http_enabled_state: Option, } impl client::Part for HttpConfig {} @@ -526,7 +526,7 @@ pub struct MqttConfig { /// If enabled, allows connections using the MQTT protocol. Otherwise, MQTT connections to this registry will fail. #[serde(rename="mqttEnabledState")] - pub mqtt_enabled_state: Option, + pub mqtt_enabled_state: Option, } impl client::Part for MqttConfig {} @@ -573,7 +573,7 @@ pub struct PublicKeyCertificate { pub certificate: Option, /// The certificate format. - pub format: Option, + pub format: Option, /// [Output only] The certificate details. Used only for X.509 certificates. #[serde(rename="x509Details")] @@ -592,7 +592,7 @@ impl client::Part for PublicKeyCertificate {} pub struct PublicKeyCredential { /// The format of the key. - pub format: Option, + pub format: Option, /// The key data. pub key: Option, diff --git a/gen/cloudkms1/src/api/mod.rs b/gen/cloudkms1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudkms1/src/api/mod.rs +++ b/gen/cloudkms1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudkms1/src/api/schemas.rs b/gen/cloudkms1/src/api/schemas.rs index f74f8a0d87..8c29b5791b 100644 --- a/gen/cloudkms1/src/api/schemas.rs +++ b/gen/cloudkms1/src/api/schemas.rs @@ -47,7 +47,7 @@ pub struct AsymmetricDecryptResponse { /// The ProtectionLevel of the CryptoKeyVersion used in decryption. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// Integrity verification field. A flag indicating whether AsymmetricDecryptRequest.ciphertext_crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that AsymmetricDecryptRequest.ciphertext_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set AsymmetricDecryptRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries. #[serde(rename="verifiedCiphertextCrc32c")] @@ -107,7 +107,7 @@ pub struct AsymmetricSignResponse { /// The ProtectionLevel of the CryptoKeyVersion used for signing. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// The created signature. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -163,7 +163,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -306,7 +306,7 @@ pub struct CryptoKey { pub primary: Option, /// Immutable. The immutable purpose of this CryptoKey. - pub purpose: Option, + pub purpose: Option, /// next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation_period is set, next_rotation_time must also be set. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted. #[serde(rename="rotationPeriod")] @@ -340,7 +340,7 @@ impl client::ResponseResult for CryptoKey {} pub struct CryptoKeyVersion { /// Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports. - pub algorithm: Option, + pub algorithm: Option, /// Output only. Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM. pub attestation: Option, @@ -382,14 +382,14 @@ pub struct CryptoKeyVersion { /// Output only. The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// Output only. Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version. #[serde(rename="reimportEligible")] pub reimport_eligible: Option, /// The current state of the CryptoKeyVersion. - pub state: Option, + pub state: Option, } impl client::RequestValue for CryptoKeyVersion {} @@ -405,11 +405,11 @@ impl client::ResponseResult for CryptoKeyVersion {} pub struct CryptoKeyVersionTemplate { /// Required. Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT. - pub algorithm: Option, + pub algorithm: Option, /// ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, } impl client::Part for CryptoKeyVersionTemplate {} @@ -473,7 +473,7 @@ pub struct DecryptResponse { /// The ProtectionLevel of the CryptoKeyVersion used in decryption. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// Whether the Decryption was performed using the primary key version. #[serde(rename="usedPrimary")] @@ -616,7 +616,7 @@ pub struct EncryptResponse { /// The ProtectionLevel of the CryptoKeyVersion used in encryption. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// Integrity verification field. A flag indicating whether EncryptRequest.additional_authenticated_data_crc32c was received by KeyManagementService and used for the integrity verification of the AAD. A false value of this field indicates either that EncryptRequest.additional_authenticated_data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set EncryptRequest.additional_authenticated_data_crc32c but this field is still false, discard the response and perform a limited number of retries. #[serde(rename="verifiedAdditionalAuthenticatedDataCrc32c")] @@ -692,7 +692,7 @@ pub struct GenerateRandomBytesRequest { /// The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, } impl client::RequestValue for GenerateRandomBytesRequest {} @@ -736,7 +736,7 @@ impl client::ResponseResult for GenerateRandomBytesResponse {} pub struct ImportCryptoKeyVersionRequest { /// Required. The algorithm of the key being imported. This does not need to match the version_template of the CryptoKey this version imports into. - pub algorithm: Option, + pub algorithm: Option, /// Optional. The optional name of an existing CryptoKeyVersion to target for an import operation. If this field is not present, a new CryptoKeyVersion containing the supplied key material is created. If this field is present, the supplied key material is imported into the existing CryptoKeyVersion. To import into an existing CryptoKeyVersion, the CryptoKeyVersion must be a child of ImportCryptoKeyVersionRequest.parent, have been previously created via ImportCryptoKeyVersion, and be in DESTROYED or IMPORT_FAILED state. The key material and algorithm must match the previous CryptoKeyVersion exactly if the CryptoKeyVersion has ever contained key material. #[serde(rename="cryptoKeyVersion")] @@ -794,21 +794,21 @@ pub struct ImportJob { /// Required. Immutable. The wrapping method to be used for incoming key material. #[serde(rename="importMethod")] - pub import_method: Option, + pub import_method: Option, /// Output only. The resource name for this ImportJob in the format `projects/*/locations/*/keyRings/*/importJobs/*`. pub name: Option, /// Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. #[serde(rename="publicKey")] pub public_key: Option, /// Output only. The current state of the ImportJob, indicating if it can be used. - pub state: Option, + pub state: Option, } impl client::RequestValue for ImportJob {} @@ -832,7 +832,7 @@ pub struct KeyOperationAttestation { pub content: Option>, /// Output only. The format of the attestation data. - pub format: Option, + pub format: Option, } impl client::Part for KeyOperationAttestation {} @@ -1110,7 +1110,7 @@ pub struct MacSignResponse { /// The ProtectionLevel of the CryptoKeyVersion used for signing. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// Integrity verification field. A flag indicating whether MacSignRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacSignRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacSignRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries. #[serde(rename="verifiedDataCrc32c")] @@ -1171,7 +1171,7 @@ pub struct MacVerifyResponse { /// The ProtectionLevel of the CryptoKeyVersion used for verification. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, /// This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful. pub success: Option, @@ -1244,7 +1244,7 @@ impl client::ResponseResult for Policy {} pub struct PublicKey { /// The Algorithm associated with this key. - pub algorithm: Option, + pub algorithm: Option, /// The name of the CryptoKeyVersion public key. Provided here for verification. NOTE: This field is in Beta. pub name: Option, @@ -1259,7 +1259,7 @@ pub struct PublicKey { /// The ProtectionLevel of the CryptoKeyVersion public key. #[serde(rename="protectionLevel")] - pub protection_level: Option, + pub protection_level: Option, } impl client::ResponseResult for PublicKey {} diff --git a/gen/cloudkms1_beta1/src/api/call_builders.rs b/gen/cloudkms1_beta1/src/api/call_builders.rs index f50058a4ab..8a65e0444d 100644 --- a/gen/cloudkms1_beta1/src/api/call_builders.rs +++ b/gen/cloudkms1_beta1/src/api/call_builders.rs @@ -1708,7 +1708,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2009,7 +2009,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2315,7 +2315,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()); @@ -2615,7 +2615,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()); @@ -2917,7 +2917,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3215,7 +3215,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()); @@ -3488,7 +3488,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3787,7 +3787,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()); @@ -4064,7 +4064,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()); @@ -4359,7 +4359,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()); @@ -4651,7 +4651,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4947,7 +4947,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()); @@ -5249,7 +5249,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._crypto_key_id.as_ref() { params.push("cryptoKeyId", value); } @@ -5556,7 +5556,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()); @@ -5851,7 +5851,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()); @@ -6140,7 +6140,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); params.extend(self._additional_params.iter()); @@ -6407,7 +6407,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); params.extend(self._additional_params.iter()); @@ -6672,7 +6672,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()); @@ -6949,7 +6949,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()); @@ -7241,7 +7241,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7538,7 +7538,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()); @@ -7835,7 +7835,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._key_ring_id.as_ref() { params.push("keyRingId", value); } @@ -8140,7 +8140,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); } @@ -8434,7 +8434,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()); diff --git a/gen/cloudkms1_beta1/src/api/mod.rs b/gen/cloudkms1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudkms1_beta1/src/api/mod.rs +++ b/gen/cloudkms1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudkms1_beta1/src/api/schemas.rs b/gen/cloudkms1_beta1/src/api/schemas.rs index dd592ddbbd..089031e575 100644 --- a/gen/cloudkms1_beta1/src/api/schemas.rs +++ b/gen/cloudkms1_beta1/src/api/schemas.rs @@ -362,7 +362,7 @@ pub struct CryptoKeyVersion { pub create_time: Option>, /// The current state of the CryptoKeyVersion. - pub state: Option, + pub state: Option, /// Output only. The resource name for this CryptoKeyVersion in the format /// `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. @@ -395,7 +395,7 @@ pub struct CloudAuditOptions { /// The log_name to populate in the Cloud Audit Record. #[serde(rename="logName")] - pub log_name: Option, + pub log_name: Option, } impl client::Part for CloudAuditOptions {} @@ -583,7 +583,7 @@ pub struct CryptoKey { /// The immutable purpose of this CryptoKey. Currently, the only acceptable /// purpose is ENCRYPT_DECRYPT. - pub purpose: Option, + pub purpose: Option, /// At next_rotation_time, the Key Management Service will automatically: /// /// 1. Create a new version of this CryptoKey. @@ -632,7 +632,7 @@ pub struct Rule { pub permissions: Option>, /// Required - pub action: Option, + pub action: Option, /// If one or more 'not_in' clauses are specified, the rule matches /// if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. /// The format for in and not_in entries is the same as for members in a @@ -799,20 +799,20 @@ impl client::ResponseResult for ListCryptoKeysResponse {} pub struct Condition { /// An operator to apply the subject with. - pub op: Option, + pub op: Option, /// Trusted attributes discharged by the service. pub svc: Option, /// Trusted attributes supplied by any service that owns resources and uses /// the IAM system for access control. - pub sys: Option, + pub sys: Option, /// DEPRECATED. Use 'values' instead. pub value: Option, /// Trusted attributes supplied by the IAM system. - pub iam: Option, + pub iam: Option, /// The objects of the condition. This is mutually exclusive with 'value'. pub values: Option>, @@ -874,7 +874,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} diff --git a/gen/cloudlatencytest2/src/api/mod.rs b/gen/cloudlatencytest2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudlatencytest2/src/api/mod.rs +++ b/gen/cloudlatencytest2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudmonitoring2_beta2/src/api/mod.rs b/gen/cloudmonitoring2_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudmonitoring2_beta2/src/api/mod.rs +++ b/gen/cloudmonitoring2_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudprivatecatalog1_beta1/src/api/call_builders.rs b/gen/cloudprivatecatalog1_beta1/src/api/call_builders.rs index 8652b6e038..7d344a5f10 100644 --- a/gen/cloudprivatecatalog1_beta1/src/api/call_builders.rs +++ b/gen/cloudprivatecatalog1_beta1/src/api/call_builders.rs @@ -881,7 +881,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -1188,7 +1188,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -1496,7 +1496,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -1804,7 +1804,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -2111,7 +2111,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -2419,7 +2419,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -2727,7 +2727,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -3034,7 +3034,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -3342,7 +3342,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); if let Some(value) = self._query.as_ref() { params.push("query", value); } diff --git a/gen/cloudprivatecatalog1_beta1/src/api/mod.rs b/gen/cloudprivatecatalog1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudprivatecatalog1_beta1/src/api/mod.rs +++ b/gen/cloudprivatecatalog1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudprivatecatalogproducer1_beta1/src/api/call_builders.rs b/gen/cloudprivatecatalogproducer1_beta1/src/api/call_builders.rs index ea33287585..caf81c7aff 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/src/api/call_builders.rs +++ b/gen/cloudprivatecatalogproducer1_beta1/src/api/call_builders.rs @@ -2041,7 +2041,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2326,7 +2326,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()); @@ -2588,7 +2588,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()); @@ -2854,7 +2854,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3150,7 +3150,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("product", self._product); + params.push("product", &self._product); params.extend(self._additional_params.iter()); @@ -3442,7 +3442,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3727,7 +3727,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()); @@ -3989,7 +3989,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()); @@ -4256,7 +4256,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4549,7 +4549,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4856,7 +4856,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()); @@ -5148,7 +5148,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5433,7 +5433,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()); @@ -5695,7 +5695,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()); @@ -5964,7 +5964,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6268,7 +6268,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6847,7 +6847,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._force.as_ref() { params.push("force", value.to_string()); } @@ -7121,7 +7121,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()); @@ -7385,7 +7385,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()); } @@ -7956,7 +7956,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8262,7 +8262,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()); @@ -8555,7 +8555,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()); @@ -8848,7 +8848,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()); @@ -9149,7 +9149,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()); @@ -9437,7 +9437,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()); @@ -9701,7 +9701,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()); diff --git a/gen/cloudprivatecatalogproducer1_beta1/src/api/mod.rs b/gen/cloudprivatecatalogproducer1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/src/api/mod.rs +++ b/gen/cloudprivatecatalogproducer1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudprivatecatalogproducer1_beta1/src/api/schemas.rs b/gen/cloudprivatecatalogproducer1_beta1/src/api/schemas.rs index 4e17804af5..5726c93dbb 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/src/api/schemas.rs +++ b/gen/cloudprivatecatalogproducer1_beta1/src/api/schemas.rs @@ -638,7 +638,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/cloudprofiler2/src/api/call_builders.rs b/gen/cloudprofiler2/src/api/call_builders.rs index 74c81dd508..c550b5e815 100644 --- a/gen/cloudprofiler2/src/api/call_builders.rs +++ b/gen/cloudprofiler2/src/api/call_builders.rs @@ -497,7 +497,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -789,7 +789,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1369,7 +1369,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/cloudprofiler2/src/api/mod.rs b/gen/cloudprofiler2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudprofiler2/src/api/mod.rs +++ b/gen/cloudprofiler2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudprofiler2/src/api/schemas.rs b/gen/cloudprofiler2/src/api/schemas.rs index 222384644a..5e742f0af0 100644 --- a/gen/cloudprofiler2/src/api/schemas.rs +++ b/gen/cloudprofiler2/src/api/schemas.rs @@ -16,7 +16,7 @@ pub struct CreateProfileRequest { /// Required. One or more profile types that the agent is capable of providing. #[serde(rename="profileType")] - pub profile_type: Option>, + pub profile_type: Option>, } impl client::RequestValue for CreateProfileRequest {} @@ -78,7 +78,7 @@ pub struct Profile { /// Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server. #[serde(rename="profileType")] - pub profile_type: Option, + pub profile_type: Option, } impl client::RequestValue for Profile {} diff --git a/gen/cloudresourcemanager1/src/api/call_builders.rs b/gen/cloudresourcemanager1/src/api/call_builders.rs index f869f14349..2eb63bf00d 100644 --- a/gen/cloudresourcemanager1/src/api/call_builders.rs +++ b/gen/cloudresourcemanager1/src/api/call_builders.rs @@ -2166,7 +2166,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()); @@ -2458,7 +2458,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()); @@ -2750,7 +2750,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()); @@ -3042,7 +3042,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()); @@ -3334,7 +3334,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()); @@ -3626,7 +3626,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()); @@ -4184,7 +4184,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()); @@ -4446,7 +4446,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()); @@ -4987,7 +4987,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()); @@ -5256,7 +5256,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()); @@ -5541,7 +5541,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()); @@ -5810,7 +5810,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()); @@ -6102,7 +6102,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()); @@ -6394,7 +6394,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()); @@ -6686,7 +6686,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()); @@ -6978,7 +6978,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()); @@ -7543,7 +7543,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()); @@ -7835,7 +7835,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()); @@ -8127,7 +8127,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()); @@ -8419,7 +8419,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()); @@ -8977,7 +8977,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -9239,7 +9239,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -9508,7 +9508,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -9800,7 +9800,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()); @@ -10092,7 +10092,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()); @@ -10384,7 +10384,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()); @@ -10955,7 +10955,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()); @@ -11247,7 +11247,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()); @@ -11539,7 +11539,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()); @@ -11831,7 +11831,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()); @@ -12123,7 +12123,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()); @@ -12415,7 +12415,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -12707,7 +12707,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); diff --git a/gen/cloudresourcemanager1/src/api/mod.rs b/gen/cloudresourcemanager1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudresourcemanager1/src/api/mod.rs +++ b/gen/cloudresourcemanager1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudresourcemanager1/src/api/schemas.rs b/gen/cloudresourcemanager1/src/api/schemas.rs index 8a3c64803e..6280a7b005 100644 --- a/gen/cloudresourcemanager1/src/api/schemas.rs +++ b/gen/cloudresourcemanager1/src/api/schemas.rs @@ -48,7 +48,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -139,7 +139,7 @@ pub struct Constraint { /// The evaluation behavior of this constraint in the absence of 'Policy'. #[serde(rename="constraintDefault")] - pub constraint_default: Option, + pub constraint_default: Option, /// Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable. pub description: Option, @@ -513,7 +513,7 @@ pub struct ListPolicy { /// The policy all_values state. #[serde(rename="allValues")] - pub all_values: Option, + pub all_values: Option, /// List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. #[serde(rename="allowedValues")] @@ -673,7 +673,7 @@ pub struct Organization { /// The organization's current lifecycle state. Assigned by the server. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234". pub name: Option, @@ -771,7 +771,7 @@ pub struct Project { /// The Project lifecycle state. Read-only. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write. pub name: Option, diff --git a/gen/cloudresourcemanager1_beta1/src/api/call_builders.rs b/gen/cloudresourcemanager1_beta1/src/api/call_builders.rs index c8d10ca770..1ee86e2525 100644 --- a/gen/cloudresourcemanager1_beta1/src/api/call_builders.rs +++ b/gen/cloudresourcemanager1_beta1/src/api/call_builders.rs @@ -1101,7 +1101,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._organization_id.as_ref() { params.push("organizationId", value); } @@ -1380,7 +1380,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()); @@ -1951,7 +1951,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()); @@ -2243,7 +2243,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()); @@ -2535,7 +2535,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()); @@ -3105,7 +3105,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3367,7 +3367,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3636,7 +3636,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3928,7 +3928,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()); @@ -4499,7 +4499,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()); @@ -4791,7 +4791,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()); @@ -5083,7 +5083,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -5375,7 +5375,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); diff --git a/gen/cloudresourcemanager1_beta1/src/api/mod.rs b/gen/cloudresourcemanager1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudresourcemanager1_beta1/src/api/mod.rs +++ b/gen/cloudresourcemanager1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudresourcemanager1_beta1/src/api/schemas.rs b/gen/cloudresourcemanager1_beta1/src/api/schemas.rs index 5ea30a52f6..ff9c084aeb 100644 --- a/gen/cloudresourcemanager1_beta1/src/api/schemas.rs +++ b/gen/cloudresourcemanager1_beta1/src/api/schemas.rs @@ -48,7 +48,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -258,7 +258,7 @@ pub struct Organization { /// The organization's current lifecycle state. Assigned by the server. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234". pub name: Option, @@ -355,7 +355,7 @@ pub struct Project { /// The Project lifecycle state. Read-only. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write. pub name: Option, diff --git a/gen/cloudresourcemanager2/src/api/call_builders.rs b/gen/cloudresourcemanager2/src/api/call_builders.rs index 1bbcd3087a..e170e4cf86 100644 --- a/gen/cloudresourcemanager2/src/api/call_builders.rs +++ b/gen/cloudresourcemanager2/src/api/call_builders.rs @@ -1258,7 +1258,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()); @@ -1520,7 +1520,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()); @@ -1789,7 +1789,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()); @@ -2372,7 +2372,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()); @@ -2666,7 +2666,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3241,7 +3241,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()); @@ -3533,7 +3533,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()); @@ -3825,7 +3825,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()); @@ -4110,7 +4110,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()); diff --git a/gen/cloudresourcemanager2/src/api/mod.rs b/gen/cloudresourcemanager2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudresourcemanager2/src/api/mod.rs +++ b/gen/cloudresourcemanager2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudresourcemanager2/src/api/schemas.rs b/gen/cloudresourcemanager2/src/api/schemas.rs index 81f006cfb3..7d65cdf500 100644 --- a/gen/cloudresourcemanager2/src/api/schemas.rs +++ b/gen/cloudresourcemanager2/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -115,7 +115,7 @@ pub struct Folder { /// Output only. The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: "folders/1234". pub name: Option, diff --git a/gen/cloudresourcemanager3/src/api/call_builders.rs b/gen/cloudresourcemanager3/src/api/call_builders.rs index dabb8d617b..eba66953f2 100644 --- a/gen/cloudresourcemanager3/src/api/call_builders.rs +++ b/gen/cloudresourcemanager3/src/api/call_builders.rs @@ -3295,7 +3295,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()); @@ -3557,7 +3557,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()); @@ -3826,7 +3826,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()); @@ -4409,7 +4409,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()); @@ -4703,7 +4703,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5284,7 +5284,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()); @@ -5576,7 +5576,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()); @@ -5868,7 +5868,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()); @@ -6426,7 +6426,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()); @@ -6688,7 +6688,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()); @@ -7229,7 +7229,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()); @@ -7491,7 +7491,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()); @@ -7760,7 +7760,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()); @@ -8331,7 +8331,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()); @@ -8623,7 +8623,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()); @@ -9181,7 +9181,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()); @@ -9443,7 +9443,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()); @@ -9712,7 +9712,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()); @@ -10295,7 +10295,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()); @@ -10589,7 +10589,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -11170,7 +11170,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()); @@ -11462,7 +11462,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()); @@ -11754,7 +11754,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()); @@ -12324,7 +12324,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()); @@ -13154,7 +13154,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -13436,7 +13436,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()); @@ -13705,7 +13705,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()); @@ -14535,7 +14535,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -14847,7 +14847,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()); @@ -15139,7 +15139,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()); @@ -15433,7 +15433,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -15730,7 +15730,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -16008,7 +16008,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._page_token.as_ref() { params.push("pageToken", value); } @@ -16589,7 +16589,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -16871,7 +16871,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()); @@ -17140,7 +17140,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()); @@ -17970,7 +17970,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -18282,7 +18282,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()); @@ -18574,7 +18574,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()); diff --git a/gen/cloudresourcemanager3/src/api/mod.rs b/gen/cloudresourcemanager3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudresourcemanager3/src/api/mod.rs +++ b/gen/cloudresourcemanager3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudresourcemanager3/src/api/schemas.rs b/gen/cloudresourcemanager3/src/api/schemas.rs index ad0904a64c..c4dfa9a685 100644 --- a/gen/cloudresourcemanager3/src/api/schemas.rs +++ b/gen/cloudresourcemanager3/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -177,7 +177,7 @@ pub struct Folder { pub parent: Option, /// Output only. The lifecycle state of the folder. Updates to the state must be performed using DeleteFolder and UndeleteFolder. - pub state: Option, + pub state: Option, /// Output only. Timestamp when the folder was last modified. #[serde(rename="updateTime")] @@ -588,7 +588,7 @@ pub struct Organization { pub name: Option, /// Output only. The organization's current lifecycle state. - pub state: Option, + pub state: Option, /// Output only. Timestamp when the Organization was last modified. #[serde(rename="updateTime")] @@ -689,7 +689,7 @@ pub struct Project { pub project_id: Option, /// Output only. The project lifecycle state. - pub state: Option, + pub state: Option, /// Output only. The most recent time this resource was modified. #[serde(rename="updateTime")] @@ -920,7 +920,7 @@ pub struct TagKey { pub parent: Option, /// Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set. - pub purpose: Option, + pub purpose: Option, /// Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set. #[serde(rename="purposeData")] diff --git a/gen/cloudscheduler1/src/api/call_builders.rs b/gen/cloudscheduler1/src/api/call_builders.rs index 20e2597f97..e6673594c6 100644 --- a/gen/cloudscheduler1/src/api/call_builders.rs +++ b/gen/cloudscheduler1/src/api/call_builders.rs @@ -900,7 +900,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1185,7 +1185,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()); @@ -1447,7 +1447,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()); @@ -1713,7 +1713,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2004,7 +2004,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2306,7 +2306,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()); @@ -2598,7 +2598,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()); @@ -2890,7 +2890,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()); @@ -3175,7 +3175,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()); @@ -3443,7 +3443,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); } diff --git a/gen/cloudscheduler1/src/api/mod.rs b/gen/cloudscheduler1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudscheduler1/src/api/mod.rs +++ b/gen/cloudscheduler1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudscheduler1/src/api/schemas.rs b/gen/cloudscheduler1/src/api/schemas.rs index 6499918925..ab07c80ec0 100644 --- a/gen/cloudscheduler1/src/api/schemas.rs +++ b/gen/cloudscheduler1/src/api/schemas.rs @@ -20,7 +20,7 @@ pub struct AppEngineHttpTarget { /// The HTTP method to use for the request. PATCH and OPTIONS are not permitted. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// The relative URI. The relative URL must begin with "/" and must be a valid HTTP relative URL. It can contain a path, query string arguments, and `#` fragments. If the relative URL is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters. #[serde(rename="relativeUri")] @@ -86,7 +86,7 @@ pub struct HttpTarget { /// Which HTTP method to use for the request. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. #[serde(rename="oauthToken")] @@ -159,7 +159,7 @@ pub struct Job { pub schedule_time: Option>, /// Output only. State of the job. - pub state: Option, + pub state: Option, /// Output only. The response from the target for the last attempted execution. pub status: Option, diff --git a/gen/cloudscheduler1_beta1/src/api/call_builders.rs b/gen/cloudscheduler1_beta1/src/api/call_builders.rs index e684c023c7..41f8b46f0e 100644 --- a/gen/cloudscheduler1_beta1/src/api/call_builders.rs +++ b/gen/cloudscheduler1_beta1/src/api/call_builders.rs @@ -912,7 +912,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1199,7 +1199,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._legacy_app_engine_cron.as_ref() { params.push("legacyAppEngineCron", value.to_string()); } @@ -1471,7 +1471,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()); @@ -1741,7 +1741,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); } @@ -2052,7 +2052,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2354,7 +2354,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()); @@ -2646,7 +2646,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()); @@ -2938,7 +2938,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()); @@ -3223,7 +3223,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()); @@ -3491,7 +3491,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); } diff --git a/gen/cloudscheduler1_beta1/src/api/mod.rs b/gen/cloudscheduler1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudscheduler1_beta1/src/api/mod.rs +++ b/gen/cloudscheduler1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudscheduler1_beta1/src/api/schemas.rs b/gen/cloudscheduler1_beta1/src/api/schemas.rs index a40a4d1dbe..140c5ef2a5 100644 --- a/gen/cloudscheduler1_beta1/src/api/schemas.rs +++ b/gen/cloudscheduler1_beta1/src/api/schemas.rs @@ -20,7 +20,7 @@ pub struct AppEngineHttpTarget { /// The HTTP method to use for the request. PATCH and OPTIONS are not permitted. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// The relative URI. The relative URL must begin with "/" and must be a valid HTTP relative URL. It can contain a path, query string arguments, and `#` fragments. If the relative URL is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters. #[serde(rename="relativeUri")] @@ -86,7 +86,7 @@ pub struct HttpTarget { /// Which HTTP method to use for the request. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. #[serde(rename="oauthToken")] @@ -163,7 +163,7 @@ pub struct Job { pub schedule_time: Option>, /// Output only. State of the job. - pub state: Option, + pub state: Option, /// Output only. The response from the target for the last attempted execution. pub status: Option, diff --git a/gen/cloudshell1/src/api/call_builders.rs b/gen/cloudshell1/src/api/call_builders.rs index 109029dd9b..514d4987d2 100644 --- a/gen/cloudshell1/src/api/call_builders.rs +++ b/gen/cloudshell1/src/api/call_builders.rs @@ -754,7 +754,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()); @@ -1039,7 +1039,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()); @@ -1301,7 +1301,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()); @@ -1569,7 +1569,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); } @@ -1868,7 +1868,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("environment", self._environment); + params.push("environment", &self._environment); params.extend(self._additional_params.iter()); @@ -2160,7 +2160,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()); @@ -2445,7 +2445,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()); @@ -2714,7 +2714,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("environment", self._environment); + params.push("environment", &self._environment); params.extend(self._additional_params.iter()); @@ -3006,7 +3006,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()); diff --git a/gen/cloudshell1/src/api/mod.rs b/gen/cloudshell1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudshell1/src/api/mod.rs +++ b/gen/cloudshell1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudshell1/src/api/schemas.rs b/gen/cloudshell1/src/api/schemas.rs index 5e74fc07da..9f1aadc0d0 100644 --- a/gen/cloudshell1/src/api/schemas.rs +++ b/gen/cloudshell1/src/api/schemas.rs @@ -116,7 +116,7 @@ pub struct Environment { pub ssh_username: Option, /// Output only. Current execution state of this environment. - pub state: Option, + pub state: Option, /// Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment. #[serde(rename="webHost")] diff --git a/gen/cloudsupport2_beta/src/api/mod.rs b/gen/cloudsupport2_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudsupport2_beta/src/api/mod.rs +++ b/gen/cloudsupport2_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudsupport2_beta/src/api/schemas.rs b/gen/cloudsupport2_beta/src/api/schemas.rs index 5839b737bb..b18b313ee0 100644 --- a/gen/cloudsupport2_beta/src/api/schemas.rs +++ b/gen/cloudsupport2_beta/src/api/schemas.rs @@ -146,13 +146,13 @@ pub struct Case { pub name: Option, /// The priority of this case. If this is set, do not set severity. - pub priority: Option, + pub priority: Option, /// The severity of this case. Deprecated. Use priority instead. - pub severity: Option, + pub severity: Option, /// Output only. The current status of the support case. - pub state: Option, + pub state: Option, /// The email addresses to receive updates on this case. #[serde(rename="subscriberEmailAddresses")] @@ -296,7 +296,7 @@ pub struct CompositeMedia { /// # gdata.* are outside protos with mising documentation #[serde(rename="referenceType")] - pub reference_type: Option, + pub reference_type: Option, /// # gdata.* are outside protos with mising documentation #[serde(rename="sha1Hash")] @@ -525,7 +525,7 @@ pub struct Escalation { pub justification: Option, /// Required. The reason why the Case is being escalated. - pub reason: Option, + pub reason: Option, } impl client::Part for Escalation {} @@ -715,7 +715,7 @@ pub struct Media { /// # gdata.* are outside protos with mising documentation #[serde(rename="referenceType")] - pub reference_type: Option, + pub reference_type: Option, /// # gdata.* are outside protos with mising documentation #[serde(rename="sha1Hash")] diff --git a/gen/cloudtasks2/src/api/mod.rs b/gen/cloudtasks2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudtasks2/src/api/mod.rs +++ b/gen/cloudtasks2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudtasks2/src/api/schemas.rs b/gen/cloudtasks2/src/api/schemas.rs index 4679daf251..d9b6476564 100644 --- a/gen/cloudtasks2/src/api/schemas.rs +++ b/gen/cloudtasks2/src/api/schemas.rs @@ -20,7 +20,7 @@ pub struct AppEngineHttpRequest { /// The HTTP method to use for the request. The default is POST. The app's request handler for the task's target URL must be able to handle HTTP requests with this http_method, otherwise the task attempt fails with error code 405 (Method Not Allowed). See [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) and the App Engine documentation for your runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// The relative URI. The relative URI must begin with "/" and must be a valid HTTP relative URI. It can contain a path and query string arguments. If the relative URI is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters. #[serde(rename="relativeUri")] @@ -117,7 +117,7 @@ pub struct CreateTaskRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. The task to add. Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task name. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the response. If schedule_time is not set or is in the past then Cloud Tasks will set it to the current time. Task De-duplication: Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or executed recently then the call will fail with ALREADY_EXISTS. If the task's queue was created using Cloud Tasks, then another task with the same name can't be created for ~1hour after the original task was deleted or executed. If the task's queue was created using queue.yaml or queue.xml, then another task with the same name can't be created for ~9days after the original task was deleted or executed. Because there is an extra lookup cost to identify duplicate task names, these CreateTask calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently. pub task: Option, @@ -218,7 +218,7 @@ pub struct HttpRequest { /// The HTTP method to use for the request. The default is POST. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. #[serde(rename="oauthToken")] @@ -473,7 +473,7 @@ pub struct Queue { pub stackdriver_logging_config: Option, /// Output only. The state of the queue. `state` can only be changed by calling PauseQueue, ResumeQueue, or uploading [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). UpdateQueue cannot be used to change `state`. - pub state: Option, + pub state: Option, } impl client::RequestValue for Queue {} @@ -568,7 +568,7 @@ pub struct RunTaskRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, } impl client::RequestValue for RunTaskRequest {} @@ -685,7 +685,7 @@ pub struct Task { pub schedule_time: Option>, /// Output only. The view specifies which subset of the Task has been returned. - pub view: Option, + pub view: Option, } impl client::ResponseResult for Task {} diff --git a/gen/cloudtasks2_beta2/src/api/mod.rs b/gen/cloudtasks2_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudtasks2_beta2/src/api/mod.rs +++ b/gen/cloudtasks2_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudtasks2_beta2/src/api/schemas.rs b/gen/cloudtasks2_beta2/src/api/schemas.rs index 753a49f22f..5b3d6d8818 100644 --- a/gen/cloudtasks2_beta2/src/api/schemas.rs +++ b/gen/cloudtasks2_beta2/src/api/schemas.rs @@ -36,7 +36,7 @@ pub struct AppEngineHttpRequest { /// The HTTP method to use for the request. The default is POST. The app's request handler for the task's target URL must be able to handle HTTP requests with this http_method, otherwise the task attempt fails with error code 405 (Method Not Allowed). See [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) and the App Engine documentation for your runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// Payload. The payload will be sent as the HTTP message body. A message body, and thus a payload, is allowed only if the HTTP method is POST or PUT. It is an error to set a data payload on a task with an incompatible HttpMethod. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -191,7 +191,7 @@ pub struct CancelLeaseRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease. #[serde(rename="scheduleTime")] @@ -215,7 +215,7 @@ pub struct CreateTaskRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. The task to add. Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task name. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the response. If schedule_time is not set or is in the past then Cloud Tasks will set it to the current time. Task De-duplication: Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or completed recently then the call will fail with ALREADY_EXISTS. If the task's queue was created using Cloud Tasks, then another task with the same name can't be created for ~1hour after the original task was deleted or completed. If the task's queue was created using queue.yaml or queue.xml, then another task with the same name can't be created for ~9days after the original task was deleted or completed. Because there is an extra lookup cost to identify duplicate task names, these CreateTask calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently. pub task: Option, @@ -378,7 +378,7 @@ pub struct HttpRequest { /// The HTTP method to use for the request. The default is POST. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. #[serde(rename="oauthToken")] @@ -409,7 +409,7 @@ pub struct HttpTarget { /// The HTTP method to use for the request. When specified, it will override HttpRequest for the task. Note that if the value is set to HttpMethod the HttpRequest of the task will be ignored at execution time. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. #[serde(rename="oauthToken")] @@ -453,7 +453,7 @@ pub struct LeaseTasksRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, } impl client::RequestValue for LeaseTasksRequest {} @@ -781,7 +781,7 @@ pub struct Queue { pub retry_config: Option, /// Output only. The state of the queue. `state` can only be changed by called PauseQueue, ResumeQueue, or uploading [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). UpdateQueue cannot be used to change `state`. - pub state: Option, + pub state: Option, /// Output only. The realtime, informational statistics for a queue. In order to receive the statistics the caller should include this field in the FieldMask. pub stats: Option, @@ -879,7 +879,7 @@ pub struct RenewLeaseRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease. #[serde(rename="scheduleTime")] @@ -957,7 +957,7 @@ pub struct RunTaskRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, } impl client::RequestValue for RunTaskRequest {} @@ -1046,7 +1046,7 @@ pub struct Task { pub status: Option, /// Output only. The view specifies which subset of the Task has been returned. - pub view: Option, + pub view: Option, } impl client::ResponseResult for Task {} @@ -1142,11 +1142,11 @@ pub struct UriOverride { pub query_override: Option, /// Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS). - pub scheme: Option, + pub scheme: Option, /// URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS. #[serde(rename="uriOverrideEnforceMode")] - pub uri_override_enforce_mode: Option, + pub uri_override_enforce_mode: Option, } impl client::Part for UriOverride {} diff --git a/gen/cloudtasks2_beta3/src/api/mod.rs b/gen/cloudtasks2_beta3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudtasks2_beta3/src/api/mod.rs +++ b/gen/cloudtasks2_beta3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudtasks2_beta3/src/api/schemas.rs b/gen/cloudtasks2_beta3/src/api/schemas.rs index 24fcaf1895..283ac9c691 100644 --- a/gen/cloudtasks2_beta3/src/api/schemas.rs +++ b/gen/cloudtasks2_beta3/src/api/schemas.rs @@ -36,7 +36,7 @@ pub struct AppEngineHttpRequest { /// The HTTP method to use for the request. The default is POST. The app's request handler for the task's target URL must be able to handle HTTP requests with this http_method, otherwise the task attempt fails with error code 405 (Method Not Allowed). See [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) and the App Engine documentation for your runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// The relative URI. The relative URI must begin with "/" and must be a valid HTTP relative URI. It can contain a path and query string arguments. If the relative URI is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters. #[serde(rename="relativeUri")] @@ -171,7 +171,7 @@ pub struct CreateTaskRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. The task to add. Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task name. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the response. If schedule_time is not set or is in the past then Cloud Tasks will set it to the current time. Task De-duplication: Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or executed recently then the call will fail with ALREADY_EXISTS. If the task's queue was created using Cloud Tasks, then another task with the same name can't be created for ~1hour after the original task was deleted or executed. If the task's queue was created using queue.yaml or queue.xml, then another task with the same name can't be created for ~9days after the original task was deleted or executed. Because there is an extra lookup cost to identify duplicate task names, these CreateTask calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently. pub task: Option, @@ -328,7 +328,7 @@ pub struct HttpRequest { /// The HTTP method to use for the request. The default is POST. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. #[serde(rename="oauthToken")] @@ -359,7 +359,7 @@ pub struct HttpTarget { /// The HTTP method to use for the request. When specified, it will override HttpRequest for the task. Note that if the value is set to HttpMethod the HttpRequest of the task will be ignored at execution time. #[serde(rename="httpMethod")] - pub http_method: Option, + pub http_method: Option, /// URI override. When specified, modifies the execution URI for all the tasks in the queue. #[serde(rename="uriOverride")] @@ -661,7 +661,7 @@ pub struct Queue { pub stackdriver_logging_config: Option, /// Output only. The state of the queue. `state` can only be changed by called PauseQueue, ResumeQueue, or uploading [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). UpdateQueue cannot be used to change `state`. - pub state: Option, + pub state: Option, /// Output only. The realtime, informational statistics for a queue. In order to receive the statistics the caller should include this field in the FieldMask. pub stats: Option, @@ -678,7 +678,7 @@ pub struct Queue { /// Immutable. The type of a queue (push or pull). `Queue.type` is an immutable property of the queue that is set at the queue creation time. When left unspecified, the default value of `PUSH` is selected. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Queue {} @@ -808,7 +808,7 @@ pub struct RunTaskRequest { /// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, } impl client::RequestValue for RunTaskRequest {} @@ -929,7 +929,7 @@ pub struct Task { pub schedule_time: Option>, /// Output only. The view specifies which subset of the Task has been returned. - pub view: Option, + pub view: Option, } impl client::ResponseResult for Task {} @@ -997,11 +997,11 @@ pub struct UriOverride { pub query_override: Option, /// Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS). - pub scheme: Option, + pub scheme: Option, /// URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS. #[serde(rename="uriOverrideEnforceMode")] - pub uri_override_enforce_mode: Option, + pub uri_override_enforce_mode: Option, } impl client::Part for UriOverride {} diff --git a/gen/cloudtrace1/src/api/mod.rs b/gen/cloudtrace1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudtrace1/src/api/mod.rs +++ b/gen/cloudtrace1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudtrace1/src/api/schemas.rs b/gen/cloudtrace1/src/api/schemas.rs index 473d4459ba..62e14d6ccd 100644 --- a/gen/cloudtrace1/src/api/schemas.rs +++ b/gen/cloudtrace1/src/api/schemas.rs @@ -77,7 +77,7 @@ pub struct TraceSpan { pub end_time: Option>, /// Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span. - pub kind: Option, + pub kind: Option, /// Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid` pub labels: Option>, diff --git a/gen/cloudtrace2/src/api/call_builders.rs b/gen/cloudtrace2/src/api/call_builders.rs index 84e8bc9e7b..c539359c01 100644 --- a/gen/cloudtrace2/src/api/call_builders.rs +++ b/gen/cloudtrace2/src/api/call_builders.rs @@ -77,7 +77,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()); @@ -369,7 +369,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()); diff --git a/gen/cloudtrace2/src/api/mod.rs b/gen/cloudtrace2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/cloudtrace2/src/api/mod.rs +++ b/gen/cloudtrace2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/cloudtrace2/src/api/schemas.rs b/gen/cloudtrace2/src/api/schemas.rs index 932f92d9b2..8827c42e66 100644 --- a/gen/cloudtrace2/src/api/schemas.rs +++ b/gen/cloudtrace2/src/api/schemas.rs @@ -117,7 +117,7 @@ pub struct Link { /// The relationship of the current span relative to the linked span. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Link {} @@ -161,7 +161,7 @@ pub struct MessageEvent { /// Type of MessageEvent. Indicates whether the message was sent or received. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The number of uncompressed bytes sent or received. #[serde(rename="uncompressedSizeBytes")] @@ -238,7 +238,7 @@ pub struct Span { /// Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call. #[serde(rename="spanKind")] - pub span_kind: Option, + pub span_kind: Option, /// Stack trace captured at the start of the span. #[serde(rename="stackTrace")] diff --git a/gen/clouduseraccountsvm_beta/src/api/call_builders.rs b/gen/clouduseraccountsvm_beta/src/api/call_builders.rs index ba9dbbb9ed..c017edc7d9 100644 --- a/gen/clouduseraccountsvm_beta/src/api/call_builders.rs +++ b/gen/clouduseraccountsvm_beta/src/api/call_builders.rs @@ -1371,8 +1371,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("project", self._project); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -1630,8 +1630,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -1907,7 +1907,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2225,8 +2225,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("groupName", self._group_name); + params.push("project", &self._project); + params.push("groupName", &self._group_name); params.extend(self._additional_params.iter()); @@ -2518,8 +2518,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("groupName", self._group_name); + params.push("project", &self._project); + params.push("groupName", &self._group_name); params.extend(self._additional_params.iter()); @@ -2788,8 +2788,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("groupName", self._group_name); + params.push("project", &self._project); + params.push("groupName", &self._group_name); params.extend(self._additional_params.iter()); @@ -3064,7 +3064,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -3353,7 +3353,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3671,8 +3671,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("groupName", self._group_name); + params.push("project", &self._project); + params.push("groupName", &self._group_name); params.extend(self._additional_params.iter()); @@ -3968,10 +3968,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("user", self._user); - params.push("instance", self._instance); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("user", &self._user); + params.push("instance", &self._instance); if let Some(value) = self._login.as_ref() { params.push("login", value.to_string()); } @@ -4279,9 +4279,9 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instance", self._instance); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instance", &self._instance); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -4619,8 +4619,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("user", self._user); + params.push("project", &self._project); + params.push("user", &self._user); params.extend(self._additional_params.iter()); @@ -4912,8 +4912,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("user", self._user); + params.push("project", &self._project); + params.push("user", &self._user); params.extend(self._additional_params.iter()); @@ -5182,8 +5182,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("user", self._user); + params.push("project", &self._project); + params.push("user", &self._user); params.extend(self._additional_params.iter()); @@ -5458,7 +5458,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -5747,7 +5747,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -6059,9 +6059,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("user", self._user); - params.push("fingerprint", self._fingerprint); + params.push("project", &self._project); + params.push("user", &self._user); + params.push("fingerprint", &self._fingerprint); params.extend(self._additional_params.iter()); diff --git a/gen/clouduseraccountsvm_beta/src/api/mod.rs b/gen/clouduseraccountsvm_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/clouduseraccountsvm_beta/src/api/mod.rs +++ b/gen/clouduseraccountsvm_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/clouduseraccountsvm_beta/src/api/schemas.rs b/gen/clouduseraccountsvm_beta/src/api/schemas.rs index 8c5f977e01..cb0e940f93 100644 --- a/gen/clouduseraccountsvm_beta/src/api/schemas.rs +++ b/gen/clouduseraccountsvm_beta/src/api/schemas.rs @@ -328,7 +328,7 @@ pub struct Operation { pub start_time: Option, /// [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. - pub status: Option, + pub status: Option, /// [Output Only] An optional textual description of the current status of the operation. #[serde(rename="statusMessage")] @@ -556,7 +556,7 @@ impl client::Part for OperationErrorErrors {} pub struct OperationWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: /// "data": [ { "key": "scope", "value": "zones/us-east1-d" } diff --git a/gen/commentanalyzer1_alpha1/src/api/mod.rs b/gen/commentanalyzer1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/commentanalyzer1_alpha1/src/api/mod.rs +++ b/gen/commentanalyzer1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/commentanalyzer1_alpha1/src/api/schemas.rs b/gen/commentanalyzer1_alpha1/src/api/schemas.rs index 2072f6326d..4e6568a694 100644 --- a/gen/commentanalyzer1_alpha1/src/api/schemas.rs +++ b/gen/commentanalyzer1_alpha1/src/api/schemas.rs @@ -154,7 +154,7 @@ pub struct AttributeParameters { /// What type of scores to return. If unset, defaults to probability scores. #[serde(rename="scoreType")] - pub score_type: Option, + pub score_type: Option, } impl client::Part for AttributeParameters {} @@ -216,7 +216,7 @@ pub struct Score { /// The type of the above value. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Score value. Semantics described by type below. pub value: Option, @@ -357,7 +357,7 @@ pub struct TextEntry { /// Type of the text field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for TextEntry {} diff --git a/gen/composer1/src/api/call_builders.rs b/gen/composer1/src/api/call_builders.rs index 3340feb23c..548d2c3d28 100644 --- a/gen/composer1/src/api/call_builders.rs +++ b/gen/composer1/src/api/call_builders.rs @@ -5350,7 +5350,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5927,7 +5927,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()); @@ -6743,7 +6743,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()); @@ -7009,7 +7009,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7298,7 +7298,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("environment", self._environment); + params.push("environment", &self._environment); params.extend(self._additional_params.iter()); @@ -7592,7 +7592,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8186,7 +8186,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("environment", self._environment); + params.push("environment", &self._environment); params.extend(self._additional_params.iter()); @@ -8769,7 +8769,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._page_token.as_ref() { params.push("pageToken", value); } @@ -9061,7 +9061,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()); @@ -9323,7 +9323,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()); @@ -9591,7 +9591,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); } diff --git a/gen/composer1/src/api/mod.rs b/gen/composer1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/composer1/src/api/mod.rs +++ b/gen/composer1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/composer1/src/api/schemas.rs b/gen/composer1/src/api/schemas.rs index a79dd9ea43..1379b88941 100644 --- a/gen/composer1/src/api/schemas.rs +++ b/gen/composer1/src/api/schemas.rs @@ -133,7 +133,7 @@ pub struct Environment { pub name: Option, /// The current state of the environment. - pub state: Option, + pub state: Option, /// Output only. The time at which this environment was last modified. #[serde(rename="updateTime")] @@ -173,7 +173,7 @@ pub struct EnvironmentConfig { /// Optional. The size of the Cloud Composer environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer. #[serde(rename="environmentSize")] - pub environment_size: Option, + pub environment_size: Option, /// Output only. The Kubernetes Engine cluster used to run this environment. #[serde(rename="gkeCluster")] @@ -449,7 +449,7 @@ pub struct NetworkingConfig { /// Optional. Indicates the user requested specifc connection type between Tenant and Customer projects. You cannot set networking connection type in public IP environment. #[serde(rename="connectionType")] - pub connection_type: Option, + pub connection_type: Option, } impl client::Part for NetworkingConfig {} diff --git a/gen/compute1/src/api/hub.rs b/gen/compute1/src/api/hub.rs index 5588e85851..349b19b035 100644 --- a/gen/compute1/src/api/hub.rs +++ b/gen/compute1/src/api/hub.rs @@ -38,9 +38,9 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.instances().update(req, "project", "zone", "instance") -/// .request_id("gubergren") -/// .most_disruptive_allowed_action("eos") -/// .minimal_action("dolor") +/// .request_id("duo") +/// .most_disruptive_allowed_action(&Default::default()) +/// .minimal_action(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/compute1/src/api/mod.rs b/gen/compute1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/compute1/src/api/mod.rs +++ b/gen/compute1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/compute1/src/api/schemas.rs b/gen/compute1/src/api/schemas.rs index 4b168efe99..48745a1e1c 100644 --- a/gen/compute1/src/api/schemas.rs +++ b/gen/compute1/src/api/schemas.rs @@ -196,7 +196,7 @@ pub struct AccessConfig { /// 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. #[serde(rename="networkTier")] - pub network_tier: Option, + pub network_tier: Option, /// 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. #[serde(rename="publicPtrDomainName")] @@ -208,7 +208,7 @@ pub struct AccessConfig { /// The type of configuration. The default and only option is ONE_TO_ONE_NAT. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for AccessConfig {} @@ -234,7 +234,7 @@ pub struct Address { /// The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. #[serde(rename="addressType")] - pub address_type: Option, + pub address_type: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -249,11 +249,11 @@ pub struct Address { /// The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. #[serde(rename="ipVersion")] - pub ip_version: Option, + pub ip_version: Option, /// 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. #[serde(rename="ipv6EndpointType")] - pub ipv6_endpoint_type: Option, + pub ipv6_endpoint_type: Option, /// [Output Only] Type of the resource. Always compute#address for addresses. pub kind: Option, @@ -266,14 +266,14 @@ pub struct Address { /// 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. #[serde(rename="networkTier")] - pub network_tier: Option, + pub network_tier: Option, /// The prefix length if the resource represents an IP range. #[serde(rename="prefixLength")] pub prefix_length: Option, /// 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. - pub purpose: Option, + pub purpose: Option, /// [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.* pub region: Option, @@ -283,7 +283,7 @@ pub struct Address { pub self_link: Option, /// [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. - pub status: Option, + pub status: Option, /// 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. pub subnetwork: Option, @@ -484,7 +484,7 @@ pub struct AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDis pub disk_size_gb: Option, /// 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. - pub interface: Option, + pub interface: Option, } impl client::Part for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk {} @@ -569,7 +569,7 @@ impl client::Part for AllocationSpecificSKUReservation {} pub struct AttachedDisk { /// [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. - pub architecture: Option, + pub architecture: Option, /// Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). #[serde(rename="autoDelete")] @@ -607,7 +607,7 @@ pub struct AttachedDisk { pub initialize_params: Option, /// 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. - pub interface: Option, + pub interface: Option, /// [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. pub kind: Option, @@ -616,7 +616,7 @@ pub struct AttachedDisk { pub licenses: Option>, /// 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. - pub mode: Option, + pub mode: Option, /// [Output Only] shielded vm initial state stored on disk #[serde(rename="shieldedInstanceInitialState")] @@ -627,7 +627,7 @@ pub struct AttachedDisk { /// Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for AttachedDisk {} @@ -642,7 +642,7 @@ impl client::RequestValue for AttachedDisk {} pub struct AttachedDiskInitializeParams { /// The architecture of the attached disk. Valid values are arm64 or x86_64. - pub architecture: Option, + pub architecture: Option, /// An optional description. Provide this property when creating the disk. pub description: Option, @@ -668,7 +668,7 @@ pub struct AttachedDiskInitializeParams { /// Specifies which action to take on instance update with this disk. Default is to use the existing disk. #[serde(rename="onUpdateAction")] - pub on_update_action: Option, + pub on_update_action: Option, /// 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. #[serde(rename="provisionedIops")] @@ -744,7 +744,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -760,7 +760,7 @@ pub struct AuthorizationLoggingOptions { /// This is deprecated and has no effect. Do not use. #[serde(rename="permissionType")] - pub permission_type: Option, + pub permission_type: Option, } impl client::Part for AuthorizationLoggingOptions {} @@ -825,7 +825,7 @@ pub struct Autoscaler { pub self_link: Option, /// [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. - pub status: Option, + pub status: Option, /// [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. #[serde(rename="statusDetails")] @@ -931,7 +931,7 @@ pub struct AutoscalerStatusDetails { /// 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. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AutoscalerStatusDetails {} @@ -988,7 +988,7 @@ pub struct AutoscalingPolicy { pub min_num_replicas: Option, /// Defines operating mode for this policy. - pub mode: Option, + pub mode: Option, /// no description provided #[serde(rename="scaleInControl")] @@ -1012,7 +1012,7 @@ 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. #[serde(rename="predictiveMethod")] - pub predictive_method: Option, + pub predictive_method: Option, /// 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. #[serde(rename="utilizationTarget")] @@ -1046,7 +1046,7 @@ pub struct AutoscalingPolicyCustomMetricUtilization { /// Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. #[serde(rename="utilizationTargetType")] - pub utilization_target_type: Option, + pub utilization_target_type: Option, } impl client::Part for AutoscalingPolicyCustomMetricUtilization {} @@ -1131,7 +1131,7 @@ 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. #[serde(rename="balancingMode")] - pub balancing_mode: Option, + pub balancing_mode: Option, /// 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. #[serde(rename="capacityScaler")] @@ -1208,7 +1208,7 @@ pub struct BackendBucket { /// Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. #[serde(rename="compressionMode")] - pub compression_mode: Option, + pub compression_mode: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -1267,7 +1267,7 @@ pub struct BackendBucketCdnPolicy { /// 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. #[serde(rename="cacheMode")] - pub cache_mode: Option, + pub cache_mode: Option, /// 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). #[serde(rename="clientTtl")] @@ -1446,7 +1446,7 @@ pub struct BackendService { /// Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. #[serde(rename="compressionMode")] - pub compression_mode: Option, + pub compression_mode: Option, /// no description provided #[serde(rename="connectionDraining")] @@ -1507,7 +1507,7 @@ pub struct BackendService { /// 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. #[serde(rename="loadBalancingScheme")] - pub load_balancing_scheme: Option, + pub load_balancing_scheme: Option, /// A list of locality load balancing policies to be used in order of preference. Either the policy or the customPolicy field should be set. Overrides any value set in the localityLbPolicy field. localityLbPolicies is only supported when the BackendService is referenced by a URL Map that is referenced by a target gRPC proxy that has the validateForProxyless field set to true. #[serde(rename="localityLbPolicies")] @@ -1515,7 +1515,7 @@ pub struct BackendService { /// 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. 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. #[serde(rename="localityLbPolicy")] - pub locality_lb_policy: Option, + pub locality_lb_policy: Option, /// 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. #[serde(rename="logConfig")] @@ -1543,7 +1543,7 @@ pub struct BackendService { pub port_name: Option, /// 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. - pub protocol: Option, + pub protocol: Option, /// [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. pub region: Option, @@ -1566,7 +1566,7 @@ pub struct BackendService { /// 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). #[serde(rename="sessionAffinity")] - pub session_affinity: Option, + pub session_affinity: Option, /// no description provided pub subsetting: Option, @@ -1638,7 +1638,7 @@ pub struct BackendServiceCdnPolicy { /// 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. #[serde(rename="cacheMode")] - pub cache_mode: Option, + pub cache_mode: Option, /// 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). #[serde(rename="clientTtl")] @@ -1725,7 +1725,7 @@ 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). #[serde(rename="connectionPersistenceOnUnhealthyBackends")] - pub connection_persistence_on_unhealthy_backends: Option, + pub connection_persistence_on_unhealthy_backends: Option, /// Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly. #[serde(rename="enableStrongAffinity")] @@ -1737,7 +1737,7 @@ pub struct BackendServiceConnectionTrackingPolicy { /// 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). #[serde(rename="trackingMode")] - pub tracking_mode: Option, + pub tracking_mode: Option, } impl client::Part for BackendServiceConnectionTrackingPolicy {} @@ -1904,7 +1904,7 @@ impl client::Part for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolic pub struct BackendServiceLocalityLoadBalancingPolicyConfigPolicy { /// The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected. - pub name: Option, + pub name: Option, } impl client::Part for BackendServiceLocalityLoadBalancingPolicyConfigPolicy {} @@ -1984,7 +1984,7 @@ pub struct BfdPacket { pub demand: Option, /// 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 - pub diagnostic: Option, + pub diagnostic: Option, /// The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 #[serde(rename="final")] @@ -2019,7 +2019,7 @@ pub struct BfdPacket { pub poll: Option, /// The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 - pub state: Option, + pub state: Option, /// The version number of the BFD protocol, as specified in section 4.1 of RFC5880. pub version: Option, @@ -2042,7 +2042,7 @@ 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. #[serde(rename="bfdSessionInitializationMode")] - pub bfd_session_initialization_mode: Option, + pub bfd_session_initialization_mode: Option, /// Unix timestamp of the most recent config update. #[serde(rename="configUpdateTimestampMicros")] @@ -2059,11 +2059,11 @@ pub struct BfdStatus { /// 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 #[serde(rename="localDiagnostic")] - pub local_diagnostic: Option, + pub local_diagnostic: Option, /// The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 #[serde(rename="localState")] - pub local_state: Option, + pub local_state: Option, /// Negotiated transmit interval for control packets. #[serde(rename="negotiatedLocalControlTxIntervalMs")] @@ -2313,7 +2313,7 @@ pub struct Commitment { pub auto_renew: Option, /// 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. - pub category: Option, + pub category: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -2345,7 +2345,7 @@ pub struct Commitment { pub name: Option, /// 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). - pub plan: Option, + pub plan: Option, /// [Output Only] URL of the region where this commitment may be used. pub region: Option, @@ -2369,7 +2369,7 @@ pub struct Commitment { pub start_timestamp: Option, /// [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. - pub status: Option, + pub status: Option, /// [Output Only] An optional, human-readable explanation of the status. #[serde(rename="statusMessage")] @@ -2377,7 +2377,7 @@ pub struct Commitment { /// 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. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Commitment {} @@ -2486,16 +2486,16 @@ impl client::Part for CommitmentsScopedList {} pub struct Condition { /// This is deprecated and has no effect. Do not use. - pub iam: Option, + pub iam: Option, /// This is deprecated and has no effect. Do not use. - pub op: Option, + pub op: Option, /// This is deprecated and has no effect. Do not use. pub svc: Option, /// This is deprecated and has no effect. Do not use. - pub sys: Option, + pub sys: Option, /// This is deprecated and has no effect. Do not use. pub values: Option>, @@ -2700,7 +2700,7 @@ pub struct DeprecationStatus { pub replacement: Option, /// 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. - pub state: Option, + pub state: Option, } impl client::RequestValue for DeprecationStatus {} @@ -2733,7 +2733,7 @@ impl client::RequestValue for DeprecationStatus {} pub struct Disk { /// The architecture of the disk. Valid values are ARM64 or X86_64. - pub architecture: Option, + pub architecture: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -2865,7 +2865,7 @@ pub struct Disk { pub source_storage_object: Option, /// [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. - pub status: Option, + pub status: Option, /// 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. #[serde(rename="type")] @@ -2944,7 +2944,7 @@ pub struct DiskInstantiationConfig { /// 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. #[serde(rename="instantiateFrom")] - pub instantiate_from: Option, + pub instantiate_from: Option, } impl client::Part for DiskInstantiationConfig {} @@ -3289,7 +3289,7 @@ 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). #[serde(rename="targetShape")] - pub target_shape: Option, + pub target_shape: Option, /// Zones where the regional managed instance group will create and manage its instances. pub zones: Option>, @@ -3377,7 +3377,7 @@ pub struct ExchangedPeeringRoute { /// The type of the peering route. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ExchangedPeeringRoute {} @@ -3490,7 +3490,7 @@ pub struct ExternalVpnGateway { /// Indicates the user-supplied redundancy type of this external VPN gateway. #[serde(rename="redundancyType")] - pub redundancy_type: Option, + pub redundancy_type: Option, /// [Output Only] Server-defined URL for the resource. #[serde(rename="selfLink")] @@ -3574,7 +3574,7 @@ pub struct FileContentBuffer { /// The file type of source file. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, } impl client::Part for FileContentBuffer {} @@ -3615,7 +3615,7 @@ pub struct Firewall { pub destination_ranges: Option>, /// 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. - pub direction: Option, + pub direction: Option, /// 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. pub disabled: Option, @@ -3718,7 +3718,7 @@ pub struct FirewallLogConfig { pub enable: Option, /// 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. - pub metadata: Option, + pub metadata: Option, } impl client::Part for FirewallLogConfig {} @@ -3926,7 +3926,7 @@ pub struct FirewallPolicyRule { pub description: Option, /// The direction in which this rule applies. - pub direction: Option, + pub direction: Option, /// 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. pub disabled: Option, @@ -4029,7 +4029,7 @@ pub struct FirewallPolicyRuleSecureTag { pub name: Option, /// [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. - pub state: Option, + pub state: Option, } impl client::Part for FirewallPolicyRuleSecureTag {} @@ -4084,7 +4084,7 @@ pub struct ForwardingRule { /// 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). #[serde(rename="IPProtocol")] - pub ip_protocol: Option, + pub ip_protocol: Option, /// This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based 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 ports, port_range, and allPorts fields are mutually exclusive. #[serde(rename="allPorts")] @@ -4115,7 +4115,7 @@ pub struct ForwardingRule { /// The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. #[serde(rename="ipVersion")] - pub ip_version: Option, + pub ip_version: Option, /// 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. #[serde(rename="isMirroringCollector")] @@ -4134,7 +4134,7 @@ pub struct ForwardingRule { /// Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts. #[serde(rename="loadBalancingScheme")] - pub load_balancing_scheme: Option, + pub load_balancing_scheme: Option, /// 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. #[serde(rename="metadataFilters")] @@ -4148,7 +4148,7 @@ pub struct ForwardingRule { /// 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. #[serde(rename="networkTier")] - pub network_tier: Option, + pub network_tier: Option, /// 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. #[serde(rename="noAutomateDnsZone")] @@ -4168,7 +4168,7 @@ pub struct ForwardingRule { /// no description provided #[serde(rename="pscConnectionStatus")] - pub psc_connection_status: Option, + pub psc_connection_status: Option, /// [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. pub region: Option, @@ -4355,7 +4355,7 @@ pub struct GRPCHealthCheck { /// 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 pass-through 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 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. #[serde(rename="portSpecification")] - pub port_specification: Option, + pub port_specification: Option, } impl client::Part for GRPCHealthCheck {} @@ -4574,7 +4574,7 @@ 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_SNP_CAPABLE For more information, see Enabling guest operating system features. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GuestOsFeature {} @@ -4600,11 +4600,11 @@ pub struct HTTP2HealthCheck { /// 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 pass-through 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 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. #[serde(rename="portSpecification")] - pub port_specification: Option, + pub port_specification: Option, /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// The request path of the HTTP/2 health check request. The default value is /. #[serde(rename="requestPath")] @@ -4637,11 +4637,11 @@ pub struct HTTPHealthCheck { /// 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 pass-through 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. #[serde(rename="portSpecification")] - pub port_specification: Option, + pub port_specification: Option, /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// The request path of the HTTP health check request. The default value is /. #[serde(rename="requestPath")] @@ -4674,11 +4674,11 @@ pub struct HTTPSHealthCheck { /// 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 pass-through 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 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. #[serde(rename="portSpecification")] - pub port_specification: Option, + pub port_specification: Option, /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// The request path of the HTTPS health check request. The default value is /. #[serde(rename="requestPath")] @@ -4779,7 +4779,7 @@ pub struct HealthCheck { /// 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. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. #[serde(rename="unhealthyThreshold")] @@ -4890,7 +4890,7 @@ pub struct HealthCheckService { /// 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. #[serde(rename="healthStatusAggregationPolicy")] - pub health_status_aggregation_policy: Option, + pub health_status_aggregation_policy: Option, /// [Output Only] The unique identifier for the resource. This identifier is defined by the server. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -5053,7 +5053,7 @@ pub struct HealthStatus { /// Health state of the instance. #[serde(rename="healthState")] - pub health_state: Option, + pub health_state: Option, /// URL of the instance resource. pub instance: Option, @@ -5070,7 +5070,7 @@ pub struct HealthStatus { /// no description provided #[serde(rename="weightError")] - pub weight_error: Option, + pub weight_error: Option, } impl client::Part for HealthStatus {} @@ -5102,7 +5102,7 @@ pub struct HealthStatusForNetworkEndpoint { /// Health state of the network endpoint determined based on the health checks configured. #[serde(rename="healthState")] - pub health_state: Option, + pub health_state: Option, } impl client::Part for HealthStatusForNetworkEndpoint {} @@ -5473,7 +5473,7 @@ pub struct HttpRedirectAction { /// 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. #[serde(rename="redirectResponseCode")] - pub redirect_response_code: Option, + pub redirect_response_code: Option, /// 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. #[serde(rename="stripQuery")] @@ -5756,7 +5756,7 @@ impl client::ResponseResult for HttpsHealthCheckList {} pub struct Image { /// The architecture of the image. Valid values are ARM64 or X86_64. - pub architecture: Option, + pub architecture: Option, /// Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). #[serde(rename="archiveSizeBytes")] @@ -5869,10 +5869,10 @@ pub struct Image { /// The type of the image used to create this disk. The default and only valid value is RAW. #[serde(rename="sourceType")] - pub source_type: Option, + pub source_type: Option, /// [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. - pub status: Option, + pub status: Option, /// Cloud Storage bucket storage location of the image (regional or multi-regional). #[serde(rename="storageLocations")] @@ -6071,7 +6071,7 @@ pub struct Instance { /// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. #[serde(rename="keyRevocationActionType")] - pub key_revocation_action_type: Option, + pub key_revocation_action_type: Option, /// [Output Only] Type of the resource. Always compute#instance for instances. pub kind: Option, @@ -6123,7 +6123,7 @@ pub struct Instance { /// The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. #[serde(rename="privateIpv6GoogleAccess")] - pub private_ipv6_google_access: Option, + pub private_ipv6_google_access: Option, /// Specifies the reservations that this instance can consume from. #[serde(rename="reservationAffinity")] @@ -6173,7 +6173,7 @@ pub struct Instance { pub start_restricted: Option, /// [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. - pub status: Option, + pub status: Option, /// [Output Only] An optional, human-readable explanation of the status. #[serde(rename="statusMessage")] @@ -6501,7 +6501,7 @@ pub struct InstanceGroupManager { /// Pagination behavior of the listManagedInstances API method for this managed instance group. #[serde(rename="listManagedInstancesResults")] - pub list_managed_instances_results: Option, + pub list_managed_instances_results: Option, /// The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -6783,7 +6783,7 @@ 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. #[serde(rename="instanceRedistributionType")] - pub instance_redistribution_type: Option, + pub instance_redistribution_type: Option, /// 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. #[serde(rename="maxSurge")] @@ -6795,19 +6795,19 @@ pub struct InstanceGroupManagerUpdatePolicy { /// 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. #[serde(rename="minimalAction")] - pub minimal_action: Option, + pub minimal_action: Option, /// Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, 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. #[serde(rename="mostDisruptiveAllowedAction")] - pub most_disruptive_allowed_action: Option, + pub most_disruptive_allowed_action: Option, /// What action should be used to replace instances. See minimal_action.REPLACE #[serde(rename="replacementMethod")] - pub replacement_method: Option, + pub replacement_method: Option, /// The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for InstanceGroupManagerUpdatePolicy {} @@ -6876,11 +6876,11 @@ pub struct InstanceGroupManagersApplyUpdatesRequest { /// 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. - 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. #[serde(rename="minimalAction")] - pub minimal_action: Option, + pub minimal_action: Option, /// 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. - 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. #[serde(rename="mostDisruptiveAllowedAction")] - pub most_disruptive_allowed_action: Option, + pub most_disruptive_allowed_action: Option, } impl client::RequestValue for InstanceGroupManagersApplyUpdatesRequest {} @@ -7211,7 +7211,7 @@ 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. #[serde(rename="instanceState")] - pub instance_state: Option, + pub instance_state: Option, } impl client::RequestValue for InstanceGroupsListInstancesRequest {} @@ -7382,7 +7382,7 @@ impl client::Part for InstanceManagedByIgmError {} pub struct InstanceManagedByIgmErrorInstanceActionDetails { /// [Output Only] Action that managed instance group was executing on the instance when the error occurred. Possible values: - pub action: Option, + pub action: Option, /// [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been created. pub instance: Option, @@ -7484,7 +7484,7 @@ pub struct InstanceProperties { /// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. #[serde(rename="keyRevocationActionType")] - pub key_revocation_action_type: Option, + pub key_revocation_action_type: Option, /// Labels to apply to instances that are created from these properties. pub labels: Option>, @@ -7510,7 +7510,7 @@ pub struct InstanceProperties { /// 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. #[serde(rename="privateIpv6GoogleAccess")] - pub private_ipv6_google_access: Option, + pub private_ipv6_google_access: Option, /// Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet. #[serde(rename="reservationAffinity")] @@ -7669,7 +7669,7 @@ pub struct InstanceWithNamedPorts { pub named_ports: Option>, /// [Output Only] The status of the instance. - pub status: Option, + pub status: Option, } impl client::Part for InstanceWithNamedPorts {} @@ -7742,7 +7742,7 @@ pub struct InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { /// [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy {} @@ -7992,14 +7992,14 @@ pub struct Interconnect { /// 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. #[serde(rename="interconnectType")] - pub interconnect_type: Option, + pub interconnect_type: Option, /// [Output Only] Type of the resource. Always compute#interconnect for interconnects. pub kind: Option, /// 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. #[serde(rename="linkType")] - pub link_type: Option, + pub link_type: Option, /// URL of the InterconnectLocation object that represents where this connection is to be provisioned. pub location: Option, @@ -8013,7 +8013,7 @@ pub struct Interconnect { /// [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. #[serde(rename="operationalStatus")] - pub operational_status: Option, + pub operational_status: Option, /// [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. #[serde(rename="peerIpAddress")] @@ -8036,7 +8036,7 @@ pub struct Interconnect { pub self_link: Option, /// [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. - pub state: Option, + pub state: Option, } impl client::RequestValue for Interconnect {} @@ -8067,7 +8067,7 @@ pub struct InterconnectAttachment { pub admin_enabled: Option, /// 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 - pub bandwidth: Option, + pub bandwidth: Option, /// This field is not available. #[serde(rename="candidateIpv6Subnets")] @@ -8114,10 +8114,10 @@ pub struct InterconnectAttachment { /// 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. #[serde(rename="edgeAvailabilityDomain")] - pub edge_availability_domain: Option, + pub edge_availability_domain: Option, /// 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. - pub encryption: Option, + pub encryption: Option, /// [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. #[serde(rename="googleReferenceId")] @@ -8145,7 +8145,7 @@ pub struct InterconnectAttachment { /// [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. #[serde(rename="operationalStatus")] - pub operational_status: Option, + pub operational_status: Option, /// [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain" #[serde(rename="pairingKey")] @@ -8180,14 +8180,14 @@ pub struct InterconnectAttachment { /// 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. #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// [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. - pub state: Option, + pub state: Option, /// 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. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time. #[serde(rename="vlanTag8021q")] @@ -8370,11 +8370,11 @@ pub struct InterconnectDiagnostics { /// The aggregation type of the bundle interface. #[serde(rename="bundleAggregationType")] - pub bundle_aggregation_type: Option, + pub bundle_aggregation_type: Option, /// The operational status of the bundle interface. #[serde(rename="bundleOperationalStatus")] - pub bundle_operational_status: Option, + pub bundle_operational_status: Option, /// A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. pub links: Option>, @@ -8424,7 +8424,7 @@ pub struct InterconnectDiagnosticsLinkLACPStatus { pub neighbor_system_id: Option, /// 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. - pub state: Option, + pub state: Option, } impl client::Part for InterconnectDiagnosticsLinkLACPStatus {} @@ -8439,7 +8439,7 @@ impl client::Part for InterconnectDiagnosticsLinkLACPStatus {} 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. - pub state: Option, + pub state: Option, /// 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. pub value: Option, @@ -8474,7 +8474,7 @@ pub struct InterconnectDiagnosticsLinkStatus { /// The operational status of the link. #[serde(rename="operationalStatus")] - pub operational_status: Option, + pub operational_status: Option, /// An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the received light level. #[serde(rename="receivingOpticalPower")] @@ -8548,7 +8548,7 @@ pub struct InterconnectLocation { pub city: Option, /// [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - pub continent: Option, + pub continent: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -8588,7 +8588,7 @@ pub struct InterconnectLocation { pub self_link: Option, /// [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. - pub status: Option, + pub status: Option, /// [Output Only] Set to true for locations that support physical zone separation. Defaults to false if the field is not present. #[serde(rename="supportsPzs")] @@ -8650,7 +8650,7 @@ pub struct InterconnectLocationRegionInfo { /// Identifies the network presence of this location. #[serde(rename="locationPresence")] - pub location_presence: Option, + pub location_presence: Option, /// URL for the region of this location. pub region: Option, @@ -8681,13 +8681,13 @@ pub struct InterconnectOutageNotification { /// 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. #[serde(rename="issueType")] - pub issue_type: Option, + pub issue_type: Option, /// Unique identifier for this outage notification. pub name: Option, /// 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. - pub source: Option, + pub source: Option, /// Scheduled start time for the outage (milliseconds since Unix epoch). #[serde(rename="startTime")] @@ -8695,7 +8695,7 @@ pub struct InterconnectOutageNotification { pub start_time: Option, /// 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. - pub state: Option, + pub state: Option, } impl client::Part for InterconnectOutageNotification {} @@ -8820,7 +8820,7 @@ pub struct LicenseCode { pub self_link: Option, /// [Output Only] Current state of this License Code. - pub state: Option, + pub state: Option, /// [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred. pub transferable: Option, @@ -8980,7 +8980,7 @@ pub struct LocationPolicy { /// Strategy for distributing VMs across zones in a region. #[serde(rename="targetShape")] - pub target_shape: Option, + pub target_shape: Option, } impl client::Part for LocationPolicy {} @@ -8998,7 +8998,7 @@ pub struct LocationPolicyLocation { pub constraints: Option, /// Preference for a given location. Set to either ALLOW or DENY. - pub preference: Option, + pub preference: Option, } impl client::Part for LocationPolicyLocation {} @@ -9057,7 +9057,7 @@ pub struct LogConfigCloudAuditOptions { /// This is deprecated and has no effect. Do not use. #[serde(rename="logName")] - pub log_name: Option, + pub log_name: Option, } impl client::Part for LogConfigCloudAuditOptions {} @@ -9113,7 +9113,7 @@ pub struct LogConfigDataAccessOptions { /// This is deprecated and has no effect. Do not use. #[serde(rename="logMode")] - pub log_mode: Option, + pub log_mode: Option, } impl client::Part for LogConfigDataAccessOptions {} @@ -9191,7 +9191,7 @@ pub struct MachineImage { pub source_instance_properties: Option, /// [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. - pub status: Option, + pub status: Option, /// The regional or multi-regional Cloud Storage bucket location where the machine image is stored. #[serde(rename="storageLocations")] @@ -9426,7 +9426,7 @@ 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. #[serde(rename="currentAction")] - pub current_action: Option, + pub current_action: Option, /// [Output only] The unique identifier for this resource. This field is empty when instance does not exist. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -9441,7 +9441,7 @@ pub struct ManagedInstance { /// [Output Only] The status of the instance. This field is empty when the instance does not exist. #[serde(rename="instanceStatus")] - pub instance_status: Option, + pub instance_status: Option, /// [Output Only] Information about the last attempt to create or delete the instance. #[serde(rename="lastAttempt")] @@ -9472,7 +9472,7 @@ pub struct ManagedInstanceInstanceHealth { /// [Output Only] The current detailed instance health state. #[serde(rename="detailedHealthState")] - pub detailed_health_state: Option, + pub detailed_health_state: Option, /// [Output Only] The URL for the health check that verifies whether the instance is healthy. #[serde(rename="healthCheck")] @@ -9557,7 +9557,7 @@ pub struct MetadataFilter { /// 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. #[serde(rename="filterMatchCriteria")] - pub filter_match_criteria: Option, + pub filter_match_criteria: Option, } impl client::Part for MetadataFilter {} @@ -9667,7 +9667,7 @@ pub struct 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. #[serde(rename="networkFirewallPolicyEnforcementOrder")] - pub network_firewall_policy_enforcement_order: Option, + pub network_firewall_policy_enforcement_order: Option, /// [Output Only] A list of network peerings for the resource. pub peerings: Option>, @@ -9718,7 +9718,7 @@ pub struct NetworkAttachment { /// no description provided #[serde(rename="connectionPreference")] - pub connection_preference: Option, + pub connection_preference: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -9829,7 +9829,7 @@ pub struct NetworkAttachmentConnectedEndpoint { pub secondary_ip_cidr_ranges: Option>, /// The status of a connected endpoint to this network attachment. - pub status: Option, + pub status: Option, /// The subnetwork used to assign the IP to the producer instance network interface. pub subnetwork: Option, @@ -10105,7 +10105,7 @@ pub struct NetworkEndpointGroup { /// 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. #[serde(rename="networkEndpointType")] - pub network_endpoint_type: Option, + pub network_endpoint_type: Option, /// no description provided #[serde(rename="pscData")] @@ -10296,7 +10296,7 @@ pub struct NetworkEndpointGroupPscData { /// [Output Only] The connection status of the PSC Forwarding Rule. #[serde(rename="pscConnectionStatus")] - pub psc_connection_status: Option, + pub psc_connection_status: Option, } impl client::Part for NetworkEndpointGroupPscData {} @@ -10356,7 +10356,7 @@ 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. #[serde(rename="healthStatus")] - pub health_status: Option, + pub health_status: Option, } impl client::RequestValue for NetworkEndpointGroupsListEndpointsRequest {} @@ -10467,7 +10467,7 @@ pub struct NetworkInterface { /// [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. #[serde(rename="ipv6AccessType")] - pub ipv6_access_type: Option, + pub ipv6_access_type: Option, /// An IPv6 internal network address for this network interface. #[serde(rename="ipv6Address")] @@ -10492,7 +10492,7 @@ pub struct NetworkInterface { /// The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. #[serde(rename="nicType")] - pub nic_type: Option, + pub nic_type: Option, /// 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. #[serde(rename="queueCount")] @@ -10500,7 +10500,7 @@ pub struct NetworkInterface { /// The stack type for this network interface 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 instance creation and update network interface operations. #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// 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 pub subnetwork: Option, @@ -10589,10 +10589,10 @@ pub struct NetworkPeering { /// Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. - pub state: Option, + pub state: Option, /// [Output Only] Details about the current state of the peering. #[serde(rename="stateDetails")] @@ -10612,7 +10612,7 @@ pub struct NetworkPerformanceConfig { /// no description provided #[serde(rename="totalEgressBandwidthTier")] - pub total_egress_bandwidth_tier: Option, + pub total_egress_bandwidth_tier: Option, } impl client::Part for NetworkPerformanceConfig {} @@ -10628,7 +10628,7 @@ 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. #[serde(rename="routingMode")] - pub routing_mode: Option, + pub routing_mode: Option, } impl client::Part for NetworkRoutingConfig {} @@ -10712,7 +10712,7 @@ pub struct NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { /// [Output Only] The type of the firewall policy. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy {} @@ -10809,7 +10809,7 @@ pub struct NodeGroup { /// 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. #[serde(rename="maintenancePolicy")] - pub maintenance_policy: Option, + pub maintenance_policy: Option, /// no description provided #[serde(rename="maintenanceWindow")] @@ -10834,7 +10834,7 @@ pub struct NodeGroup { pub size: Option, /// no description provided - pub status: Option, + pub status: Option, /// [Output Only] The name of the zone where the node group resides, such as us-central1-a. pub zone: Option, @@ -10901,7 +10901,7 @@ pub struct NodeGroupAutoscalingPolicy { pub min_nodes: Option, /// The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. - pub mode: Option, + pub mode: Option, } impl client::Part for NodeGroupAutoscalingPolicy {} @@ -10980,7 +10980,7 @@ pub struct NodeGroupNode { /// CPU overcommit. #[serde(rename="cpuOvercommitType")] - pub cpu_overcommit_type: Option, + pub cpu_overcommit_type: Option, /// Local disk configurations. pub disks: Option>, @@ -11012,7 +11012,7 @@ pub struct NodeGroupNode { pub server_id: Option, /// no description provided - pub status: Option, + pub status: Option, /// Total amount of available resources on the node. #[serde(rename="totalResources")] @@ -11160,7 +11160,7 @@ pub struct NodeTemplate { /// CPU overcommit. #[serde(rename="cpuOvercommitType")] - pub cpu_overcommit_type: Option, + pub cpu_overcommit_type: Option, /// [Output Only] Creation timestamp in RFC3339 text format. #[serde(rename="creationTimestamp")] @@ -11206,7 +11206,7 @@ pub struct NodeTemplate { pub server_binding: Option, /// [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. - pub status: Option, + pub status: Option, /// [Output Only] An optional, human-readable explanation of the status. #[serde(rename="statusMessage")] @@ -12041,7 +12041,7 @@ pub struct Operation { pub start_time: Option, /// [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. - pub status: Option, + pub status: Option, /// [Output Only] An optional textual description of the current status of the operation. #[serde(rename="statusMessage")] @@ -12234,7 +12234,7 @@ pub struct PacketIntervals { pub avg_ms: Option, /// From how long ago in the past these intervals were observed. - pub duration: Option, + pub duration: Option, /// Maximum observed inter-packet interval in milliseconds. #[serde(rename="maxMs")] @@ -12253,7 +12253,7 @@ pub struct PacketIntervals { /// The type of packets for which inter-packet intervals were computed. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for PacketIntervals {} @@ -12289,7 +12289,7 @@ pub struct PacketMirroring { pub description: Option, /// 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. - pub enable: Option, + pub enable: Option, /// Filter for mirrored traffic. If unspecified, all traffic is mirrored. pub filter: Option, @@ -12383,7 +12383,7 @@ pub struct PacketMirroringFilter { pub cidr_ranges: Option>, /// Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. - pub direction: Option, + pub direction: Option, } impl client::Part for PacketMirroringFilter {} @@ -12629,7 +12629,7 @@ pub struct PerInstanceConfig { pub preserved_state: Option, /// The status of applying this per-instance configuration on the corresponding managed instance. - pub status: Option, + pub status: Option, } impl client::Part for PerInstanceConfig {} @@ -12751,10 +12751,10 @@ 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. #[serde(rename="autoDelete")] - pub auto_delete: Option, + pub auto_delete: Option, /// 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. - pub mode: Option, + pub mode: Option, /// The URL of the disk resource that is stateful and should be attached to the VM instance. pub source: Option, @@ -12797,7 +12797,7 @@ pub struct Project { /// 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. #[serde(rename="defaultNetworkTier")] - pub default_network_tier: Option, + pub default_network_tier: Option, /// [Output Only] Default service account used by VMs running in this project. #[serde(rename="defaultServiceAccount")] @@ -12833,11 +12833,11 @@ pub struct Project { /// [Output Only] Default internal DNS setting used by VMs running in this project. #[serde(rename="vmDnsSetting")] - pub vm_dns_setting: Option, + pub vm_dns_setting: Option, /// [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. #[serde(rename="xpnProjectStatus")] - pub xpn_project_status: Option, + pub xpn_project_status: Option, } impl client::Resource for Project {} @@ -12943,7 +12943,7 @@ pub struct ProjectsSetDefaultNetworkTierRequest { /// Default network tier to be set. #[serde(rename="networkTier")] - pub network_tier: Option, + pub network_tier: Option, } impl client::RequestValue for ProjectsSetDefaultNetworkTierRequest {} @@ -13005,7 +13005,7 @@ pub struct PublicAdvertisedPrefix { pub shared_secret: Option, /// 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. - pub status: Option, + pub status: Option, } impl client::RequestValue for PublicAdvertisedPrefix {} @@ -13138,7 +13138,7 @@ pub struct PublicDelegatedPrefix { pub self_link: Option, /// [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. - pub status: Option, + pub status: Option, } impl client::RequestValue for PublicDelegatedPrefix {} @@ -13251,7 +13251,7 @@ pub struct PublicDelegatedPrefixPublicDelegatedSubPrefix { pub region: Option, /// [Output Only] The status of the sub public delegated prefix. - pub status: Option, + pub status: Option, } impl client::Part for PublicDelegatedPrefixPublicDelegatedSubPrefix {} @@ -13288,7 +13288,7 @@ pub struct Quota { pub limit: Option, /// [Output Only] Name of the quota metric. - pub metric: Option, + pub metric: Option, /// [Output Only] Owning resource. This is the resource on which this quota is applied. pub owner: Option, @@ -13392,7 +13392,7 @@ pub struct Region { pub self_link: Option, /// [Output Only] Status of the region, either UP or DOWN. - pub status: Option, + pub status: Option, /// [Output Only] Reserved for future use. #[serde(rename="supportsPzs")] @@ -13710,11 +13710,11 @@ pub struct RegionInstanceGroupManagersApplyUpdatesRequest { /// 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. - 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. #[serde(rename="minimalAction")] - pub minimal_action: Option, + pub minimal_action: Option, /// 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. - 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. #[serde(rename="mostDisruptiveAllowedAction")] - pub most_disruptive_allowed_action: Option, + pub most_disruptive_allowed_action: Option, } impl client::RequestValue for RegionInstanceGroupManagersApplyUpdatesRequest {} @@ -13948,7 +13948,7 @@ pub struct RegionInstanceGroupsListInstancesRequest { /// Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances. #[serde(rename="instanceState")] - pub instance_state: Option, + pub instance_state: Option, /// 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. #[serde(rename="portName")] @@ -14061,7 +14061,7 @@ pub struct RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFi /// [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy {} @@ -14251,7 +14251,7 @@ pub struct Reservation { pub specific_reservation_required: Option, /// [Output Only] The status of the reservation. - pub status: Option, + pub status: Option, /// Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. pub zone: Option, @@ -14272,7 +14272,7 @@ 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. #[serde(rename="consumeReservationType")] - pub consume_reservation_type: Option, + pub consume_reservation_type: Option, /// 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. pub key: Option, @@ -14416,7 +14416,7 @@ pub struct ResourceCommitment { /// Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ResourceCommitment {} @@ -14515,7 +14515,7 @@ pub struct ResourcePolicy { pub snapshot_schedule_policy: Option, /// [Output Only] The status of resource policy creation. - pub status: Option, + pub status: Option, } impl client::RequestValue for ResourcePolicy {} @@ -14600,7 +14600,7 @@ pub struct ResourcePolicyGroupPlacementPolicy { pub availability_domain_count: Option, /// Specifies network collocation - pub collocation: Option, + pub collocation: Option, /// 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. #[serde(rename="vmCount")] @@ -14792,7 +14792,7 @@ pub struct ResourcePolicySnapshotSchedulePolicyRetentionPolicy { /// Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. #[serde(rename="onSourceDiskDelete")] - pub on_source_disk_delete: Option, + pub on_source_disk_delete: Option, } impl client::Part for ResourcePolicySnapshotSchedulePolicyRetentionPolicy {} @@ -14874,7 +14874,7 @@ impl client::Part for ResourcePolicyWeeklyCycle {} 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. - pub day: Option, + pub day: Option, /// [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. pub duration: Option, @@ -14979,11 +14979,11 @@ pub struct Route { /// [Output only] The status of the route. #[serde(rename="routeStatus")] - pub route_status: Option, + pub route_status: Option, /// [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 #[serde(rename="routeType")] - pub route_type: Option, + pub route_type: Option, /// [Output Only] Server-defined fully-qualified URL for this resource. #[serde(rename="selfLink")] @@ -15015,7 +15015,7 @@ pub struct RouteAsPath { /// [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 #[serde(rename="pathSegmentType")] - pub path_segment_type: Option, + pub path_segment_type: Option, } impl client::Part for RouteAsPath {} @@ -15199,11 +15199,11 @@ pub struct RouterBgp { /// User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. #[serde(rename="advertiseMode")] - pub advertise_mode: Option, + pub advertise_mode: Option, /// 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. #[serde(rename="advertisedGroups")] - pub advertised_groups: Option>, + pub advertised_groups: Option>, /// 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. #[serde(rename="advertisedIpRanges")] @@ -15230,11 +15230,11 @@ pub struct RouterBgpPeer { /// User-specified flag to indicate which mode to use for advertisement. #[serde(rename="advertiseMode")] - pub advertise_mode: Option, + pub advertise_mode: Option, /// User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 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. #[serde(rename="advertisedGroups")] - pub advertised_groups: Option>, + pub advertised_groups: Option>, /// 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. #[serde(rename="advertisedIpRanges")] @@ -15248,7 +15248,7 @@ pub struct RouterBgpPeer { pub bfd: Option, /// 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. - pub enable: Option, + pub enable: Option, /// Enable IPv6 traffic over BGP Peer. If not specified, it is disabled by default. #[serde(rename="enableIpv6")] @@ -15268,7 +15268,7 @@ pub struct RouterBgpPeer { /// [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. #[serde(rename="managementType")] - pub management_type: Option, + pub management_type: Option, /// 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. #[serde(rename="md5AuthenticationKeyName")] @@ -15318,7 +15318,7 @@ pub struct RouterBgpPeerBfd { /// 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. #[serde(rename="sessionInitializationMode")] - pub session_initialization_mode: Option, + pub session_initialization_mode: Option, } impl client::Part for RouterBgpPeerBfd {} @@ -15346,7 +15346,7 @@ pub struct RouterInterface { /// [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. #[serde(rename="managementType")] - pub management_type: Option, + pub management_type: Option, /// 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. pub name: Option, @@ -15442,7 +15442,7 @@ pub struct RouterNat { /// 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 #[serde(rename="endpointTypes")] - pub endpoint_types: Option>, + pub endpoint_types: Option>, /// Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. #[serde(rename="icmpIdleTimeoutSec")] @@ -15465,7 +15465,7 @@ pub struct RouterNat { /// 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. #[serde(rename="natIpAllocateOption")] - pub nat_ip_allocate_option: Option, + pub nat_ip_allocate_option: Option, /// 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. #[serde(rename="natIps")] @@ -15476,7 +15476,7 @@ pub struct RouterNat { /// 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 or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. #[serde(rename="sourceSubnetworkIpRangesToNat")] - pub source_subnetwork_ip_ranges_to_nat: Option, + pub source_subnetwork_ip_ranges_to_nat: Option, /// 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. pub subnetworks: Option>, @@ -15513,7 +15513,7 @@ pub struct RouterNatLogConfig { pub enable: Option, /// 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. - pub filter: Option, + pub filter: Option, } impl client::Part for RouterNatLogConfig {} @@ -15582,7 +15582,7 @@ pub struct RouterNatSubnetworkToNat { /// 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] #[serde(rename="sourceIpRangesToNat")] - pub source_ip_ranges_to_nat: Option>, + pub source_ip_ranges_to_nat: Option>, } impl client::Part for RouterNatSubnetworkToNat {} @@ -15678,11 +15678,11 @@ pub struct RouterStatusBgpPeerStatus { pub state: Option, /// Status of the BGP peer: {UP, DOWN} - pub status: Option, + pub status: Option, /// Indicates why particular status was returned. #[serde(rename="statusReason")] - pub status_reason: Option, + pub status_reason: Option, /// Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds pub uptime: Option, @@ -15842,7 +15842,7 @@ impl client::Part for RoutersScopedList {} pub struct Rule { /// This is deprecated and has no effect. Do not use. - pub action: Option, + pub action: Option, /// This is deprecated and has no effect. Do not use. pub conditions: Option>, @@ -15885,11 +15885,11 @@ pub struct SSLHealthCheck { /// 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 pass-through 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 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. #[serde(rename="portSpecification")] - pub port_specification: Option, + pub port_specification: Option, /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// 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. pub request: Option, @@ -15941,7 +15941,7 @@ pub struct SavedAttachedDisk { pub index: Option, /// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. - pub interface: Option, + pub interface: Option, /// [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. pub kind: Option, @@ -15950,7 +15950,7 @@ pub struct SavedAttachedDisk { pub licenses: Option>, /// The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. - pub mode: Option, + pub mode: Option, /// Specifies a URL of the disk attached to the source instance. pub source: Option, @@ -15962,11 +15962,11 @@ pub struct SavedAttachedDisk { /// [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. #[serde(rename="storageBytesStatus")] - pub storage_bytes_status: Option, + pub storage_bytes_status: Option, /// Specifies the type of the attached disk, either SCRATCH or PERSISTENT. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SavedAttachedDisk {} @@ -15981,7 +15981,7 @@ impl client::Part for SavedAttachedDisk {} pub struct SavedDisk { /// [Output Only] The architecture of the attached disk. - pub architecture: Option, + pub architecture: Option, /// [Output Only] Type of the resource. Always compute#savedDisk for attached disks. pub kind: Option, @@ -15997,7 +15997,7 @@ pub struct SavedDisk { /// [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. #[serde(rename="storageBytesStatus")] - pub storage_bytes_status: Option, + pub storage_bytes_status: Option, } impl client::Part for SavedDisk {} @@ -16020,7 +16020,7 @@ pub struct ScalingScheduleStatus { pub next_start_time: Option, /// [Output Only] The current state of a scaling schedule. - pub state: Option, + pub state: Option, } impl client::Part for ScalingScheduleStatus {} @@ -16044,7 +16044,7 @@ pub struct Scheduling { /// Specifies the termination action for the instance. #[serde(rename="instanceTerminationAction")] - pub instance_termination_action: Option, + pub instance_termination_action: Option, /// 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. #[serde(rename="locationHint")] @@ -16060,14 +16060,14 @@ pub struct Scheduling { /// 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. #[serde(rename="onHostMaintenance")] - pub on_host_maintenance: Option, + pub on_host_maintenance: Option, /// 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. pub preemptible: Option, /// Specifies the provisioning model of the instance. #[serde(rename="provisioningModel")] - pub provisioning_model: Option, + pub provisioning_model: Option, } impl client::RequestValue for Scheduling {} @@ -16085,7 +16085,7 @@ pub struct SchedulingNodeAffinity { pub key: Option, /// Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. - pub operator: Option, + pub operator: Option, /// Corresponds to the label values of Node resource. pub values: Option>, @@ -16279,7 +16279,7 @@ pub struct SecurityPolicy { /// 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. This field can be set only at resource creation time. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for SecurityPolicy {} @@ -16315,7 +16315,7 @@ pub struct SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig { /// Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. #[serde(rename="ruleVisibility")] - pub rule_visibility: Option, + pub rule_visibility: Option, } impl client::Part for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig {} @@ -16335,11 +16335,11 @@ pub struct SecurityPolicyAdvancedOptionsConfig { /// no description provided #[serde(rename="jsonParsing")] - pub json_parsing: Option, + pub json_parsing: Option, /// no description provided #[serde(rename="logLevel")] - pub log_level: Option, + pub log_level: Option, } impl client::Part for SecurityPolicyAdvancedOptionsConfig {} @@ -16371,7 +16371,7 @@ pub struct SecurityPolicyDdosProtectionConfig { /// no description provided #[serde(rename="ddosProtection")] - pub ddos_protection: Option, + pub ddos_protection: Option, } impl client::Part for SecurityPolicyDdosProtectionConfig {} @@ -16550,7 +16550,7 @@ pub struct SecurityPolicyRuleMatcher { /// 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. #[serde(rename="versionedExpr")] - pub versioned_expr: Option, + pub versioned_expr: Option, } impl client::Part for SecurityPolicyRuleMatcher {} @@ -16594,7 +16594,7 @@ pub struct SecurityPolicyRuleRateLimitOptions { /// 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. #[serde(rename="enforceOnKey")] - pub enforce_on_key: Option, + pub enforce_on_key: Option, /// 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. #[serde(rename="enforceOnKeyName")] @@ -16648,7 +16648,7 @@ pub struct SecurityPolicyRuleRedirectOptions { /// Type of the redirect action. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SecurityPolicyRuleRedirectOptions {} @@ -16718,7 +16718,7 @@ pub struct ServerBinding { /// no description provided #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ServerBinding {} @@ -16768,7 +16768,7 @@ pub struct ServiceAttachment { /// 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. #[serde(rename="connectionPreference")] - pub connection_preference: Option, + pub connection_preference: Option, /// Projects that are allowed to connect to this service attachment. #[serde(rename="consumerAcceptLists")] @@ -16892,7 +16892,7 @@ pub struct ServiceAttachmentConnectedEndpoint { pub psc_connection_id: Option, /// The status of a connected endpoint to this service attachment. - pub status: Option, + pub status: Option, } impl client::Part for ServiceAttachmentConnectedEndpoint {} @@ -16991,7 +16991,7 @@ pub struct ShareSettings { /// Type of sharing for this shared-reservation #[serde(rename="shareType")] - pub share_type: Option, + pub share_type: Option, } impl client::Part for ShareSettings {} @@ -17155,7 +17155,7 @@ impl client::RequestValue for SignedUrlKey {} pub struct Snapshot { /// [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. - pub architecture: Option, + pub architecture: Option, /// [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk. #[serde(rename="autoCreated")] @@ -17231,7 +17231,7 @@ pub struct Snapshot { /// Indicates the type of the snapshot. #[serde(rename="snapshotType")] - pub snapshot_type: Option, + pub snapshot_type: Option, /// The source disk used to create this snapshot. #[serde(rename="sourceDisk")] @@ -17254,7 +17254,7 @@ pub struct Snapshot { pub source_snapshot_schedule_policy_id: Option, /// [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. - pub status: Option, + pub status: Option, /// [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. #[serde(rename="storageBytes")] @@ -17263,7 +17263,7 @@ pub struct Snapshot { /// [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. #[serde(rename="storageBytesStatus")] - pub storage_bytes_status: Option, + pub storage_bytes_status: Option, /// Cloud Storage bucket storage location of the snapshot (regional or multi-regional). #[serde(rename="storageLocations")] @@ -17375,7 +17375,7 @@ pub struct SourceInstanceProperties { /// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. #[serde(rename="keyRevocationActionType")] - pub key_revocation_action_type: Option, + pub key_revocation_action_type: Option, /// Labels to apply to instances that are created from this machine image. pub labels: Option>, @@ -17475,7 +17475,7 @@ pub struct SslCertificate { /// (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. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for SslCertificate {} @@ -17569,13 +17569,13 @@ pub struct SslCertificateManagedSslCertificate { /// [Output only] Detailed statuses of the domains specified for managed certificate resource. #[serde(rename="domainStatus")] - pub domain_status: Option>, + pub domain_status: Option>, /// 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](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates). pub domains: Option>, /// [Output only] Status of the managed certificate resource. - pub status: Option, + pub status: Option, } impl client::Part for SslCertificateManagedSslCertificate {} @@ -17782,13 +17782,13 @@ pub struct SslPolicy { /// 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. #[serde(rename="minTlsVersion")] - pub min_tls_version: Option, + pub min_tls_version: Option, /// 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. pub name: Option, /// 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. - pub profile: Option, + pub profile: Option, /// [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. pub region: Option, @@ -17867,7 +17867,7 @@ 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. #[serde(rename="autoDelete")] - pub auto_delete: Option, + pub auto_delete: Option, } impl client::Part for StatefulPolicyPreservedStateDiskDevice {} @@ -17933,7 +17933,7 @@ pub struct 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. #[serde(rename="ipv6AccessType")] - pub ipv6_access_type: Option, + pub ipv6_access_type: Option, /// [Output Only] This field is for internal use. #[serde(rename="ipv6CidrRange")] @@ -17958,16 +17958,16 @@ pub struct Subnetwork { /// This field is for internal use. This field can be both set at resource creation time and updated using patch. #[serde(rename="privateIpv6GoogleAccess")] - pub private_ipv6_google_access: Option, + pub private_ipv6_google_access: Option, /// The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. - pub purpose: Option, + pub purpose: Option, /// URL of the region where the Subnetwork resides. This field can be set only at resource creation time. pub region: Option, /// The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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. - pub role: Option, + pub role: Option, /// 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. #[serde(rename="secondaryIpRanges")] @@ -17979,10 +17979,10 @@ pub struct Subnetwork { /// 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. #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// [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 - pub state: Option, + pub state: Option, } impl client::RequestValue for Subnetwork {} @@ -18075,7 +18075,7 @@ 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. #[serde(rename="aggregationInterval")] - pub aggregation_interval: Option, + pub aggregation_interval: Option, /// 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. pub enable: Option, @@ -18089,7 +18089,7 @@ pub struct SubnetworkLogConfig { pub flow_sampling: Option, /// 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. - pub metadata: Option, + pub metadata: Option, /// Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA. #[serde(rename="metadataFields")] @@ -18186,7 +18186,7 @@ impl client::RequestValue for SubnetworksSetPrivateIpGoogleAccessRequest {} pub struct Subsetting { /// no description provided - pub policy: Option, + pub policy: Option, } impl client::Part for Subsetting {} @@ -18209,11 +18209,11 @@ pub struct TCPHealthCheck { /// 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 pass-through 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 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. #[serde(rename="portSpecification")] - pub port_specification: Option, + pub port_specification: Option, /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection. pub request: Option, @@ -18542,7 +18542,7 @@ pub struct TargetHttpsProxiesSetQuicOverrideRequest { /// QUIC policy for the TargetHttpsProxy resource. #[serde(rename="quicOverride")] - pub quic_override: Option, + pub quic_override: Option, } impl client::RequestValue for TargetHttpsProxiesSetQuicOverrideRequest {} @@ -18620,7 +18620,7 @@ pub struct TargetHttpsProxy { /// 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. #[serde(rename="quicOverride")] - pub quic_override: Option, + pub quic_override: Option, /// [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not applicable to global TargetHttpsProxies. pub region: Option, @@ -18764,7 +18764,7 @@ pub struct TargetInstance { /// 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. #[serde(rename="natPolicy")] - pub nat_policy: Option, + pub nat_policy: Option, /// 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. pub network: Option, @@ -18939,7 +18939,7 @@ pub struct TargetPool { /// 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. #[serde(rename="sessionAffinity")] - pub session_affinity: Option, + pub session_affinity: Option, } impl client::RequestValue for TargetPool {} @@ -19216,7 +19216,7 @@ pub struct TargetSslProxiesSetProxyHeaderRequest { /// The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, } impl client::RequestValue for TargetSslProxiesSetProxyHeaderRequest {} @@ -19278,7 +19278,7 @@ pub struct TargetSslProxy { /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// [Output Only] Server-defined URL for the resource. #[serde(rename="selfLink")] @@ -19388,7 +19388,7 @@ pub struct TargetTcpProxiesSetProxyHeaderRequest { /// The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, } impl client::RequestValue for TargetTcpProxiesSetProxyHeaderRequest {} @@ -19432,7 +19432,7 @@ pub struct TargetTcpProxy { /// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. #[serde(rename="proxyHeader")] - pub proxy_header: Option, + pub proxy_header: Option, /// [Output Only] URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy. pub region: Option, @@ -19574,7 +19574,7 @@ pub struct TargetVpnGateway { pub self_link: Option, /// [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. - pub status: Option, + pub status: Option, /// [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway. pub tunnels: Option>, @@ -20124,7 +20124,7 @@ pub struct UrlMapsValidateRequest { /// Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. 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. #[serde(rename="loadBalancingSchemes")] - pub load_balancing_schemes: Option>, + pub load_balancing_schemes: Option>, /// Content of the UrlMap to be validated. pub resource: Option, @@ -20195,16 +20195,16 @@ pub struct UsableSubnetwork { /// 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. #[serde(rename="ipv6AccessType")] - pub ipv6_access_type: Option, + pub ipv6_access_type: Option, /// Network URL. pub network: Option, /// The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. - pub purpose: Option, + pub purpose: Option, /// The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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. - pub role: Option, + pub role: Option, /// Secondary IP ranges. #[serde(rename="secondaryIpRanges")] @@ -20212,7 +20212,7 @@ pub struct UsableSubnetwork { /// 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. #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// Subnetwork URL. pub subnetwork: Option, @@ -20485,7 +20485,7 @@ pub struct VpnGateway { /// 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. #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// The list of VPN interfaces associated with this VPN gateway. #[serde(rename="vpnInterfaces")] @@ -20597,11 +20597,11 @@ impl client::Part for VpnGatewayStatus {} pub struct VpnGatewayStatusHighAvailabilityRequirementState { /// Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. - pub state: Option, + pub state: Option, /// Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. #[serde(rename="unsatisfiedReason")] - pub unsatisfied_reason: Option, + pub unsatisfied_reason: Option, } impl client::Part for VpnGatewayStatusHighAvailabilityRequirementState {} @@ -20803,7 +20803,7 @@ pub struct VpnTunnel { pub shared_secret_hash: Option, /// [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. - pub status: Option, + pub status: Option, /// URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. #[serde(rename="targetVpnGateway")] @@ -21025,7 +21025,7 @@ pub struct XpnResourceId { /// The type of the service resource. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for XpnResourceId {} @@ -21076,7 +21076,7 @@ pub struct Zone { pub self_link: Option, /// [Output Only] Status of the zone, either UP or DOWN. - pub status: Option, + pub status: Option, /// [Output Only] Reserved for future use. #[serde(rename="supportsPzs")] @@ -21185,7 +21185,7 @@ impl client::RequestValue for ZoneSetPolicyRequest {} pub struct AcceleratorTypeAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21226,7 +21226,7 @@ impl client::Part for AcceleratorTypeAggregatedListWarningData {} pub struct AcceleratorTypeListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21267,7 +21267,7 @@ impl client::Part for AcceleratorTypeListWarningData {} pub struct AcceleratorTypesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21308,7 +21308,7 @@ impl client::Part for AcceleratorTypesScopedListWarningData {} pub struct AddressAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21349,7 +21349,7 @@ impl client::Part for AddressAggregatedListWarningData {} pub struct AddressListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21390,7 +21390,7 @@ impl client::Part for AddressListWarningData {} pub struct AddressesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21431,7 +21431,7 @@ impl client::Part for AddressesScopedListWarningData {} pub struct AutoscalerAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21472,7 +21472,7 @@ impl client::Part for AutoscalerAggregatedListWarningData {} pub struct AutoscalerListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21513,7 +21513,7 @@ impl client::Part for AutoscalerListWarningData {} pub struct AutoscalersScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21554,7 +21554,7 @@ impl client::Part for AutoscalersScopedListWarningData {} pub struct BackendBucketListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21595,7 +21595,7 @@ impl client::Part for BackendBucketListWarningData {} pub struct BackendServiceAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21636,7 +21636,7 @@ impl client::Part for BackendServiceAggregatedListWarningData {} pub struct BackendServiceListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21677,7 +21677,7 @@ impl client::Part for BackendServiceListWarningData {} pub struct BackendServicesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21718,7 +21718,7 @@ impl client::Part for BackendServicesScopedListWarningData {} pub struct CommitmentAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21759,7 +21759,7 @@ impl client::Part for CommitmentAggregatedListWarningData {} pub struct CommitmentListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21800,7 +21800,7 @@ impl client::Part for CommitmentListWarningData {} pub struct CommitmentsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21841,7 +21841,7 @@ impl client::Part for CommitmentsScopedListWarningData {} pub struct DiskAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21882,7 +21882,7 @@ impl client::Part for DiskAggregatedListWarningData {} pub struct DiskListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21923,7 +21923,7 @@ impl client::Part for DiskListWarningData {} pub struct DiskTypeAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -21964,7 +21964,7 @@ impl client::Part for DiskTypeAggregatedListWarningData {} pub struct DiskTypeListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22005,7 +22005,7 @@ impl client::Part for DiskTypeListWarningData {} pub struct DiskTypesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22046,7 +22046,7 @@ impl client::Part for DiskTypesScopedListWarningData {} pub struct DisksScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22087,7 +22087,7 @@ impl client::Part for DisksScopedListWarningData {} pub struct ExchangedPeeringRoutesListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22128,7 +22128,7 @@ impl client::Part for ExchangedPeeringRoutesListWarningData {} pub struct ExternalVpnGatewayListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22209,7 +22209,7 @@ impl client::Part for FirewallDenied {} pub struct FirewallListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22250,7 +22250,7 @@ impl client::Part for FirewallListWarningData {} pub struct FirewallPolicyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22291,7 +22291,7 @@ impl client::Part for FirewallPolicyListWarningData {} pub struct ForwardingRuleAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22332,7 +22332,7 @@ impl client::Part for ForwardingRuleAggregatedListWarningData {} pub struct ForwardingRuleListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22373,7 +22373,7 @@ impl client::Part for ForwardingRuleListWarningData {} pub struct ForwardingRulesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22414,7 +22414,7 @@ impl client::Part for ForwardingRulesScopedListWarningData {} pub struct HealthCheckListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22455,7 +22455,7 @@ impl client::Part for HealthCheckListWarningData {} pub struct HealthCheckServicesListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22496,7 +22496,7 @@ impl client::Part for HealthCheckServicesListWarningData {} pub struct HealthChecksAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22537,7 +22537,7 @@ impl client::Part for HealthChecksAggregatedListWarningData {} pub struct HealthChecksScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22578,7 +22578,7 @@ impl client::Part for HealthChecksScopedListWarningData {} pub struct HttpHealthCheckListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22619,7 +22619,7 @@ impl client::Part for HttpHealthCheckListWarningData {} pub struct HttpsHealthCheckListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22661,7 +22661,7 @@ pub struct ImageRawDisk { /// 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. #[serde(rename="containerType")] - pub container_type: Option, + pub container_type: Option, /// [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. #[serde(rename="sha1Checksum")] @@ -22684,7 +22684,7 @@ impl client::Part for ImageRawDisk {} pub struct ImageListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22725,7 +22725,7 @@ impl client::Part for ImageListWarningData {} pub struct InstanceAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22766,7 +22766,7 @@ impl client::Part for InstanceAggregatedListWarningData {} pub struct InstanceGroupAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22807,7 +22807,7 @@ impl client::Part for InstanceGroupAggregatedListWarningData {} pub struct InstanceGroupListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22848,7 +22848,7 @@ impl client::Part for InstanceGroupListWarningData {} pub struct InstanceGroupManagerAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22889,7 +22889,7 @@ impl client::Part for InstanceGroupManagerAggregatedListWarningData {} pub struct InstanceGroupManagerListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22930,7 +22930,7 @@ impl client::Part for InstanceGroupManagerListWarningData {} pub struct InstanceGroupManagersListPerInstanceConfigsRespWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -22971,7 +22971,7 @@ impl client::Part for InstanceGroupManagersListPerInstanceConfigsRespWarningData pub struct InstanceGroupManagersScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23012,7 +23012,7 @@ impl client::Part for InstanceGroupManagersScopedListWarningData {} pub struct InstanceGroupsListInstancesWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23053,7 +23053,7 @@ impl client::Part for InstanceGroupsListInstancesWarningData {} pub struct InstanceGroupsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23094,7 +23094,7 @@ impl client::Part for InstanceGroupsScopedListWarningData {} pub struct InstanceListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23135,7 +23135,7 @@ impl client::Part for InstanceListWarningData {} pub struct InstanceListReferrersWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23176,7 +23176,7 @@ impl client::Part for InstanceListReferrersWarningData {} pub struct InstanceTemplateListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23217,7 +23217,7 @@ impl client::Part for InstanceTemplateListWarningData {} pub struct InstancesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23258,7 +23258,7 @@ impl client::Part for InstancesScopedListWarningData {} pub struct InterconnectAttachmentAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23299,7 +23299,7 @@ impl client::Part for InterconnectAttachmentAggregatedListWarningData {} pub struct InterconnectAttachmentListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23340,7 +23340,7 @@ impl client::Part for InterconnectAttachmentListWarningData {} pub struct InterconnectAttachmentsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23381,7 +23381,7 @@ impl client::Part for InterconnectAttachmentsScopedListWarningData {} pub struct InterconnectListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23422,7 +23422,7 @@ impl client::Part for InterconnectListWarningData {} pub struct InterconnectLocationListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23463,7 +23463,7 @@ impl client::Part for InterconnectLocationListWarningData {} pub struct LicensesListResponseWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23504,7 +23504,7 @@ impl client::Part for LicensesListResponseWarningData {} pub struct MachineImageListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23583,7 +23583,7 @@ impl client::Part for MachineTypeScratchDisks {} pub struct MachineTypeAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23624,7 +23624,7 @@ impl client::Part for MachineTypeAggregatedListWarningData {} pub struct MachineTypeListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23665,7 +23665,7 @@ impl client::Part for MachineTypeListWarningData {} pub struct MachineTypesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23795,7 +23795,7 @@ impl client::Part for MetadataItems {} pub struct NetworkAttachmentAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23836,7 +23836,7 @@ impl client::Part for NetworkAttachmentAggregatedListWarningData {} pub struct NetworkAttachmentListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23877,7 +23877,7 @@ impl client::Part for NetworkAttachmentListWarningData {} pub struct NetworkAttachmentsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23918,7 +23918,7 @@ impl client::Part for NetworkAttachmentsScopedListWarningData {} pub struct NetworkEdgeSecurityServiceAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -23959,7 +23959,7 @@ impl client::Part for NetworkEdgeSecurityServiceAggregatedListWarningData {} pub struct NetworkEdgeSecurityServicesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24000,7 +24000,7 @@ impl client::Part for NetworkEdgeSecurityServicesScopedListWarningData {} pub struct NetworkEndpointGroupAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24041,7 +24041,7 @@ impl client::Part for NetworkEndpointGroupAggregatedListWarningData {} pub struct NetworkEndpointGroupListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24082,7 +24082,7 @@ impl client::Part for NetworkEndpointGroupListWarningData {} pub struct NetworkEndpointGroupsListNetworkEndpointsWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24123,7 +24123,7 @@ impl client::Part for NetworkEndpointGroupsListNetworkEndpointsWarningData {} pub struct NetworkEndpointGroupsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24164,7 +24164,7 @@ impl client::Part for NetworkEndpointGroupsScopedListWarningData {} pub struct NetworkListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24205,7 +24205,7 @@ impl client::Part for NetworkListWarningData {} pub struct NodeGroupAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24246,7 +24246,7 @@ impl client::Part for NodeGroupAggregatedListWarningData {} pub struct NodeGroupListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24287,7 +24287,7 @@ impl client::Part for NodeGroupListWarningData {} pub struct NodeGroupsListNodesWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24328,7 +24328,7 @@ impl client::Part for NodeGroupsListNodesWarningData {} pub struct NodeGroupsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24369,7 +24369,7 @@ impl client::Part for NodeGroupsScopedListWarningData {} pub struct NodeTemplateAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24410,7 +24410,7 @@ impl client::Part for NodeTemplateAggregatedListWarningData {} pub struct NodeTemplateListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24451,7 +24451,7 @@ impl client::Part for NodeTemplateListWarningData {} pub struct NodeTemplatesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24492,7 +24492,7 @@ impl client::Part for NodeTemplatesScopedListWarningData {} pub struct NodeTypeAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24533,7 +24533,7 @@ impl client::Part for NodeTypeAggregatedListWarningData {} pub struct NodeTypeListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24574,7 +24574,7 @@ impl client::Part for NodeTypeListWarningData {} pub struct NodeTypesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24615,7 +24615,7 @@ impl client::Part for NodeTypesScopedListWarningData {} pub struct NotificationEndpointListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24726,7 +24726,7 @@ impl client::Part for OperationErrorErrorsErrorDetails {} pub struct OperationWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24767,7 +24767,7 @@ impl client::Part for OperationWarningsData {} pub struct OperationAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24808,7 +24808,7 @@ impl client::Part for OperationAggregatedListWarningData {} pub struct OperationListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24849,7 +24849,7 @@ impl client::Part for OperationListWarningData {} pub struct OperationsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24890,7 +24890,7 @@ impl client::Part for OperationsScopedListWarningData {} pub struct PacketMirroringAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24931,7 +24931,7 @@ impl client::Part for PacketMirroringAggregatedListWarningData {} pub struct PacketMirroringListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -24972,7 +24972,7 @@ impl client::Part for PacketMirroringListWarningData {} pub struct PacketMirroringsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25013,7 +25013,7 @@ impl client::Part for PacketMirroringsScopedListWarningData {} pub struct PublicAdvertisedPrefixListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25054,7 +25054,7 @@ impl client::Part for PublicAdvertisedPrefixListWarningData {} pub struct PublicDelegatedPrefixAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25095,7 +25095,7 @@ impl client::Part for PublicDelegatedPrefixAggregatedListWarningData {} pub struct PublicDelegatedPrefixListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25136,7 +25136,7 @@ impl client::Part for PublicDelegatedPrefixListWarningData {} pub struct PublicDelegatedPrefixesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25177,7 +25177,7 @@ impl client::Part for PublicDelegatedPrefixesScopedListWarningData {} pub struct RegionAutoscalerListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25218,7 +25218,7 @@ impl client::Part for RegionAutoscalerListWarningData {} pub struct RegionDiskTypeListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25259,7 +25259,7 @@ impl client::Part for RegionDiskTypeListWarningData {} pub struct RegionInstanceGroupListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25300,7 +25300,7 @@ impl client::Part for RegionInstanceGroupListWarningData {} pub struct RegionInstanceGroupManagerListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25341,7 +25341,7 @@ impl client::Part for RegionInstanceGroupManagerListWarningData {} pub struct RegionInstanceGroupManagersListInstanceConfigsRespWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25382,7 +25382,7 @@ impl client::Part for RegionInstanceGroupManagersListInstanceConfigsRespWarningD pub struct RegionInstanceGroupsListInstancesWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25423,7 +25423,7 @@ impl client::Part for RegionInstanceGroupsListInstancesWarningData {} pub struct RegionListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25464,7 +25464,7 @@ impl client::Part for RegionListWarningData {} pub struct ReservationAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25505,7 +25505,7 @@ impl client::Part for ReservationAggregatedListWarningData {} pub struct ReservationListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25546,7 +25546,7 @@ impl client::Part for ReservationListWarningData {} pub struct ReservationsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25587,7 +25587,7 @@ impl client::Part for ReservationsScopedListWarningData {} pub struct ResourcePoliciesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25628,7 +25628,7 @@ impl client::Part for ResourcePoliciesScopedListWarningData {} pub struct ResourcePolicyAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25669,7 +25669,7 @@ impl client::Part for ResourcePolicyAggregatedListWarningData {} pub struct ResourcePolicyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25710,7 +25710,7 @@ impl client::Part for ResourcePolicyListWarningData {} pub struct RouteWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25751,7 +25751,7 @@ impl client::Part for RouteWarningsData {} pub struct RouteListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25792,7 +25792,7 @@ impl client::Part for RouteListWarningData {} pub struct RouterAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25833,7 +25833,7 @@ impl client::Part for RouterAggregatedListWarningData {} pub struct RouterListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25874,7 +25874,7 @@ impl client::Part for RouterListWarningData {} pub struct RoutersScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25915,7 +25915,7 @@ impl client::Part for RoutersScopedListWarningData {} pub struct SecurityPoliciesAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25956,7 +25956,7 @@ impl client::Part for SecurityPoliciesAggregatedListWarningData {} pub struct SecurityPoliciesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -25997,7 +25997,7 @@ impl client::Part for SecurityPoliciesScopedListWarningData {} pub struct SecurityPolicyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26038,7 +26038,7 @@ impl client::Part for SecurityPolicyListWarningData {} pub struct ServiceAttachmentAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26079,7 +26079,7 @@ impl client::Part for ServiceAttachmentAggregatedListWarningData {} pub struct ServiceAttachmentListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26120,7 +26120,7 @@ impl client::Part for ServiceAttachmentListWarningData {} pub struct ServiceAttachmentsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26161,7 +26161,7 @@ impl client::Part for ServiceAttachmentsScopedListWarningData {} pub struct SnapshotListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26202,7 +26202,7 @@ impl client::Part for SnapshotListWarningData {} pub struct SslCertificateAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26243,7 +26243,7 @@ impl client::Part for SslCertificateAggregatedListWarningData {} pub struct SslCertificateListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26284,7 +26284,7 @@ impl client::Part for SslCertificateListWarningData {} pub struct SslCertificatesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26325,7 +26325,7 @@ impl client::Part for SslCertificatesScopedListWarningData {} pub struct SslPoliciesAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26366,7 +26366,7 @@ impl client::Part for SslPoliciesAggregatedListWarningData {} pub struct SslPoliciesListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26407,7 +26407,7 @@ impl client::Part for SslPoliciesListWarningData {} pub struct SslPoliciesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26448,7 +26448,7 @@ impl client::Part for SslPoliciesScopedListWarningData {} pub struct SslPolicyWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26489,7 +26489,7 @@ impl client::Part for SslPolicyWarningsData {} pub struct SubnetworkAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26530,7 +26530,7 @@ impl client::Part for SubnetworkAggregatedListWarningData {} pub struct SubnetworkListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26571,7 +26571,7 @@ impl client::Part for SubnetworkListWarningData {} pub struct SubnetworksScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26612,7 +26612,7 @@ impl client::Part for SubnetworksScopedListWarningData {} pub struct TargetGrpcProxyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26653,7 +26653,7 @@ impl client::Part for TargetGrpcProxyListWarningData {} pub struct TargetHttpProxiesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26694,7 +26694,7 @@ impl client::Part for TargetHttpProxiesScopedListWarningData {} pub struct TargetHttpProxyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26735,7 +26735,7 @@ impl client::Part for TargetHttpProxyListWarningData {} pub struct TargetHttpsProxiesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26776,7 +26776,7 @@ impl client::Part for TargetHttpsProxiesScopedListWarningData {} pub struct TargetHttpsProxyAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26817,7 +26817,7 @@ impl client::Part for TargetHttpsProxyAggregatedListWarningData {} pub struct TargetHttpsProxyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26858,7 +26858,7 @@ impl client::Part for TargetHttpsProxyListWarningData {} pub struct TargetInstanceAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26899,7 +26899,7 @@ impl client::Part for TargetInstanceAggregatedListWarningData {} pub struct TargetInstanceListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26940,7 +26940,7 @@ impl client::Part for TargetInstanceListWarningData {} pub struct TargetInstancesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -26981,7 +26981,7 @@ impl client::Part for TargetInstancesScopedListWarningData {} pub struct TargetPoolAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27022,7 +27022,7 @@ impl client::Part for TargetPoolAggregatedListWarningData {} pub struct TargetPoolListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27063,7 +27063,7 @@ impl client::Part for TargetPoolListWarningData {} pub struct TargetPoolsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27104,7 +27104,7 @@ impl client::Part for TargetPoolsScopedListWarningData {} pub struct TargetSslProxyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27145,7 +27145,7 @@ impl client::Part for TargetSslProxyListWarningData {} pub struct TargetTcpProxiesScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27186,7 +27186,7 @@ impl client::Part for TargetTcpProxiesScopedListWarningData {} pub struct TargetTcpProxyAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27227,7 +27227,7 @@ impl client::Part for TargetTcpProxyAggregatedListWarningData {} pub struct TargetTcpProxyListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27268,7 +27268,7 @@ impl client::Part for TargetTcpProxyListWarningData {} pub struct TargetVpnGatewayAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27309,7 +27309,7 @@ impl client::Part for TargetVpnGatewayAggregatedListWarningData {} pub struct TargetVpnGatewayListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27350,7 +27350,7 @@ impl client::Part for TargetVpnGatewayListWarningData {} pub struct TargetVpnGatewaysScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27391,7 +27391,7 @@ impl client::Part for TargetVpnGatewaysScopedListWarningData {} pub struct UrlMapListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27432,7 +27432,7 @@ impl client::Part for UrlMapListWarningData {} pub struct UrlMapsAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27473,7 +27473,7 @@ impl client::Part for UrlMapsAggregatedListWarningData {} pub struct UrlMapsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27514,7 +27514,7 @@ impl client::Part for UrlMapsScopedListWarningData {} pub struct UsableSubnetworksAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27555,7 +27555,7 @@ impl client::Part for UsableSubnetworksAggregatedListWarningData {} pub struct VmEndpointNatMappingsListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27596,7 +27596,7 @@ impl client::Part for VmEndpointNatMappingsListWarningData {} pub struct VpnGatewayAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27637,7 +27637,7 @@ impl client::Part for VpnGatewayAggregatedListWarningData {} pub struct VpnGatewayListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27678,7 +27678,7 @@ impl client::Part for VpnGatewayListWarningData {} pub struct VpnGatewaysScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27719,7 +27719,7 @@ impl client::Part for VpnGatewaysScopedListWarningData {} pub struct VpnTunnelAggregatedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27760,7 +27760,7 @@ impl client::Part for VpnTunnelAggregatedListWarningData {} pub struct VpnTunnelListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27801,7 +27801,7 @@ impl client::Part for VpnTunnelListWarningData {} pub struct VpnTunnelsScopedListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27842,7 +27842,7 @@ impl client::Part for VpnTunnelsScopedListWarningData {} pub struct XpnHostListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -27883,7 +27883,7 @@ impl client::Part for XpnHostListWarningData {} pub struct ZoneListWarning { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, diff --git a/gen/connectors1/src/api/mod.rs b/gen/connectors1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/connectors1/src/api/mod.rs +++ b/gen/connectors1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/connectors1/src/api/schemas.rs b/gen/connectors1/src/api/schemas.rs index 8aa37c0b06..0bd2e6c8d3 100644 --- a/gen/connectors1/src/api/schemas.rs +++ b/gen/connectors1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -52,7 +52,7 @@ pub struct AuthConfig { /// The type of authentication configured. #[serde(rename="authType")] - pub auth_type: Option, + pub auth_type: Option, /// Oauth2ClientCredentials. #[serde(rename="oauth2ClientCredentials")] @@ -84,7 +84,7 @@ pub struct AuthConfigTemplate { /// The type of authentication configured. #[serde(rename="authType")] - pub auth_type: Option, + pub auth_type: Option, /// Config variables to describe an `AuthConfig` for a `Connection`. #[serde(rename="configVariableTemplates")] @@ -222,7 +222,7 @@ pub struct ConfigVariableTemplate { pub role_grant: Option, /// State of the config variable. - pub state: Option, + pub state: Option, /// Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`. #[serde(rename="validationRegex")] @@ -230,7 +230,7 @@ pub struct ConfigVariableTemplate { /// Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for ConfigVariableTemplate {} @@ -344,7 +344,7 @@ pub struct ConnectionSchemaMetadata { pub refresh_time: Option>, /// Output only. The current state of runtime schema. - pub state: Option, + pub state: Option, /// Output only. Timestamp when the connection runtime schema was updated. #[serde(rename="updateTime")] @@ -366,7 +366,7 @@ pub struct ConnectionStatus { pub description: Option, /// State. - pub state: Option, + pub state: Option, /// Status provides detailed information for the state. pub status: Option, @@ -411,7 +411,7 @@ pub struct Connector { /// Output only. Flag to mark the version indicating the launch stage. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Output only. Resource name of the Connector. Format: projects/{project}/locations/{location}/providers/{provider}/connectors/{connector} Only global location is supported for Connector resource. pub name: Option, @@ -465,7 +465,7 @@ pub struct ConnectorVersion { /// Output only. Flag to mark the version indicating the launch stage. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Output only. Resource name of the Version. Format: projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version} Only global location is supported for Connector resource. pub name: Option, @@ -661,7 +661,7 @@ pub struct Field { /// The data type of the Field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// The following field specifies the default value of the Field provided by the external system if a value is not provided. #[serde(rename="defaultValue")] @@ -696,7 +696,7 @@ pub struct InputParameter { /// The data type of the Parameter. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// The following field specifies the default value of the Parameter provided by the external system if a value is not provided. #[serde(rename="defaultValue")] @@ -1150,7 +1150,7 @@ pub struct Provider { /// Output only. Flag to mark the version indicating the launch stage. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Output only. Resource name of the Provider. Format: projects/{project}/locations/{location}/providers/{provider} Only global location is supported for Provider resource. pub name: Option, @@ -1196,7 +1196,7 @@ pub struct Resource { /// Different types of resource supported. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Resource {} @@ -1212,7 +1212,7 @@ pub struct ResultMetadata { /// The data type of the field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// A brief description of the field. pub description: Option, @@ -1237,7 +1237,7 @@ pub struct RoleGrant { pub helper_text_template: Option, /// Prinicipal/Identity for whom the role need to assigned. - pub principal: Option, + pub principal: Option, /// Resource on which the roles needs to be granted for the principal. pub resource: Option, @@ -1320,7 +1320,7 @@ pub struct RuntimeConfig { pub service_directory: Option, /// Output only. The state of the location. - pub state: Option, + pub state: Option, } impl client::ResponseResult for RuntimeConfig {} @@ -1398,7 +1398,7 @@ pub struct Source { /// Type of the source. #[serde(rename="sourceType")] - pub source_type: Option, + pub source_type: Option, } impl client::Part for Source {} diff --git a/gen/consumersurveys2/src/api/call_builders.rs b/gen/consumersurveys2/src/api/call_builders.rs index bbec3aae82..3aaae764ca 100644 --- a/gen/consumersurveys2/src/api/call_builders.rs +++ b/gen/consumersurveys2/src/api/call_builders.rs @@ -1127,7 +1127,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("panelId", self._panel_id); + params.push("panelId", &self._panel_id); params.extend(self._additional_params.iter()); @@ -1664,7 +1664,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("panelId", self._panel_id); + params.push("panelId", &self._panel_id); params.extend(self._additional_params.iter()); @@ -1957,7 +1957,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); @@ -2247,7 +2247,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); @@ -2505,7 +2505,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); @@ -3311,7 +3311,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("resourceId", self._resource_id); + params.push("resourceId", &self._resource_id); params.extend(self._additional_params.iter()); @@ -3591,7 +3591,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("resourceId", self._resource_id); + params.push("resourceId", &self._resource_id); params.extend(self._additional_params.iter()); @@ -3855,7 +3855,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); diff --git a/gen/consumersurveys2/src/api/mod.rs b/gen/consumersurveys2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/consumersurveys2/src/api/mod.rs +++ b/gen/consumersurveys2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/contactcenterinsights1/src/api/mod.rs b/gen/contactcenterinsights1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/contactcenterinsights1/src/api/mod.rs +++ b/gen/contactcenterinsights1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/contactcenterinsights1/src/api/schemas.rs b/gen/contactcenterinsights1/src/api/schemas.rs index 6d5b7b89bb..f5dc2f8d84 100644 --- a/gen/contactcenterinsights1/src/api/schemas.rs +++ b/gen/contactcenterinsights1/src/api/schemas.rs @@ -169,7 +169,7 @@ pub struct GoogleCloudContactcenterinsightsV1AnswerFeedback { /// The correctness level of an answer. #[serde(rename="correctnessLevel")] - pub correctness_level: Option, + pub correctness_level: Option, /// Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. pub displayed: Option, @@ -459,7 +459,7 @@ pub struct GoogleCloudContactcenterinsightsV1Conversation { pub latest_analysis: Option, /// Immutable. The conversation medium, if unspecified will default to PHONE_CALL. - pub medium: Option, + pub medium: Option, /// Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} pub name: Option, @@ -577,7 +577,7 @@ pub struct GoogleCloudContactcenterinsightsV1ConversationParticipant { pub obfuscated_external_user_id: Option, /// The role of the participant. - pub role: Option, + pub role: Option, /// A user-specified ID representing the participant. #[serde(rename="userId")] @@ -788,7 +788,7 @@ pub struct GoogleCloudContactcenterinsightsV1Entity { /// The entity type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudContactcenterinsightsV1Entity {} @@ -811,7 +811,7 @@ pub struct GoogleCloudContactcenterinsightsV1EntityMentionData { /// The type of the entity mention. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudContactcenterinsightsV1EntityMentionData {} @@ -861,7 +861,7 @@ pub struct GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest { /// Options for what to do if the destination table already exists. #[serde(rename="writeDisposition")] - pub write_disposition: Option, + pub write_disposition: Option, } impl client::RequestValue for GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest {} @@ -1024,7 +1024,7 @@ impl client::Part for GoogleCloudContactcenterinsightsV1IngestConversationsReque pub struct GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig { /// Required. The medium transcript objects represent. - pub medium: Option, + pub medium: Option, } impl client::Part for GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig {} @@ -1186,7 +1186,7 @@ pub struct GoogleCloudContactcenterinsightsV1IssueModel { pub name: Option, /// Output only. State of the model. - pub state: Option, + pub state: Option, /// Output only. Immutable. The issue model's label statistics on its training data. #[serde(rename="trainingStats")] @@ -1213,7 +1213,7 @@ pub struct GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig { pub filter: Option, /// Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`. - pub medium: Option, + pub medium: Option, /// Output only. Number of conversations used in training. Output only. #[serde(rename="trainingConversationsCount")] @@ -1496,7 +1496,7 @@ pub struct GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup { /// Required. The type of this phrase match rule group. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup {} @@ -1544,11 +1544,11 @@ pub struct GoogleCloudContactcenterinsightsV1PhraseMatcher { /// The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript. #[serde(rename="roleMatch")] - pub role_match: Option, + pub role_match: Option, /// Required. The type of this phrase matcher. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The most recent time at which the phrase matcher was updated. #[serde(rename="updateTime")] diff --git a/gen/container1/src/api/call_builders.rs b/gen/container1/src/api/call_builders.rs index 838a3ec10a..8924af8b2b 100644 --- a/gen/container1/src/api/call_builders.rs +++ b/gen/container1/src/api/call_builders.rs @@ -6277,7 +6277,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6576,7 +6576,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()); @@ -6868,7 +6868,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7161,7 +7161,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._zone.as_ref() { params.push("zone", value); } @@ -7471,7 +7471,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._zone.as_ref() { params.push("zone", value); } @@ -7779,7 +7779,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._zone.as_ref() { params.push("zone", value); } @@ -8078,7 +8078,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()); @@ -8370,7 +8370,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()); @@ -8662,7 +8662,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()); @@ -8954,7 +8954,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()); @@ -9246,7 +9246,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()); @@ -9530,7 +9530,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10017,7 +10017,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()); @@ -10309,7 +10309,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10600,7 +10600,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._zone.as_ref() { params.push("zone", value); } @@ -10898,7 +10898,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._zone.as_ref() { params.push("zone", value); } @@ -11189,7 +11189,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -11411,7 +11411,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._zone.as_ref() { params.push("zone", value); } @@ -11700,7 +11700,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()); @@ -11992,7 +11992,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()); @@ -12284,7 +12284,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()); @@ -12576,7 +12576,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()); @@ -12868,7 +12868,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()); @@ -13160,7 +13160,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()); @@ -13452,7 +13452,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()); @@ -13744,7 +13744,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()); @@ -14036,7 +14036,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()); @@ -14328,7 +14328,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()); @@ -14620,7 +14620,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()); @@ -14912,7 +14912,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()); @@ -15204,7 +15204,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()); @@ -15495,7 +15495,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._zone.as_ref() { params.push("zone", value); } @@ -15791,7 +15791,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._zone.as_ref() { params.push("zone", value); } @@ -16077,7 +16077,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._zone.as_ref() { params.push("zone", value); } @@ -16369,10 +16369,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); params.extend(self._additional_params.iter()); @@ -16696,9 +16696,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -17008,10 +17008,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); if let Some(value) = self._name.as_ref() { params.push("name", value); } @@ -17318,10 +17318,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); if let Some(value) = self._name.as_ref() { params.push("name", value); } @@ -17627,9 +17627,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); if let Some(value) = self._parent.as_ref() { params.push("parent", value); } @@ -17931,10 +17931,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); params.extend(self._additional_params.iter()); @@ -18259,10 +18259,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); params.extend(self._additional_params.iter()); @@ -18587,10 +18587,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); params.extend(self._additional_params.iter()); @@ -18915,10 +18915,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); - params.push("nodePoolId", self._node_pool_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); + params.push("nodePoolId", &self._node_pool_id); params.extend(self._additional_params.iter()); @@ -19242,9 +19242,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -19558,9 +19558,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -19873,8 +19873,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); params.extend(self._additional_params.iter()); @@ -20173,9 +20173,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); if let Some(value) = self._name.as_ref() { params.push("name", value); } @@ -20471,9 +20471,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); if let Some(value) = self._name.as_ref() { params.push("name", value); } @@ -20774,9 +20774,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -21084,8 +21084,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); if let Some(value) = self._parent.as_ref() { params.push("parent", value); } @@ -21376,9 +21376,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -21692,9 +21692,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -22008,9 +22008,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -22324,9 +22324,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -22640,9 +22640,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -22956,9 +22956,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -23272,9 +23272,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -23588,9 +23588,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -23904,9 +23904,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -24220,9 +24220,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("clusterId", self._cluster_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("clusterId", &self._cluster_id); params.extend(self._additional_params.iter()); @@ -24536,9 +24536,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("operationId", self._operation_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("operationId", &self._operation_id); params.extend(self._additional_params.iter()); @@ -24847,9 +24847,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); - params.push("operationId", self._operation_id); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); + params.push("operationId", &self._operation_id); if let Some(value) = self._name.as_ref() { params.push("name", value); } @@ -25144,8 +25144,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); if let Some(value) = self._parent.as_ref() { params.push("parent", value); } @@ -25430,8 +25430,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("zone", self._zone); + params.push("projectId", &self._project_id); + params.push("zone", &self._zone); if let Some(value) = self._name.as_ref() { params.push("name", value); } diff --git a/gen/container1/src/api/mod.rs b/gen/container1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/container1/src/api/mod.rs +++ b/gen/container1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/container1/src/api/schemas.rs b/gen/container1/src/api/schemas.rs index 432bf3e887..2db2cff471 100644 --- a/gen/container1/src/api/schemas.rs +++ b/gen/container1/src/api/schemas.rs @@ -230,7 +230,7 @@ pub struct BinaryAuthorization { /// Mode of operation for binauthz policy evaluation. If unspecified, defaults to DISABLED. #[serde(rename="evaluationMode")] - pub evaluation_mode: Option, + pub evaluation_mode: Option, } impl client::Part for BinaryAuthorization {} @@ -261,7 +261,7 @@ pub struct BlueGreenInfo { pub green_pool_version: Option, /// Current blue-green upgrade phase. - pub phase: Option, + pub phase: Option, } impl client::Part for BlueGreenInfo {} @@ -368,7 +368,7 @@ pub struct CloudRunConfig { /// Which load balancer type is installed for Cloud Run. #[serde(rename="loadBalancerType")] - pub load_balancer_type: Option, + pub load_balancer_type: Option, } impl client::Part for CloudRunConfig {} @@ -601,7 +601,7 @@ pub struct Cluster { pub shielded_nodes: Option, /// [Output only] The current status of this cluster. - pub status: Option, + pub status: Option, /// [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available. #[serde(rename="statusMessage")] @@ -647,7 +647,7 @@ pub struct ClusterAutoscaling { /// Defines autoscaling behaviour. #[serde(rename="autoscalingProfile")] - pub autoscaling_profile: Option, + pub autoscaling_profile: Option, /// Enables automatic node pool creation and deletion. #[serde(rename="enableNodeAutoprovisioning")] @@ -695,7 +695,7 @@ pub struct ClusterUpdate { /// The desired datapath provider for the cluster. #[serde(rename="desiredDatapathProvider")] - pub desired_datapath_provider: Option, + pub desired_datapath_provider: Option, /// The desired status of whether to disable default sNAT for this cluster. #[serde(rename="desiredDefaultSnatStatus")] @@ -795,7 +795,7 @@ pub struct ClusterUpdate { /// The desired state of IPv6 connectivity to Google Services. #[serde(rename="desiredPrivateIpv6GoogleAccess")] - pub desired_private_ipv6_google_access: Option, + pub desired_private_ipv6_google_access: Option, /// The desired release channel configuration. #[serde(rename="desiredReleaseChannel")] @@ -815,7 +815,7 @@ pub struct ClusterUpdate { /// The desired stack type of the cluster. If a stack type is provided and does not match the current stack type of the cluster, update will attempt to change the stack type to the new type. #[serde(rename="desiredStackType")] - pub desired_stack_type: Option, + pub desired_stack_type: Option, /// Cluster-level Vertical Pod Autoscaling configuration. #[serde(rename="desiredVerticalPodAutoscaling")] @@ -1013,7 +1013,7 @@ pub struct DNSConfig { /// cluster_dns indicates which in-cluster DNS provider should be used. #[serde(rename="clusterDns")] - pub cluster_dns: Option, + pub cluster_dns: Option, /// cluster_dns_domain is the suffix used for all cluster service records. #[serde(rename="clusterDnsDomain")] @@ -1021,7 +1021,7 @@ pub struct DNSConfig { /// cluster_dns_scope indicates the scope of access to cluster DNS records. #[serde(rename="clusterDnsScope")] - pub cluster_dns_scope: Option, + pub cluster_dns_scope: Option, } impl client::Part for DNSConfig {} @@ -1059,7 +1059,7 @@ pub struct DatabaseEncryption { pub key_name: Option, /// Denotes the state of etcd encryption. - pub state: Option, + pub state: Option, } impl client::Part for DatabaseEncryption {} @@ -1153,7 +1153,7 @@ pub struct Filter { /// Event types to allowlist. #[serde(rename="eventType")] - pub event_type: Option>, + pub event_type: Option>, } impl client::Part for Filter {} @@ -1169,7 +1169,7 @@ pub struct GPUSharingConfig { /// The type of GPU sharing strategy to enable on the GPU node. #[serde(rename="gpuSharingStrategy")] - pub gpu_sharing_strategy: Option, + pub gpu_sharing_strategy: Option, /// The max number of containers that can share a physical GPU. #[serde(rename="maxSharedClientsPerGpu")] @@ -1189,7 +1189,7 @@ impl client::Part for GPUSharingConfig {} pub struct GatewayAPIConfig { /// The Gateway API release channel to use for Gateway API. - pub channel: Option, + pub channel: Option, } impl client::Part for GatewayAPIConfig {} @@ -1412,7 +1412,7 @@ pub struct IPAllocationPolicy { /// The ipv6 access type (internal or external) when create_subnetwork is true #[serde(rename="ipv6AccessType")] - pub ipv6_access_type: Option, + pub ipv6_access_type: Option, /// This field is deprecated, use node_ipv4_cidr_block. #[serde(rename="nodeIpv4Cidr")] @@ -1436,7 +1436,7 @@ pub struct IPAllocationPolicy { /// The IP stack type of the cluster #[serde(rename="stackType")] - pub stack_type: Option, + pub stack_type: Option, /// A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork. #[serde(rename="subnetworkName")] @@ -1568,7 +1568,7 @@ pub struct LinuxNodeConfig { /// cgroup_mode specifies the cgroup mode to be used on the node. #[serde(rename="cgroupMode")] - pub cgroup_mode: Option, + pub cgroup_mode: Option, /// The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse pub sysctls: Option>, @@ -1695,7 +1695,7 @@ pub struct LoggingComponentConfig { /// Select components to collect logs. An empty set would disable all logging. #[serde(rename="enableComponents")] - pub enable_components: Option>, + pub enable_components: Option>, } impl client::Part for LoggingComponentConfig {} @@ -1726,7 +1726,7 @@ impl client::Part for LoggingConfig {} pub struct LoggingVariantConfig { /// Logging variant deployed on nodes. - pub variant: Option, + pub variant: Option, } impl client::Part for LoggingVariantConfig {} @@ -1741,7 +1741,7 @@ impl client::Part for LoggingVariantConfig {} pub struct MaintenanceExclusionOptions { /// Scope specifies the upgrade scope which upgrades are blocked by the exclusion. - pub scope: Option, + pub scope: Option, } impl client::Part for MaintenanceExclusionOptions {} @@ -1933,7 +1933,7 @@ pub struct MonitoringComponentConfig { /// Select components to collect metrics. An empty set would disable all monitoring. #[serde(rename="enableComponents")] - pub enable_components: Option>, + pub enable_components: Option>, } impl client::Part for MonitoringComponentConfig {} @@ -1969,7 +1969,7 @@ pub struct NetworkConfig { /// The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation. #[serde(rename="datapathProvider")] - pub datapath_provider: Option, + pub datapath_provider: Option, /// Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic. #[serde(rename="defaultSnatStatus")] @@ -1996,7 +1996,7 @@ pub struct NetworkConfig { /// The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4) #[serde(rename="privateIpv6GoogleAccess")] - pub private_ipv6_google_access: Option, + pub private_ipv6_google_access: Option, /// ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not. #[serde(rename="serviceExternalIpsConfig")] @@ -2019,7 +2019,7 @@ pub struct NetworkPerformanceConfig { /// Specifies the total network bandwidth tier for the NodePool. #[serde(rename="totalEgressBandwidthTier")] - pub total_egress_bandwidth_tier: Option, + pub total_egress_bandwidth_tier: Option, } impl client::Part for NetworkPerformanceConfig {} @@ -2037,7 +2037,7 @@ pub struct NetworkPolicy { pub enabled: Option, /// The selected network policy provider. - pub provider: Option, + pub provider: Option, } impl client::Part for NetworkPolicy {} @@ -2392,7 +2392,7 @@ pub struct NodePool { pub self_link: Option, /// [Output only] The status of the nodes in this pool instance. - pub status: Option, + pub status: Option, /// [Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available. #[serde(rename="statusMessage")] @@ -2445,7 +2445,7 @@ pub struct NodePoolAutoscaling { /// Location policy used when scaling up a nodepool. #[serde(rename="locationPolicy")] - pub location_policy: Option, + pub location_policy: Option, /// Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster. #[serde(rename="maxNodeCount")] @@ -2508,7 +2508,7 @@ impl client::Part for NodePoolLoggingConfig {} pub struct NodeTaint { /// Effect for taint. - pub effect: Option, + pub effect: Option, /// Key for taint. pub key: Option, @@ -2633,7 +2633,7 @@ pub struct Operation { /// The operation type. #[serde(rename="operationType")] - pub operation_type: Option, + pub operation_type: Option, /// Output only. [Output only] Progress information for an operation. pub progress: Option, @@ -2647,7 +2647,7 @@ pub struct Operation { pub start_time: Option, /// The current status of the operation. - pub status: Option, + pub status: Option, /// Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead. #[serde(rename="statusMessage")] @@ -2682,7 +2682,7 @@ pub struct OperationProgress { pub stages: Option>, /// Status of an operation stage. Unset for single-stage operations. - pub status: Option, + pub status: Option, } impl client::Part for OperationProgress {} @@ -2698,7 +2698,7 @@ pub struct PlacementPolicy { /// The type of placement. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for PlacementPolicy {} @@ -2811,7 +2811,7 @@ impl client::Part for RecurringTimeWindow {} pub struct ReleaseChannel { /// channel specifies which release channel the cluster is subscribed to. - pub channel: Option, + pub channel: Option, } impl client::Part for ReleaseChannel {} @@ -2826,7 +2826,7 @@ impl client::Part for ReleaseChannel {} pub struct ReleaseChannelConfig { /// The release channel this configuration applies to. - pub channel: Option, + pub channel: Option, /// The default version for newly created clusters on the channel. #[serde(rename="defaultVersion")] @@ -2850,7 +2850,7 @@ pub struct ReservationAffinity { /// Corresponds to the type of reservation consumption. #[serde(rename="consumeReservationType")] - pub consume_reservation_type: Option, + pub consume_reservation_type: Option, /// Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value. pub key: Option, @@ -2974,7 +2974,7 @@ pub struct SandboxConfig { /// Type of the sandbox to use for the node. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SandboxConfig {} @@ -3261,7 +3261,7 @@ impl client::RequestValue for SetMaintenancePolicyRequest {} pub struct SetMasterAuthRequest { /// Required. The exact form of action to be taken on the master auth. - pub action: Option, + pub action: Option, /// Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. #[serde(rename="clusterId")] @@ -3595,10 +3595,10 @@ pub struct StatusCondition { /// Canonical code of the condition. #[serde(rename="canonicalCode")] - pub canonical_code: Option, + pub canonical_code: Option, /// Machine-friendly representation of the condition Deprecated. Use canonical_code instead. - pub code: Option, + pub code: Option, /// Human-friendly representation of the condition pub message: Option, @@ -3842,7 +3842,7 @@ pub struct UpgradeSettings { pub max_unavailable: Option, /// Update strategy of the node pool. - pub strategy: Option, + pub strategy: Option, } impl client::Part for UpgradeSettings {} @@ -3895,7 +3895,7 @@ pub struct UsableSubnetworkSecondaryRange { pub range_name: Option, /// This field is to determine the status of the secondary range programmably. - pub status: Option, + pub status: Option, } impl client::Part for UsableSubnetworkSecondaryRange {} @@ -3941,7 +3941,7 @@ pub struct WindowsNodeConfig { /// OSVersion specifies the Windows node config to be used on the node #[serde(rename="osVersion")] - pub os_version: Option, + pub os_version: Option, } impl client::Part for WindowsNodeConfig {} @@ -3972,7 +3972,7 @@ impl client::Part for WorkloadIdentityConfig {} pub struct WorkloadMetadataConfig { /// Mode is the configuration for how to expose metadata to workloads running on the node pool. - pub mode: Option, + pub mode: Option, } impl client::Part for WorkloadMetadataConfig {} diff --git a/gen/containeranalysis1/src/api/call_builders.rs b/gen/containeranalysis1/src/api/call_builders.rs index 980906d0c0..48b3dc1e59 100644 --- a/gen/containeranalysis1/src/api/call_builders.rs +++ b/gen/containeranalysis1/src/api/call_builders.rs @@ -76,7 +76,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); } @@ -375,7 +375,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -669,7 +669,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._note_id.as_ref() { params.push("noteId", value); } @@ -964,7 +964,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()); @@ -1226,7 +1226,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()); @@ -1495,7 +1495,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()); @@ -1786,7 +1786,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2087,7 +2087,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2389,7 +2389,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()); @@ -2681,7 +2681,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()); @@ -2973,7 +2973,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3265,7 +3265,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3550,7 +3550,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()); @@ -3812,7 +3812,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()); @@ -4081,7 +4081,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()); @@ -4366,7 +4366,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()); @@ -4630,7 +4630,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._filter.as_ref() { params.push("filter", value); } @@ -4908,7 +4908,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5209,7 +5209,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5511,7 +5511,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()); @@ -5803,7 +5803,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()); diff --git a/gen/containeranalysis1/src/api/mod.rs b/gen/containeranalysis1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/containeranalysis1/src/api/mod.rs +++ b/gen/containeranalysis1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/containeranalysis1/src/api/schemas.rs b/gen/containeranalysis1/src/api/schemas.rs index 7658471331..81b37dd5cd 100644 --- a/gen/containeranalysis1/src/api/schemas.rs +++ b/gen/containeranalysis1/src/api/schemas.rs @@ -8,7 +8,7 @@ use super::*; pub struct AliasContext { /// The alias kind. - pub kind: Option, + pub kind: Option, /// The alias name. pub name: Option, @@ -318,18 +318,18 @@ pub struct CVSS { /// no description provided #[serde(rename="attackComplexity")] - pub attack_complexity: Option, + pub attack_complexity: Option, /// Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. #[serde(rename="attackVector")] - pub attack_vector: Option, + pub attack_vector: Option, /// no description provided - pub authentication: Option, + pub authentication: Option, /// no description provided #[serde(rename="availabilityImpact")] - pub availability_impact: Option, + pub availability_impact: Option, /// The base score is a function of the base metric scores. #[serde(rename="baseScore")] @@ -337,7 +337,7 @@ pub struct CVSS { /// no description provided #[serde(rename="confidentialityImpact")] - pub confidentiality_impact: Option, + pub confidentiality_impact: Option, /// no description provided #[serde(rename="exploitabilityScore")] @@ -349,18 +349,18 @@ pub struct CVSS { /// no description provided #[serde(rename="integrityImpact")] - pub integrity_impact: Option, + pub integrity_impact: Option, /// no description provided #[serde(rename="privilegesRequired")] - pub privileges_required: Option, + pub privileges_required: Option, /// no description provided - pub scope: Option, + pub scope: Option, /// no description provided #[serde(rename="userInteraction")] - pub user_interaction: Option, + pub user_interaction: Option, } impl client::Part for CVSS {} @@ -376,15 +376,15 @@ pub struct CVSSv3 { /// no description provided #[serde(rename="attackComplexity")] - pub attack_complexity: Option, + pub attack_complexity: Option, /// Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. #[serde(rename="attackVector")] - pub attack_vector: Option, + pub attack_vector: Option, /// no description provided #[serde(rename="availabilityImpact")] - pub availability_impact: Option, + pub availability_impact: Option, /// The base score is a function of the base metric scores. #[serde(rename="baseScore")] @@ -392,7 +392,7 @@ pub struct CVSSv3 { /// no description provided #[serde(rename="confidentialityImpact")] - pub confidentiality_impact: Option, + pub confidentiality_impact: Option, /// no description provided #[serde(rename="exploitabilityScore")] @@ -404,18 +404,18 @@ pub struct CVSSv3 { /// no description provided #[serde(rename="integrityImpact")] - pub integrity_impact: Option, + pub integrity_impact: Option, /// no description provided #[serde(rename="privilegesRequired")] - pub privileges_required: Option, + pub privileges_required: Option, /// no description provided - pub scope: Option, + pub scope: Option, /// no description provided #[serde(rename="userInteraction")] - pub user_interaction: Option, + pub user_interaction: Option, } impl client::Part for CVSSv3 {} @@ -453,7 +453,7 @@ pub struct CisBenchmark { pub profile_level: Option, /// no description provided - pub severity: Option, + pub severity: Option, } impl client::Part for CisBenchmark {} @@ -698,7 +698,7 @@ pub struct DeploymentOccurrence { pub deploy_time: Option>, /// Platform hosting this deployment. - pub platform: Option, + pub platform: Option, /// Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. #[serde(rename="resourceUri")] @@ -811,7 +811,7 @@ pub struct DiscoveryNote { /// Required. Immutable. The kind of analysis that is handled by this discovery. #[serde(rename="analysisKind")] - pub analysis_kind: Option, + pub analysis_kind: Option, } impl client::Part for DiscoveryNote {} @@ -835,7 +835,7 @@ pub struct DiscoveryOccurrence { /// The status of discovery for the resource. #[serde(rename="analysisStatus")] - pub analysis_status: Option, + pub analysis_status: Option, /// When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. #[serde(rename="analysisStatusError")] @@ -847,7 +847,7 @@ pub struct DiscoveryOccurrence { /// Whether the resource is continuously analyzed. #[serde(rename="continuousAnalysis")] - pub continuous_analysis: Option, + pub continuous_analysis: Option, /// The CPE of the resource being scanned. pub cpe: Option, @@ -869,7 +869,7 @@ impl client::Part for DiscoveryOccurrence {} pub struct Distribution { /// The CPU architecture for which packages in this distribution channel were built. - pub architecture: Option, + pub architecture: Option, /// Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. #[serde(rename="cpeUri")] @@ -1032,7 +1032,7 @@ pub struct FixableTotalByDigest { pub resource_uri: Option, /// The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. - pub severity: Option, + pub severity: Option, /// The total number of vulnerabilities associated with this resource. #[serde(rename="totalCount")] @@ -1705,7 +1705,7 @@ pub struct Note { pub image: Option, /// Output only. The type of analysis. This field can be used as a filter in list requests. - pub kind: Option, + pub kind: Option, /// A detailed description of this note. #[serde(rename="longDescription")] @@ -1788,7 +1788,7 @@ pub struct Occurrence { pub image: Option, /// Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. - pub kind: Option, + pub kind: Option, /// Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. pub name: Option, @@ -1844,7 +1844,7 @@ pub struct PackageIssue { /// Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. #[serde(rename="effectiveSeverity")] - pub effective_severity: Option, + pub effective_severity: Option, /// The location at which this package was found. #[serde(rename="fileLocation")] @@ -1883,7 +1883,7 @@ impl client::Part for PackageIssue {} pub struct PackageNote { /// The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. - pub architecture: Option, + pub architecture: Option, /// The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. #[serde(rename="cpeUri")] @@ -1930,7 +1930,7 @@ impl client::Part for PackageNote {} pub struct PackageOccurrence { /// Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. - pub architecture: Option, + pub architecture: Option, /// Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. #[serde(rename="cpeUri")] @@ -2492,7 +2492,7 @@ pub struct Version { pub inclusive: Option, /// Required. Distinguishes between sentinel MIN/MAX versions and normal versions. - pub kind: Option, + pub kind: Option, /// Required only when version kind is NORMAL. The main part of the version name. pub name: Option, @@ -2522,13 +2522,13 @@ pub struct VulnerabilityNote { /// CVSS version used to populate cvss_score and severity. #[serde(rename="cvssVersion")] - pub cvss_version: Option, + pub cvss_version: Option, /// Details of all known distros and packages affected by this vulnerability. pub details: Option>, /// The note provider assigned severity of this vulnerability. - pub severity: Option, + pub severity: Option, /// The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. #[serde(rename="sourceUpdateTime")] @@ -2556,14 +2556,14 @@ pub struct VulnerabilityOccurrence { /// Output only. CVSS version used to populate cvss_score and severity. #[serde(rename="cvssVersion")] - pub cvss_version: Option, + pub cvss_version: Option, /// The cvss v3 score for the vulnerability. pub cvssv3: Option, /// The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. #[serde(rename="effectiveSeverity")] - pub effective_severity: Option, + pub effective_severity: Option, /// Output only. Whether at least one of the affected packages has a fix available. #[serde(rename="fixAvailable")] @@ -2582,7 +2582,7 @@ pub struct VulnerabilityOccurrence { pub related_urls: Option>, /// Output only. The note provider assigned severity of this vulnerability. - pub severity: Option, + pub severity: Option, /// Output only. A one sentence description of this vulnerability. #[serde(rename="shortDescription")] diff --git a/gen/containeranalysis1_beta1/src/api/call_builders.rs b/gen/containeranalysis1_beta1/src/api/call_builders.rs index 948e04c878..2c93fd5924 100644 --- a/gen/containeranalysis1_beta1/src/api/call_builders.rs +++ b/gen/containeranalysis1_beta1/src/api/call_builders.rs @@ -76,7 +76,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); } @@ -375,7 +375,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -669,7 +669,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._note_id.as_ref() { params.push("noteId", value); } @@ -964,7 +964,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()); @@ -1226,7 +1226,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()); @@ -1495,7 +1495,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()); @@ -1786,7 +1786,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2087,7 +2087,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2389,7 +2389,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()); @@ -2681,7 +2681,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()); @@ -2973,7 +2973,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3265,7 +3265,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3550,7 +3550,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()); @@ -3812,7 +3812,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()); @@ -4081,7 +4081,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()); @@ -4366,7 +4366,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()); @@ -4630,7 +4630,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._filter.as_ref() { params.push("filter", value); } @@ -4908,7 +4908,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5209,7 +5209,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5511,7 +5511,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()); @@ -5803,7 +5803,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()); diff --git a/gen/containeranalysis1_beta1/src/api/mod.rs b/gen/containeranalysis1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/containeranalysis1_beta1/src/api/mod.rs +++ b/gen/containeranalysis1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/containeranalysis1_beta1/src/api/schemas.rs b/gen/containeranalysis1_beta1/src/api/schemas.rs index 971f1f2527..f9cd836c90 100644 --- a/gen/containeranalysis1_beta1/src/api/schemas.rs +++ b/gen/containeranalysis1_beta1/src/api/schemas.rs @@ -8,7 +8,7 @@ use super::*; pub struct AliasContext { /// The alias kind. - pub kind: Option, + pub kind: Option, /// The alias name. pub name: Option, @@ -330,7 +330,7 @@ pub struct BuildSignature { /// The type of the key, either stored in `public_key` or referenced in `key_id`. #[serde(rename="keyType")] - pub key_type: Option, + pub key_type: Option, /// Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` #[serde(rename="publicKey")] @@ -370,18 +370,18 @@ pub struct CVSS { /// Defined in CVSS v3, CVSS v2 #[serde(rename="attackComplexity")] - pub attack_complexity: Option, + pub attack_complexity: Option, /// Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Defined in CVSS v3, CVSS v2 #[serde(rename="attackVector")] - pub attack_vector: Option, + pub attack_vector: Option, /// Defined in CVSS v2 - pub authentication: Option, + pub authentication: Option, /// Defined in CVSS v3, CVSS v2 #[serde(rename="availabilityImpact")] - pub availability_impact: Option, + pub availability_impact: Option, /// The base score is a function of the base metric scores. #[serde(rename="baseScore")] @@ -389,7 +389,7 @@ pub struct CVSS { /// Defined in CVSS v3, CVSS v2 #[serde(rename="confidentialityImpact")] - pub confidentiality_impact: Option, + pub confidentiality_impact: Option, /// no description provided #[serde(rename="exploitabilityScore")] @@ -401,18 +401,18 @@ pub struct CVSS { /// Defined in CVSS v3, CVSS v2 #[serde(rename="integrityImpact")] - pub integrity_impact: Option, + pub integrity_impact: Option, /// Defined in CVSS v3 #[serde(rename="privilegesRequired")] - pub privileges_required: Option, + pub privileges_required: Option, /// Defined in CVSS v3 - pub scope: Option, + pub scope: Option, /// Defined in CVSS v3 #[serde(rename="userInteraction")] - pub user_interaction: Option, + pub user_interaction: Option, } impl client::Part for CVSS {} @@ -428,15 +428,15 @@ pub struct CVSSv3 { /// no description provided #[serde(rename="attackComplexity")] - pub attack_complexity: Option, + pub attack_complexity: Option, /// Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. #[serde(rename="attackVector")] - pub attack_vector: Option, + pub attack_vector: Option, /// no description provided #[serde(rename="availabilityImpact")] - pub availability_impact: Option, + pub availability_impact: Option, /// The base score is a function of the base metric scores. #[serde(rename="baseScore")] @@ -444,7 +444,7 @@ pub struct CVSSv3 { /// no description provided #[serde(rename="confidentialityImpact")] - pub confidentiality_impact: Option, + pub confidentiality_impact: Option, /// no description provided #[serde(rename="exploitabilityScore")] @@ -456,18 +456,18 @@ pub struct CVSSv3 { /// no description provided #[serde(rename="integrityImpact")] - pub integrity_impact: Option, + pub integrity_impact: Option, /// no description provided #[serde(rename="privilegesRequired")] - pub privileges_required: Option, + pub privileges_required: Option, /// no description provided - pub scope: Option, + pub scope: Option, /// no description provided #[serde(rename="userInteraction")] - pub user_interaction: Option, + pub user_interaction: Option, } impl client::Part for CVSSv3 {} @@ -563,7 +563,7 @@ pub struct Deployment { pub deploy_time: Option>, /// Platform hosting this deployment. - pub platform: Option, + pub platform: Option, /// Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. #[serde(rename="resourceUri")] @@ -716,7 +716,7 @@ pub struct Discovered { /// The status of discovery for the resource. #[serde(rename="analysisStatus")] - pub analysis_status: Option, + pub analysis_status: Option, /// When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. #[serde(rename="analysisStatusError")] @@ -724,7 +724,7 @@ pub struct Discovered { /// Whether the resource is continuously analyzed. #[serde(rename="continuousAnalysis")] - pub continuous_analysis: Option, + pub continuous_analysis: Option, /// The last time continuous analysis was done for this resource. Deprecated, do not use. #[serde(rename="lastAnalysisTime")] @@ -744,7 +744,7 @@ pub struct Discovery { /// Required. Immutable. The kind of analysis that is handled by this discovery. #[serde(rename="analysisKind")] - pub analysis_kind: Option, + pub analysis_kind: Option, } impl client::Part for Discovery {} @@ -759,7 +759,7 @@ impl client::Part for Discovery {} pub struct Distribution { /// The CPU architecture for which packages in this distribution channel were built. - pub architecture: Option, + pub architecture: Option, /// Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. #[serde(rename="cpeUri")] @@ -953,7 +953,7 @@ impl client::Part for Expr {} pub struct ExternalRef { /// An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package - pub category: Option, + pub category: Option, /// Human-readable information about the purpose and target of the reference pub comment: Option, @@ -998,7 +998,7 @@ pub struct FileNote { /// This field provides information about the type of file identified #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// Identify the full path and filename that corresponds to the file information in this section pub title: Option, @@ -1086,7 +1086,7 @@ pub struct FixableTotalByDigest { pub resource: Option, /// The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. - pub severity: Option, + pub severity: Option, /// The total number of vulnerabilities associated with this resource. #[serde(rename="totalCount")] @@ -1107,7 +1107,7 @@ pub struct GenericSignedAttestation { /// Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. #[serde(rename="serializedPayload")] @@ -1353,11 +1353,11 @@ pub struct GrafeasV1beta1VulnerabilityDetails { /// Output only. CVSS version used to populate cvss_score and severity. #[serde(rename="cvssVersion")] - pub cvss_version: Option, + pub cvss_version: Option, /// The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. #[serde(rename="effectiveSeverity")] - pub effective_severity: Option, + pub effective_severity: Option, /// Output only. A detailed description of this vulnerability. #[serde(rename="longDescription")] @@ -1372,7 +1372,7 @@ pub struct GrafeasV1beta1VulnerabilityDetails { pub related_urls: Option>, /// Output only. The note provider assigned Severity of the vulnerability. - pub severity: Option, + pub severity: Option, /// Output only. A one sentence description of this vulnerability. #[serde(rename="shortDescription")] @@ -1396,7 +1396,7 @@ pub struct Hash { /// Required. The type of hash that was performed. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Required. The hash value. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -1467,7 +1467,7 @@ impl client::Part for InToto {} pub struct Installation { /// Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. - pub architecture: Option, + pub architecture: Option, /// Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. #[serde(rename="cpeUri")] @@ -1523,7 +1523,7 @@ pub struct Layer { pub arguments: Option, /// Required. The recovered Dockerfile directive used to construct this layer. - pub directive: Option, + pub directive: Option, } impl client::Part for Layer {} @@ -1709,7 +1709,7 @@ pub struct Note { pub intoto: Option, /// Output only. The type of analysis. This field can be used as a filter in list requests. - pub kind: Option, + pub kind: Option, /// A detailed description of this note. #[serde(rename="longDescription")] @@ -1804,7 +1804,7 @@ pub struct Occurrence { pub intoto: Option, /// Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. - pub kind: Option, + pub kind: Option, /// Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. pub name: Option, @@ -1855,7 +1855,7 @@ impl client::ResponseResult for Occurrence {} pub struct Package { /// The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. - pub architecture: Option, + pub architecture: Option, /// The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. #[serde(rename="cpeUri")] @@ -2026,7 +2026,7 @@ pub struct PackageIssue { /// Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. #[serde(rename="effectiveSeverity")] - pub effective_severity: Option, + pub effective_severity: Option, /// The location of the available fix for vulnerability. #[serde(rename="fixedLocation")] @@ -2054,7 +2054,7 @@ pub struct PgpSignedAttestation { /// Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. #[serde(rename="pgpKeyId")] @@ -2144,7 +2144,7 @@ pub struct RelationshipNote { /// The type of relationship between the source and target SPDX elements #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for RelationshipNote {} @@ -2169,7 +2169,7 @@ pub struct RelationshipOccurrence { /// Output only. The type of relationship between the source and target SPDX elements #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for RelationshipOccurrence {} @@ -2412,7 +2412,7 @@ pub struct Version { pub inclusive: Option, /// Required. Distinguishes between sentinel MIN/MAX versions and normal versions. - pub kind: Option, + pub kind: Option, /// Required only when version kind is NORMAL. The main part of the version name. pub name: Option, @@ -2446,7 +2446,7 @@ pub struct Vulnerability { /// CVSS version used to populate cvss_score and severity. #[serde(rename="cvssVersion")] - pub cvss_version: Option, + pub cvss_version: Option, /// A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/index.html pub cwe: Option>, @@ -2455,7 +2455,7 @@ pub struct Vulnerability { pub details: Option>, /// Note provider assigned impact of the vulnerability. - pub severity: Option, + pub severity: Option, /// The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. #[serde(rename="sourceUpdateTime")] diff --git a/gen/content2/README.md b/gen/content2/README.md index fd38663a39..fbbd7b288d 100644 --- a/gen/content2/README.md +++ b/gen/content2/README.md @@ -144,12 +144,12 @@ let mut hub = ShoppingContent::new(hyper::Client::builder().build(hyper_rustls:: // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.orders().list(79) - .add_statuses("magna") - .placed_date_start("no") - .placed_date_end("ipsum") - .page_token("voluptua.") - .order_by("At") - .max_results(93) + .add_statuses(&Default::default()) + .placed_date_start("magna") + .placed_date_end("no") + .page_token("ipsum") + .order_by("voluptua.") + .max_results(74) .acknowledged(false) .doit().await; diff --git a/gen/content2/src/api/hub.rs b/gen/content2/src/api/hub.rs index 7c42039433..fbf56c4ad6 100644 --- a/gen/content2/src/api/hub.rs +++ b/gen/content2/src/api/hub.rs @@ -31,14 +31,14 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.orders().list(97) -/// .add_statuses("ea") -/// .placed_date_start("ipsum") -/// .placed_date_end("invidunt") -/// .page_token("amet") -/// .order_by("duo") -/// .max_results(51) -/// .acknowledged(false) +/// let result = hub.orders().list(89) +/// .add_statuses(&Default::default()) +/// .placed_date_start("eos") +/// .placed_date_end("dolor") +/// .page_token("ea") +/// .order_by("ipsum") +/// .max_results(13) +/// .acknowledged(true) /// .doit().await; /// /// match result { diff --git a/gen/content2/src/api/method_builders.rs b/gen/content2/src/api/method_builders.rs index a2b7e27480..65cd5037ab 100644 --- a/gen/content2/src/api/method_builders.rs +++ b/gen/content2/src/api/method_builders.rs @@ -1525,11 +1525,11 @@ impl<'a, S> OrderMethods<'a, S> { /// /// * `merchantId` - The ID of the account that should manage the order. This cannot be a multi-client account. /// * `templateName` - The name of the template to retrieve. - pub fn gettestordertemplate(&self, merchant_id: u64, template_name: &str) -> OrderGettestordertemplateCall<'a, S> { + pub fn gettestordertemplate(&self, merchant_id: u64, template_name: &OrderTemplateNameEnum) -> OrderGettestordertemplateCall<'a, S> { OrderGettestordertemplateCall { hub: self.hub, _merchant_id: merchant_id, - _template_name: template_name.to_string(), + _template_name: template_name.clone(), _country: Default::default(), _delegate: Default::default(), _additional_params: Default::default(), diff --git a/gen/content2/src/api/mod.rs b/gen/content2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/content2/src/api/mod.rs +++ b/gen/content2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/content2/src/lib.rs b/gen/content2/src/lib.rs index 1108e63205..cbcb4725d6 100644 --- a/gen/content2/src/lib.rs +++ b/gen/content2/src/lib.rs @@ -145,13 +145,13 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.orders().list(99) -//! .add_statuses("takimata") -//! .placed_date_start("amet.") -//! .placed_date_end("duo") -//! .page_token("ipsum") -//! .order_by("gubergren") -//! .max_results(50) -//! .acknowledged(false) +//! .add_statuses(&Default::default()) +//! .placed_date_start("takimata") +//! .placed_date_end("amet.") +//! .page_token("duo") +//! .order_by("ipsum") +//! .max_results(39) +//! .acknowledged(true) //! .doit().await; //! //! match result { diff --git a/gen/content2_sandbox/README.md b/gen/content2_sandbox/README.md index a3d41102ad..818f02943f 100644 --- a/gen/content2_sandbox/README.md +++ b/gen/content2_sandbox/README.md @@ -122,12 +122,12 @@ let mut hub = ShoppingContent::new(hyper::Client::builder().build(hyper_rustls:: // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.orders().list(79) - .add_statuses("magna") - .placed_date_start("no") - .placed_date_end("ipsum") - .page_token("voluptua.") - .order_by("At") - .max_results(93) + .add_statuses(&Default::default()) + .placed_date_start("magna") + .placed_date_end("no") + .page_token("ipsum") + .order_by(&Default::default()) + .max_results(73) .acknowledged(false) .doit().await; diff --git a/gen/content2_sandbox/src/api/hub.rs b/gen/content2_sandbox/src/api/hub.rs index 6329acab10..234e676c20 100644 --- a/gen/content2_sandbox/src/api/hub.rs +++ b/gen/content2_sandbox/src/api/hub.rs @@ -31,14 +31,14 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.orders().list(97) -/// .add_statuses("ea") -/// .placed_date_start("ipsum") -/// .placed_date_end("invidunt") -/// .page_token("amet") -/// .order_by("duo") -/// .max_results(51) -/// .acknowledged(false) +/// let result = hub.orders().list(50) +/// .add_statuses(&Default::default()) +/// .placed_date_start("gubergren") +/// .placed_date_end("eos") +/// .page_token("dolor") +/// .order_by(&Default::default()) +/// .max_results(84) +/// .acknowledged(true) /// .doit().await; /// /// match result { diff --git a/gen/content2_sandbox/src/api/method_builders.rs b/gen/content2_sandbox/src/api/method_builders.rs index 90ad549460..f13a59aabc 100644 --- a/gen/content2_sandbox/src/api/method_builders.rs +++ b/gen/content2_sandbox/src/api/method_builders.rs @@ -533,11 +533,11 @@ impl<'a, S> OrderMethods<'a, S> { /// /// * `merchantId` - The ID of the account that should manage the order. This cannot be a multi-client account. /// * `templateName` - The name of the template to retrieve. - pub fn gettestordertemplate(&self, merchant_id: u64, template_name: &str) -> OrderGettestordertemplateCall<'a, S> { + pub fn gettestordertemplate(&self, merchant_id: u64, template_name: &OrderTemplateNameEnum) -> OrderGettestordertemplateCall<'a, S> { OrderGettestordertemplateCall { hub: self.hub, _merchant_id: merchant_id, - _template_name: template_name.to_string(), + _template_name: template_name.clone(), _country: Default::default(), _delegate: Default::default(), _additional_params: Default::default(), diff --git a/gen/content2_sandbox/src/api/mod.rs b/gen/content2_sandbox/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/content2_sandbox/src/api/mod.rs +++ b/gen/content2_sandbox/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/content2_sandbox/src/lib.rs b/gen/content2_sandbox/src/lib.rs index fc0e5d0d32..18c566a71d 100644 --- a/gen/content2_sandbox/src/lib.rs +++ b/gen/content2_sandbox/src/lib.rs @@ -123,13 +123,13 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.orders().list(99) -//! .add_statuses("takimata") -//! .placed_date_start("amet.") -//! .placed_date_end("duo") -//! .page_token("ipsum") -//! .order_by("gubergren") -//! .max_results(50) -//! .acknowledged(false) +//! .add_statuses(&Default::default()) +//! .placed_date_start("takimata") +//! .placed_date_end("amet.") +//! .page_token("duo") +//! .order_by(&Default::default()) +//! .max_results(46) +//! .acknowledged(true) //! .doit().await; //! //! match result { diff --git a/gen/coordinate1/README.md b/gen/coordinate1/README.md index b394a62d85..b7a43e77a1 100644 --- a/gen/coordinate1/README.md +++ b/gen/coordinate1/README.md @@ -116,15 +116,15 @@ let mut req = Job::default(); // Values shown here are possibly random and not representative ! let result = hub.jobs().patch(req, "teamId", 68) .title("no") - .progress("ipsum") - .note("voluptua.") - .lng(0.5857873539022715) - .lat(0.16568728368878083) - .customer_phone_number("takimata") - .customer_name("amet.") - .add_custom_field("duo") - .assignee("ipsum") - .address("gubergren") + .progress(&Default::default()) + .note("ipsum") + .lng(0.5709789811505924) + .lat(0.7318948296136206) + .customer_phone_number("amet.") + .customer_name("takimata") + .add_custom_field("amet.") + .assignee("duo") + .address("ipsum") .doit().await; match result { diff --git a/gen/coordinate1/src/api/hub.rs b/gen/coordinate1/src/api/hub.rs index 9a211b9643..bd57aed675 100644 --- a/gen/coordinate1/src/api/hub.rs +++ b/gen/coordinate1/src/api/hub.rs @@ -37,17 +37,17 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.jobs().patch(req, "teamId", 85) -/// .title("est") -/// .progress("ipsum") -/// .note("ipsum") -/// .lng(0.8016125465746553) -/// .lat(0.8000651323113592) -/// .customer_phone_number("ea") -/// .customer_name("dolor") -/// .add_custom_field("Lorem") -/// .assignee("eos") -/// .address("labore") +/// let result = hub.jobs().patch(req, "teamId", 64) +/// .title("gubergren") +/// .progress(&Default::default()) +/// .note("rebum.") +/// .lng(0.34810194289930996) +/// .lat(0.4035875305784462) +/// .customer_phone_number("est") +/// .customer_name("gubergren") +/// .add_custom_field("ea") +/// .assignee("dolor") +/// .address("Lorem") /// .doit().await; /// /// match result { diff --git a/gen/coordinate1/src/api/mod.rs b/gen/coordinate1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/coordinate1/src/api/mod.rs +++ b/gen/coordinate1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/coordinate1/src/lib.rs b/gen/coordinate1/src/lib.rs index 1f28c15195..21fdf09f7c 100644 --- a/gen/coordinate1/src/lib.rs +++ b/gen/coordinate1/src/lib.rs @@ -115,17 +115,17 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.jobs().patch(req, "teamId", 89) -//! .title("eos") -//! .progress("dolor") -//! .note("ea") -//! .lng(0.8638300740145545) -//! .lat(0.36487300775415) -//! .customer_phone_number("amet") -//! .customer_name("duo") -//! .add_custom_field("ipsum") -//! .assignee("sed") -//! .address("ut") +//! let result = hub.jobs().patch(req, "teamId", 50) +//! .title("gubergren") +//! .progress(&Default::default()) +//! .note("eos") +//! .lng(0.7615363125225725) +//! .lat(0.8638300740145545) +//! .customer_phone_number("ipsum") +//! .customer_name("invidunt") +//! .add_custom_field("amet") +//! .assignee("duo") +//! .address("ipsum") //! .doit().await; //! //! match result { diff --git a/gen/customsearch1/README.md b/gen/customsearch1/README.md index 8c0f08ee22..49cff8d7c1 100644 --- a/gen/customsearch1/README.md +++ b/gen/customsearch1/README.md @@ -98,34 +98,34 @@ let mut hub = CustomSearchAPI::new(hyper::Client::builder().build(hyper_rustls:: let result = hub.cse().siterestrict_list() .start(79) .sort("magna") - .site_search_filter("no") - .site_search("ipsum") - .search_type("voluptua.") - .safe("At") - .rights("sanctus") - .related_site("sed") - .q("amet.") - .or_terms("takimata") - .num(-52) - .lr("duo") - .low_range("ipsum") - .link_site("gubergren") - .img_type("Lorem") - .img_size("gubergren") - .img_dominant_color("eos") - .img_color_type("dolor") - .hq("ea") + .site_search_filter(&Default::default()) + .site_search("no") + .search_type(&Default::default()) + .safe(&Default::default()) + .rights("ipsum") + .related_site("voluptua.") + .q("At") + .or_terms("sanctus") + .num(-80) + .lr("amet.") + .low_range("takimata") + .link_site("amet.") + .img_type(&Default::default()) + .img_size(&Default::default()) + .img_dominant_color(&Default::default()) + .img_color_type(&Default::default()) + .hq("duo") .hl("ipsum") - .high_range("invidunt") - .googlehost("amet") - .gl("duo") - .filter("ipsum") - .file_type("sed") - .exclude_terms("ut") - .exact_terms("gubergren") - .date_restrict("rebum.") - .cx("est") - .cr("ipsum") + .high_range("gubergren") + .googlehost("Lorem") + .gl("gubergren") + .filter("eos") + .file_type("dolor") + .exclude_terms("ea") + .exact_terms("ipsum") + .date_restrict("invidunt") + .cx("amet") + .cr("duo") .c2coff("ipsum") .doit().await; diff --git a/gen/customsearch1/src/api/hub.rs b/gen/customsearch1/src/api/hub.rs index 824795e48a..dc18f0eb5c 100644 --- a/gen/customsearch1/src/api/hub.rs +++ b/gen/customsearch1/src/api/hub.rs @@ -32,37 +32,37 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.cse().siterestrict_list() -/// .start(86) -/// .sort("dolor") -/// .site_search_filter("duo") -/// .site_search("vero") -/// .search_type("vero") -/// .safe("invidunt") -/// .rights("Stet") -/// .related_site("vero") -/// .q("elitr") -/// .or_terms("Lorem") -/// .num(-29) -/// .lr("no") -/// .low_range("ipsum") -/// .link_site("accusam") -/// .img_type("takimata") -/// .img_size("consetetur") -/// .img_dominant_color("voluptua.") -/// .img_color_type("et") -/// .hq("erat") -/// .hl("consetetur") -/// .high_range("amet.") -/// .googlehost("sed") -/// .gl("takimata") -/// .filter("dolores") -/// .file_type("gubergren") -/// .exclude_terms("et") -/// .exact_terms("accusam") -/// .date_restrict("voluptua.") -/// .cx("dolore") -/// .cr("dolore") -/// .c2coff("dolore") +/// .start(25) +/// .sort("erat") +/// .site_search_filter(&Default::default()) +/// .site_search("sed") +/// .search_type(&Default::default()) +/// .safe(&Default::default()) +/// .rights("duo") +/// .related_site("dolore") +/// .q("et") +/// .or_terms("voluptua.") +/// .num(-2) +/// .lr("consetetur") +/// .low_range("diam") +/// .link_site("dolor") +/// .img_type(&Default::default()) +/// .img_size(&Default::default()) +/// .img_dominant_color(&Default::default()) +/// .img_color_type(&Default::default()) +/// .hq("et") +/// .hl("et") +/// .high_range("sadipscing") +/// .googlehost("Stet") +/// .gl("dolor") +/// .filter("duo") +/// .file_type("vero") +/// .exclude_terms("vero") +/// .exact_terms("invidunt") +/// .date_restrict("Stet") +/// .cx("vero") +/// .cr("elitr") +/// .c2coff("Lorem") /// .doit().await; /// /// match result { diff --git a/gen/customsearch1/src/api/mod.rs b/gen/customsearch1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/customsearch1/src/api/mod.rs +++ b/gen/customsearch1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/customsearch1/src/lib.rs b/gen/customsearch1/src/lib.rs index a23dd43c4a..9261887869 100644 --- a/gen/customsearch1/src/lib.rs +++ b/gen/customsearch1/src/lib.rs @@ -97,37 +97,37 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.cse().siterestrict_list() -//! .start(94) -//! .sort("gubergren") -//! .site_search_filter("ea") -//! .site_search("dolor") -//! .search_type("Lorem") -//! .safe("eos") -//! .rights("labore") -//! .related_site("sed") -//! .q("duo") -//! .or_terms("sed") -//! .num(-61) -//! .lr("Stet") -//! .low_range("kasd") -//! .link_site("et") -//! .img_type("sed") -//! .img_size("et") -//! .img_dominant_color("et") -//! .img_color_type("vero") -//! .hq("erat") -//! .hl("sed") -//! .high_range("duo") -//! .googlehost("dolore") -//! .gl("et") -//! .filter("voluptua.") -//! .file_type("amet.") -//! .exclude_terms("consetetur") -//! .exact_terms("diam") -//! .date_restrict("dolor") -//! .cx("et") +//! .start(8) +//! .sort("ut") +//! .site_search_filter(&Default::default()) +//! .site_search("gubergren") +//! .search_type(&Default::default()) +//! .safe(&Default::default()) +//! .rights("rebum.") +//! .related_site("est") +//! .q("ipsum") +//! .or_terms("ipsum") +//! .num(-7) +//! .lr("gubergren") +//! .low_range("ea") +//! .link_site("dolor") +//! .img_type(&Default::default()) +//! .img_size(&Default::default()) +//! .img_dominant_color(&Default::default()) +//! .img_color_type(&Default::default()) +//! .hq("Lorem") +//! .hl("eos") +//! .high_range("labore") +//! .googlehost("sed") +//! .gl("duo") +//! .filter("sed") +//! .file_type("no") +//! .exclude_terms("Stet") +//! .exact_terms("kasd") +//! .date_restrict("et") +//! .cx("sed") //! .cr("et") -//! .c2coff("sadipscing") +//! .c2coff("et") //! .doit().await; //! //! match result { diff --git a/gen/datacatalog1/src/api/call_builders.rs b/gen/datacatalog1/src/api/call_builders.rs index 0ce9e93f35..3aeabfacb9 100644 --- a/gen/datacatalog1/src/api/call_builders.rs +++ b/gen/datacatalog1/src/api/call_builders.rs @@ -4719,7 +4719,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5004,7 +5004,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()); @@ -5270,7 +5270,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5561,7 +5561,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6157,7 +6157,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._entry_id.as_ref() { params.push("entryId", value); } @@ -6452,7 +6452,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()); @@ -6714,7 +6714,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()); @@ -6983,7 +6983,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()); @@ -7275,7 +7275,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7566,7 +7566,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._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -7865,7 +7865,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()); @@ -8157,7 +8157,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()); @@ -8451,7 +8451,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8753,7 +8753,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()); @@ -9045,7 +9045,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()); @@ -9337,7 +9337,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()); @@ -9629,7 +9629,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9914,7 +9914,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()); @@ -10180,7 +10180,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -10471,7 +10471,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10775,7 +10775,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._entry_group_id.as_ref() { params.push("entryGroupId", value); } @@ -11072,7 +11072,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._force.as_ref() { params.push("force", value.to_string()); } @@ -11346,7 +11346,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._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -11625,7 +11625,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()); @@ -11914,7 +11914,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -12205,7 +12205,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12507,7 +12507,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()); @@ -12799,7 +12799,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()); @@ -13084,7 +13084,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()); @@ -13346,7 +13346,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()); @@ -13608,7 +13608,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()); @@ -13876,7 +13876,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); } @@ -14175,7 +14175,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()); @@ -14469,7 +14469,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tag_template_field_id.as_ref() { params.push("tagTemplateFieldId", value); } @@ -14766,7 +14766,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._force.as_ref() { params.push("force", value.to_string()); } @@ -15047,7 +15047,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -15349,7 +15349,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()); @@ -15643,7 +15643,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tag_template_id.as_ref() { params.push("tagTemplateId", value); } @@ -15940,7 +15940,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._force.as_ref() { params.push("force", value.to_string()); } @@ -16212,7 +16212,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()); @@ -16481,7 +16481,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()); @@ -16775,7 +16775,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -17077,7 +17077,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()); @@ -17369,7 +17369,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()); @@ -17661,7 +17661,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -17946,7 +17946,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()); @@ -18208,7 +18208,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()); @@ -18477,7 +18477,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()); @@ -18766,7 +18766,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -19057,7 +19057,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -19359,7 +19359,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()); @@ -19651,7 +19651,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()); @@ -19943,7 +19943,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -20228,7 +20228,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()); @@ -20494,7 +20494,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._taxonomies.len() > 0 { for f in self._taxonomies.iter() { params.push("taxonomies", f); @@ -20779,7 +20779,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()); @@ -21048,7 +21048,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()); @@ -21340,7 +21340,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -21631,7 +21631,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._page_token.as_ref() { params.push("pageToken", value); } @@ -21932,7 +21932,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -22234,7 +22234,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()); @@ -22526,7 +22526,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()); @@ -22818,7 +22818,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()); diff --git a/gen/datacatalog1/src/api/mod.rs b/gen/datacatalog1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datacatalog1/src/api/mod.rs +++ b/gen/datacatalog1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datacatalog1/src/api/schemas.rs b/gen/datacatalog1/src/api/schemas.rs index 7523f3fca0..31afad310e 100644 --- a/gen/datacatalog1/src/api/schemas.rs +++ b/gen/datacatalog1/src/api/schemas.rs @@ -121,7 +121,7 @@ pub struct GoogleCloudDatacatalogV1BigQueryConnectionSpec { /// The type of the BigQuery connection. #[serde(rename="connectionType")] - pub connection_type: Option, + pub connection_type: Option, /// True if there are credentials attached to the BigQuery connection; false otherwise. #[serde(rename="hasCredential")] @@ -185,7 +185,7 @@ pub struct GoogleCloudDatacatalogV1BigQueryTableSpec { /// Output only. The table source type. #[serde(rename="tableSourceType")] - pub table_source_type: Option, + pub table_source_type: Option, /// Specification of a BigQuery table. Populated only if the `table_source_type` is `BIGQUERY_TABLE`. #[serde(rename="tableSpec")] @@ -235,7 +235,7 @@ pub struct GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec { /// Type of the Cloud SQL database. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec {} @@ -265,7 +265,7 @@ pub struct GoogleCloudDatacatalogV1ColumnSchema { /// Optional. Most important inclusion of this column. #[serde(rename="highestIndexingType")] - pub highest_indexing_type: Option, + pub highest_indexing_type: Option, /// Looker specific column info of this column. #[serde(rename="lookerColumnSpec")] @@ -299,7 +299,7 @@ pub struct GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec { /// Looker specific column type of this column. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec {} @@ -386,7 +386,7 @@ pub struct GoogleCloudDatacatalogV1DataSource { pub resource: Option, /// Service that physically stores the data. - pub service: Option, + pub service: Option, /// Output only. Data Catalog entry name, if applicable. #[serde(rename="sourceEntry")] @@ -434,7 +434,7 @@ pub struct GoogleCloudDatacatalogV1DatabaseTableSpec { /// Type of this table. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDatacatalogV1DatabaseTableSpec {} @@ -458,7 +458,7 @@ pub struct GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec { /// Type of this view. #[serde(rename="viewType")] - pub view_type: Option, + pub view_type: Option, } impl client::Part for GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec {} @@ -485,7 +485,7 @@ pub struct GoogleCloudDatacatalogV1DataplexExternalTable { pub google_cloud_resource: Option, /// Service in which the external table is registered. - pub system: Option, + pub system: Option, } impl client::Part for GoogleCloudDatacatalogV1DataplexExternalTable {} @@ -618,7 +618,7 @@ pub struct GoogleCloudDatacatalogV1Entry { /// Output only. Indicates the entry's source system that Data Catalog integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. #[serde(rename="integratedSystem")] - pub integrated_system: Option, + pub integrated_system: Option, /// Cloud labels attached to the entry. In Data Catalog, you can create and modify labels attached only to custom entries. Synced entries have unmodifiable labels that come from the source system. pub labels: Option>, @@ -655,7 +655,7 @@ pub struct GoogleCloudDatacatalogV1Entry { /// The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Resource usage statistics. #[serde(rename="usageSignal")] @@ -759,7 +759,7 @@ pub struct GoogleCloudDatacatalogV1FieldType { /// Primitive types, such as string, boolean, etc. #[serde(rename="primitiveType")] - pub primitive_type: Option, + pub primitive_type: Option, } impl client::Part for GoogleCloudDatacatalogV1FieldType {} @@ -1382,7 +1382,7 @@ pub struct GoogleCloudDatacatalogV1RoutineSpec { /// The type of the routine. #[serde(rename="routineType")] - pub routine_type: Option, + pub routine_type: Option, } impl client::Part for GoogleCloudDatacatalogV1RoutineSpec {} @@ -1397,7 +1397,7 @@ impl client::Part for GoogleCloudDatacatalogV1RoutineSpec {} pub struct GoogleCloudDatacatalogV1RoutineSpecArgument { /// Specifies whether the argument is input or output. - pub mode: Option, + pub mode: Option, /// The name of the argument. A return argument of a function might not have a name. pub name: Option, @@ -1542,7 +1542,7 @@ pub struct GoogleCloudDatacatalogV1SearchCatalogResult { /// Output only. The source system that Data Catalog automatically integrates with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore. #[serde(rename="integratedSystem")] - pub integrated_system: Option, + pub integrated_system: Option, /// The full name of the Google Cloud resource the entry belongs to. For more information, see \[Full Resource Name\] (/apis/design/resource_names#full_resource_name). Example: `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` #[serde(rename="linkedResource")] @@ -1562,7 +1562,7 @@ pub struct GoogleCloudDatacatalogV1SearchCatalogResult { /// Type of the search result. You can use this field to determine which get method to call to fetch the full resource. #[serde(rename="searchResultType")] - pub search_result_type: Option, + pub search_result_type: Option, /// Custom source system that you can manually integrate Data Catalog with. #[serde(rename="userSpecifiedSystem")] @@ -1609,7 +1609,7 @@ pub struct GoogleCloudDatacatalogV1SerializedTaxonomy { /// A list of policy types that are activated per taxonomy. #[serde(rename="activatedPolicyTypes")] - pub activated_policy_types: Option>, + pub activated_policy_types: Option>, /// Description of the serialized taxonomy. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. pub description: Option, @@ -1926,7 +1926,7 @@ pub struct GoogleCloudDatacatalogV1Taxonomy { /// Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. #[serde(rename="activatedPolicyTypes")] - pub activated_policy_types: Option>, + pub activated_policy_types: Option>, /// Optional. Description of this taxonomy. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns, and page breaks, and be at most 2000 bytes long when encoded in UTF-8. pub description: Option, @@ -1966,7 +1966,7 @@ pub struct GoogleCloudDatacatalogV1TaxonomyService { pub identity: Option, /// The GCP service name. - pub name: Option, + pub name: Option, } impl client::Part for GoogleCloudDatacatalogV1TaxonomyService {} diff --git a/gen/datacatalog1_beta1/src/api/call_builders.rs b/gen/datacatalog1_beta1/src/api/call_builders.rs index ddbc2dcd9f..5ad00d407a 100644 --- a/gen/datacatalog1_beta1/src/api/call_builders.rs +++ b/gen/datacatalog1_beta1/src/api/call_builders.rs @@ -3227,7 +3227,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3512,7 +3512,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()); @@ -3778,7 +3778,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4069,7 +4069,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4373,7 +4373,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._entry_id.as_ref() { params.push("entryId", value); } @@ -4668,7 +4668,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()); @@ -4930,7 +4930,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()); @@ -5199,7 +5199,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()); @@ -5490,7 +5490,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._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -5791,7 +5791,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6093,7 +6093,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()); @@ -6385,7 +6385,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6670,7 +6670,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()); @@ -6936,7 +6936,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7227,7 +7227,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7531,7 +7531,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._entry_group_id.as_ref() { params.push("entryGroupId", value); } @@ -7828,7 +7828,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._force.as_ref() { params.push("force", value.to_string()); } @@ -8102,7 +8102,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._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -8381,7 +8381,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()); @@ -8670,7 +8670,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8961,7 +8961,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -9263,7 +9263,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()); @@ -9555,7 +9555,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()); @@ -9847,7 +9847,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()); @@ -10141,7 +10141,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tag_template_field_id.as_ref() { params.push("tagTemplateFieldId", value); } @@ -10438,7 +10438,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._force.as_ref() { params.push("force", value.to_string()); } @@ -10719,7 +10719,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -11021,7 +11021,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()); @@ -11315,7 +11315,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tag_template_id.as_ref() { params.push("tagTemplateId", value); } @@ -11612,7 +11612,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._force.as_ref() { params.push("force", value.to_string()); } @@ -11884,7 +11884,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()); @@ -12153,7 +12153,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()); @@ -12447,7 +12447,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12749,7 +12749,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()); @@ -13041,7 +13041,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()); @@ -13333,7 +13333,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -13618,7 +13618,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()); @@ -13880,7 +13880,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()); @@ -14149,7 +14149,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()); @@ -14438,7 +14438,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -14729,7 +14729,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -15031,7 +15031,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()); @@ -15323,7 +15323,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()); @@ -15615,7 +15615,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -15900,7 +15900,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()); @@ -16166,7 +16166,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._taxonomies.len() > 0 { for f in self._taxonomies.iter() { params.push("taxonomies", f); @@ -16451,7 +16451,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()); @@ -16720,7 +16720,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()); @@ -17012,7 +17012,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -17303,7 +17303,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._page_token.as_ref() { params.push("pageToken", value); } @@ -17604,7 +17604,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -17906,7 +17906,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()); @@ -18198,7 +18198,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()); diff --git a/gen/datacatalog1_beta1/src/api/mod.rs b/gen/datacatalog1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datacatalog1_beta1/src/api/mod.rs +++ b/gen/datacatalog1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datacatalog1_beta1/src/api/schemas.rs b/gen/datacatalog1_beta1/src/api/schemas.rs index 83d23f54da..676d903abf 100644 --- a/gen/datacatalog1_beta1/src/api/schemas.rs +++ b/gen/datacatalog1_beta1/src/api/schemas.rs @@ -139,7 +139,7 @@ pub struct GoogleCloudDatacatalogV1beta1BigQueryTableSpec { /// Output only. The table source type. #[serde(rename="tableSourceType")] - pub table_source_type: Option, + pub table_source_type: Option, /// Spec of a BigQuery table. This field should only be populated if `table_source_type` is `BIGQUERY_TABLE`. #[serde(rename="tableSpec")] @@ -217,7 +217,7 @@ pub struct GoogleCloudDatacatalogV1beta1Entry { /// Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Pub/Sub. #[serde(rename="integratedSystem")] - pub integrated_system: Option, + pub integrated_system: Option, /// The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [full name of the resource](https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId Output only when Entry is of type in the EntryType enum. For entries with user_specified_type, this field is optional and defaults to an empty string. #[serde(rename="linkedResource")] @@ -235,7 +235,7 @@ pub struct GoogleCloudDatacatalogV1beta1Entry { /// The type of the entry. Only used for Entries with types in the EntryType enum. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. Statistics on the usage level of the resource. #[serde(rename="usageSignal")] @@ -320,7 +320,7 @@ pub struct GoogleCloudDatacatalogV1beta1FieldType { /// Represents primitive types - string, bool etc. #[serde(rename="primitiveType")] - pub primitive_type: Option, + pub primitive_type: Option, } impl client::Part for GoogleCloudDatacatalogV1beta1FieldType {} @@ -781,7 +781,7 @@ pub struct GoogleCloudDatacatalogV1beta1SearchCatalogResult { /// Type of the search result. This field can be used to determine which Get method to call to fetch the full resource. #[serde(rename="searchResultType")] - pub search_result_type: Option, + pub search_result_type: Option, } impl client::Part for GoogleCloudDatacatalogV1beta1SearchCatalogResult {} @@ -824,7 +824,7 @@ pub struct GoogleCloudDatacatalogV1beta1SerializedTaxonomy { /// A list of policy types that are activated for a taxonomy. #[serde(rename="activatedPolicyTypes")] - pub activated_policy_types: Option>, + pub activated_policy_types: Option>, /// Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. pub description: Option, @@ -1058,7 +1058,7 @@ pub struct GoogleCloudDatacatalogV1beta1Taxonomy { /// Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. #[serde(rename="activatedPolicyTypes")] - pub activated_policy_types: Option>, + pub activated_policy_types: Option>, /// Optional. Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. pub description: Option, @@ -1098,7 +1098,7 @@ pub struct GoogleCloudDatacatalogV1beta1TaxonomyService { pub identity: Option, /// The GCP service name. - pub name: Option, + pub name: Option, } impl client::Part for GoogleCloudDatacatalogV1beta1TaxonomyService {} diff --git a/gen/datafusion1/src/api/call_builders.rs b/gen/datafusion1/src/api/call_builders.rs index 4ff4171748..94ebcb454f 100644 --- a/gen/datafusion1/src/api/call_builders.rs +++ b/gen/datafusion1/src/api/call_builders.rs @@ -1399,7 +1399,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._dns_peering_id.as_ref() { params.push("dnsPeeringId", value); } @@ -1694,7 +1694,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()); @@ -1960,7 +1960,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2251,7 +2251,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._instance_id.as_ref() { params.push("instanceId", value); } @@ -2546,7 +2546,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()); @@ -2808,7 +2808,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()); @@ -3072,7 +3072,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()); } @@ -3352,7 +3352,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); } @@ -3663,7 +3663,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3965,7 +3965,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()); @@ -4257,7 +4257,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()); @@ -4549,7 +4549,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()); @@ -4841,7 +4841,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()); @@ -5126,7 +5126,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()); @@ -5388,7 +5388,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()); @@ -5656,7 +5656,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); } @@ -5954,7 +5954,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6246,7 +6246,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()); @@ -6516,7 +6516,7 @@ where } let mut params = Params::with_capacity(7 + 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); } diff --git a/gen/datafusion1/src/api/mod.rs b/gen/datafusion1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datafusion1/src/api/mod.rs +++ b/gen/datafusion1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datafusion1/src/api/schemas.rs b/gen/datafusion1/src/api/schemas.rs index cf097a8338..19ac8c815f 100644 --- a/gen/datafusion1/src/api/schemas.rs +++ b/gen/datafusion1/src/api/schemas.rs @@ -9,10 +9,10 @@ pub struct Accelerator { /// The type of an accelator for a CDF instance. #[serde(rename="acceleratorType")] - pub accelerator_type: Option, + pub accelerator_type: Option, /// The state of the accelerator. - pub state: Option, + pub state: Option, } impl client::Part for Accelerator {} @@ -51,7 +51,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -244,7 +244,7 @@ pub struct Instance { /// Output only. If the instance state is DISABLED, the reason for disabling the instance. #[serde(rename="disabledReason")] - pub disabled_reason: Option>, + pub disabled_reason: Option>, /// Display name for an instance. #[serde(rename="displayName")] @@ -304,7 +304,7 @@ pub struct Instance { pub service_endpoint: Option, /// Output only. The current state of this Data Fusion instance. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current state of this Data Fusion instance if available. #[serde(rename="stateMessage")] @@ -316,7 +316,7 @@ pub struct Instance { /// Required. Instance type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The time the instance was last updated. #[serde(rename="updateTime")] @@ -686,7 +686,7 @@ pub struct Version { /// Type represents the release availability of the version #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The version number of the Data Fusion instance, such as '6.0.1.0'. #[serde(rename="versionNumber")] diff --git a/gen/datafusion1_beta1/src/api/mod.rs b/gen/datafusion1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datafusion1_beta1/src/api/mod.rs +++ b/gen/datafusion1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datafusion1_beta1/src/api/schemas.rs b/gen/datafusion1_beta1/src/api/schemas.rs index 8fceb3e552..f3fa3e5e68 100644 --- a/gen/datafusion1_beta1/src/api/schemas.rs +++ b/gen/datafusion1_beta1/src/api/schemas.rs @@ -9,10 +9,10 @@ pub struct Accelerator { /// The type of an accelator for a CDF instance. #[serde(rename="acceleratorType")] - pub accelerator_type: Option, + pub accelerator_type: Option, /// The state of the accelerator. - pub state: Option, + pub state: Option, } impl client::Part for Accelerator {} @@ -51,7 +51,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -262,7 +262,7 @@ pub struct Instance { /// Output only. If the instance state is DISABLED, the reason for disabling the instance. #[serde(rename="disabledReason")] - pub disabled_reason: Option>, + pub disabled_reason: Option>, /// Display name for an instance. #[serde(rename="displayName")] @@ -322,7 +322,7 @@ pub struct Instance { pub service_endpoint: Option, /// Output only. The current state of this Data Fusion instance. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current state of this Data Fusion instance if available. #[serde(rename="stateMessage")] @@ -334,7 +334,7 @@ pub struct Instance { /// Required. Instance type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The time the instance was last updated. #[serde(rename="updateTime")] @@ -797,7 +797,7 @@ pub struct Version { /// Type represents the release availability of the version #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The version number of the Data Fusion instance, such as '6.0.1.0'. #[serde(rename="versionNumber")] diff --git a/gen/datalabeling1_beta1/src/api/call_builders.rs b/gen/datalabeling1_beta1/src/api/call_builders.rs index f7e29dbbf6..adf34007c8 100644 --- a/gen/datalabeling1_beta1/src/api/call_builders.rs +++ b/gen/datalabeling1_beta1/src/api/call_builders.rs @@ -3771,7 +3771,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4056,7 +4056,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()); @@ -4318,7 +4318,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()); @@ -4586,7 +4586,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4878,7 +4878,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()); @@ -5146,7 +5146,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5440,7 +5440,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._filter.as_ref() { params.push("filter", value); } @@ -5718,7 +5718,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6017,7 +6017,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6302,7 +6302,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()); @@ -6564,7 +6564,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()); @@ -6830,7 +6830,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7112,7 +7112,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()); @@ -7374,7 +7374,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()); @@ -7640,7 +7640,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7922,7 +7922,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()); @@ -8184,7 +8184,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()); @@ -8452,7 +8452,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._page_token.as_ref() { params.push("pageToken", value); } @@ -8744,7 +8744,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()); @@ -9012,7 +9012,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._page_token.as_ref() { params.push("pageToken", value); } @@ -9311,7 +9311,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9596,7 +9596,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()); @@ -9865,7 +9865,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10157,7 +10157,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10449,7 +10449,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10741,7 +10741,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -11026,7 +11026,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()); @@ -11295,7 +11295,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()); @@ -11580,7 +11580,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()); @@ -11849,7 +11849,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()); @@ -12140,7 +12140,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._page_token.as_ref() { params.push("pageToken", value); } @@ -12439,7 +12439,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -12724,7 +12724,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()); @@ -12986,7 +12986,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()); @@ -13254,7 +13254,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._page_token.as_ref() { params.push("pageToken", value); } @@ -13555,7 +13555,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -13857,7 +13857,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()); @@ -14149,7 +14149,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()); @@ -14440,7 +14440,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._page_token.as_ref() { params.push("pageToken", value); } @@ -14739,7 +14739,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -15024,7 +15024,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()); @@ -15286,7 +15286,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()); @@ -15554,7 +15554,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._page_token.as_ref() { params.push("pageToken", value); } @@ -15846,7 +15846,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()); @@ -16108,7 +16108,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()); @@ -16370,7 +16370,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()); @@ -16638,7 +16638,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); } diff --git a/gen/datalabeling1_beta1/src/api/mod.rs b/gen/datalabeling1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datalabeling1_beta1/src/api/mod.rs +++ b/gen/datalabeling1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datalabeling1_beta1/src/api/schemas.rs b/gen/datalabeling1_beta1/src/api/schemas.rs index 89b5ec3c69..c1127c68d6 100644 --- a/gen/datalabeling1_beta1/src/api/schemas.rs +++ b/gen/datalabeling1_beta1/src/api/schemas.rs @@ -13,11 +13,11 @@ pub struct GoogleCloudDatalabelingV1beta1AnnotatedDataset { /// Output only. Source of the annotation. #[serde(rename="annotationSource")] - pub annotation_source: Option, + pub annotation_source: Option, /// Output only. Type of the annotation. It is specified when starting labeling task. #[serde(rename="annotationType")] - pub annotation_type: Option, + pub annotation_type: Option, /// Output only. The names of any related resources that are blocking changes to the annotated dataset. #[serde(rename="blockingResources")] @@ -128,11 +128,11 @@ pub struct GoogleCloudDatalabelingV1beta1Annotation { /// Output only. Sentiment for this annotation. #[serde(rename="annotationSentiment")] - pub annotation_sentiment: Option, + pub annotation_sentiment: Option, /// Output only. The source of the annotation. #[serde(rename="annotationSource")] - pub annotation_source: Option, + pub annotation_source: Option, /// Output only. This is the actual annotation value, e.g classification, bounding box values are stored here. #[serde(rename="annotationValue")] @@ -681,7 +681,7 @@ pub struct GoogleCloudDatalabelingV1beta1Evaluation { /// Output only. Type of task that the model version being evaluated performs, as defined in the evaluationJobConfig.inputConfig.annotationType field of the evaluation job that created this evaluation. #[serde(rename="annotationType")] - pub annotation_type: Option, + pub annotation_type: Option, /// Output only. Options used in the evaluation job that created this evaluation. pub config: Option, @@ -773,7 +773,7 @@ pub struct GoogleCloudDatalabelingV1beta1EvaluationJob { pub schedule: Option, /// Output only. Describes the current state of the job. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudDatalabelingV1beta1EvaluationJob {} @@ -1060,7 +1060,7 @@ pub struct GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata { pub last_update_time: Option>, /// no description provided - pub status: Option, + pub status: Option, /// An image thumbnail of this thread. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -1232,7 +1232,7 @@ pub struct GoogleCloudDatalabelingV1beta1ImageClassificationConfig { /// Optional. The type of how to aggregate answers. #[serde(rename="answerAggregationType")] - pub answer_aggregation_type: Option, + pub answer_aggregation_type: Option, } impl client::Part for GoogleCloudDatalabelingV1beta1ImageClassificationConfig {} @@ -1349,7 +1349,7 @@ pub struct GoogleCloudDatalabelingV1beta1InputConfig { /// Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob. #[serde(rename="annotationType")] - pub annotation_type: Option, + pub annotation_type: Option, /// Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob. #[serde(rename="bigquerySource")] @@ -1361,7 +1361,7 @@ pub struct GoogleCloudDatalabelingV1beta1InputConfig { /// Required. Data type must be specifed when user tries to import data. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// Source located in Cloud Storage. #[serde(rename="gcsSource")] @@ -1401,7 +1401,7 @@ pub struct GoogleCloudDatalabelingV1beta1Instruction { /// Required. The data type of this instruction. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// Optional. User-provided description of the instruction. The description can be up to 10000 characters long. pub description: Option, @@ -1446,7 +1446,7 @@ pub struct GoogleCloudDatalabelingV1beta1LabelImageRequest { pub bounding_poly_config: Option, /// Required. The type of image labeling task. - pub feature: Option, + pub feature: Option, /// Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required. #[serde(rename="imageClassificationConfig")] @@ -1498,7 +1498,7 @@ pub struct GoogleCloudDatalabelingV1beta1LabelTextRequest { pub basic_config: Option, /// Required. The type of text labeling task. - pub feature: Option, + pub feature: Option, /// Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required. #[serde(rename="textClassificationConfig")] @@ -1533,7 +1533,7 @@ pub struct GoogleCloudDatalabelingV1beta1LabelVideoRequest { pub event_config: Option, /// Required. The type of video labeling task. - pub feature: Option, + pub feature: Option, /// Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required. #[serde(rename="objectDetectionConfig")] diff --git a/gen/datamigration1/src/api/mod.rs b/gen/datamigration1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datamigration1/src/api/mod.rs +++ b/gen/datamigration1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datamigration1/src/api/schemas.rs b/gen/datamigration1/src/api/schemas.rs index 85a7d00bf5..a8e22dee12 100644 --- a/gen/datamigration1/src/api/schemas.rs +++ b/gen/datamigration1/src/api/schemas.rs @@ -101,7 +101,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -121,7 +121,7 @@ pub struct BackgroundJobLogEntry { /// Job completion state, i.e. the final state after the job completed. #[serde(rename="completionState")] - pub completion_state: Option, + pub completion_state: Option, /// The timestamp when the background job was finished. #[serde(rename="finishTime")] @@ -136,7 +136,7 @@ pub struct BackgroundJobLogEntry { /// The type of job that was executed. #[serde(rename="jobType")] - pub job_type: Option, + pub job_type: Option, /// Whether the client requested the conversion workspace to be committed after a successful completion of the job. #[serde(rename="requestAutocommit")] @@ -231,7 +231,7 @@ pub struct CloudSqlSettings { /// The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests. `NEVER`: The instance is off; it is not activated, even if a connection request arrives. #[serde(rename="activationPolicy")] - pub activation_policy: Option, + pub activation_policy: Option, /// [default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB. #[serde(rename="autoStorageIncrease")] @@ -239,7 +239,7 @@ pub struct CloudSqlSettings { /// Optional. Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data availability. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available). #[serde(rename="availabilityType")] - pub availability_type: Option, + pub availability_type: Option, /// The KMS key name used for the csql instance. #[serde(rename="cmekKeyName")] @@ -255,7 +255,7 @@ pub struct CloudSqlSettings { /// The type of storage: `PD_SSD` (default) or `PD_HDD`. #[serde(rename="dataDiskType")] - pub data_disk_type: Option, + pub data_disk_type: Option, /// The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. #[serde(rename="databaseFlags")] @@ -263,7 +263,7 @@ pub struct CloudSqlSettings { /// The database engine type and version. #[serde(rename="databaseVersion")] - pub database_version: Option, + pub database_version: Option, /// The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled. #[serde(rename="ipConfig")] @@ -446,10 +446,10 @@ pub struct ConnectionProfile { pub postgresql: Option, /// The database provider. - pub provider: Option, + pub provider: Option, /// The current connection profile state (e.g. DRAFT, READY, or FAILED). - pub state: Option, + pub state: Option, /// Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". #[serde(rename="updateTime")] @@ -606,7 +606,7 @@ impl client::RequestValue for ConvertConversionWorkspaceRequest {} pub struct DatabaseEngineInfo { /// Required. Engine Type. - pub engine: Option, + pub engine: Option, /// Required. Engine named version, for e.g. 12.c.1 pub version: Option, @@ -633,7 +633,7 @@ pub struct DatabaseEntity { /// The type of the database entity (table, view, index, ...). #[serde(rename="entityType")] - pub entity_type: Option, + pub entity_type: Option, /// Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details. pub mappings: Option>, @@ -663,7 +663,7 @@ pub struct DatabaseEntity { pub table: Option, /// The type of tree the entity belongs to. - pub tree: Option, + pub tree: Option, /// View pub view: Option, @@ -681,10 +681,10 @@ impl client::Part for DatabaseEntity {} pub struct DatabaseType { /// The database engine. - pub engine: Option, + pub engine: Option, /// The database provider. - pub provider: Option, + pub provider: Option, } impl client::Part for DatabaseType {} @@ -956,7 +956,7 @@ pub struct ImportMappingRulesRequest { /// The format of the rules content file. #[serde(rename="rulesFormat")] - pub rules_format: Option, + pub rules_format: Option, } impl client::RequestValue for ImportMappingRulesRequest {} @@ -972,7 +972,7 @@ pub struct ImportRulesJobDetails { /// The requested file format #[serde(rename="fileFormat")] - pub file_format: Option, + pub file_format: Option, /// File names used for the import rules job pub files: Option>, @@ -1276,7 +1276,7 @@ pub struct MigrationJob { pub name: Option, /// Output only. The current migration job phase. - pub phase: Option, + pub phase: Option, /// The details needed to communicate to the source over Reverse SSH tunnel connectivity. #[serde(rename="reverseSshConnectivity")] @@ -1290,7 +1290,7 @@ pub struct MigrationJob { pub source_database: Option, /// The current migration job state. - pub state: Option, + pub state: Option, /// static ip connectivity data (default, no additional details needed). #[serde(rename="staticIpConnectivity")] @@ -1298,7 +1298,7 @@ pub struct MigrationJob { /// Required. The migration job type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". #[serde(rename="updateTime")] @@ -1520,7 +1520,7 @@ pub struct PostgreSqlConnectionProfile { /// Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with. #[serde(rename="networkArchitecture")] - pub network_architecture: Option, + pub network_architecture: Option, /// Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service. pub password: Option, @@ -1611,7 +1611,7 @@ pub struct PrivateConnection { pub name: Option, /// Output only. The state of the Private Connection. - pub state: Option, + pub state: Option, /// Output only. The last update time of the resource. #[serde(rename="updateTime")] @@ -2004,7 +2004,7 @@ pub struct SslConfig { /// Output only. The ssl config type according to 'client_key', 'client_certificate' and 'ca_certificate'. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SslConfig {} @@ -2121,7 +2121,7 @@ pub struct SynonymEntity { /// The type of the entity for which the synonym is being created (usually a table or a sequence) #[serde(rename="sourceType")] - pub source_type: Option, + pub source_type: Option, } impl client::Part for SynonymEntity {} diff --git a/gen/datapipelines1/src/api/call_builders.rs b/gen/datapipelines1/src/api/call_builders.rs index 8309b9964b..6573a2406e 100644 --- a/gen/datapipelines1/src/api/call_builders.rs +++ b/gen/datapipelines1/src/api/call_builders.rs @@ -1030,7 +1030,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1319,7 +1319,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1604,7 +1604,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()); @@ -1866,7 +1866,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()); @@ -2134,7 +2134,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2435,7 +2435,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2737,7 +2737,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()); @@ -3029,7 +3029,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()); diff --git a/gen/datapipelines1/src/api/mod.rs b/gen/datapipelines1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datapipelines1/src/api/mod.rs +++ b/gen/datapipelines1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datapipelines1/src/api/schemas.rs b/gen/datapipelines1/src/api/schemas.rs index 82e3ea3572..8ffa066ce5 100644 --- a/gen/datapipelines1/src/api/schemas.rs +++ b/gen/datapipelines1/src/api/schemas.rs @@ -45,11 +45,11 @@ pub struct GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment { /// Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs #[serde(rename="flexrsGoal")] - pub flexrs_goal: Option, + pub flexrs_goal: Option, /// Configuration for VM IPs. #[serde(rename="ipConfiguration")] - pub ip_configuration: Option, + pub ip_configuration: Option, /// Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ #[serde(rename="kmsKeyName")] @@ -123,7 +123,7 @@ pub struct GoogleCloudDatapipelinesV1Job { pub name: Option, /// The current state of the job. - pub state: Option, + pub state: Option, /// Status capturing any error code or message related to job creation or execution. pub status: Option, @@ -349,11 +349,11 @@ pub struct GoogleCloudDatapipelinesV1Pipeline { pub scheduler_service_account_email: Option, /// Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. - pub state: Option, + pub state: Option, /// Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Workload information for creating new jobs. pub workload: Option, @@ -423,7 +423,7 @@ pub struct GoogleCloudDatapipelinesV1RuntimeEnvironment { /// Configuration for VM IPs. #[serde(rename="ipConfiguration")] - pub ip_configuration: Option, + pub ip_configuration: Option, /// Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ #[serde(rename="kmsKeyName")] @@ -503,7 +503,7 @@ pub struct GoogleCloudDatapipelinesV1SdkVersion { /// The support status for this SDK version. #[serde(rename="sdkSupportStatus")] - pub sdk_support_status: Option, + pub sdk_support_status: Option, /// The version of the SDK used to run the job. pub version: Option, diff --git a/gen/dataplex1/src/api/mod.rs b/gen/dataplex1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dataplex1/src/api/mod.rs +++ b/gen/dataplex1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dataplex1/src/api/schemas.rs b/gen/dataplex1/src/api/schemas.rs index a79791d709..b41f46a044 100644 --- a/gen/dataplex1/src/api/schemas.rs +++ b/gen/dataplex1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct GoogleCloudDataplexV1Action { pub asset: Option, /// The category of issue associated with the action. - pub category: Option, + pub category: Option, /// The list of data locations associated with this action. Cloud Storage locations are represented as URI paths(E.g. gs://bucket/table1/year=2020/month=Jan/). BigQuery locations refer to resource names(E.g. bigquery.googleapis.com/projects/project-id/datasets/dataset-id). #[serde(rename="dataLocations")] @@ -127,7 +127,7 @@ pub struct GoogleCloudDataplexV1ActionIncompatibleDataSchema { /// Whether the action relates to a schema that is incompatible or modified. #[serde(rename="schemaChange")] - pub schema_change: Option, + pub schema_change: Option, /// The name of the table containing invalid data. pub table: Option, @@ -181,7 +181,7 @@ pub struct GoogleCloudDataplexV1ActionInvalidDataPartition { /// The issue type of InvalidDataPartition. #[serde(rename="expectedStructure")] - pub expected_structure: Option, + pub expected_structure: Option, } impl client::Part for GoogleCloudDataplexV1ActionInvalidDataPartition {} @@ -272,7 +272,7 @@ pub struct GoogleCloudDataplexV1Asset { pub security_status: Option, /// Output only. Current state of the asset. - pub state: Option, + pub state: Option, /// Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name. pub uid: Option, @@ -386,7 +386,7 @@ pub struct GoogleCloudDataplexV1AssetDiscoveryStatus { pub message: Option, /// The current status of the discovery feature. - pub state: Option, + pub state: Option, /// Data Stats of the asset reported by discovery. pub stats: Option, @@ -442,11 +442,11 @@ pub struct GoogleCloudDataplexV1AssetResourceSpec { /// Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. #[serde(rename="readAccessMode")] - pub read_access_mode: Option, + pub read_access_mode: Option, /// Required. Immutable. Type of resource. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDataplexV1AssetResourceSpec {} @@ -464,7 +464,7 @@ pub struct GoogleCloudDataplexV1AssetResourceStatus { pub message: Option, /// The current state of the managed resource. - pub state: Option, + pub state: Option, /// Last update time of the status. #[serde(rename="updateTime")] @@ -486,7 +486,7 @@ pub struct GoogleCloudDataplexV1AssetSecurityStatus { pub message: Option, /// The current state of the security policy applied to the attached resource. - pub state: Option, + pub state: Option, /// Last update time of the status. #[serde(rename="updateTime")] @@ -601,7 +601,7 @@ pub struct GoogleCloudDataplexV1ContentNotebook { /// Required. Kernel Type of the notebook. #[serde(rename="kernelType")] - pub kernel_type: Option, + pub kernel_type: Option, } impl client::Part for GoogleCloudDataplexV1ContentNotebook {} @@ -616,7 +616,7 @@ impl client::Part for GoogleCloudDataplexV1ContentNotebook {} pub struct GoogleCloudDataplexV1ContentSqlScript { /// Required. Query Engine to be used for the Sql Query. - pub engine: Option, + pub engine: Option, } impl client::Part for GoogleCloudDataplexV1ContentSqlScript {} @@ -1232,7 +1232,7 @@ pub struct GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation { pub min_value: Option, /// no description provided - pub statistic: Option, + pub statistic: Option, /// Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false. #[serde(rename="strictMaxEnabled")] @@ -1347,11 +1347,11 @@ pub struct GoogleCloudDataplexV1DataScan { pub name: Option, /// Output only. Current state of the DataScan. - pub state: Option, + pub state: Option, /// Output only. The type of DataScan. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name. pub uid: Option, @@ -1446,11 +1446,11 @@ pub struct GoogleCloudDataplexV1DataScanJob { pub start_time: Option>, /// Output only. Execution state for the DataScanJob. - pub state: Option, + pub state: Option, /// Output only. The type of the parent DataScan. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. System generated globally unique ID for the DataScanJob. pub uid: Option, @@ -1586,11 +1586,11 @@ pub struct GoogleCloudDataplexV1Entity { pub schema: Option, /// Required. Immutable. Identifies the storage system of the entity data. - pub system: Option, + pub system: Option, /// Required. Immutable. The type of entity. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. System generated unique ID for the Entity. This ID will be different if the Entity is deleted and re-created with the same name. pub uid: Option, @@ -1688,7 +1688,7 @@ pub struct GoogleCloudDataplexV1Environment { pub session_status: Option, /// Output only. Current state of the environment. - pub state: Option, + pub state: Option, /// Output only. System generated globally unique ID for the environment. This ID will be different if the environment is deleted and re-created with the same name. pub uid: Option, @@ -1853,7 +1853,7 @@ pub struct GoogleCloudDataplexV1Job { pub retry_count: Option, /// Output only. The underlying service running a job. - pub service: Option, + pub service: Option, /// Output only. The full resource name for the job run under a particular service. #[serde(rename="serviceJob")] @@ -1864,7 +1864,7 @@ pub struct GoogleCloudDataplexV1Job { pub start_time: Option>, /// Output only. Execution state for the job. - pub state: Option, + pub state: Option, /// Output only. System generated globally unique ID for the job. pub uid: Option, @@ -1920,7 +1920,7 @@ pub struct GoogleCloudDataplexV1Lake { pub service_account: Option, /// Output only. Current state of the lake. - pub state: Option, + pub state: Option, /// Output only. System generated globally unique ID for the lake. This ID will be different if the lake is deleted and re-created with the same name. pub uid: Option, @@ -1964,7 +1964,7 @@ pub struct GoogleCloudDataplexV1LakeMetastoreStatus { pub message: Option, /// Current state of association. - pub state: Option, + pub state: Option, /// Last update time of the metastore status of the lake. #[serde(rename="updateTime")] @@ -2546,7 +2546,7 @@ pub struct GoogleCloudDataplexV1Schema { /// Optional. The structure of paths containing partition data within the entity. #[serde(rename="partitionStyle")] - pub partition_style: Option, + pub partition_style: Option, /// Required. Set to true if user-managed or false if managed by Dataplex. The default is false (managed by Dataplex). Set to falseto enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. Set to true to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields. #[serde(rename="userManaged")] @@ -2569,7 +2569,7 @@ pub struct GoogleCloudDataplexV1SchemaPartitionField { /// Required. Immutable. The type of field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDataplexV1SchemaPartitionField {} @@ -2590,14 +2590,14 @@ pub struct GoogleCloudDataplexV1SchemaSchemaField { pub fields: Option>, /// Required. Additional field semantics. - pub mode: Option, + pub mode: Option, /// Required. The name of the field. Must contain only letters, numbers and underscores, with a maximum length of 767 characters, and must begin with a letter or underscore. pub name: Option, /// Required. The type of field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDataplexV1SchemaSchemaField {} @@ -2619,7 +2619,7 @@ pub struct GoogleCloudDataplexV1Session { pub name: Option, /// no description provided - pub state: Option, + pub state: Option, /// Output only. Email of user running the session. #[serde(rename="userId")] @@ -2638,7 +2638,7 @@ impl client::Part for GoogleCloudDataplexV1Session {} pub struct GoogleCloudDataplexV1StorageAccess { /// Output only. Describes the read access mechanism of the data. Not user settable. - pub read: Option, + pub read: Option, } impl client::Part for GoogleCloudDataplexV1StorageAccess {} @@ -2654,13 +2654,13 @@ pub struct GoogleCloudDataplexV1StorageFormat { /// Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed. #[serde(rename="compressionFormat")] - pub compression_format: Option, + pub compression_format: Option, /// Optional. Additional information about CSV formatted data. pub csv: Option, /// Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type. - pub format: Option, + pub format: Option, /// Optional. Additional information about iceberg tables. pub iceberg: Option, @@ -2778,7 +2778,7 @@ pub struct GoogleCloudDataplexV1Task { pub spark: Option, /// Output only. Current state of the task. - pub state: Option, + pub state: Option, /// Required. Spec related to how often and when a task should be triggered. #[serde(rename="triggerSpec")] @@ -3034,7 +3034,7 @@ pub struct GoogleCloudDataplexV1TaskTriggerSpec { /// Required. Immutable. Trigger type of the user-specified Task. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDataplexV1TaskTriggerSpec {} @@ -3129,11 +3129,11 @@ pub struct GoogleCloudDataplexV1Zone { pub resource_spec: Option, /// Output only. Current state of the zone. - pub state: Option, + pub state: Option, /// Required. Immutable. The type of the zone. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. System generated globally unique ID for the zone. This ID will be different if the zone is deleted and re-created with the same name. pub uid: Option, @@ -3236,7 +3236,7 @@ pub struct GoogleCloudDataplexV1ZoneResourceSpec { /// Required. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone. #[serde(rename="locationType")] - pub location_type: Option, + pub location_type: Option, } impl client::Part for GoogleCloudDataplexV1ZoneResourceSpec {} @@ -3331,7 +3331,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/dataproc1/src/api/mod.rs b/gen/dataproc1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dataproc1/src/api/mod.rs +++ b/gen/dataproc1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dataproc1/src/api/schemas.rs b/gen/dataproc1/src/api/schemas.rs index a5916780c9..e44b9a027d 100644 --- a/gen/dataproc1/src/api/schemas.rs +++ b/gen/dataproc1/src/api/schemas.rs @@ -234,7 +234,7 @@ pub struct Batch { pub spark_sql_batch: Option, /// Output only. The state of the batch. - pub state: Option, + pub state: Option, /// Output only. Historical state information for the batch. #[serde(rename="stateHistory")] @@ -476,14 +476,14 @@ pub struct ClusterStatus { pub detail: Option, /// Output only. The cluster's state. - pub state: Option, + pub state: Option, /// Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)). #[serde(rename="stateStartTime")] pub state_start_time: Option>, /// Output only. Additional state information that includes status reported by the agent. - pub substate: Option, + pub substate: Option, } impl client::Part for ClusterStatus {} @@ -752,7 +752,7 @@ pub struct GceClusterConfig { /// Optional. The type of IPv6 access for a cluster. #[serde(rename="privateIpv6GoogleAccess")] - pub private_ipv6_google_access: Option, + pub private_ipv6_google_access: Option, /// Optional. Reservation Affinity for consuming Zonal reservation. #[serde(rename="reservationAffinity")] @@ -970,7 +970,7 @@ pub struct GkeNodePoolTarget { pub node_pool_config: Option, /// Required. The roles associated with the GKE node pool. - pub roles: Option>, + pub roles: Option>, } impl client::Part for GkeNodePoolTarget {} @@ -1164,7 +1164,7 @@ pub struct InstanceGroupConfig { pub num_instances: Option, /// Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE. - pub preemptibility: Option, + pub preemptibility: Option, } impl client::Part for InstanceGroupConfig {} @@ -1399,14 +1399,14 @@ pub struct JobStatus { pub details: Option, /// Output only. A state message specifying the overall job state. - pub state: Option, + pub state: Option, /// Output only. The time when this state was entered. #[serde(rename="stateStartTime")] pub state_start_time: Option>, /// Output only. Additional state information, which includes status reported by the agent. - pub substate: Option, + pub substate: Option, } impl client::Part for JobStatus {} @@ -1707,7 +1707,7 @@ pub struct LoggingConfig { /// The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' #[serde(rename="driverLogLevels")] - pub driver_log_levels: Option>, + pub driver_log_levels: Option>, } impl client::Part for LoggingConfig {} @@ -1785,7 +1785,7 @@ pub struct Metric { /// Required. Default metrics are collected unless metricOverrides are specified for the metric source (see Available OSS metrics (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) for more information). #[serde(rename="metricSource")] - pub metric_source: Option, + pub metric_source: Option, } impl client::Part for Metric {} @@ -1835,7 +1835,7 @@ pub struct NodeGroup { pub node_group_config: Option, /// Required. Node group roles. - pub roles: Option>, + pub roles: Option>, } impl client::RequestValue for NodeGroup {} @@ -1896,7 +1896,7 @@ pub struct NodePool { /// Required. Repair action to take on specified resources of the node pool. #[serde(rename="repairAction")] - pub repair_action: Option, + pub repair_action: Option, } impl client::Part for NodePool {} @@ -2321,7 +2321,7 @@ pub struct ReservationAffinity { /// Optional. Type of reservation to consume #[serde(rename="consumeReservationType")] - pub consume_reservation_type: Option, + pub consume_reservation_type: Option, /// Optional. Corresponds to the label key of reservation resource. pub key: Option, @@ -2497,7 +2497,7 @@ pub struct SoftwareConfig { /// Optional. The set of components to activate on the cluster. #[serde(rename="optionalComponents")] - pub optional_components: Option>, + pub optional_components: Option>, /// Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). pub properties: Option>, @@ -2785,7 +2785,7 @@ impl client::RequestValue for StartClusterRequest {} pub struct StateHistory { /// Output only. The state of the batch at this point in history. - pub state: Option, + pub state: Option, /// Output only. Details about the state at this point in history. #[serde(rename="stateMessage")] @@ -3161,7 +3161,7 @@ pub struct YarnApplication { pub progress: Option, /// Required. The application state. - pub state: Option, + pub state: Option, /// Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. #[serde(rename="trackingUrl")] diff --git a/gen/datastore1/src/api/call_builders.rs b/gen/datastore1/src/api/call_builders.rs index 19246f2498..bb7a6777e7 100644 --- a/gen/datastore1/src/api/call_builders.rs +++ b/gen/datastore1/src/api/call_builders.rs @@ -2038,7 +2038,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -2324,8 +2324,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("indexId", self._index_id); + params.push("projectId", &self._project_id); + params.push("indexId", &self._index_id); params.extend(self._additional_params.iter()); @@ -2598,8 +2598,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("indexId", self._index_id); + params.push("projectId", &self._project_id); + params.push("indexId", &self._index_id); params.extend(self._additional_params.iter()); @@ -2877,7 +2877,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3168,7 +3168,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()); @@ -3430,7 +3430,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()); @@ -3692,7 +3692,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()); @@ -3960,7 +3960,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); } @@ -4259,7 +4259,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -4551,7 +4551,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -4843,7 +4843,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -5135,7 +5135,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -5427,7 +5427,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -5719,7 +5719,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -6011,7 +6011,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -6303,7 +6303,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -6595,7 +6595,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -6887,7 +6887,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); diff --git a/gen/datastore1/src/api/mod.rs b/gen/datastore1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datastore1/src/api/mod.rs +++ b/gen/datastore1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datastore1/src/api/schemas.rs b/gen/datastore1/src/api/schemas.rs index fbc4bebc91..c32d635cf4 100644 --- a/gen/datastore1/src/api/schemas.rs +++ b/gen/datastore1/src/api/schemas.rs @@ -66,7 +66,7 @@ pub struct AggregationResultBatch { /// The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`. #[serde(rename="moreResults")] - pub more_results: Option, + pub more_results: Option, /// Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches. #[serde(rename="readTime")] @@ -194,7 +194,7 @@ pub struct CommitRequest { pub database_id: Option, /// The type of commit to perform. Defaults to `TRANSACTIONAL`. - pub mode: Option, + pub mode: Option, /// The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity. pub mutations: Option>, @@ -251,7 +251,7 @@ pub struct CompositeFilter { pub filters: Option>, /// The operator for combining multiple filters. - pub op: Option, + pub op: Option, } impl client::Part for CompositeFilter {} @@ -446,7 +446,7 @@ impl client::RequestValue for GoogleDatastoreAdminV1ImportEntitiesRequest {} pub struct GoogleDatastoreAdminV1Index { /// Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. - pub ancestor: Option, + pub ancestor: Option, /// Output only. The resource ID of the index. #[serde(rename="indexId")] @@ -463,7 +463,7 @@ pub struct GoogleDatastoreAdminV1Index { pub properties: Option>, /// Output only. The state of the index. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleDatastoreAdminV1Index {} @@ -479,7 +479,7 @@ impl client::ResponseResult for GoogleDatastoreAdminV1Index {} pub struct GoogleDatastoreAdminV1IndexedProperty { /// Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. - pub direction: Option, + pub direction: Option, /// Required. The property name to index. pub name: Option, @@ -862,7 +862,7 @@ impl client::Part for Projection {} pub struct PropertyFilter { /// The operator to filter by. - pub op: Option, + pub op: Option, /// The property to filter by. pub property: Option, @@ -883,7 +883,7 @@ impl client::Part for PropertyFilter {} pub struct PropertyOrder { /// The direction to order by. Defaults to `ASCENDING`. - pub direction: Option, + pub direction: Option, /// The property to order by. pub property: Option, @@ -966,7 +966,7 @@ pub struct QueryResultBatch { /// The result type for every entity in `entity_results`. #[serde(rename="entityResultType")] - pub entity_result_type: Option, + pub entity_result_type: Option, /// The results for this batch. #[serde(rename="entityResults")] @@ -974,7 +974,7 @@ pub struct QueryResultBatch { /// The state of the query after the current batch. #[serde(rename="moreResults")] - pub more_results: Option, + pub more_results: Option, /// Read timestamp this batch was returned from. This applies to the range of results from the query's `start_cursor` (or the beginning of the query if no cursor was given) to this batch's `end_cursor` (not the query's `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches. This value will not be set for eventually consistent queries in Cloud Datastore. #[serde(rename="readTime")] @@ -1028,7 +1028,7 @@ pub struct ReadOptions { /// The non-transactional read consistency to use. #[serde(rename="readConsistency")] - pub read_consistency: Option, + pub read_consistency: Option, /// Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode. #[serde(rename="readTime")] @@ -1351,7 +1351,7 @@ pub struct Value { /// A null value. #[serde(rename="nullValue")] - pub null_value: Option, + pub null_value: Option, /// A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. #[serde(rename="stringValue")] diff --git a/gen/datastore1_beta3/src/api/call_builders.rs b/gen/datastore1_beta3/src/api/call_builders.rs index dc6495b323..42e7dec23a 100644 --- a/gen/datastore1_beta3/src/api/call_builders.rs +++ b/gen/datastore1_beta3/src/api/call_builders.rs @@ -1553,7 +1553,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -1845,7 +1845,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -2137,7 +2137,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -2429,7 +2429,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -2721,7 +2721,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3013,7 +3013,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3305,7 +3305,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3597,7 +3597,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); diff --git a/gen/datastore1_beta3/src/api/mod.rs b/gen/datastore1_beta3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datastore1_beta3/src/api/mod.rs +++ b/gen/datastore1_beta3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datastore1_beta3/src/api/schemas.rs b/gen/datastore1_beta3/src/api/schemas.rs index bade0376e1..692baa0c5b 100644 --- a/gen/datastore1_beta3/src/api/schemas.rs +++ b/gen/datastore1_beta3/src/api/schemas.rs @@ -66,7 +66,7 @@ pub struct AggregationResultBatch { /// The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`. #[serde(rename="moreResults")] - pub more_results: Option, + pub more_results: Option, /// Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches. #[serde(rename="readTime")] @@ -182,7 +182,7 @@ impl client::ResponseResult for BeginTransactionResponse {} pub struct CommitRequest { /// The type of commit to perform. Defaults to `TRANSACTIONAL`. - pub mode: Option, + pub mode: Option, /// The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity. pub mutations: Option>, @@ -235,7 +235,7 @@ pub struct CompositeFilter { pub filters: Option>, /// The operator for combining multiple filters. - pub op: Option, + pub op: Option, } impl client::Part for CompositeFilter {} @@ -608,7 +608,7 @@ impl client::Part for Projection {} pub struct PropertyFilter { /// The operator to filter by. - pub op: Option, + pub op: Option, /// The property to filter by. pub property: Option, @@ -629,7 +629,7 @@ impl client::Part for PropertyFilter {} pub struct PropertyOrder { /// The direction to order by. Defaults to `ASCENDING`. - pub direction: Option, + pub direction: Option, /// The property to order by. pub property: Option, @@ -712,7 +712,7 @@ pub struct QueryResultBatch { /// The result type for every entity in `entity_results`. #[serde(rename="entityResultType")] - pub entity_result_type: Option, + pub entity_result_type: Option, /// The results for this batch. #[serde(rename="entityResults")] @@ -720,7 +720,7 @@ pub struct QueryResultBatch { /// The state of the query after the current batch. #[serde(rename="moreResults")] - pub more_results: Option, + pub more_results: Option, /// Read timestamp this batch was returned from. This applies to the range of results from the query's `start_cursor` (or the beginning of the query if no cursor was given) to this batch's `end_cursor` (not the query's `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches. This value will not be set for eventually consistent queries in Cloud Datastore. #[serde(rename="readTime")] @@ -770,7 +770,7 @@ pub struct ReadOptions { /// The non-transactional read consistency to use. #[serde(rename="readConsistency")] - pub read_consistency: Option, + pub read_consistency: Option, /// Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode. #[serde(rename="readTime")] @@ -1052,7 +1052,7 @@ pub struct Value { /// A null value. #[serde(rename="nullValue")] - pub null_value: Option, + pub null_value: Option, /// A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. #[serde(rename="stringValue")] diff --git a/gen/datastream1/src/api/call_builders.rs b/gen/datastream1/src/api/call_builders.rs index 1fe38ae3b0..b1764abf88 100644 --- a/gen/datastream1/src/api/call_builders.rs +++ b/gen/datastream1/src/api/call_builders.rs @@ -3000,7 +3000,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()); } @@ -3327,7 +3327,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); } @@ -3606,7 +3606,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3891,7 +3891,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()); @@ -4161,7 +4161,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); } @@ -4478,7 +4478,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -4810,7 +4810,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()); @@ -5095,7 +5095,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()); @@ -5357,7 +5357,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()); @@ -5625,7 +5625,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); } @@ -5928,7 +5928,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._route_id.as_ref() { params.push("routeId", value); } @@ -6235,7 +6235,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); } @@ -6507,7 +6507,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()); @@ -6777,7 +6777,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); } @@ -7092,7 +7092,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._request_id.as_ref() { params.push("requestId", value); } @@ -7411,7 +7411,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7693,7 +7693,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()); @@ -7963,7 +7963,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); } @@ -8265,7 +8265,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()); @@ -8531,7 +8531,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8820,7 +8820,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9112,7 +9112,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("object", self._object); + params.push("object", &self._object); params.extend(self._additional_params.iter()); @@ -9404,7 +9404,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("object", self._object); + params.push("object", &self._object); params.extend(self._additional_params.iter()); @@ -9704,7 +9704,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()); } @@ -10031,7 +10031,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); } @@ -10303,7 +10303,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()); @@ -10573,7 +10573,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); } @@ -10890,7 +10890,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -11511,7 +11511,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -11793,7 +11793,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()); @@ -12061,7 +12061,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); } diff --git a/gen/datastream1/src/api/mod.rs b/gen/datastream1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/datastream1/src/api/mod.rs +++ b/gen/datastream1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/datastream1/src/api/schemas.rs b/gen/datastream1/src/api/schemas.rs index 133885ba13..4ac8116359 100644 --- a/gen/datastream1/src/api/schemas.rs +++ b/gen/datastream1/src/api/schemas.rs @@ -54,10 +54,10 @@ pub struct BackfillJob { pub last_start_time: Option>, /// Backfill job state. - pub state: Option, + pub state: Option, /// Backfill job's triggering reason. - pub trigger: Option, + pub trigger: Option, } impl client::Part for BackfillJob {} @@ -481,11 +481,11 @@ impl client::Part for GcsProfile {} pub struct JsonFileFormat { /// Compression of the loaded JSON file. - pub compression: Option, + pub compression: Option, /// The schema file format along JSON data files. #[serde(rename="schemaFileFormat")] - pub schema_file_format: Option, + pub schema_file_format: Option, } impl client::Part for JsonFileFormat {} @@ -1331,7 +1331,7 @@ pub struct PrivateConnection { pub name: Option, /// Output only. The state of the Private Connection. - pub state: Option, + pub state: Option, /// Output only. The update time of the resource. #[serde(rename="updateTime")] @@ -1642,7 +1642,7 @@ pub struct Stream { pub source_config: Option, /// The state of the stream. - pub state: Option, + pub state: Option, /// Output only. The last update time of the stream. #[serde(rename="updateTime")] diff --git a/gen/deploymentmanager2/README.md b/gen/deploymentmanager2/README.md index 7468d17b2c..71d1fd76ad 100644 --- a/gen/deploymentmanager2/README.md +++ b/gen/deploymentmanager2/README.md @@ -120,8 +120,8 @@ let mut req = Deployment::default(); // Values shown here are possibly random and not representative ! let result = hub.deployments().patch(req, "project", "deployment") .preview(true) - .delete_policy("voluptua.") - .create_policy("At") + .delete_policy(&Default::default()) + .create_policy(&Default::default()) .doit().await; match result { diff --git a/gen/deploymentmanager2/src/api/hub.rs b/gen/deploymentmanager2/src/api/hub.rs index fe60f77f24..e5dfb77a8b 100644 --- a/gen/deploymentmanager2/src/api/hub.rs +++ b/gen/deploymentmanager2/src/api/hub.rs @@ -39,8 +39,8 @@ use super::*; /// // Values shown here are possibly random and not representative ! /// let result = hub.deployments().patch(req, "project", "deployment") /// .preview(true) -/// .delete_policy("gubergren") -/// .create_policy("eos") +/// .delete_policy(&Default::default()) +/// .create_policy(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/deploymentmanager2/src/api/mod.rs b/gen/deploymentmanager2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/deploymentmanager2/src/api/mod.rs +++ b/gen/deploymentmanager2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/deploymentmanager2/src/api/schemas.rs b/gen/deploymentmanager2/src/api/schemas.rs index c2fdfd7023..678e0914b8 100644 --- a/gen/deploymentmanager2/src/api/schemas.rs +++ b/gen/deploymentmanager2/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -492,7 +492,7 @@ pub struct Operation { pub start_time: Option, /// [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. - pub status: Option, + pub status: Option, /// [Output Only] An optional textual description of the current status of the operation. #[serde(rename="statusMessage")] @@ -671,7 +671,7 @@ pub struct ResourceUpdate { pub final_properties: Option, /// Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`. - pub intent: Option, + pub intent: Option, /// Output only. URL of the manifest representing the update configuration of this resource. pub manifest: Option, @@ -680,7 +680,7 @@ pub struct ResourceUpdate { pub properties: Option, /// Output only. The state of the resource. - pub state: Option, + pub state: Option, /// Output only. If warning messages are generated during processing of this resource, this field will be populated. pub warnings: Option>, @@ -872,7 +872,7 @@ impl client::Part for OperationErrorErrors {} pub struct OperationWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -913,7 +913,7 @@ impl client::Part for OperationWarningsData {} pub struct ResourceWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, @@ -992,7 +992,7 @@ impl client::Part for ResourceUpdateErrorErrors {} pub struct ResourceUpdateWarnings { /// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - pub code: Option, + pub code: Option, /// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } pub data: Option>, diff --git a/gen/deploymentmanager2/src/lib.rs b/gen/deploymentmanager2/src/lib.rs index 999c8f6b62..991f42f223 100644 --- a/gen/deploymentmanager2/src/lib.rs +++ b/gen/deploymentmanager2/src/lib.rs @@ -120,9 +120,9 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.deployments().patch(req, "project", "deployment") -//! .preview(true) -//! .delete_policy("amet.") -//! .create_policy("duo") +//! .preview(false) +//! .delete_policy(&Default::default()) +//! .create_policy(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/deploymentmanager2_beta2/README.md b/gen/deploymentmanager2_beta2/README.md index 8356d4a5e9..6b794c3bfd 100644 --- a/gen/deploymentmanager2_beta2/README.md +++ b/gen/deploymentmanager2_beta2/README.md @@ -114,9 +114,9 @@ let mut req = Deployment::default(); // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.deployments().patch(req, "project", "deployment") - .update_policy("no") - .delete_policy("ipsum") - .create_policy("voluptua.") + .update_policy(&Default::default()) + .delete_policy(&Default::default()) + .create_policy(&Default::default()) .doit().await; match result { diff --git a/gen/deploymentmanager2_beta2/src/api/hub.rs b/gen/deploymentmanager2_beta2/src/api/hub.rs index 5020dd02fe..caa98d1bd4 100644 --- a/gen/deploymentmanager2_beta2/src/api/hub.rs +++ b/gen/deploymentmanager2_beta2/src/api/hub.rs @@ -38,9 +38,9 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.deployments().patch(req, "project", "deployment") -/// .update_policy("ipsum") -/// .delete_policy("gubergren") -/// .create_policy("Lorem") +/// .update_policy(&Default::default()) +/// .delete_policy(&Default::default()) +/// .create_policy(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/deploymentmanager2_beta2/src/api/mod.rs b/gen/deploymentmanager2_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/deploymentmanager2_beta2/src/api/mod.rs +++ b/gen/deploymentmanager2_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/deploymentmanager2_beta2/src/lib.rs b/gen/deploymentmanager2_beta2/src/lib.rs index 4c9227f064..8394513cef 100644 --- a/gen/deploymentmanager2_beta2/src/lib.rs +++ b/gen/deploymentmanager2_beta2/src/lib.rs @@ -115,9 +115,9 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.deployments().patch(req, "project", "deployment") -//! .update_policy("sed") -//! .delete_policy("amet.") -//! .create_policy("takimata") +//! .update_policy(&Default::default()) +//! .delete_policy(&Default::default()) +//! .create_policy(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/dfareporting2d8/README.md b/gen/dfareporting2d8/README.md index 99e7e3f6e6..3c0c202b94 100644 --- a/gen/dfareporting2d8/README.md +++ b/gen/dfareporting2d8/README.md @@ -231,10 +231,10 @@ let mut hub = Dfareporting::new(hyper::Client::builder().build(hyper_rustls::Htt // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.reports().files_list(-22, -33) - .sort_order("no") - .sort_field("ipsum") - .page_token("voluptua.") - .max_results(-27) + .sort_order(&Default::default()) + .sort_field(&Default::default()) + .page_token("no") + .max_results(-55) .doit().await; match result { diff --git a/gen/dfareporting2d8/src/api/hub.rs b/gen/dfareporting2d8/src/api/hub.rs index e0799997b5..e0787abe6c 100644 --- a/gen/dfareporting2d8/src/api/hub.rs +++ b/gen/dfareporting2d8/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.reports().files_list(-55, -62) -/// .sort_order("Lorem") -/// .sort_field("gubergren") -/// .page_token("eos") -/// .max_results(-4) +/// let result = hub.reports().files_list(-2, -59) +/// .sort_order(&Default::default()) +/// .sort_field(&Default::default()) +/// .page_token("amet.") +/// .max_results(-20) /// .doit().await; /// /// match result { diff --git a/gen/dfareporting2d8/src/api/method_builders.rs b/gen/dfareporting2d8/src/api/method_builders.rs index d4d95b2c0d..b91f0e3c04 100644 --- a/gen/dfareporting2d8/src/api/method_builders.rs +++ b/gen/dfareporting2d8/src/api/method_builders.rs @@ -2784,13 +2784,13 @@ impl<'a, S> DynamicTargetingKeyMethods<'a, S> { /// * `objectId` - ID of the object of this dynamic targeting key. This is a required field. /// * `name` - Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. /// * `objectType` - Type of the object of this dynamic targeting key. This is a required field. - pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &str) -> DynamicTargetingKeyDeleteCall<'a, S> { + pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &DynamicTargetingKeyObjectTypeEnum) -> DynamicTargetingKeyDeleteCall<'a, S> { DynamicTargetingKeyDeleteCall { hub: self.hub, _profile_id: profile_id, _object_id: object_id, _name: name.to_string(), - _object_type: object_type.to_string(), + _object_type: object_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/dfareporting2d8/src/api/mod.rs b/gen/dfareporting2d8/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dfareporting2d8/src/api/mod.rs +++ b/gen/dfareporting2d8/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dfareporting2d8/src/api/schemas.rs b/gen/dfareporting2d8/src/api/schemas.rs index 1f045479db..9633c98589 100644 --- a/gen/dfareporting2d8/src/api/schemas.rs +++ b/gen/dfareporting2d8/src/api/schemas.rs @@ -21,14 +21,14 @@ pub struct Account { /// Profile for this account. This is a read-only field that can be left blank. #[serde(rename="accountProfile")] - pub account_profile: Option, + pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Maximum number of active ads allowed for this account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. #[serde(rename="activeViewOptOut")] @@ -189,7 +189,7 @@ pub struct AccountActiveAdSummary { /// Maximum number of active ads allowed for the account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Ads that can be activated for the account. #[serde(rename="availableAds")] @@ -222,7 +222,7 @@ pub struct AccountPermission { /// - "ACCOUNT_PROFILE_STANDARD" #[serde(rename="accountProfiles")] - pub account_profiles: Option>, + pub account_profiles: Option>, /// ID of this account permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -232,7 +232,7 @@ pub struct AccountPermission { pub kind: Option, /// Administrative level required to enable this account permission. - pub level: Option, + pub level: Option, /// Name of this account permission. pub name: Option, @@ -400,11 +400,11 @@ pub struct AccountUserProfile { /// Trafficker type of this user profile. This is a read-only field. #[serde(rename="traffickerType")] - pub trafficker_type: Option, + pub trafficker_type: Option, /// User type of the user profile. This is a read-only field that can be left blank. #[serde(rename="userAccessType")] - pub user_access_type: Option, + pub user_access_type: Option, /// Filter that describes which user roles are visible to the user profile. #[serde(rename="userRoleFilter")] @@ -558,7 +558,7 @@ pub struct Ad { pub comments: Option, /// Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Information about the creation of this ad. This is a read-only field. #[serde(rename="createInfo")] @@ -665,7 +665,7 @@ pub struct Ad { /// Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Ad {} @@ -713,7 +713,7 @@ pub struct AdSlot { pub comment: Option, /// Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Height of this ad slot. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -729,7 +729,7 @@ pub struct AdSlot { /// Payment source type of this ad slot. #[serde(rename="paymentSourceType")] - pub payment_source_type: Option, + pub payment_source_type: Option, /// Primary ad slot of a roadblock inventory item. pub primary: Option, @@ -838,7 +838,7 @@ pub struct Advertiser { pub original_floodlight_configuration_id: Option, /// Status of this advertiser. - pub status: Option, + pub status: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -1798,7 +1798,7 @@ impl client::Resource for Conversion {} pub struct ConversionError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". pub kind: Option, @@ -2038,15 +2038,15 @@ pub struct Creative { /// Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types. #[serde(rename="authoringSource")] - pub authoring_source: Option, + pub authoring_source: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. #[serde(rename="authoringTool")] - pub authoring_tool: Option, + pub authoring_tool: Option, /// Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. #[serde(rename="autoAdvanceImages")] @@ -2062,7 +2062,7 @@ pub struct Creative { /// List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageFeatures")] - pub backup_image_features: Option>, + pub backup_image_features: Option>, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageReportingLabel")] @@ -2093,7 +2093,7 @@ pub struct Creative { /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" - pub compatibility: Option>, + pub compatibility: Option>, /// Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="convertFlashToHtml5")] @@ -2254,7 +2254,7 @@ pub struct Creative { /// Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_VIDEO and VPAID. #[serde(rename="universalAdId")] @@ -2297,11 +2297,11 @@ pub struct CreativeAsset { pub active: Option, /// Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. - pub alignment: Option, + pub alignment: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. #[serde(rename="assetIdentifier")] @@ -2317,7 +2317,7 @@ pub struct CreativeAsset { /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. #[serde(rename="childAssetType")] - pub child_asset_type: Option, + pub child_asset_type: Option, /// Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. #[serde(rename="collapsedSize")] @@ -2334,18 +2334,18 @@ pub struct CreativeAsset { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="displayType")] - pub display_type: Option, + pub display_type: Option, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. pub duration: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="durationType")] - pub duration_type: Option, + pub duration_type: Option, /// Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="expandedDimension")] @@ -2396,11 +2396,11 @@ pub struct CreativeAsset { /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionLeftUnit")] - pub position_left_unit: Option, + pub position_left_unit: Option, /// Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionTopUnit")] - pub position_top_unit: Option, + pub position_top_unit: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="progressiveServingUrl")] @@ -2422,7 +2422,7 @@ pub struct CreativeAsset { /// ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. /// For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. - pub role: Option, + pub role: Option, /// Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. pub size: Option, @@ -2433,7 +2433,7 @@ pub struct CreativeAsset { /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="startTimeType")] - pub start_time_type: Option, + pub start_time_type: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="streamingServingUrl")] @@ -2452,7 +2452,7 @@ pub struct CreativeAsset { /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. #[serde(rename="windowMode")] - pub window_mode: Option, + pub window_mode: Option, /// zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive. #[serde(rename="zIndex")] @@ -2483,7 +2483,7 @@ pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreativeAssetId {} @@ -2511,7 +2511,7 @@ pub struct CreativeAssetMetadata { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Numeric ID of the asset. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -2552,7 +2552,7 @@ pub struct CreativeAssetMetadata { /// - "ZIP_INVALID" #[serde(rename="warnedValidationRules")] - pub warned_validation_rules: Option>, + pub warned_validation_rules: Option>, } impl client::RequestValue for CreativeAssetMetadata {} @@ -2672,7 +2672,7 @@ pub struct CreativeCustomEvent { /// Type of the event. This is a read-only field. #[serde(rename="advertiserCustomEventType")] - pub advertiser_custom_event_type: Option, + pub advertiser_custom_event_type: Option, /// Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion. #[serde(rename="artworkLabel")] @@ -2680,7 +2680,7 @@ pub struct CreativeCustomEvent { /// Artwork type used by the creative.This is a read-only field. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Exit URL of the event. This field is used only for exit events. #[serde(rename="exitUrl")] @@ -2696,7 +2696,7 @@ pub struct CreativeCustomEvent { /// Target type used by the event. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, /// Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field. #[serde(rename="videoReportingId")] @@ -2937,7 +2937,7 @@ pub struct CreativeGroupAssignment { /// Creative group number of the creative group assignment. #[serde(rename="creativeGroupNumber")] - pub creative_group_number: Option, + pub creative_group_number: Option, } impl client::Part for CreativeGroupAssignment {} @@ -2991,7 +2991,7 @@ pub struct CreativeOptimizationConfiguration { /// Optimization model for this configuration. #[serde(rename="optimizationModel")] - pub optimization_model: Option, + pub optimization_model: Option, } impl client::Part for CreativeOptimizationConfiguration {} @@ -3016,11 +3016,11 @@ pub struct CreativeRotation { /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. #[serde(rename="weightCalculationStrategy")] - pub weight_calculation_strategy: Option, + pub weight_calculation_strategy: Option, } impl client::Part for CreativeRotation {} @@ -3114,7 +3114,7 @@ pub struct CustomFloodlightVariable { /// The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the custom floodlight variable. The length of string must not exceed 50 characters. pub value: Option, @@ -3159,7 +3159,7 @@ pub struct DateRange { /// The date range relative to the date of when the report is run. #[serde(rename="relativeDateRange")] - pub relative_date_range: Option, + pub relative_date_range: Option, /// The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd". #[serde(rename="startDate")] @@ -3188,7 +3188,7 @@ pub struct DayPartTargeting { /// - "SATURDAY" #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. #[serde(rename="hoursOfDay")] @@ -3245,7 +3245,7 @@ pub struct DeliverySchedule { pub impression_ratio: Option, /// Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. - pub priority: Option, + pub priority: Option, } impl client::Part for DeliverySchedule {} @@ -3350,7 +3350,7 @@ pub struct DimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The value of the dimension. pub value: Option, @@ -3522,7 +3522,7 @@ pub struct DirectorySite { /// - "JAVASCRIPT_INPAGE" #[serde(rename="inpageTagFormats")] - pub inpage_tag_formats: Option>, + pub inpage_tag_formats: Option>, /// Tag types for interstitial placements. /// /// Acceptable values are: @@ -3531,7 +3531,7 @@ pub struct DirectorySite { /// - "JAVASCRIPT_INTERSTITIAL" #[serde(rename="interstitialTagFormats")] - pub interstitial_tag_formats: Option>, + pub interstitial_tag_formats: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: Option, @@ -3594,14 +3594,14 @@ pub struct DirectorySiteContact { pub phone: Option, /// Directory site contact role. - pub role: Option, + pub role: Option, /// Title or designation of this directory site contact. pub title: Option, /// Directory site contact type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for DirectorySiteContact {} @@ -3622,7 +3622,7 @@ pub struct DirectorySiteContactAssignment { pub contact_id: Option, /// Visibility of this directory site contact assignment. When set to PUBLIC this contact assignment is visible to all account and agency users; when set to PRIVATE it is visible only to the site. - pub visibility: Option, + pub visibility: Option, } impl client::Part for DirectorySiteContactAssignment {} @@ -3749,7 +3749,7 @@ pub struct DynamicTargetingKey { /// Type of the object of this dynamic targeting key. This is a required field. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, } impl client::RequestValue for DynamicTargetingKey {} @@ -3795,11 +3795,11 @@ pub struct EncryptionInfo { /// The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer. #[serde(rename="encryptionEntityType")] - pub encryption_entity_type: Option, + pub encryption_entity_type: Option, /// Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. #[serde(rename="encryptionSource")] - pub encryption_source: Option, + pub encryption_source: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". pub kind: Option, @@ -3868,7 +3868,7 @@ pub struct EventTag { /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. #[serde(rename="siteFilterType")] - pub site_filter_type: Option, + pub site_filter_type: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a whitelist or blacklist filter. #[serde(rename="siteIds")] @@ -3880,7 +3880,7 @@ pub struct EventTag { pub ssl_compliant: Option, /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. - pub status: Option, + pub status: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -3889,7 +3889,7 @@ pub struct EventTag { /// Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. pub url: Option, @@ -3973,7 +3973,7 @@ pub struct File { pub file_name: Option, /// The output format of the report. Only available once the file is available. - pub format: Option, + pub format: Option, /// The unique ID of this report file. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -3993,7 +3993,7 @@ pub struct File { pub report_id: Option, /// The status of the report file. - pub status: Option, + pub status: Option, /// The URLs where the completed report file can be downloaded. pub urls: Option, @@ -4143,11 +4143,11 @@ pub struct FloodlightActivity { /// Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. #[serde(rename="cacheBustingType")] - pub cache_busting_type: Option, + pub cache_busting_type: Option, /// Counting method for conversions for this floodlight activity. This is a required field. #[serde(rename="countingMethod")] - pub counting_method: Option, + pub counting_method: Option, /// Dynamic floodlight tags. #[serde(rename="defaultTags")] @@ -4172,7 +4172,7 @@ pub struct FloodlightActivity { /// Type of the associated floodlight activity group. This is a read-only field. #[serde(rename="floodlightActivityGroupType")] - pub floodlight_activity_group_type: Option, + pub floodlight_activity_group_type: Option, /// Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration. #[serde(rename="floodlightConfigurationId")] @@ -4229,7 +4229,7 @@ pub struct FloodlightActivity { /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. #[serde(rename="tagFormat")] - pub tag_format: Option, + pub tag_format: Option, /// Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion. #[serde(rename="tagString")] @@ -4238,7 +4238,7 @@ pub struct FloodlightActivity { /// Acceptable values are U1 to U100, inclusive. #[serde(rename="userDefinedVariableTypes")] - pub user_defined_variable_types: Option>, + pub user_defined_variable_types: Option>, } impl client::RequestValue for FloodlightActivity {} @@ -4331,7 +4331,7 @@ pub struct FloodlightActivityGroup { /// Type of the floodlight activity group. This is a required field that is read-only after insertion. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for FloodlightActivityGroup {} @@ -4443,7 +4443,7 @@ pub struct FloodlightConfiguration { /// Day that will be counted as the first day of the week in reports. This is a required field. #[serde(rename="firstDayOfWeek")] - pub first_day_of_week: Option, + pub first_day_of_week: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4466,7 +4466,7 @@ pub struct FloodlightConfiguration { /// Types of attribution options for natural search conversions. #[serde(rename="naturalSearchConversionAttributionOption")] - pub natural_search_conversion_attribution_option: Option, + pub natural_search_conversion_attribution_option: Option, /// Settings for Campaign Manager Omniture integration. #[serde(rename="omnitureSettings")] @@ -4576,7 +4576,7 @@ pub struct FsCommand { /// Position in the browser where the window will open. #[serde(rename="positionOption")] - pub position_option: Option, + pub position_option: Option, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: Option, @@ -4725,7 +4725,7 @@ pub struct InventoryItem { /// Type of inventory item. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for InventoryItem {} @@ -4974,7 +4974,7 @@ pub struct ListPopulationTerm { pub negation: Option, /// Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - pub operator: Option, + pub operator: Option, /// ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. #[serde(rename="remarketingListId")] @@ -4983,7 +4983,7 @@ pub struct ListPopulationTerm { /// List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. pub value: Option, @@ -5197,7 +5197,7 @@ pub struct ObjectFilter { pub object_ids: Option>, /// Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. - pub status: Option, + pub status: Option, } impl client::Part for ObjectFilter {} @@ -5508,7 +5508,7 @@ pub struct OrderContact { /// Type of this contact. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// ID of the user profile containing the signature that will be embedded into order documents. #[serde(rename="signatureUserProfileId")] @@ -5601,7 +5601,7 @@ pub struct OrderDocument { /// Type of this order document #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for OrderDocument {} @@ -5742,7 +5742,7 @@ pub struct Placement { pub comment: Option, /// Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. - pub compatibility: Option, + pub compatibility: Option, /// ID of the content category assigned to this placement. #[serde(rename="contentCategoryId")] @@ -5798,7 +5798,7 @@ pub struct Placement { /// Payment source for this placement. This is a required field that is read-only after insertion. #[serde(rename="paymentSource")] - pub payment_source: Option, + pub payment_source: Option, /// ID of this placement's group, if applicable. #[serde(rename="placementGroupId")] @@ -5842,7 +5842,7 @@ pub struct Placement { pub ssl_required: Option, /// Third-party placement status. - pub status: Option, + pub status: Option, /// Subaccount ID of this placement. This field can be left blank. #[serde(rename="subaccountId")] @@ -5867,7 +5867,7 @@ pub struct Placement { /// - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" #[serde(rename="tagFormats")] - pub tag_formats: Option>, + pub tag_formats: Option>, /// Tag settings for this placement. #[serde(rename="tagSetting")] @@ -5885,7 +5885,7 @@ pub struct Placement { /// Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoice")] - pub vpaid_adapter_choice: Option, + pub vpaid_adapter_choice: Option, } impl client::RequestValue for Placement {} @@ -6013,7 +6013,7 @@ pub struct PlacementGroup { /// Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. #[serde(rename="placementGroupType")] - pub placement_group_type: Option, + pub placement_group_type: Option, /// ID of the placement strategy assigned to this placement group. #[serde(rename="placementStrategyId")] @@ -6279,7 +6279,7 @@ pub struct PopupWindowProperties { /// Popup window position either centered or at specific coordinate. #[serde(rename="positionType")] - pub position_type: Option, + pub position_type: Option, /// Whether to display the browser address bar. #[serde(rename="showAddressBar")] @@ -6377,7 +6377,7 @@ pub struct Pricing { /// Cap cost type of this inventory item. #[serde(rename="capCostType")] - pub cap_cost_type: Option, + pub cap_cost_type: Option, /// End date of this inventory item. #[serde(rename="endDate")] @@ -6388,11 +6388,11 @@ pub struct Pricing { /// Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Pricing type of this inventory item. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// Start date of this inventory item. #[serde(rename="startDate")] @@ -6412,7 +6412,7 @@ pub struct PricingSchedule { /// Placement cap cost option. #[serde(rename="capCostOption")] - pub cap_cost_option: Option, + pub cap_cost_option: Option, /// Whether cap costs are ignored by ad serving. #[serde(rename="disregardOverdelivery")] @@ -6436,7 +6436,7 @@ pub struct PricingSchedule { /// Placement pricing type. This field is required on insertion. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion. #[serde(rename="startDate")] @@ -6508,11 +6508,11 @@ pub struct Project { /// Audience age group of this project. #[serde(rename="audienceAgeGroup")] - pub audience_age_group: Option, + pub audience_age_group: Option, /// Audience gender of this project. #[serde(rename="audienceGender")] - pub audience_gender: Option, + pub audience_gender: Option, /// Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6665,7 +6665,7 @@ pub struct Recipient { /// The delivery type for the recipient. #[serde(rename="deliveryType")] - pub delivery_type: Option, + pub delivery_type: Option, /// The email address of the recipient. pub email: Option, @@ -6798,7 +6798,7 @@ pub struct RemarketingList { /// Product from which this remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the remarketing list. This is a required field. Must be no greater than 128 characters long. pub name: Option, @@ -6927,7 +6927,7 @@ pub struct Report { pub floodlight_criteria: Option, /// The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format. - pub format: Option, + pub format: Option, /// The unique ID identifying this report resource. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6967,7 +6967,7 @@ pub struct Report { /// The type of the report. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Report {} @@ -7205,7 +7205,7 @@ pub struct SiteContact { /// Site contact type. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// Email address of this site contact. This is a required field. pub email: Option, @@ -7272,7 +7272,7 @@ pub struct SiteSettings { /// Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoiceTemplate")] - pub vpaid_adapter_choice_template: Option, + pub vpaid_adapter_choice_template: Option, } impl client::Part for SiteSettings {} @@ -7404,7 +7404,7 @@ pub struct SortedDimension { /// An optional sort order for the dimension column. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortedDimension {} @@ -7501,7 +7501,7 @@ pub struct TagData { pub creative_id: Option, /// TagData tag format of this tag. - pub format: Option, + pub format: Option, /// Tag string for serving an ad. #[serde(rename="impressionTag")] @@ -7533,7 +7533,7 @@ pub struct TagSetting { /// Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders. #[serde(rename="keywordOption")] - pub keyword_option: Option, + pub keyword_option: Option, } impl client::Part for TagSetting {} @@ -7573,7 +7573,7 @@ pub struct TargetWindow { /// Type of browser window for which the backup image of the flash creative can be displayed. #[serde(rename="targetWindowOption")] - pub target_window_option: Option, + pub target_window_option: Option, } impl client::Part for TargetWindow {} @@ -7631,7 +7631,7 @@ pub struct TargetableRemarketingList { /// Product from which this targetable remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the targetable remarketing list. Is no greater than 128 characters long. pub name: Option, @@ -7838,7 +7838,7 @@ pub struct ThirdPartyTrackingUrl { /// Third-party URL type for in-stream video creatives. #[serde(rename="thirdPartyUrlType")] - pub third_party_url_type: Option, + pub third_party_url_type: Option, /// URL for the specified third-party URL type. pub url: Option, @@ -7875,7 +7875,7 @@ impl client::Part for TranscodeSetting {} pub struct UniversalAdId { /// Registry used for the Ad ID value. - pub registry: Option, + pub registry: Option, /// ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. pub value: Option, @@ -7894,7 +7894,7 @@ pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". #[serde(rename="reportName")] @@ -7902,7 +7902,7 @@ pub struct UserDefinedVariableConfiguration { /// Variable name in the tag. This is a required field. #[serde(rename="variableType")] - pub variable_type: Option, + pub variable_type: Option, } impl client::Part for UserDefinedVariableConfiguration {} @@ -8053,7 +8053,7 @@ impl client::ResponseResult for UserRole {} pub struct UserRolePermission { /// Levels of availability for a user role permission. - pub availability: Option, + pub availability: Option, /// ID of this user role permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -8191,7 +8191,7 @@ pub struct VideoFormat { /// File type of the video format. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// ID of the video format. pub id: Option, @@ -8354,7 +8354,7 @@ pub struct ReportCrossDimensionReachCriteria { pub date_range: Option, /// The dimension option. - pub dimension: Option, + pub dimension: Option, /// The list of filters on which dimensions are filtered. #[serde(rename="dimensionFilters")] @@ -8390,7 +8390,7 @@ pub struct ReportDelivery { /// The type of delivery for the owner to receive, if enabled. #[serde(rename="emailOwnerDeliveryType")] - pub email_owner_delivery_type: Option, + pub email_owner_delivery_type: Option, /// The message to be sent with each email. pub message: Option, @@ -8637,12 +8637,12 @@ pub struct ReportSchedule { /// List of week days "WEEKLY" on which scheduled reports should run. #[serde(rename="repeatsOnWeekDays")] - pub repeats_on_week_days: Option>, + pub repeats_on_week_days: Option>, /// Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. /// Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month. #[serde(rename="runsOnDayOfMonth")] - pub runs_on_day_of_month: Option, + pub runs_on_day_of_month: Option, /// Start date of date range for which scheduled reports should be run. #[serde(rename="startDate")] diff --git a/gen/dfareporting2d8/src/lib.rs b/gen/dfareporting2d8/src/lib.rs index c978675e56..7610e7252f 100644 --- a/gen/dfareporting2d8/src/lib.rs +++ b/gen/dfareporting2d8/src/lib.rs @@ -231,11 +231,11 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.reports().files_list(-8, -80) -//! .sort_order("amet.") -//! .sort_field("takimata") -//! .page_token("amet.") -//! .max_results(-20) +//! let result = hub.reports().files_list(-28, -27) +//! .sort_order(&Default::default()) +//! .sort_field(&Default::default()) +//! .page_token("sanctus") +//! .max_results(-80) //! .doit().await; //! //! match result { diff --git a/gen/dfareporting3/README.md b/gen/dfareporting3/README.md index f2e60cc8c2..f1fb3f3511 100644 --- a/gen/dfareporting3/README.md +++ b/gen/dfareporting3/README.md @@ -231,10 +231,10 @@ let mut hub = Dfareporting::new(hyper::Client::builder().build(hyper_rustls::Htt // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.reports().files_list(-22, -33) - .sort_order("no") - .sort_field("ipsum") - .page_token("voluptua.") - .max_results(-27) + .sort_order(&Default::default()) + .sort_field(&Default::default()) + .page_token("no") + .max_results(-55) .doit().await; match result { diff --git a/gen/dfareporting3/src/api/hub.rs b/gen/dfareporting3/src/api/hub.rs index 3f500a2365..1735c7164b 100644 --- a/gen/dfareporting3/src/api/hub.rs +++ b/gen/dfareporting3/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.reports().files_list(-55, -62) -/// .sort_order("Lorem") -/// .sort_field("gubergren") -/// .page_token("eos") -/// .max_results(-4) +/// let result = hub.reports().files_list(-2, -59) +/// .sort_order(&Default::default()) +/// .sort_field(&Default::default()) +/// .page_token("amet.") +/// .max_results(-20) /// .doit().await; /// /// match result { diff --git a/gen/dfareporting3/src/api/method_builders.rs b/gen/dfareporting3/src/api/method_builders.rs index d9188c5424..e3e89263ea 100644 --- a/gen/dfareporting3/src/api/method_builders.rs +++ b/gen/dfareporting3/src/api/method_builders.rs @@ -2925,13 +2925,13 @@ impl<'a, S> DynamicTargetingKeyMethods<'a, S> { /// * `objectId` - ID of the object of this dynamic targeting key. This is a required field. /// * `name` - Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. /// * `objectType` - Type of the object of this dynamic targeting key. This is a required field. - pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &str) -> DynamicTargetingKeyDeleteCall<'a, S> { + pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &DynamicTargetingKeyObjectTypeEnum) -> DynamicTargetingKeyDeleteCall<'a, S> { DynamicTargetingKeyDeleteCall { hub: self.hub, _profile_id: profile_id, _object_id: object_id, _name: name.to_string(), - _object_type: object_type.to_string(), + _object_type: object_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/dfareporting3/src/api/mod.rs b/gen/dfareporting3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dfareporting3/src/api/mod.rs +++ b/gen/dfareporting3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dfareporting3/src/api/schemas.rs b/gen/dfareporting3/src/api/schemas.rs index 3f7a32ff66..f800a584ee 100644 --- a/gen/dfareporting3/src/api/schemas.rs +++ b/gen/dfareporting3/src/api/schemas.rs @@ -21,14 +21,14 @@ pub struct Account { /// Profile for this account. This is a read-only field that can be left blank. #[serde(rename="accountProfile")] - pub account_profile: Option, + pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Maximum number of active ads allowed for this account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. #[serde(rename="activeViewOptOut")] @@ -189,7 +189,7 @@ pub struct AccountActiveAdSummary { /// Maximum number of active ads allowed for the account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Ads that can be activated for the account. #[serde(rename="availableAds")] @@ -222,7 +222,7 @@ pub struct AccountPermission { /// - "ACCOUNT_PROFILE_STANDARD" #[serde(rename="accountProfiles")] - pub account_profiles: Option>, + pub account_profiles: Option>, /// ID of this account permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -232,7 +232,7 @@ pub struct AccountPermission { pub kind: Option, /// Administrative level required to enable this account permission. - pub level: Option, + pub level: Option, /// Name of this account permission. pub name: Option, @@ -400,11 +400,11 @@ pub struct AccountUserProfile { /// Trafficker type of this user profile. This is a read-only field. #[serde(rename="traffickerType")] - pub trafficker_type: Option, + pub trafficker_type: Option, /// User type of the user profile. This is a read-only field that can be left blank. #[serde(rename="userAccessType")] - pub user_access_type: Option, + pub user_access_type: Option, /// Filter that describes which user roles are visible to the user profile. #[serde(rename="userRoleFilter")] @@ -558,7 +558,7 @@ pub struct Ad { pub comments: Option, /// Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Information about the creation of this ad. This is a read-only field. #[serde(rename="createInfo")] @@ -665,7 +665,7 @@ pub struct Ad { /// Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Ad {} @@ -713,7 +713,7 @@ pub struct AdSlot { pub comment: Option, /// Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Height of this ad slot. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -729,7 +729,7 @@ pub struct AdSlot { /// Payment source type of this ad slot. #[serde(rename="paymentSourceType")] - pub payment_source_type: Option, + pub payment_source_type: Option, /// Primary ad slot of a roadblock inventory item. pub primary: Option, @@ -838,7 +838,7 @@ pub struct Advertiser { pub original_floodlight_configuration_id: Option, /// Status of this advertiser. - pub status: Option, + pub status: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -1831,7 +1831,7 @@ impl client::Resource for Conversion {} pub struct ConversionError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". pub kind: Option, @@ -2071,15 +2071,15 @@ pub struct Creative { /// Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types. #[serde(rename="authoringSource")] - pub authoring_source: Option, + pub authoring_source: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. #[serde(rename="authoringTool")] - pub authoring_tool: Option, + pub authoring_tool: Option, /// Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. #[serde(rename="autoAdvanceImages")] @@ -2095,7 +2095,7 @@ pub struct Creative { /// List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageFeatures")] - pub backup_image_features: Option>, + pub backup_image_features: Option>, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageReportingLabel")] @@ -2126,7 +2126,7 @@ pub struct Creative { /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" - pub compatibility: Option>, + pub compatibility: Option>, /// Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="convertFlashToHtml5")] @@ -2292,7 +2292,7 @@ pub struct Creative { /// Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_VIDEO and VPAID. #[serde(rename="universalAdId")] @@ -2335,11 +2335,11 @@ pub struct CreativeAsset { pub active: Option, /// Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. - pub alignment: Option, + pub alignment: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. #[serde(rename="assetIdentifier")] @@ -2355,7 +2355,7 @@ pub struct CreativeAsset { /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. #[serde(rename="childAssetType")] - pub child_asset_type: Option, + pub child_asset_type: Option, /// Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. #[serde(rename="collapsedSize")] @@ -2372,18 +2372,18 @@ pub struct CreativeAsset { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="displayType")] - pub display_type: Option, + pub display_type: Option, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. pub duration: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="durationType")] - pub duration_type: Option, + pub duration_type: Option, /// Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="expandedDimension")] @@ -2426,7 +2426,7 @@ pub struct CreativeAsset { pub offset: Option, /// Orientation of video asset. This is a read-only, auto-generated field. - pub orientation: Option, + pub orientation: Option, /// Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="originalBackup")] @@ -2437,11 +2437,11 @@ pub struct CreativeAsset { /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionLeftUnit")] - pub position_left_unit: Option, + pub position_left_unit: Option, /// Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionTopUnit")] - pub position_top_unit: Option, + pub position_top_unit: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="progressiveServingUrl")] @@ -2463,7 +2463,7 @@ pub struct CreativeAsset { /// ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. /// For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. - pub role: Option, + pub role: Option, /// Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. pub size: Option, @@ -2474,7 +2474,7 @@ pub struct CreativeAsset { /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="startTimeType")] - pub start_time_type: Option, + pub start_time_type: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="streamingServingUrl")] @@ -2493,7 +2493,7 @@ pub struct CreativeAsset { /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. #[serde(rename="windowMode")] - pub window_mode: Option, + pub window_mode: Option, /// zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive. #[serde(rename="zIndex")] @@ -2524,7 +2524,7 @@ pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreativeAssetId {} @@ -2552,7 +2552,7 @@ pub struct CreativeAssetMetadata { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Numeric ID of the asset. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -2593,7 +2593,7 @@ pub struct CreativeAssetMetadata { /// - "ZIP_INVALID" #[serde(rename="warnedValidationRules")] - pub warned_validation_rules: Option>, + pub warned_validation_rules: Option>, } impl client::RequestValue for CreativeAssetMetadata {} @@ -2740,7 +2740,7 @@ pub struct CreativeCustomEvent { /// Type of the event. This is a read-only field. #[serde(rename="advertiserCustomEventType")] - pub advertiser_custom_event_type: Option, + pub advertiser_custom_event_type: Option, /// Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion. #[serde(rename="artworkLabel")] @@ -2748,7 +2748,7 @@ pub struct CreativeCustomEvent { /// Artwork type used by the creative.This is a read-only field. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Exit click-through URL for the event. This field is used only for exit events. #[serde(rename="exitClickThroughUrl")] @@ -2764,7 +2764,7 @@ pub struct CreativeCustomEvent { /// Target type used by the event. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, /// Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field. #[serde(rename="videoReportingId")] @@ -3005,7 +3005,7 @@ pub struct CreativeGroupAssignment { /// Creative group number of the creative group assignment. #[serde(rename="creativeGroupNumber")] - pub creative_group_number: Option, + pub creative_group_number: Option, } impl client::Part for CreativeGroupAssignment {} @@ -3059,7 +3059,7 @@ pub struct CreativeOptimizationConfiguration { /// Optimization model for this configuration. #[serde(rename="optimizationModel")] - pub optimization_model: Option, + pub optimization_model: Option, } impl client::Part for CreativeOptimizationConfiguration {} @@ -3084,11 +3084,11 @@ pub struct CreativeRotation { /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. #[serde(rename="weightCalculationStrategy")] - pub weight_calculation_strategy: Option, + pub weight_calculation_strategy: Option, } impl client::Part for CreativeRotation {} @@ -3182,7 +3182,7 @@ pub struct CustomFloodlightVariable { /// The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the custom floodlight variable. The length of string must not exceed 50 characters. pub value: Option, @@ -3227,7 +3227,7 @@ pub struct DateRange { /// The date range relative to the date of when the report is run. #[serde(rename="relativeDateRange")] - pub relative_date_range: Option, + pub relative_date_range: Option, /// The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd". #[serde(rename="startDate")] @@ -3256,7 +3256,7 @@ pub struct DayPartTargeting { /// - "SATURDAY" #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. #[serde(rename="hoursOfDay")] @@ -3313,7 +3313,7 @@ pub struct DeliverySchedule { pub impression_ratio: Option, /// Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. - pub priority: Option, + pub priority: Option, } impl client::Part for DeliverySchedule {} @@ -3418,7 +3418,7 @@ pub struct DimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The value of the dimension. pub value: Option, @@ -3590,7 +3590,7 @@ pub struct DirectorySite { /// - "JAVASCRIPT_INPAGE" #[serde(rename="inpageTagFormats")] - pub inpage_tag_formats: Option>, + pub inpage_tag_formats: Option>, /// Tag types for interstitial placements. /// /// Acceptable values are: @@ -3599,7 +3599,7 @@ pub struct DirectorySite { /// - "JAVASCRIPT_INTERSTITIAL" #[serde(rename="interstitialTagFormats")] - pub interstitial_tag_formats: Option>, + pub interstitial_tag_formats: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: Option, @@ -3662,14 +3662,14 @@ pub struct DirectorySiteContact { pub phone: Option, /// Directory site contact role. - pub role: Option, + pub role: Option, /// Title or designation of this directory site contact. pub title: Option, /// Directory site contact type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for DirectorySiteContact {} @@ -3690,7 +3690,7 @@ pub struct DirectorySiteContactAssignment { pub contact_id: Option, /// Visibility of this directory site contact assignment. When set to PUBLIC this contact assignment is visible to all account and agency users; when set to PRIVATE it is visible only to the site. - pub visibility: Option, + pub visibility: Option, } impl client::Part for DirectorySiteContactAssignment {} @@ -3817,7 +3817,7 @@ pub struct DynamicTargetingKey { /// Type of the object of this dynamic targeting key. This is a required field. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, } impl client::RequestValue for DynamicTargetingKey {} @@ -3863,11 +3863,11 @@ pub struct EncryptionInfo { /// The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer. #[serde(rename="encryptionEntityType")] - pub encryption_entity_type: Option, + pub encryption_entity_type: Option, /// Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. #[serde(rename="encryptionSource")] - pub encryption_source: Option, + pub encryption_source: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". pub kind: Option, @@ -3936,7 +3936,7 @@ pub struct EventTag { /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. #[serde(rename="siteFilterType")] - pub site_filter_type: Option, + pub site_filter_type: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a whitelist or blacklist filter. #[serde(rename="siteIds")] @@ -3948,7 +3948,7 @@ pub struct EventTag { pub ssl_compliant: Option, /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. - pub status: Option, + pub status: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -3957,7 +3957,7 @@ pub struct EventTag { /// Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. pub url: Option, @@ -4041,7 +4041,7 @@ pub struct File { pub file_name: Option, /// The output format of the report. Only available once the file is available. - pub format: Option, + pub format: Option, /// The unique ID of this report file. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4061,7 +4061,7 @@ pub struct File { pub report_id: Option, /// The status of the report file. - pub status: Option, + pub status: Option, /// The URLs where the completed report file can be downloaded. pub urls: Option, @@ -4215,11 +4215,11 @@ pub struct FloodlightActivity { /// Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. #[serde(rename="cacheBustingType")] - pub cache_busting_type: Option, + pub cache_busting_type: Option, /// Counting method for conversions for this floodlight activity. This is a required field. #[serde(rename="countingMethod")] - pub counting_method: Option, + pub counting_method: Option, /// Dynamic floodlight tags. #[serde(rename="defaultTags")] @@ -4244,7 +4244,7 @@ pub struct FloodlightActivity { /// Type of the associated floodlight activity group. This is a read-only field. #[serde(rename="floodlightActivityGroupType")] - pub floodlight_activity_group_type: Option, + pub floodlight_activity_group_type: Option, /// Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration. #[serde(rename="floodlightConfigurationId")] @@ -4257,7 +4257,7 @@ pub struct FloodlightActivity { /// The type of Floodlight tag this activity will generate. This is a required field. #[serde(rename="floodlightTagType")] - pub floodlight_tag_type: Option, + pub floodlight_tag_type: Option, /// Whether this activity is archived. pub hidden: Option, @@ -4301,7 +4301,7 @@ pub struct FloodlightActivity { /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. #[serde(rename="tagFormat")] - pub tag_format: Option, + pub tag_format: Option, /// Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion. #[serde(rename="tagString")] @@ -4310,7 +4310,7 @@ pub struct FloodlightActivity { /// Acceptable values are U1 to U100, inclusive. #[serde(rename="userDefinedVariableTypes")] - pub user_defined_variable_types: Option>, + pub user_defined_variable_types: Option>, } impl client::RequestValue for FloodlightActivity {} @@ -4403,7 +4403,7 @@ pub struct FloodlightActivityGroup { /// Type of the floodlight activity group. This is a required field that is read-only after insertion. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for FloodlightActivityGroup {} @@ -4515,7 +4515,7 @@ pub struct FloodlightConfiguration { /// Day that will be counted as the first day of the week in reports. This is a required field. #[serde(rename="firstDayOfWeek")] - pub first_day_of_week: Option, + pub first_day_of_week: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4538,7 +4538,7 @@ pub struct FloodlightConfiguration { /// Types of attribution options for natural search conversions. #[serde(rename="naturalSearchConversionAttributionOption")] - pub natural_search_conversion_attribution_option: Option, + pub natural_search_conversion_attribution_option: Option, /// Settings for Campaign Manager Omniture integration. #[serde(rename="omnitureSettings")] @@ -4648,7 +4648,7 @@ pub struct FsCommand { /// Position in the browser where the window will open. #[serde(rename="positionOption")] - pub position_option: Option, + pub position_option: Option, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: Option, @@ -4797,7 +4797,7 @@ pub struct InventoryItem { /// Type of inventory item. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for InventoryItem {} @@ -5025,7 +5025,7 @@ pub struct ListPopulationTerm { pub negation: Option, /// Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - pub operator: Option, + pub operator: Option, /// ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. #[serde(rename="remarketingListId")] @@ -5034,7 +5034,7 @@ pub struct ListPopulationTerm { /// List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. pub value: Option, @@ -5248,7 +5248,7 @@ pub struct ObjectFilter { pub object_ids: Option>, /// Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. - pub status: Option, + pub status: Option, } impl client::Part for ObjectFilter {} @@ -5559,7 +5559,7 @@ pub struct OrderContact { /// Type of this contact. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// ID of the user profile containing the signature that will be embedded into order documents. #[serde(rename="signatureUserProfileId")] @@ -5652,7 +5652,7 @@ pub struct OrderDocument { /// Type of this order document #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for OrderDocument {} @@ -5793,7 +5793,7 @@ pub struct Placement { pub comment: Option, /// Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. - pub compatibility: Option, + pub compatibility: Option, /// ID of the content category assigned to this placement. #[serde(rename="contentCategoryId")] @@ -5849,7 +5849,7 @@ pub struct Placement { /// Payment source for this placement. This is a required field that is read-only after insertion. #[serde(rename="paymentSource")] - pub payment_source: Option, + pub payment_source: Option, /// ID of this placement's group, if applicable. #[serde(rename="placementGroupId")] @@ -5893,7 +5893,7 @@ pub struct Placement { pub ssl_required: Option, /// Third-party placement status. - pub status: Option, + pub status: Option, /// Subaccount ID of this placement. This field can be left blank. #[serde(rename="subaccountId")] @@ -5918,7 +5918,7 @@ pub struct Placement { /// - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" #[serde(rename="tagFormats")] - pub tag_formats: Option>, + pub tag_formats: Option>, /// Tag settings for this placement. #[serde(rename="tagSetting")] @@ -5936,7 +5936,7 @@ pub struct Placement { /// Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoice")] - pub vpaid_adapter_choice: Option, + pub vpaid_adapter_choice: Option, } impl client::RequestValue for Placement {} @@ -6064,7 +6064,7 @@ pub struct PlacementGroup { /// Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. #[serde(rename="placementGroupType")] - pub placement_group_type: Option, + pub placement_group_type: Option, /// ID of the placement strategy assigned to this placement group. #[serde(rename="placementStrategyId")] @@ -6330,7 +6330,7 @@ pub struct PopupWindowProperties { /// Popup window position either centered or at specific coordinate. #[serde(rename="positionType")] - pub position_type: Option, + pub position_type: Option, /// Whether to display the browser address bar. #[serde(rename="showAddressBar")] @@ -6428,7 +6428,7 @@ pub struct Pricing { /// Cap cost type of this inventory item. #[serde(rename="capCostType")] - pub cap_cost_type: Option, + pub cap_cost_type: Option, /// End date of this inventory item. #[serde(rename="endDate")] @@ -6439,11 +6439,11 @@ pub struct Pricing { /// Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Pricing type of this inventory item. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// Start date of this inventory item. #[serde(rename="startDate")] @@ -6463,7 +6463,7 @@ pub struct PricingSchedule { /// Placement cap cost option. #[serde(rename="capCostOption")] - pub cap_cost_option: Option, + pub cap_cost_option: Option, /// Whether cap costs are ignored by ad serving. #[serde(rename="disregardOverdelivery")] @@ -6487,7 +6487,7 @@ pub struct PricingSchedule { /// Placement pricing type. This field is required on insertion. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion. #[serde(rename="startDate")] @@ -6559,11 +6559,11 @@ pub struct Project { /// Audience age group of this project. #[serde(rename="audienceAgeGroup")] - pub audience_age_group: Option, + pub audience_age_group: Option, /// Audience gender of this project. #[serde(rename="audienceGender")] - pub audience_gender: Option, + pub audience_gender: Option, /// Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6716,7 +6716,7 @@ pub struct Recipient { /// The delivery type for the recipient. #[serde(rename="deliveryType")] - pub delivery_type: Option, + pub delivery_type: Option, /// The email address of the recipient. pub email: Option, @@ -6849,7 +6849,7 @@ pub struct RemarketingList { /// Product from which this remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the remarketing list. This is a required field. Must be no greater than 128 characters long. pub name: Option, @@ -6978,7 +6978,7 @@ pub struct Report { pub floodlight_criteria: Option, /// The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format. - pub format: Option, + pub format: Option, /// The unique ID identifying this report resource. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -7018,7 +7018,7 @@ pub struct Report { /// The type of the report. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Report {} @@ -7256,7 +7256,7 @@ pub struct SiteContact { /// Site contact type. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// Email address of this site contact. This is a required field. pub email: Option, @@ -7323,7 +7323,7 @@ pub struct SiteSettings { /// Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoiceTemplate")] - pub vpaid_adapter_choice_template: Option, + pub vpaid_adapter_choice_template: Option, } impl client::Part for SiteSettings {} @@ -7455,7 +7455,7 @@ pub struct SortedDimension { /// An optional sort order for the dimension column. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortedDimension {} @@ -7552,7 +7552,7 @@ pub struct TagData { pub creative_id: Option, /// TagData tag format of this tag. - pub format: Option, + pub format: Option, /// Tag string for serving an ad. #[serde(rename="impressionTag")] @@ -7584,7 +7584,7 @@ pub struct TagSetting { /// Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders. #[serde(rename="keywordOption")] - pub keyword_option: Option, + pub keyword_option: Option, } impl client::Part for TagSetting {} @@ -7624,7 +7624,7 @@ pub struct TargetWindow { /// Type of browser window for which the backup image of the flash creative can be displayed. #[serde(rename="targetWindowOption")] - pub target_window_option: Option, + pub target_window_option: Option, } impl client::Part for TargetWindow {} @@ -7682,7 +7682,7 @@ pub struct TargetableRemarketingList { /// Product from which this targetable remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the targetable remarketing list. Is no greater than 128 characters long. pub name: Option, @@ -7889,7 +7889,7 @@ pub struct ThirdPartyTrackingUrl { /// Third-party URL type for in-stream video creatives. #[serde(rename="thirdPartyUrlType")] - pub third_party_url_type: Option, + pub third_party_url_type: Option, /// URL for the specified third-party URL type. pub url: Option, @@ -7926,7 +7926,7 @@ impl client::Part for TranscodeSetting {} pub struct UniversalAdId { /// Registry used for the Ad ID value. - pub registry: Option, + pub registry: Option, /// ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. pub value: Option, @@ -7945,7 +7945,7 @@ pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". #[serde(rename="reportName")] @@ -7953,7 +7953,7 @@ pub struct UserDefinedVariableConfiguration { /// Variable name in the tag. This is a required field. #[serde(rename="variableType")] - pub variable_type: Option, + pub variable_type: Option, } impl client::Part for UserDefinedVariableConfiguration {} @@ -8104,7 +8104,7 @@ impl client::ResponseResult for UserRole {} pub struct UserRolePermission { /// Levels of availability for a user role permission. - pub availability: Option, + pub availability: Option, /// ID of this user role permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -8242,7 +8242,7 @@ pub struct VideoFormat { /// File type of the video format. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// ID of the video format. pub id: Option, @@ -8321,7 +8321,7 @@ pub struct VideoSettings { pub kind: Option, /// Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. #[serde(rename="skippableSettings")] @@ -8408,7 +8408,7 @@ pub struct ReportCrossDimensionReachCriteria { pub date_range: Option, /// The dimension option. - pub dimension: Option, + pub dimension: Option, /// The list of filters on which dimensions are filtered. #[serde(rename="dimensionFilters")] @@ -8444,7 +8444,7 @@ pub struct ReportDelivery { /// The type of delivery for the owner to receive, if enabled. #[serde(rename="emailOwnerDeliveryType")] - pub email_owner_delivery_type: Option, + pub email_owner_delivery_type: Option, /// The message to be sent with each email. pub message: Option, @@ -8691,12 +8691,12 @@ pub struct ReportSchedule { /// List of week days "WEEKLY" on which scheduled reports should run. #[serde(rename="repeatsOnWeekDays")] - pub repeats_on_week_days: Option>, + pub repeats_on_week_days: Option>, /// Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. /// Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month. #[serde(rename="runsOnDayOfMonth")] - pub runs_on_day_of_month: Option, + pub runs_on_day_of_month: Option, /// Start date of date range for which scheduled reports should be run. #[serde(rename="startDate")] diff --git a/gen/dfareporting3/src/lib.rs b/gen/dfareporting3/src/lib.rs index baba3f8bc3..38db0183b8 100644 --- a/gen/dfareporting3/src/lib.rs +++ b/gen/dfareporting3/src/lib.rs @@ -231,11 +231,11 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.reports().files_list(-8, -80) -//! .sort_order("amet.") -//! .sort_field("takimata") -//! .page_token("amet.") -//! .max_results(-20) +//! let result = hub.reports().files_list(-28, -27) +//! .sort_order(&Default::default()) +//! .sort_field(&Default::default()) +//! .page_token("sanctus") +//! .max_results(-80) //! .doit().await; //! //! match result { diff --git a/gen/dfareporting3d2/README.md b/gen/dfareporting3d2/README.md index 2fc6034843..14ac3444ae 100644 --- a/gen/dfareporting3d2/README.md +++ b/gen/dfareporting3d2/README.md @@ -233,10 +233,10 @@ let mut hub = Dfareporting::new(hyper::Client::builder().build(hyper_rustls::Htt // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.reports().files_list(-22, -33) - .sort_order("no") - .sort_field("ipsum") - .page_token("voluptua.") - .max_results(-27) + .sort_order(&Default::default()) + .sort_field(&Default::default()) + .page_token("no") + .max_results(-55) .doit().await; match result { diff --git a/gen/dfareporting3d2/src/api/hub.rs b/gen/dfareporting3d2/src/api/hub.rs index 02ef764d5d..146948af85 100644 --- a/gen/dfareporting3d2/src/api/hub.rs +++ b/gen/dfareporting3d2/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.reports().files_list(-55, -62) -/// .sort_order("Lorem") -/// .sort_field("gubergren") -/// .page_token("eos") -/// .max_results(-4) +/// let result = hub.reports().files_list(-2, -59) +/// .sort_order(&Default::default()) +/// .sort_field(&Default::default()) +/// .page_token("amet.") +/// .max_results(-20) /// .doit().await; /// /// match result { diff --git a/gen/dfareporting3d2/src/api/method_builders.rs b/gen/dfareporting3d2/src/api/method_builders.rs index b709621aad..4b05fec55e 100644 --- a/gen/dfareporting3d2/src/api/method_builders.rs +++ b/gen/dfareporting3d2/src/api/method_builders.rs @@ -2926,13 +2926,13 @@ impl<'a, S> DynamicTargetingKeyMethods<'a, S> { /// * `objectId` - ID of the object of this dynamic targeting key. This is a required field. /// * `name` - Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. /// * `objectType` - Type of the object of this dynamic targeting key. This is a required field. - pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &str) -> DynamicTargetingKeyDeleteCall<'a, S> { + pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &DynamicTargetingKeyObjectTypeEnum) -> DynamicTargetingKeyDeleteCall<'a, S> { DynamicTargetingKeyDeleteCall { hub: self.hub, _profile_id: profile_id, _object_id: object_id, _name: name.to_string(), - _object_type: object_type.to_string(), + _object_type: object_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/dfareporting3d2/src/api/mod.rs b/gen/dfareporting3d2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dfareporting3d2/src/api/mod.rs +++ b/gen/dfareporting3d2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dfareporting3d2/src/api/schemas.rs b/gen/dfareporting3d2/src/api/schemas.rs index 3835e5eebe..7e31dba091 100644 --- a/gen/dfareporting3d2/src/api/schemas.rs +++ b/gen/dfareporting3d2/src/api/schemas.rs @@ -21,14 +21,14 @@ pub struct Account { /// Profile for this account. This is a read-only field that can be left blank. #[serde(rename="accountProfile")] - pub account_profile: Option, + pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Maximum number of active ads allowed for this account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. #[serde(rename="activeViewOptOut")] @@ -189,7 +189,7 @@ pub struct AccountActiveAdSummary { /// Maximum number of active ads allowed for the account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Ads that can be activated for the account. #[serde(rename="availableAds")] @@ -222,7 +222,7 @@ pub struct AccountPermission { /// - "ACCOUNT_PROFILE_STANDARD" #[serde(rename="accountProfiles")] - pub account_profiles: Option>, + pub account_profiles: Option>, /// ID of this account permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -232,7 +232,7 @@ pub struct AccountPermission { pub kind: Option, /// Administrative level required to enable this account permission. - pub level: Option, + pub level: Option, /// Name of this account permission. pub name: Option, @@ -400,11 +400,11 @@ pub struct AccountUserProfile { /// Trafficker type of this user profile. This is a read-only field. #[serde(rename="traffickerType")] - pub trafficker_type: Option, + pub trafficker_type: Option, /// User type of the user profile. This is a read-only field that can be left blank. #[serde(rename="userAccessType")] - pub user_access_type: Option, + pub user_access_type: Option, /// Filter that describes which user roles are visible to the user profile. #[serde(rename="userRoleFilter")] @@ -558,7 +558,7 @@ pub struct Ad { pub comments: Option, /// Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Information about the creation of this ad. This is a read-only field. #[serde(rename="createInfo")] @@ -665,7 +665,7 @@ pub struct Ad { /// Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Ad {} @@ -713,7 +713,7 @@ pub struct AdSlot { pub comment: Option, /// Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Height of this ad slot. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -729,7 +729,7 @@ pub struct AdSlot { /// Payment source type of this ad slot. #[serde(rename="paymentSourceType")] - pub payment_source_type: Option, + pub payment_source_type: Option, /// Primary ad slot of a roadblock inventory item. pub primary: Option, @@ -838,7 +838,7 @@ pub struct Advertiser { pub original_floodlight_configuration_id: Option, /// Status of this advertiser. - pub status: Option, + pub status: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -1839,7 +1839,7 @@ impl client::Resource for Conversion {} pub struct ConversionError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". pub kind: Option, @@ -2083,15 +2083,15 @@ pub struct Creative { /// Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types. #[serde(rename="authoringSource")] - pub authoring_source: Option, + pub authoring_source: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. #[serde(rename="authoringTool")] - pub authoring_tool: Option, + pub authoring_tool: Option, /// Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. #[serde(rename="autoAdvanceImages")] @@ -2107,7 +2107,7 @@ pub struct Creative { /// List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageFeatures")] - pub backup_image_features: Option>, + pub backup_image_features: Option>, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageReportingLabel")] @@ -2139,7 +2139,7 @@ pub struct Creative { /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" - pub compatibility: Option>, + pub compatibility: Option>, /// Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="convertFlashToHtml5")] @@ -2313,7 +2313,7 @@ pub struct Creative { /// Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. #[serde(rename="universalAdId")] @@ -2352,11 +2352,11 @@ pub struct CreativeAsset { pub additional_sizes: Option>, /// Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. - pub alignment: Option, + pub alignment: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. #[serde(rename="assetIdentifier")] @@ -2372,7 +2372,7 @@ pub struct CreativeAsset { /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. #[serde(rename="childAssetType")] - pub child_asset_type: Option, + pub child_asset_type: Option, /// Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. #[serde(rename="collapsedSize")] @@ -2389,18 +2389,18 @@ pub struct CreativeAsset { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="displayType")] - pub display_type: Option, + pub display_type: Option, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. pub duration: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="durationType")] - pub duration_type: Option, + pub duration_type: Option, /// Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="expandedDimension")] @@ -2447,7 +2447,7 @@ pub struct CreativeAsset { pub offset: Option, /// Orientation of video asset. This is a read-only, auto-generated field. - pub orientation: Option, + pub orientation: Option, /// Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="originalBackup")] @@ -2458,11 +2458,11 @@ pub struct CreativeAsset { /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionLeftUnit")] - pub position_left_unit: Option, + pub position_left_unit: Option, /// Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionTopUnit")] - pub position_top_unit: Option, + pub position_top_unit: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="progressiveServingUrl")] @@ -2486,7 +2486,7 @@ pub struct CreativeAsset { /// PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO creatives. /// TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. - pub role: Option, + pub role: Option, /// Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. pub size: Option, @@ -2497,7 +2497,7 @@ pub struct CreativeAsset { /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="startTimeType")] - pub start_time_type: Option, + pub start_time_type: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="streamingServingUrl")] @@ -2512,7 +2512,7 @@ pub struct CreativeAsset { /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. #[serde(rename="windowMode")] - pub window_mode: Option, + pub window_mode: Option, /// zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive. #[serde(rename="zIndex")] @@ -2543,7 +2543,7 @@ pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreativeAssetId {} @@ -2571,7 +2571,7 @@ pub struct CreativeAssetMetadata { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Numeric ID of the asset. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -2612,7 +2612,7 @@ pub struct CreativeAssetMetadata { /// - "ZIP_INVALID" #[serde(rename="warnedValidationRules")] - pub warned_validation_rules: Option>, + pub warned_validation_rules: Option>, } impl client::RequestValue for CreativeAssetMetadata {} @@ -2759,7 +2759,7 @@ pub struct CreativeCustomEvent { /// Type of the event. This is a read-only field. #[serde(rename="advertiserCustomEventType")] - pub advertiser_custom_event_type: Option, + pub advertiser_custom_event_type: Option, /// Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion. #[serde(rename="artworkLabel")] @@ -2767,7 +2767,7 @@ pub struct CreativeCustomEvent { /// Artwork type used by the creative.This is a read-only field. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Exit click-through URL for the event. This field is used only for exit events. #[serde(rename="exitClickThroughUrl")] @@ -2783,7 +2783,7 @@ pub struct CreativeCustomEvent { /// Target type used by the event. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, /// Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field. #[serde(rename="videoReportingId")] @@ -3024,7 +3024,7 @@ pub struct CreativeGroupAssignment { /// Creative group number of the creative group assignment. #[serde(rename="creativeGroupNumber")] - pub creative_group_number: Option, + pub creative_group_number: Option, } impl client::Part for CreativeGroupAssignment {} @@ -3078,7 +3078,7 @@ pub struct CreativeOptimizationConfiguration { /// Optimization model for this configuration. #[serde(rename="optimizationModel")] - pub optimization_model: Option, + pub optimization_model: Option, } impl client::Part for CreativeOptimizationConfiguration {} @@ -3103,11 +3103,11 @@ pub struct CreativeRotation { /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. #[serde(rename="weightCalculationStrategy")] - pub weight_calculation_strategy: Option, + pub weight_calculation_strategy: Option, } impl client::Part for CreativeRotation {} @@ -3201,7 +3201,7 @@ pub struct CustomFloodlightVariable { /// The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the custom floodlight variable. The length of string must not exceed 50 characters. pub value: Option, @@ -3246,7 +3246,7 @@ pub struct DateRange { /// The date range relative to the date of when the report is run. #[serde(rename="relativeDateRange")] - pub relative_date_range: Option, + pub relative_date_range: Option, /// The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd". #[serde(rename="startDate")] @@ -3275,7 +3275,7 @@ pub struct DayPartTargeting { /// - "SATURDAY" #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. #[serde(rename="hoursOfDay")] @@ -3364,7 +3364,7 @@ pub struct DeliverySchedule { pub impression_ratio: Option, /// Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. - pub priority: Option, + pub priority: Option, } impl client::Part for DeliverySchedule {} @@ -3469,7 +3469,7 @@ pub struct DimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The value of the dimension. pub value: Option, @@ -3641,7 +3641,7 @@ pub struct DirectorySite { /// - "JAVASCRIPT_INPAGE" #[serde(rename="inpageTagFormats")] - pub inpage_tag_formats: Option>, + pub inpage_tag_formats: Option>, /// Tag types for interstitial placements. /// /// Acceptable values are: @@ -3650,7 +3650,7 @@ pub struct DirectorySite { /// - "JAVASCRIPT_INTERSTITIAL" #[serde(rename="interstitialTagFormats")] - pub interstitial_tag_formats: Option>, + pub interstitial_tag_formats: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: Option, @@ -3713,14 +3713,14 @@ pub struct DirectorySiteContact { pub phone: Option, /// Directory site contact role. - pub role: Option, + pub role: Option, /// Title or designation of this directory site contact. pub title: Option, /// Directory site contact type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for DirectorySiteContact {} @@ -3741,7 +3741,7 @@ pub struct DirectorySiteContactAssignment { pub contact_id: Option, /// Visibility of this directory site contact assignment. When set to PUBLIC this contact assignment is visible to all account and agency users; when set to PRIVATE it is visible only to the site. - pub visibility: Option, + pub visibility: Option, } impl client::Part for DirectorySiteContactAssignment {} @@ -3868,7 +3868,7 @@ pub struct DynamicTargetingKey { /// Type of the object of this dynamic targeting key. This is a required field. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, } impl client::RequestValue for DynamicTargetingKey {} @@ -3914,11 +3914,11 @@ pub struct EncryptionInfo { /// The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer. #[serde(rename="encryptionEntityType")] - pub encryption_entity_type: Option, + pub encryption_entity_type: Option, /// Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. #[serde(rename="encryptionSource")] - pub encryption_source: Option, + pub encryption_source: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". pub kind: Option, @@ -3987,7 +3987,7 @@ pub struct EventTag { /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. #[serde(rename="siteFilterType")] - pub site_filter_type: Option, + pub site_filter_type: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a whitelist or blacklist filter. #[serde(rename="siteIds")] @@ -3999,7 +3999,7 @@ pub struct EventTag { pub ssl_compliant: Option, /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. - pub status: Option, + pub status: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -4008,7 +4008,7 @@ pub struct EventTag { /// Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. pub url: Option, @@ -4092,7 +4092,7 @@ pub struct File { pub file_name: Option, /// The output format of the report. Only available once the file is available. - pub format: Option, + pub format: Option, /// The unique ID of this report file. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4112,7 +4112,7 @@ pub struct File { pub report_id: Option, /// The status of the report file. - pub status: Option, + pub status: Option, /// The URLs where the completed report file can be downloaded. pub urls: Option, @@ -4266,11 +4266,11 @@ pub struct FloodlightActivity { /// Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. #[serde(rename="cacheBustingType")] - pub cache_busting_type: Option, + pub cache_busting_type: Option, /// Counting method for conversions for this floodlight activity. This is a required field. #[serde(rename="countingMethod")] - pub counting_method: Option, + pub counting_method: Option, /// Dynamic floodlight tags. #[serde(rename="defaultTags")] @@ -4295,7 +4295,7 @@ pub struct FloodlightActivity { /// Type of the associated floodlight activity group. This is a read-only field. #[serde(rename="floodlightActivityGroupType")] - pub floodlight_activity_group_type: Option, + pub floodlight_activity_group_type: Option, /// Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration. #[serde(rename="floodlightConfigurationId")] @@ -4308,7 +4308,7 @@ pub struct FloodlightActivity { /// The type of Floodlight tag this activity will generate. This is a required field. #[serde(rename="floodlightTagType")] - pub floodlight_tag_type: Option, + pub floodlight_tag_type: Option, /// Whether this activity is archived. pub hidden: Option, @@ -4352,7 +4352,7 @@ pub struct FloodlightActivity { /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. #[serde(rename="tagFormat")] - pub tag_format: Option, + pub tag_format: Option, /// Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion. #[serde(rename="tagString")] @@ -4361,7 +4361,7 @@ pub struct FloodlightActivity { /// Acceptable values are U1 to U100, inclusive. #[serde(rename="userDefinedVariableTypes")] - pub user_defined_variable_types: Option>, + pub user_defined_variable_types: Option>, } impl client::RequestValue for FloodlightActivity {} @@ -4454,7 +4454,7 @@ pub struct FloodlightActivityGroup { /// Type of the floodlight activity group. This is a required field that is read-only after insertion. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for FloodlightActivityGroup {} @@ -4566,7 +4566,7 @@ pub struct FloodlightConfiguration { /// Day that will be counted as the first day of the week in reports. This is a required field. #[serde(rename="firstDayOfWeek")] - pub first_day_of_week: Option, + pub first_day_of_week: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4589,7 +4589,7 @@ pub struct FloodlightConfiguration { /// Types of attribution options for natural search conversions. #[serde(rename="naturalSearchConversionAttributionOption")] - pub natural_search_conversion_attribution_option: Option, + pub natural_search_conversion_attribution_option: Option, /// Settings for Campaign Manager Omniture integration. #[serde(rename="omnitureSettings")] @@ -4699,7 +4699,7 @@ pub struct FsCommand { /// Position in the browser where the window will open. #[serde(rename="positionOption")] - pub position_option: Option, + pub position_option: Option, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: Option, @@ -4848,7 +4848,7 @@ pub struct InventoryItem { /// Type of inventory item. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for InventoryItem {} @@ -5080,7 +5080,7 @@ pub struct ListPopulationTerm { pub negation: Option, /// Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - pub operator: Option, + pub operator: Option, /// ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. #[serde(rename="remarketingListId")] @@ -5089,7 +5089,7 @@ pub struct ListPopulationTerm { /// List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. pub value: Option, @@ -5240,7 +5240,7 @@ impl client::ResponseResult for MetrosListResponse {} pub struct MobileApp { /// Mobile app directory. - pub directory: Option, + pub directory: Option, /// ID of this mobile app. pub id: Option, @@ -5364,7 +5364,7 @@ pub struct ObjectFilter { pub object_ids: Option>, /// Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. - pub status: Option, + pub status: Option, } impl client::Part for ObjectFilter {} @@ -5675,7 +5675,7 @@ pub struct OrderContact { /// Type of this contact. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// ID of the user profile containing the signature that will be embedded into order documents. #[serde(rename="signatureUserProfileId")] @@ -5768,7 +5768,7 @@ pub struct OrderDocument { /// Type of this order document #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for OrderDocument {} @@ -5913,7 +5913,7 @@ pub struct Placement { pub comment: Option, /// Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. - pub compatibility: Option, + pub compatibility: Option, /// ID of the content category assigned to this placement. #[serde(rename="contentCategoryId")] @@ -5969,7 +5969,7 @@ pub struct Placement { /// Payment source for this placement. This is a required field that is read-only after insertion. #[serde(rename="paymentSource")] - pub payment_source: Option, + pub payment_source: Option, /// ID of this placement's group, if applicable. #[serde(rename="placementGroupId")] @@ -6013,7 +6013,7 @@ pub struct Placement { pub ssl_required: Option, /// Third-party placement status. - pub status: Option, + pub status: Option, /// Subaccount ID of this placement. This field can be left blank. #[serde(rename="subaccountId")] @@ -6038,7 +6038,7 @@ pub struct Placement { /// - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" #[serde(rename="tagFormats")] - pub tag_formats: Option>, + pub tag_formats: Option>, /// Tag settings for this placement. #[serde(rename="tagSetting")] @@ -6056,7 +6056,7 @@ pub struct Placement { /// Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoice")] - pub vpaid_adapter_choice: Option, + pub vpaid_adapter_choice: Option, } impl client::RequestValue for Placement {} @@ -6184,7 +6184,7 @@ pub struct PlacementGroup { /// Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. #[serde(rename="placementGroupType")] - pub placement_group_type: Option, + pub placement_group_type: Option, /// ID of the placement strategy assigned to this placement group. #[serde(rename="placementStrategyId")] @@ -6450,7 +6450,7 @@ pub struct PopupWindowProperties { /// Popup window position either centered or at specific coordinate. #[serde(rename="positionType")] - pub position_type: Option, + pub position_type: Option, /// Whether to display the browser address bar. #[serde(rename="showAddressBar")] @@ -6548,7 +6548,7 @@ pub struct Pricing { /// Cap cost type of this inventory item. #[serde(rename="capCostType")] - pub cap_cost_type: Option, + pub cap_cost_type: Option, /// End date of this inventory item. #[serde(rename="endDate")] @@ -6559,11 +6559,11 @@ pub struct Pricing { /// Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Pricing type of this inventory item. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// Start date of this inventory item. #[serde(rename="startDate")] @@ -6583,7 +6583,7 @@ pub struct PricingSchedule { /// Placement cap cost option. #[serde(rename="capCostOption")] - pub cap_cost_option: Option, + pub cap_cost_option: Option, /// Whether cap costs are ignored by ad serving. #[serde(rename="disregardOverdelivery")] @@ -6607,7 +6607,7 @@ pub struct PricingSchedule { /// Placement pricing type. This field is required on insertion. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion. #[serde(rename="startDate")] @@ -6679,11 +6679,11 @@ pub struct Project { /// Audience age group of this project. #[serde(rename="audienceAgeGroup")] - pub audience_age_group: Option, + pub audience_age_group: Option, /// Audience gender of this project. #[serde(rename="audienceGender")] - pub audience_gender: Option, + pub audience_gender: Option, /// Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6836,7 +6836,7 @@ pub struct Recipient { /// The delivery type for the recipient. #[serde(rename="deliveryType")] - pub delivery_type: Option, + pub delivery_type: Option, /// The email address of the recipient. pub email: Option, @@ -6969,7 +6969,7 @@ pub struct RemarketingList { /// Product from which this remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the remarketing list. This is a required field. Must be no greater than 128 characters long. pub name: Option, @@ -7098,7 +7098,7 @@ pub struct Report { pub floodlight_criteria: Option, /// The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format. - pub format: Option, + pub format: Option, /// The unique ID identifying this report resource. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -7138,7 +7138,7 @@ pub struct Report { /// The type of the report. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Report {} @@ -7376,7 +7376,7 @@ pub struct SiteContact { /// Site contact type. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// Email address of this site contact. This is a required field. pub email: Option, @@ -7443,7 +7443,7 @@ pub struct SiteSettings { /// Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoiceTemplate")] - pub vpaid_adapter_choice_template: Option, + pub vpaid_adapter_choice_template: Option, } impl client::Part for SiteSettings {} @@ -7575,7 +7575,7 @@ pub struct SortedDimension { /// An optional sort order for the dimension column. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortedDimension {} @@ -7672,7 +7672,7 @@ pub struct TagData { pub creative_id: Option, /// TagData tag format of this tag. - pub format: Option, + pub format: Option, /// Tag string for serving an ad. #[serde(rename="impressionTag")] @@ -7704,7 +7704,7 @@ pub struct TagSetting { /// Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders. #[serde(rename="keywordOption")] - pub keyword_option: Option, + pub keyword_option: Option, } impl client::Part for TagSetting {} @@ -7744,7 +7744,7 @@ pub struct TargetWindow { /// Type of browser window for which the backup image of the flash creative can be displayed. #[serde(rename="targetWindowOption")] - pub target_window_option: Option, + pub target_window_option: Option, } impl client::Part for TargetWindow {} @@ -7802,7 +7802,7 @@ pub struct TargetableRemarketingList { /// Product from which this targetable remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the targetable remarketing list. Is no greater than 128 characters long. pub name: Option, @@ -8009,7 +8009,7 @@ pub struct ThirdPartyTrackingUrl { /// Third-party URL type for in-stream video and in-stream audio creatives. #[serde(rename="thirdPartyUrlType")] - pub third_party_url_type: Option, + pub third_party_url_type: Option, /// URL for the specified third-party URL type. pub url: Option, @@ -8046,7 +8046,7 @@ impl client::Part for TranscodeSetting {} pub struct UniversalAdId { /// Registry used for the Ad ID value. - pub registry: Option, + pub registry: Option, /// ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. pub value: Option, @@ -8065,7 +8065,7 @@ pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". #[serde(rename="reportName")] @@ -8073,7 +8073,7 @@ pub struct UserDefinedVariableConfiguration { /// Variable name in the tag. This is a required field. #[serde(rename="variableType")] - pub variable_type: Option, + pub variable_type: Option, } impl client::Part for UserDefinedVariableConfiguration {} @@ -8224,7 +8224,7 @@ impl client::ResponseResult for UserRole {} pub struct UserRolePermission { /// Levels of availability for a user role permission. - pub availability: Option, + pub availability: Option, /// ID of this user role permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -8362,7 +8362,7 @@ pub struct VideoFormat { /// File type of the video format. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// ID of the video format. pub id: Option, @@ -8441,7 +8441,7 @@ pub struct VideoSettings { pub kind: Option, /// Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. #[serde(rename="skippableSettings")] @@ -8528,7 +8528,7 @@ pub struct ReportCrossDimensionReachCriteria { pub date_range: Option, /// The dimension option. - pub dimension: Option, + pub dimension: Option, /// The list of filters on which dimensions are filtered. #[serde(rename="dimensionFilters")] @@ -8564,7 +8564,7 @@ pub struct ReportDelivery { /// The type of delivery for the owner to receive, if enabled. #[serde(rename="emailOwnerDeliveryType")] - pub email_owner_delivery_type: Option, + pub email_owner_delivery_type: Option, /// The message to be sent with each email. pub message: Option, @@ -8811,12 +8811,12 @@ pub struct ReportSchedule { /// List of week days "WEEKLY" on which scheduled reports should run. #[serde(rename="repeatsOnWeekDays")] - pub repeats_on_week_days: Option>, + pub repeats_on_week_days: Option>, /// Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. /// Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month. #[serde(rename="runsOnDayOfMonth")] - pub runs_on_day_of_month: Option, + pub runs_on_day_of_month: Option, /// Start date of date range for which scheduled reports should be run. #[serde(rename="startDate")] diff --git a/gen/dfareporting3d2/src/lib.rs b/gen/dfareporting3d2/src/lib.rs index 3224b1c36c..c912cb4508 100644 --- a/gen/dfareporting3d2/src/lib.rs +++ b/gen/dfareporting3d2/src/lib.rs @@ -233,11 +233,11 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.reports().files_list(-8, -80) -//! .sort_order("amet.") -//! .sort_field("takimata") -//! .page_token("amet.") -//! .max_results(-20) +//! let result = hub.reports().files_list(-28, -27) +//! .sort_order(&Default::default()) +//! .sort_field(&Default::default()) +//! .page_token("sanctus") +//! .max_results(-80) //! .doit().await; //! //! match result { diff --git a/gen/dfareporting3d3/README.md b/gen/dfareporting3d3/README.md index 175c02ef23..70358a079f 100644 --- a/gen/dfareporting3d3/README.md +++ b/gen/dfareporting3d3/README.md @@ -231,10 +231,10 @@ let mut hub = Dfareporting::new(hyper::Client::builder().build(hyper_rustls::Htt // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.reports().files_list(-22, -33) - .sort_order("no") - .sort_field("ipsum") - .page_token("voluptua.") - .max_results(-27) + .sort_order(&Default::default()) + .sort_field(&Default::default()) + .page_token("no") + .max_results(-55) .doit().await; match result { diff --git a/gen/dfareporting3d3/src/api/hub.rs b/gen/dfareporting3d3/src/api/hub.rs index 1c23f97f5b..b0cffb1616 100644 --- a/gen/dfareporting3d3/src/api/hub.rs +++ b/gen/dfareporting3d3/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.reports().files_list(-55, -62) -/// .sort_order("Lorem") -/// .sort_field("gubergren") -/// .page_token("eos") -/// .max_results(-4) +/// let result = hub.reports().files_list(-2, -59) +/// .sort_order(&Default::default()) +/// .sort_field(&Default::default()) +/// .page_token("amet.") +/// .max_results(-20) /// .doit().await; /// /// match result { diff --git a/gen/dfareporting3d3/src/api/method_builders.rs b/gen/dfareporting3d3/src/api/method_builders.rs index 894cf97b8f..18560a4899 100644 --- a/gen/dfareporting3d3/src/api/method_builders.rs +++ b/gen/dfareporting3d3/src/api/method_builders.rs @@ -2840,13 +2840,13 @@ impl<'a, S> DynamicTargetingKeyMethods<'a, S> { /// * `objectId` - ID of the object of this dynamic targeting key. This is a required field. /// * `name` - Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. /// * `objectType` - Type of the object of this dynamic targeting key. This is a required field. - pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &str) -> DynamicTargetingKeyDeleteCall<'a, S> { + pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &DynamicTargetingKeyObjectTypeEnum) -> DynamicTargetingKeyDeleteCall<'a, S> { DynamicTargetingKeyDeleteCall { hub: self.hub, _profile_id: profile_id, _object_id: object_id, _name: name.to_string(), - _object_type: object_type.to_string(), + _object_type: object_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/dfareporting3d3/src/api/mod.rs b/gen/dfareporting3d3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dfareporting3d3/src/api/mod.rs +++ b/gen/dfareporting3d3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dfareporting3d3/src/api/schemas.rs b/gen/dfareporting3d3/src/api/schemas.rs index 6e0591070a..5e9871c863 100644 --- a/gen/dfareporting3d3/src/api/schemas.rs +++ b/gen/dfareporting3d3/src/api/schemas.rs @@ -21,14 +21,14 @@ pub struct Account { /// Profile for this account. This is a read-only field that can be left blank. #[serde(rename="accountProfile")] - pub account_profile: Option, + pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Maximum number of active ads allowed for this account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. #[serde(rename="activeViewOptOut")] @@ -122,7 +122,7 @@ pub struct AccountActiveAdSummary { /// Maximum number of active ads allowed for the account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Ads that can be activated for the account. #[serde(rename="availableAds")] @@ -151,7 +151,7 @@ pub struct AccountPermission { /// Account profiles associated with this account permission. Possible values are: - "ACCOUNT_PROFILE_BASIC" - "ACCOUNT_PROFILE_STANDARD" #[serde(rename="accountProfiles")] - pub account_profiles: Option>, + pub account_profiles: Option>, /// ID of this account permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -161,7 +161,7 @@ pub struct AccountPermission { pub kind: Option, /// Administrative level required to enable this account permission. - pub level: Option, + pub level: Option, /// Name of this account permission. pub name: Option, @@ -312,11 +312,11 @@ pub struct AccountUserProfile { /// Trafficker type of this user profile. This is a read-only field. #[serde(rename="traffickerType")] - pub trafficker_type: Option, + pub trafficker_type: Option, /// User type of the user profile. This is a read-only field that can be left blank. #[serde(rename="userAccessType")] - pub user_access_type: Option, + pub user_access_type: Option, /// Filter that describes which user roles are visible to the user profile. #[serde(rename="userRoleFilter")] @@ -470,7 +470,7 @@ pub struct Ad { pub comments: Option, /// Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Information about the creation of this ad. This is a read-only field. #[serde(rename="createInfo")] @@ -577,7 +577,7 @@ pub struct Ad { /// Type of ad. This is a required field on insertion. Note that default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Ad {} @@ -625,7 +625,7 @@ pub struct AdSlot { pub comment: Option, /// Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Height of this ad slot. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -641,7 +641,7 @@ pub struct AdSlot { /// Payment source type of this ad slot. #[serde(rename="paymentSourceType")] - pub payment_source_type: Option, + pub payment_source_type: Option, /// Primary ad slot of a roadblock inventory item. pub primary: Option, @@ -748,7 +748,7 @@ pub struct Advertiser { pub original_floodlight_configuration_id: Option, /// Status of this advertiser. - pub status: Option, + pub status: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -1746,7 +1746,7 @@ impl client::Resource for Conversion {} pub struct ConversionError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". pub kind: Option, @@ -1990,15 +1990,15 @@ pub struct Creative { /// Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types. #[serde(rename="authoringSource")] - pub authoring_source: Option, + pub authoring_source: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. #[serde(rename="authoringTool")] - pub authoring_tool: Option, + pub authoring_tool: Option, /// Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. #[serde(rename="autoAdvanceImages")] @@ -2014,7 +2014,7 @@ pub struct Creative { /// List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageFeatures")] - pub backup_image_features: Option>, + pub backup_image_features: Option>, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageReportingLabel")] @@ -2038,7 +2038,7 @@ pub struct Creative { pub companion_creatives: Option>, /// Compatibilities associated with this creative. This is a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing creatives may have these compatibilities since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in in-stream audio ads developed with the VAST standard. Applicable to all creative types. Acceptable values are: - "APP" - "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - "DISPLAY" - "DISPLAY_INTERSTITIAL" - pub compatibility: Option>, + pub compatibility: Option>, /// Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="convertFlashToHtml5")] @@ -2205,7 +2205,7 @@ pub struct Creative { /// Type of this creative. This is a required field. Applicable to all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. #[serde(rename="universalAdId")] @@ -2244,11 +2244,11 @@ pub struct CreativeAsset { pub additional_sizes: Option>, /// Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL . - pub alignment: Option, + pub alignment: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. #[serde(rename="assetIdentifier")] @@ -2272,7 +2272,7 @@ pub struct CreativeAsset { /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. #[serde(rename="childAssetType")] - pub child_asset_type: Option, + pub child_asset_type: Option, /// Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. #[serde(rename="collapsedSize")] @@ -2289,18 +2289,18 @@ pub struct CreativeAsset { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="displayType")] - pub display_type: Option, + pub display_type: Option, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. pub duration: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="durationType")] - pub duration_type: Option, + pub duration_type: Option, /// Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="expandedDimension")] @@ -2351,7 +2351,7 @@ pub struct CreativeAsset { pub offset: Option, /// Orientation of video asset. This is a read-only, auto-generated field. - pub orientation: Option, + pub orientation: Option, /// Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="originalBackup")] @@ -2366,11 +2366,11 @@ pub struct CreativeAsset { /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionLeftUnit")] - pub position_left_unit: Option, + pub position_left_unit: Option, /// Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionTopUnit")] - pub position_top_unit: Option, + pub position_top_unit: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="progressiveServingUrl")] @@ -2384,7 +2384,7 @@ pub struct CreativeAsset { pub pushdown_duration: Option, /// Role of the asset in relation to creative. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets from sources other than Campaign Manager, such as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. - pub role: Option, + pub role: Option, /// Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. pub size: Option, @@ -2395,7 +2395,7 @@ pub struct CreativeAsset { /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="startTimeType")] - pub start_time_type: Option, + pub start_time_type: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="streamingServingUrl")] @@ -2410,7 +2410,7 @@ pub struct CreativeAsset { /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. #[serde(rename="windowMode")] - pub window_mode: Option, + pub window_mode: Option, /// zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive. #[serde(rename="zIndex")] @@ -2441,7 +2441,7 @@ pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreativeAssetId {} @@ -2469,7 +2469,7 @@ pub struct CreativeAssetMetadata { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Numeric ID of the asset. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -2484,7 +2484,7 @@ pub struct CreativeAssetMetadata { /// Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - "ZIP_INVALID" #[serde(rename="warnedValidationRules")] - pub warned_validation_rules: Option>, + pub warned_validation_rules: Option>, } impl client::RequestValue for CreativeAssetMetadata {} @@ -2617,7 +2617,7 @@ pub struct CreativeCustomEvent { /// Type of the event. This is a read-only field. #[serde(rename="advertiserCustomEventType")] - pub advertiser_custom_event_type: Option, + pub advertiser_custom_event_type: Option, /// Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion. #[serde(rename="artworkLabel")] @@ -2625,7 +2625,7 @@ pub struct CreativeCustomEvent { /// Artwork type used by the creative.This is a read-only field. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Exit click-through URL for the event. This field is used only for exit events. #[serde(rename="exitClickThroughUrl")] @@ -2641,7 +2641,7 @@ pub struct CreativeCustomEvent { /// Target type used by the event. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, /// Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field. #[serde(rename="videoReportingId")] @@ -2882,7 +2882,7 @@ pub struct CreativeGroupAssignment { /// Creative group number of the creative group assignment. #[serde(rename="creativeGroupNumber")] - pub creative_group_number: Option, + pub creative_group_number: Option, } impl client::Part for CreativeGroupAssignment {} @@ -2936,7 +2936,7 @@ pub struct CreativeOptimizationConfiguration { /// Optimization model for this configuration. #[serde(rename="optimizationModel")] - pub optimization_model: Option, + pub optimization_model: Option, } impl client::Part for CreativeOptimizationConfiguration {} @@ -2961,11 +2961,11 @@ pub struct CreativeRotation { /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. #[serde(rename="weightCalculationStrategy")] - pub weight_calculation_strategy: Option, + pub weight_calculation_strategy: Option, } impl client::Part for CreativeRotation {} @@ -3039,7 +3039,7 @@ pub struct CustomFloodlightVariable { /// The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the custom floodlight variable. The length of string must not exceed 100 characters. pub value: Option, @@ -3133,7 +3133,7 @@ pub struct DateRange { /// The date range relative to the date of when the report is run. #[serde(rename="relativeDateRange")] - pub relative_date_range: Option, + pub relative_date_range: Option, /// no description provided #[serde(rename="startDate")] @@ -3153,7 +3153,7 @@ pub struct DayPartTargeting { /// Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. #[serde(rename="hoursOfDay")] @@ -3242,7 +3242,7 @@ pub struct DeliverySchedule { pub impression_ratio: Option, /// Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. - pub priority: Option, + pub priority: Option, } impl client::Part for DeliverySchedule {} @@ -3347,7 +3347,7 @@ pub struct DimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The value of the dimension. pub value: Option, @@ -3446,11 +3446,11 @@ pub struct DirectorySite { /// Tag types for regular placements. Acceptable values are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" #[serde(rename="inpageTagFormats")] - pub inpage_tag_formats: Option>, + pub inpage_tag_formats: Option>, /// Tag types for interstitial placements. Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" #[serde(rename="interstitialTagFormats")] - pub interstitial_tag_formats: Option>, + pub interstitial_tag_formats: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: Option, @@ -3552,7 +3552,7 @@ pub struct DynamicTargetingKey { /// Type of the object of this dynamic targeting key. This is a required field. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, } impl client::RequestValue for DynamicTargetingKey {} @@ -3598,11 +3598,11 @@ pub struct EncryptionInfo { /// The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer. #[serde(rename="encryptionEntityType")] - pub encryption_entity_type: Option, + pub encryption_entity_type: Option, /// Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. #[serde(rename="encryptionSource")] - pub encryption_source: Option, + pub encryption_source: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". pub kind: Option, @@ -3671,7 +3671,7 @@ pub struct EventTag { /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. #[serde(rename="siteFilterType")] - pub site_filter_type: Option, + pub site_filter_type: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a allowlist or blocklist filter. #[serde(rename="siteIds")] @@ -3683,7 +3683,7 @@ pub struct EventTag { pub ssl_compliant: Option, /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. - pub status: Option, + pub status: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -3692,7 +3692,7 @@ pub struct EventTag { /// Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. pub url: Option, @@ -3776,7 +3776,7 @@ pub struct File { pub file_name: Option, /// The output format of the report. Only available once the file is available. - pub format: Option, + pub format: Option, /// The unique ID of this report file. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -3796,7 +3796,7 @@ pub struct File { pub report_id: Option, /// The status of the report file. - pub status: Option, + pub status: Option, /// The URLs where the completed report file can be downloaded. pub urls: Option, @@ -3950,11 +3950,11 @@ pub struct FloodlightActivity { /// Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. #[serde(rename="cacheBustingType")] - pub cache_busting_type: Option, + pub cache_busting_type: Option, /// Counting method for conversions for this floodlight activity. This is a required field. #[serde(rename="countingMethod")] - pub counting_method: Option, + pub counting_method: Option, /// Dynamic floodlight tags. #[serde(rename="defaultTags")] @@ -3979,7 +3979,7 @@ pub struct FloodlightActivity { /// Type of the associated floodlight activity group. This is a read-only field. #[serde(rename="floodlightActivityGroupType")] - pub floodlight_activity_group_type: Option, + pub floodlight_activity_group_type: Option, /// Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration. #[serde(rename="floodlightConfigurationId")] @@ -3992,7 +3992,7 @@ pub struct FloodlightActivity { /// The type of Floodlight tag this activity will generate. This is a required field. #[serde(rename="floodlightTagType")] - pub floodlight_tag_type: Option, + pub floodlight_tag_type: Option, /// Whether this activity is archived. pub hidden: Option, @@ -4036,7 +4036,7 @@ pub struct FloodlightActivity { /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. #[serde(rename="tagFormat")] - pub tag_format: Option, + pub tag_format: Option, /// Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion. #[serde(rename="tagString")] @@ -4044,7 +4044,7 @@ pub struct FloodlightActivity { /// List of the user-defined variables used by this conversion tag. These map to the "u[1-100]=" in the tags. Each of these can have a user defined type. Acceptable values are U1 to U100, inclusive. #[serde(rename="userDefinedVariableTypes")] - pub user_defined_variable_types: Option>, + pub user_defined_variable_types: Option>, } impl client::RequestValue for FloodlightActivity {} @@ -4137,7 +4137,7 @@ pub struct FloodlightActivityGroup { /// Type of the floodlight activity group. This is a required field that is read-only after insertion. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for FloodlightActivityGroup {} @@ -4253,7 +4253,7 @@ pub struct FloodlightConfiguration { /// Day that will be counted as the first day of the week in reports. This is a required field. #[serde(rename="firstDayOfWeek")] - pub first_day_of_week: Option, + pub first_day_of_week: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4276,7 +4276,7 @@ pub struct FloodlightConfiguration { /// Types of attribution options for natural search conversions. #[serde(rename="naturalSearchConversionAttributionOption")] - pub natural_search_conversion_attribution_option: Option, + pub natural_search_conversion_attribution_option: Option, /// Settings for Campaign Manager Omniture integration. #[serde(rename="omnitureSettings")] @@ -4386,7 +4386,7 @@ pub struct FsCommand { /// Position in the browser where the window will open. #[serde(rename="positionOption")] - pub position_option: Option, + pub position_option: Option, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: Option, @@ -4535,7 +4535,7 @@ pub struct InventoryItem { /// Type of inventory item. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for InventoryItem {} @@ -4767,7 +4767,7 @@ pub struct ListPopulationTerm { pub negation: Option, /// Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - pub operator: Option, + pub operator: Option, /// ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. #[serde(rename="remarketingListId")] @@ -4776,7 +4776,7 @@ pub struct ListPopulationTerm { /// List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. pub value: Option, @@ -4927,7 +4927,7 @@ impl client::ResponseResult for MetrosListResponse {} pub struct MobileApp { /// Mobile app directory. - pub directory: Option, + pub directory: Option, /// ID of this mobile app. pub id: Option, @@ -5051,7 +5051,7 @@ pub struct ObjectFilter { pub object_ids: Option>, /// Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. - pub status: Option, + pub status: Option, } impl client::Part for ObjectFilter {} @@ -5362,7 +5362,7 @@ pub struct OrderContact { /// Type of this contact. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// ID of the user profile containing the signature that will be embedded into order documents. #[serde(rename="signatureUserProfileId")] @@ -5455,7 +5455,7 @@ pub struct OrderDocument { /// Type of this order document #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for OrderDocument {} @@ -5600,7 +5600,7 @@ pub struct Placement { pub comment: Option, /// Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. - pub compatibility: Option, + pub compatibility: Option, /// ID of the content category assigned to this placement. #[serde(rename="contentCategoryId")] @@ -5656,7 +5656,7 @@ pub struct Placement { /// Payment source for this placement. This is a required field that is read-only after insertion. #[serde(rename="paymentSource")] - pub payment_source: Option, + pub payment_source: Option, /// ID of this placement's group, if applicable. #[serde(rename="placementGroupId")] @@ -5700,7 +5700,7 @@ pub struct Placement { pub ssl_required: Option, /// Third-party placement status. - pub status: Option, + pub status: Option, /// Subaccount ID of this placement. This field can be left blank. #[serde(rename="subaccountId")] @@ -5709,7 +5709,7 @@ pub struct Placement { /// Tag formats to generate for this placement. This field is required on insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_IFRAME_ILAYER" - "PLACEMENT_TAG_INTERNAL_REDIRECT" - "PLACEMENT_TAG_JAVASCRIPT" - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - "PLACEMENT_TAG_CLICK_COMMANDS" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" - "PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" #[serde(rename="tagFormats")] - pub tag_formats: Option>, + pub tag_formats: Option>, /// Tag settings for this placement. #[serde(rename="tagSetting")] @@ -5725,7 +5725,7 @@ pub struct Placement { /// VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement. *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoice")] - pub vpaid_adapter_choice: Option, + pub vpaid_adapter_choice: Option, } impl client::RequestValue for Placement {} @@ -5853,7 +5853,7 @@ pub struct PlacementGroup { /// Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. #[serde(rename="placementGroupType")] - pub placement_group_type: Option, + pub placement_group_type: Option, /// ID of the placement strategy assigned to this placement group. #[serde(rename="placementStrategyId")] @@ -6119,7 +6119,7 @@ pub struct PopupWindowProperties { /// Popup window position either centered or at specific coordinate. #[serde(rename="positionType")] - pub position_type: Option, + pub position_type: Option, /// Whether to display the browser address bar. #[serde(rename="showAddressBar")] @@ -6217,7 +6217,7 @@ pub struct Pricing { /// Cap cost type of this inventory item. #[serde(rename="capCostType")] - pub cap_cost_type: Option, + pub cap_cost_type: Option, /// no description provided #[serde(rename="endDate")] @@ -6228,11 +6228,11 @@ pub struct Pricing { /// Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Pricing type of this inventory item. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// no description provided #[serde(rename="startDate")] @@ -6252,7 +6252,7 @@ pub struct PricingSchedule { /// Placement cap cost option. #[serde(rename="capCostOption")] - pub cap_cost_option: Option, + pub cap_cost_option: Option, /// Whether cap costs are ignored by ad serving. #[serde(rename="disregardOverdelivery")] @@ -6276,7 +6276,7 @@ pub struct PricingSchedule { /// Placement pricing type. This field is required on insertion. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// no description provided #[serde(rename="startDate")] @@ -6348,11 +6348,11 @@ pub struct Project { /// Audience age group of this project. #[serde(rename="audienceAgeGroup")] - pub audience_age_group: Option, + pub audience_age_group: Option, /// Audience gender of this project. #[serde(rename="audienceGender")] - pub audience_gender: Option, + pub audience_gender: Option, /// Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6505,7 +6505,7 @@ pub struct Recipient { /// The delivery type for the recipient. #[serde(rename="deliveryType")] - pub delivery_type: Option, + pub delivery_type: Option, /// The email address of the recipient. pub email: Option, @@ -6638,7 +6638,7 @@ pub struct RemarketingList { /// Product from which this remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the remarketing list. This is a required field. Must be no greater than 128 characters long. pub name: Option, @@ -6767,7 +6767,7 @@ pub struct Report { pub floodlight_criteria: Option, /// The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format. - pub format: Option, + pub format: Option, /// The unique ID identifying this report resource. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6807,7 +6807,7 @@ pub struct Report { /// The type of the report. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Report {} @@ -7061,7 +7061,7 @@ pub struct SiteContact { /// Site contact type. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// Email address of this site contact. This is a required field. pub email: Option, @@ -7118,7 +7118,7 @@ pub struct SiteSettings { /// Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoiceTemplate")] - pub vpaid_adapter_choice_template: Option, + pub vpaid_adapter_choice_template: Option, } impl client::Part for SiteSettings {} @@ -7185,7 +7185,7 @@ pub struct SiteVideoSettings { pub kind: Option, /// Orientation of a site template used for video. This will act as default for new placements created under this site. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site. #[serde(rename="skippableSettings")] @@ -7325,7 +7325,7 @@ pub struct SortedDimension { /// An optional sort order for the dimension column. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortedDimension {} @@ -7422,7 +7422,7 @@ pub struct TagData { pub creative_id: Option, /// TagData tag format of this tag. - pub format: Option, + pub format: Option, /// Tag string for serving an ad. #[serde(rename="impressionTag")] @@ -7454,7 +7454,7 @@ pub struct TagSetting { /// Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders. #[serde(rename="keywordOption")] - pub keyword_option: Option, + pub keyword_option: Option, } impl client::Part for TagSetting {} @@ -7494,7 +7494,7 @@ pub struct TargetWindow { /// Type of browser window for which the backup image of the flash creative can be displayed. #[serde(rename="targetWindowOption")] - pub target_window_option: Option, + pub target_window_option: Option, } impl client::Part for TargetWindow {} @@ -7552,7 +7552,7 @@ pub struct TargetableRemarketingList { /// Product from which this targetable remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the targetable remarketing list. Is no greater than 128 characters long. pub name: Option, @@ -7759,7 +7759,7 @@ pub struct ThirdPartyTrackingUrl { /// Third-party URL type for in-stream video and in-stream audio creatives. #[serde(rename="thirdPartyUrlType")] - pub third_party_url_type: Option, + pub third_party_url_type: Option, /// URL for the specified third-party URL type. pub url: Option, @@ -7796,7 +7796,7 @@ impl client::Part for TranscodeSetting {} pub struct UniversalAdId { /// Registry used for the Ad ID value. - pub registry: Option, + pub registry: Option, /// ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. pub value: Option, @@ -7815,7 +7815,7 @@ pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". #[serde(rename="reportName")] @@ -7823,7 +7823,7 @@ pub struct UserDefinedVariableConfiguration { /// Variable name in the tag. This is a required field. #[serde(rename="variableType")] - pub variable_type: Option, + pub variable_type: Option, } impl client::Part for UserDefinedVariableConfiguration {} @@ -7974,7 +7974,7 @@ impl client::ResponseResult for UserRole {} pub struct UserRolePermission { /// Levels of availability for a user role permission. - pub availability: Option, + pub availability: Option, /// ID of this user role permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -8112,7 +8112,7 @@ pub struct VideoFormat { /// File type of the video format. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// ID of the video format. pub id: Option, @@ -8191,7 +8191,7 @@ pub struct VideoSettings { pub kind: Option, /// Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. #[serde(rename="skippableSettings")] @@ -8277,7 +8277,7 @@ pub struct ReportCrossDimensionReachCriteria { pub date_range: Option, /// The dimension option. - pub dimension: Option, + pub dimension: Option, /// The list of filters on which dimensions are filtered. #[serde(rename="dimensionFilters")] @@ -8313,7 +8313,7 @@ pub struct ReportDelivery { /// The type of delivery for the owner to receive, if enabled. #[serde(rename="emailOwnerDeliveryType")] - pub email_owner_delivery_type: Option, + pub email_owner_delivery_type: Option, /// The message to be sent with each email. pub message: Option, @@ -8555,11 +8555,11 @@ pub struct ReportSchedule { /// List of week days "WEEKLY" on which scheduled reports should run. #[serde(rename="repeatsOnWeekDays")] - pub repeats_on_week_days: Option>, + pub repeats_on_week_days: Option>, /// Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month. #[serde(rename="runsOnDayOfMonth")] - pub runs_on_day_of_month: Option, + pub runs_on_day_of_month: Option, /// no description provided #[serde(rename="startDate")] diff --git a/gen/dfareporting3d3/src/lib.rs b/gen/dfareporting3d3/src/lib.rs index 1382fe0291..d725714439 100644 --- a/gen/dfareporting3d3/src/lib.rs +++ b/gen/dfareporting3d3/src/lib.rs @@ -231,11 +231,11 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.reports().files_list(-8, -80) -//! .sort_order("amet.") -//! .sort_field("takimata") -//! .page_token("amet.") -//! .max_results(-20) +//! let result = hub.reports().files_list(-28, -27) +//! .sort_order(&Default::default()) +//! .sort_field(&Default::default()) +//! .page_token("sanctus") +//! .max_results(-80) //! .doit().await; //! //! match result { diff --git a/gen/dfareporting3d4/README.md b/gen/dfareporting3d4/README.md index d50015dcda..17ae86e15e 100644 --- a/gen/dfareporting3d4/README.md +++ b/gen/dfareporting3d4/README.md @@ -233,10 +233,10 @@ let mut hub = Dfareporting::new(hyper::Client::builder().build(hyper_rustls::Htt // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.reports().files_list(-22, -33) - .sort_order("no") - .sort_field("ipsum") - .page_token("voluptua.") - .max_results(-27) + .sort_order(&Default::default()) + .sort_field(&Default::default()) + .page_token("no") + .max_results(-55) .doit().await; match result { diff --git a/gen/dfareporting3d4/src/api/hub.rs b/gen/dfareporting3d4/src/api/hub.rs index 001fe86a94..a738b90e4a 100644 --- a/gen/dfareporting3d4/src/api/hub.rs +++ b/gen/dfareporting3d4/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.reports().files_list(-55, -62) -/// .sort_order("Lorem") -/// .sort_field("gubergren") -/// .page_token("eos") -/// .max_results(-4) +/// let result = hub.reports().files_list(-2, -59) +/// .sort_order(&Default::default()) +/// .sort_field(&Default::default()) +/// .page_token("amet.") +/// .max_results(-20) /// .doit().await; /// /// match result { diff --git a/gen/dfareporting3d4/src/api/method_builders.rs b/gen/dfareporting3d4/src/api/method_builders.rs index c7218530a5..77d5e6aa47 100644 --- a/gen/dfareporting3d4/src/api/method_builders.rs +++ b/gen/dfareporting3d4/src/api/method_builders.rs @@ -2900,13 +2900,13 @@ impl<'a, S> DynamicTargetingKeyMethods<'a, S> { /// * `objectId` - ID of the object of this dynamic targeting key. This is a required field. /// * `name` - Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. /// * `objectType` - Type of the object of this dynamic targeting key. This is a required field. - pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &str) -> DynamicTargetingKeyDeleteCall<'a, S> { + pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &DynamicTargetingKeyObjectTypeEnum) -> DynamicTargetingKeyDeleteCall<'a, S> { DynamicTargetingKeyDeleteCall { hub: self.hub, _profile_id: profile_id, _object_id: object_id, _name: name.to_string(), - _object_type: object_type.to_string(), + _object_type: object_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/dfareporting3d4/src/api/mod.rs b/gen/dfareporting3d4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dfareporting3d4/src/api/mod.rs +++ b/gen/dfareporting3d4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dfareporting3d4/src/api/schemas.rs b/gen/dfareporting3d4/src/api/schemas.rs index 62574b558d..273681fba7 100644 --- a/gen/dfareporting3d4/src/api/schemas.rs +++ b/gen/dfareporting3d4/src/api/schemas.rs @@ -21,14 +21,14 @@ pub struct Account { /// Profile for this account. This is a read-only field that can be left blank. #[serde(rename="accountProfile")] - pub account_profile: Option, + pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Maximum number of active ads allowed for this account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. #[serde(rename="activeViewOptOut")] @@ -122,7 +122,7 @@ pub struct AccountActiveAdSummary { /// Maximum number of active ads allowed for the account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Ads that can be activated for the account. #[serde(rename="availableAds")] @@ -151,7 +151,7 @@ pub struct AccountPermission { /// Account profiles associated with this account permission. Possible values are: - "ACCOUNT_PROFILE_BASIC" - "ACCOUNT_PROFILE_STANDARD" #[serde(rename="accountProfiles")] - pub account_profiles: Option>, + pub account_profiles: Option>, /// ID of this account permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -161,7 +161,7 @@ pub struct AccountPermission { pub kind: Option, /// Administrative level required to enable this account permission. - pub level: Option, + pub level: Option, /// Name of this account permission. pub name: Option, @@ -312,11 +312,11 @@ pub struct AccountUserProfile { /// Trafficker type of this user profile. This is a read-only field. #[serde(rename="traffickerType")] - pub trafficker_type: Option, + pub trafficker_type: Option, /// User type of the user profile. This is a read-only field that can be left blank. #[serde(rename="userAccessType")] - pub user_access_type: Option, + pub user_access_type: Option, /// Filter that describes which user roles are visible to the user profile. #[serde(rename="userRoleFilter")] @@ -470,7 +470,7 @@ pub struct Ad { pub comments: Option, /// Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Information about the creation of this ad. This is a read-only field. #[serde(rename="createInfo")] @@ -577,7 +577,7 @@ pub struct Ad { /// Type of ad. This is a required field on insertion. Note that default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Ad {} @@ -625,7 +625,7 @@ pub struct AdSlot { pub comment: Option, /// Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Height of this ad slot. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -641,7 +641,7 @@ pub struct AdSlot { /// Payment source type of this ad slot. #[serde(rename="paymentSourceType")] - pub payment_source_type: Option, + pub payment_source_type: Option, /// Primary ad slot of a roadblock inventory item. pub primary: Option, @@ -748,7 +748,7 @@ pub struct Advertiser { pub original_floodlight_configuration_id: Option, /// Status of this advertiser. - pub status: Option, + pub status: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -1844,7 +1844,7 @@ impl client::Resource for Conversion {} pub struct ConversionError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". pub kind: Option, @@ -2088,15 +2088,15 @@ pub struct Creative { /// Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types. #[serde(rename="authoringSource")] - pub authoring_source: Option, + pub authoring_source: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. #[serde(rename="authoringTool")] - pub authoring_tool: Option, + pub authoring_tool: Option, /// Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. #[serde(rename="autoAdvanceImages")] @@ -2112,7 +2112,7 @@ pub struct Creative { /// List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageFeatures")] - pub backup_image_features: Option>, + pub backup_image_features: Option>, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageReportingLabel")] @@ -2136,7 +2136,7 @@ pub struct Creative { pub companion_creatives: Option>, /// Compatibilities associated with this creative. This is a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing creatives may have these compatibilities since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in in-stream audio ads developed with the VAST standard. Applicable to all creative types. Acceptable values are: - "APP" - "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - "DISPLAY" - "DISPLAY_INTERSTITIAL" - pub compatibility: Option>, + pub compatibility: Option>, /// Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="convertFlashToHtml5")] @@ -2307,7 +2307,7 @@ pub struct Creative { /// Type of this creative. This is a required field. Applicable to all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. #[serde(rename="universalAdId")] @@ -2346,11 +2346,11 @@ pub struct CreativeAsset { pub additional_sizes: Option>, /// Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL . - pub alignment: Option, + pub alignment: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. #[serde(rename="assetIdentifier")] @@ -2374,7 +2374,7 @@ pub struct CreativeAsset { /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. #[serde(rename="childAssetType")] - pub child_asset_type: Option, + pub child_asset_type: Option, /// Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. #[serde(rename="collapsedSize")] @@ -2391,18 +2391,18 @@ pub struct CreativeAsset { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="displayType")] - pub display_type: Option, + pub display_type: Option, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. pub duration: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="durationType")] - pub duration_type: Option, + pub duration_type: Option, /// Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="expandedDimension")] @@ -2453,7 +2453,7 @@ pub struct CreativeAsset { pub offset: Option, /// Orientation of video asset. This is a read-only, auto-generated field. - pub orientation: Option, + pub orientation: Option, /// Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="originalBackup")] @@ -2468,11 +2468,11 @@ pub struct CreativeAsset { /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionLeftUnit")] - pub position_left_unit: Option, + pub position_left_unit: Option, /// Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionTopUnit")] - pub position_top_unit: Option, + pub position_top_unit: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="progressiveServingUrl")] @@ -2486,7 +2486,7 @@ pub struct CreativeAsset { pub pushdown_duration: Option, /// Role of the asset in relation to creative. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets from sources other than Campaign Manager, such as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. - pub role: Option, + pub role: Option, /// Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. pub size: Option, @@ -2497,7 +2497,7 @@ pub struct CreativeAsset { /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="startTimeType")] - pub start_time_type: Option, + pub start_time_type: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="streamingServingUrl")] @@ -2512,7 +2512,7 @@ pub struct CreativeAsset { /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. #[serde(rename="windowMode")] - pub window_mode: Option, + pub window_mode: Option, /// zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive. #[serde(rename="zIndex")] @@ -2543,7 +2543,7 @@ pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreativeAssetId {} @@ -2575,7 +2575,7 @@ pub struct CreativeAssetMetadata { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// List of exit events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset. #[serde(rename="exitCustomEvents")] @@ -2602,7 +2602,7 @@ pub struct CreativeAssetMetadata { /// Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - "ZIP_INVALID" #[serde(rename="warnedValidationRules")] - pub warned_validation_rules: Option>, + pub warned_validation_rules: Option>, } impl client::RequestValue for CreativeAssetMetadata {} @@ -2735,7 +2735,7 @@ pub struct CreativeCustomEvent { /// Type of the event. This is a read-only field. #[serde(rename="advertiserCustomEventType")] - pub advertiser_custom_event_type: Option, + pub advertiser_custom_event_type: Option, /// Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion. #[serde(rename="artworkLabel")] @@ -2743,7 +2743,7 @@ pub struct CreativeCustomEvent { /// Artwork type used by the creative.This is a read-only field. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Exit click-through URL for the event. This field is used only for exit events. #[serde(rename="exitClickThroughUrl")] @@ -2759,7 +2759,7 @@ pub struct CreativeCustomEvent { /// Target type used by the event. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, /// Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field. #[serde(rename="videoReportingId")] @@ -3000,7 +3000,7 @@ pub struct CreativeGroupAssignment { /// Creative group number of the creative group assignment. #[serde(rename="creativeGroupNumber")] - pub creative_group_number: Option, + pub creative_group_number: Option, } impl client::Part for CreativeGroupAssignment {} @@ -3054,7 +3054,7 @@ pub struct CreativeOptimizationConfiguration { /// Optimization model for this configuration. #[serde(rename="optimizationModel")] - pub optimization_model: Option, + pub optimization_model: Option, } impl client::Part for CreativeOptimizationConfiguration {} @@ -3079,11 +3079,11 @@ pub struct CreativeRotation { /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. #[serde(rename="weightCalculationStrategy")] - pub weight_calculation_strategy: Option, + pub weight_calculation_strategy: Option, } impl client::Part for CreativeRotation {} @@ -3170,7 +3170,7 @@ pub struct CustomEvent { /// The type of event. If INSERT, the fields in insertEvent need to be populated. If ANNOTATE, the fields in either annotateClickEvent or annotateImpressionEvent need to be populated. #[serde(rename="eventType")] - pub event_type: Option, + pub event_type: Option, /// Floodlight configuration ID of the advertiser the event is linked to. This is a required field. #[serde(rename="floodlightConfigurationId")] @@ -3223,7 +3223,7 @@ impl client::Part for CustomEventClickAnnotation {} pub struct CustomEventError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEventError". pub kind: Option, @@ -3272,7 +3272,7 @@ pub struct CustomEventInsert { /// The type of event to insert. #[serde(rename="insertEventType")] - pub insert_event_type: Option, + pub insert_event_type: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEventInsert". pub kind: Option, @@ -3373,7 +3373,7 @@ pub struct CustomFloodlightVariable { /// The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the custom floodlight variable. The length of string must not exceed 100 characters. pub value: Option, @@ -3529,7 +3529,7 @@ pub struct DateRange { /// The date range relative to the date of when the report is run. #[serde(rename="relativeDateRange")] - pub relative_date_range: Option, + pub relative_date_range: Option, /// no description provided #[serde(rename="startDate")] @@ -3549,7 +3549,7 @@ pub struct DayPartTargeting { /// Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. #[serde(rename="hoursOfDay")] @@ -3638,7 +3638,7 @@ pub struct DeliverySchedule { pub impression_ratio: Option, /// Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. - pub priority: Option, + pub priority: Option, } impl client::Part for DeliverySchedule {} @@ -3743,7 +3743,7 @@ pub struct DimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The value of the dimension. pub value: Option, @@ -3839,11 +3839,11 @@ pub struct DirectorySite { /// Tag types for regular placements. Acceptable values are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" #[serde(rename="inpageTagFormats")] - pub inpage_tag_formats: Option>, + pub inpage_tag_formats: Option>, /// Tag types for interstitial placements. Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" #[serde(rename="interstitialTagFormats")] - pub interstitial_tag_formats: Option>, + pub interstitial_tag_formats: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: Option, @@ -3964,7 +3964,7 @@ pub struct DynamicTargetingKey { /// Type of the object of this dynamic targeting key. This is a required field. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, } impl client::RequestValue for DynamicTargetingKey {} @@ -4010,11 +4010,11 @@ pub struct EncryptionInfo { /// The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer. #[serde(rename="encryptionEntityType")] - pub encryption_entity_type: Option, + pub encryption_entity_type: Option, /// Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. #[serde(rename="encryptionSource")] - pub encryption_source: Option, + pub encryption_source: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". pub kind: Option, @@ -4102,7 +4102,7 @@ pub struct EventTag { /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. #[serde(rename="siteFilterType")] - pub site_filter_type: Option, + pub site_filter_type: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a allowlist or blocklist filter. #[serde(rename="siteIds")] @@ -4114,7 +4114,7 @@ pub struct EventTag { pub ssl_compliant: Option, /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. - pub status: Option, + pub status: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -4123,7 +4123,7 @@ pub struct EventTag { /// Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. pub url: Option, @@ -4207,7 +4207,7 @@ pub struct File { pub file_name: Option, /// The output format of the report. Only available once the file is available. - pub format: Option, + pub format: Option, /// The unique ID of this report file. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4227,7 +4227,7 @@ pub struct File { pub report_id: Option, /// The status of the report file. - pub status: Option, + pub status: Option, /// The URLs where the completed report file can be downloaded. pub urls: Option, @@ -4385,11 +4385,11 @@ pub struct FloodlightActivity { /// Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. #[serde(rename="cacheBustingType")] - pub cache_busting_type: Option, + pub cache_busting_type: Option, /// Counting method for conversions for this floodlight activity. This is a required field. #[serde(rename="countingMethod")] - pub counting_method: Option, + pub counting_method: Option, /// Dynamic floodlight tags. #[serde(rename="defaultTags")] @@ -4414,7 +4414,7 @@ pub struct FloodlightActivity { /// Type of the associated floodlight activity group. This is a read-only field. #[serde(rename="floodlightActivityGroupType")] - pub floodlight_activity_group_type: Option, + pub floodlight_activity_group_type: Option, /// Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration. #[serde(rename="floodlightConfigurationId")] @@ -4427,7 +4427,7 @@ pub struct FloodlightActivity { /// The type of Floodlight tag this activity will generate. This is a required field. #[serde(rename="floodlightTagType")] - pub floodlight_tag_type: Option, + pub floodlight_tag_type: Option, /// ID of this floodlight activity. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4462,7 +4462,7 @@ pub struct FloodlightActivity { pub ssl_required: Option, /// The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information. - pub status: Option, + pub status: Option, /// Subaccount ID of this floodlight activity. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -4471,7 +4471,7 @@ pub struct FloodlightActivity { /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. #[serde(rename="tagFormat")] - pub tag_format: Option, + pub tag_format: Option, /// Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion. #[serde(rename="tagString")] @@ -4479,7 +4479,7 @@ pub struct FloodlightActivity { /// List of the user-defined variables used by this conversion tag. These map to the "u[1-100]=" in the tags. Each of these can have a user defined type. Acceptable values are U1 to U100, inclusive. #[serde(rename="userDefinedVariableTypes")] - pub user_defined_variable_types: Option>, + pub user_defined_variable_types: Option>, } impl client::RequestValue for FloodlightActivity {} @@ -4572,7 +4572,7 @@ pub struct FloodlightActivityGroup { /// Type of the floodlight activity group. This is a required field that is read-only after insertion. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for FloodlightActivityGroup {} @@ -4688,7 +4688,7 @@ pub struct FloodlightConfiguration { /// Day that will be counted as the first day of the week in reports. This is a required field. #[serde(rename="firstDayOfWeek")] - pub first_day_of_week: Option, + pub first_day_of_week: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4711,7 +4711,7 @@ pub struct FloodlightConfiguration { /// Types of attribution options for natural search conversions. #[serde(rename="naturalSearchConversionAttributionOption")] - pub natural_search_conversion_attribution_option: Option, + pub natural_search_conversion_attribution_option: Option, /// Settings for Campaign Manager Omniture integration. #[serde(rename="omnitureSettings")] @@ -4821,7 +4821,7 @@ pub struct FsCommand { /// Position in the browser where the window will open. #[serde(rename="positionOption")] - pub position_option: Option, + pub position_option: Option, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: Option, @@ -4970,7 +4970,7 @@ pub struct InventoryItem { /// Type of inventory item. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for InventoryItem {} @@ -5202,7 +5202,7 @@ pub struct ListPopulationTerm { pub negation: Option, /// Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - pub operator: Option, + pub operator: Option, /// ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. #[serde(rename="remarketingListId")] @@ -5211,7 +5211,7 @@ pub struct ListPopulationTerm { /// List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. pub value: Option, @@ -5362,7 +5362,7 @@ impl client::ResponseResult for MetrosListResponse {} pub struct MobileApp { /// Mobile app directory. - pub directory: Option, + pub directory: Option, /// ID of this mobile app. pub id: Option, @@ -5528,7 +5528,7 @@ pub struct ObjectFilter { pub object_ids: Option>, /// Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. - pub status: Option, + pub status: Option, } impl client::Part for ObjectFilter {} @@ -5839,7 +5839,7 @@ pub struct OrderContact { /// Type of this contact. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// ID of the user profile containing the signature that will be embedded into order documents. #[serde(rename="signatureUserProfileId")] @@ -5932,7 +5932,7 @@ pub struct OrderDocument { /// Type of this order document #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for OrderDocument {} @@ -6009,7 +6009,7 @@ pub struct PathFilter { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="pathMatchPosition")] - pub path_match_position: Option, + pub path_match_position: Option, } impl client::Part for PathFilter {} @@ -6064,7 +6064,7 @@ pub struct PathReportDimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The possible values of the dimension. pub values: Option>, @@ -6158,7 +6158,7 @@ pub struct Placement { pub comment: Option, /// Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. - pub compatibility: Option, + pub compatibility: Option, /// ID of the content category assigned to this placement. #[serde(rename="contentCategoryId")] @@ -6214,7 +6214,7 @@ pub struct Placement { /// Payment source for this placement. This is a required field that is read-only after insertion. #[serde(rename="paymentSource")] - pub payment_source: Option, + pub payment_source: Option, /// ID of this placement's group, if applicable. #[serde(rename="placementGroupId")] @@ -6258,7 +6258,7 @@ pub struct Placement { pub ssl_required: Option, /// Third-party placement status. - pub status: Option, + pub status: Option, /// Subaccount ID of this placement. This field can be left blank. #[serde(rename="subaccountId")] @@ -6267,7 +6267,7 @@ pub struct Placement { /// Tag formats to generate for this placement. This field is required on insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_IFRAME_ILAYER" - "PLACEMENT_TAG_INTERNAL_REDIRECT" - "PLACEMENT_TAG_JAVASCRIPT" - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - "PLACEMENT_TAG_CLICK_COMMANDS" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" - "PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" #[serde(rename="tagFormats")] - pub tag_formats: Option>, + pub tag_formats: Option>, /// Tag settings for this placement. #[serde(rename="tagSetting")] @@ -6283,7 +6283,7 @@ pub struct Placement { /// VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement. *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoice")] - pub vpaid_adapter_choice: Option, + pub vpaid_adapter_choice: Option, } impl client::RequestValue for Placement {} @@ -6411,7 +6411,7 @@ pub struct PlacementGroup { /// Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. #[serde(rename="placementGroupType")] - pub placement_group_type: Option, + pub placement_group_type: Option, /// ID of the placement strategy assigned to this placement group. #[serde(rename="placementStrategyId")] @@ -6677,7 +6677,7 @@ pub struct PopupWindowProperties { /// Popup window position either centered or at specific coordinate. #[serde(rename="positionType")] - pub position_type: Option, + pub position_type: Option, /// Whether to display the browser address bar. #[serde(rename="showAddressBar")] @@ -6775,7 +6775,7 @@ pub struct Pricing { /// Cap cost type of this inventory item. #[serde(rename="capCostType")] - pub cap_cost_type: Option, + pub cap_cost_type: Option, /// no description provided #[serde(rename="endDate")] @@ -6786,11 +6786,11 @@ pub struct Pricing { /// Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Pricing type of this inventory item. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// no description provided #[serde(rename="startDate")] @@ -6810,7 +6810,7 @@ pub struct PricingSchedule { /// Placement cap cost option. #[serde(rename="capCostOption")] - pub cap_cost_option: Option, + pub cap_cost_option: Option, /// no description provided #[serde(rename="endDate")] @@ -6830,7 +6830,7 @@ pub struct PricingSchedule { /// Placement pricing type. This field is required on insertion. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// no description provided #[serde(rename="startDate")] @@ -6902,11 +6902,11 @@ pub struct Project { /// Audience age group of this project. #[serde(rename="audienceAgeGroup")] - pub audience_age_group: Option, + pub audience_age_group: Option, /// Audience gender of this project. #[serde(rename="audienceGender")] - pub audience_gender: Option, + pub audience_gender: Option, /// Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -7059,7 +7059,7 @@ pub struct Recipient { /// The delivery type for the recipient. #[serde(rename="deliveryType")] - pub delivery_type: Option, + pub delivery_type: Option, /// The email address of the recipient. pub email: Option, @@ -7192,7 +7192,7 @@ pub struct RemarketingList { /// Product from which this remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the remarketing list. This is a required field. Must be no greater than 128 characters long. pub name: Option, @@ -7321,7 +7321,7 @@ pub struct Report { pub floodlight_criteria: Option, /// The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format. - pub format: Option, + pub format: Option, /// The unique ID identifying this report resource. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -7369,7 +7369,7 @@ pub struct Report { /// The type of the report. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Report {} @@ -7623,7 +7623,7 @@ pub struct SiteContact { /// Site contact type. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// Email address of this site contact. This is a required field. pub email: Option, @@ -7680,7 +7680,7 @@ pub struct SiteSettings { /// Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoiceTemplate")] - pub vpaid_adapter_choice_template: Option, + pub vpaid_adapter_choice_template: Option, } impl client::Part for SiteSettings {} @@ -7755,7 +7755,7 @@ pub struct SiteVideoSettings { pub oba_settings: Option, /// Orientation of a site template used for video. This will act as default for new placements created under this site. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site. #[serde(rename="skippableSettings")] @@ -7895,7 +7895,7 @@ pub struct SortedDimension { /// An optional sort order for the dimension column. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortedDimension {} @@ -7992,7 +7992,7 @@ pub struct TagData { pub creative_id: Option, /// TagData tag format of this tag. - pub format: Option, + pub format: Option, /// Tag string for serving an ad. #[serde(rename="impressionTag")] @@ -8024,7 +8024,7 @@ pub struct TagSetting { /// Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders. #[serde(rename="keywordOption")] - pub keyword_option: Option, + pub keyword_option: Option, } impl client::Part for TagSetting {} @@ -8064,7 +8064,7 @@ pub struct TargetWindow { /// Type of browser window for which the backup image of the flash creative can be displayed. #[serde(rename="targetWindowOption")] - pub target_window_option: Option, + pub target_window_option: Option, } impl client::Part for TargetWindow {} @@ -8122,7 +8122,7 @@ pub struct TargetableRemarketingList { /// Product from which this targetable remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the targetable remarketing list. Is no greater than 128 characters long. pub name: Option, @@ -8329,7 +8329,7 @@ pub struct ThirdPartyTrackingUrl { /// Third-party URL type for in-stream video and in-stream audio creatives. #[serde(rename="thirdPartyUrlType")] - pub third_party_url_type: Option, + pub third_party_url_type: Option, /// URL for the specified third-party URL type. pub url: Option, @@ -8366,7 +8366,7 @@ impl client::Part for TranscodeSetting {} pub struct UniversalAdId { /// Registry used for the Ad ID value. - pub registry: Option, + pub registry: Option, /// ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. pub value: Option, @@ -8385,7 +8385,7 @@ pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". #[serde(rename="reportName")] @@ -8393,7 +8393,7 @@ pub struct UserDefinedVariableConfiguration { /// Variable name in the tag. This is a required field. #[serde(rename="variableType")] - pub variable_type: Option, + pub variable_type: Option, } impl client::Part for UserDefinedVariableConfiguration {} @@ -8544,7 +8544,7 @@ impl client::ResponseResult for UserRole {} pub struct UserRolePermission { /// Levels of availability for a user role permission. - pub availability: Option, + pub availability: Option, /// ID of this user role permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -8682,7 +8682,7 @@ pub struct VideoFormat { /// File type of the video format. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// ID of the video format. pub id: Option, @@ -8769,7 +8769,7 @@ pub struct VideoSettings { pub oba_settings: Option, /// Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. #[serde(rename="skippableSettings")] @@ -8855,7 +8855,7 @@ pub struct ReportCrossDimensionReachCriteria { pub date_range: Option, /// The dimension option. - pub dimension: Option, + pub dimension: Option, /// The list of filters on which dimensions are filtered. #[serde(rename="dimensionFilters")] @@ -8891,7 +8891,7 @@ pub struct ReportDelivery { /// The type of delivery for the owner to receive, if enabled. #[serde(rename="emailOwnerDeliveryType")] - pub email_owner_delivery_type: Option, + pub email_owner_delivery_type: Option, /// The message to be sent with each email. pub message: Option, @@ -9213,11 +9213,11 @@ pub struct ReportSchedule { /// List of week days "WEEKLY" on which scheduled reports should run. #[serde(rename="repeatsOnWeekDays")] - pub repeats_on_week_days: Option>, + pub repeats_on_week_days: Option>, /// Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month. #[serde(rename="runsOnDayOfMonth")] - pub runs_on_day_of_month: Option, + pub runs_on_day_of_month: Option, /// no description provided #[serde(rename="startDate")] diff --git a/gen/dfareporting3d4/src/lib.rs b/gen/dfareporting3d4/src/lib.rs index 942e07760d..5902d62bb4 100644 --- a/gen/dfareporting3d4/src/lib.rs +++ b/gen/dfareporting3d4/src/lib.rs @@ -233,11 +233,11 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.reports().files_list(-8, -80) -//! .sort_order("amet.") -//! .sort_field("takimata") -//! .page_token("amet.") -//! .max_results(-20) +//! let result = hub.reports().files_list(-28, -27) +//! .sort_order(&Default::default()) +//! .sort_field(&Default::default()) +//! .page_token("sanctus") +//! .max_results(-80) //! .doit().await; //! //! match result { diff --git a/gen/dfareporting3d5/src/api/hub.rs b/gen/dfareporting3d5/src/api/hub.rs index e83a006d44..daba1faa1f 100644 --- a/gen/dfareporting3d5/src/api/hub.rs +++ b/gen/dfareporting3d5/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.reports().files_list(-55, -62) -/// .sort_order("Lorem") -/// .sort_field("gubergren") -/// .page_token("eos") -/// .max_results(-4) +/// let result = hub.reports().files_list(-2, -59) +/// .sort_order(&Default::default()) +/// .sort_field(&Default::default()) +/// .page_token("amet.") +/// .max_results(-20) /// .doit().await; /// /// match result { diff --git a/gen/dfareporting3d5/src/api/method_builders.rs b/gen/dfareporting3d5/src/api/method_builders.rs index a9ec88eada..621cecc776 100644 --- a/gen/dfareporting3d5/src/api/method_builders.rs +++ b/gen/dfareporting3d5/src/api/method_builders.rs @@ -2840,13 +2840,13 @@ impl<'a, S> DynamicTargetingKeyMethods<'a, S> { /// * `objectId` - ID of the object of this dynamic targeting key. This is a required field. /// * `name` - Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. /// * `objectType` - Type of the object of this dynamic targeting key. This is a required field. - pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &str) -> DynamicTargetingKeyDeleteCall<'a, S> { + pub fn delete(&self, profile_id: i64, object_id: i64, name: &str, object_type: &DynamicTargetingKeyObjectTypeEnum) -> DynamicTargetingKeyDeleteCall<'a, S> { DynamicTargetingKeyDeleteCall { hub: self.hub, _profile_id: profile_id, _object_id: object_id, _name: name.to_string(), - _object_type: object_type.to_string(), + _object_type: object_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/dfareporting3d5/src/api/mod.rs b/gen/dfareporting3d5/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dfareporting3d5/src/api/mod.rs +++ b/gen/dfareporting3d5/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dfareporting3d5/src/api/schemas.rs b/gen/dfareporting3d5/src/api/schemas.rs index 5b40d568ab..2cb331fce5 100644 --- a/gen/dfareporting3d5/src/api/schemas.rs +++ b/gen/dfareporting3d5/src/api/schemas.rs @@ -21,14 +21,14 @@ pub struct Account { /// Profile for this account. This is a read-only field that can be left blank. #[serde(rename="accountProfile")] - pub account_profile: Option, + pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Maximum number of active ads allowed for this account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. #[serde(rename="activeViewOptOut")] @@ -122,7 +122,7 @@ pub struct AccountActiveAdSummary { /// Maximum number of active ads allowed for the account. #[serde(rename="activeAdsLimitTier")] - pub active_ads_limit_tier: Option, + pub active_ads_limit_tier: Option, /// Ads that can be activated for the account. #[serde(rename="availableAds")] @@ -151,7 +151,7 @@ pub struct AccountPermission { /// Account profiles associated with this account permission. Possible values are: - "ACCOUNT_PROFILE_BASIC" - "ACCOUNT_PROFILE_STANDARD" #[serde(rename="accountProfiles")] - pub account_profiles: Option>, + pub account_profiles: Option>, /// ID of this account permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -161,7 +161,7 @@ pub struct AccountPermission { pub kind: Option, /// Administrative level required to enable this account permission. - pub level: Option, + pub level: Option, /// Name of this account permission. pub name: Option, @@ -312,11 +312,11 @@ pub struct AccountUserProfile { /// Trafficker type of this user profile. This is a read-only field. #[serde(rename="traffickerType")] - pub trafficker_type: Option, + pub trafficker_type: Option, /// User type of the user profile. This is a read-only field that can be left blank. #[serde(rename="userAccessType")] - pub user_access_type: Option, + pub user_access_type: Option, /// Filter that describes which user roles are visible to the user profile. #[serde(rename="userRoleFilter")] @@ -470,7 +470,7 @@ pub struct Ad { pub comments: Option, /// Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Information about the creation of this ad. This is a read-only field. #[serde(rename="createInfo")] @@ -577,7 +577,7 @@ pub struct Ad { /// Type of ad. This is a required field on insertion. Note that default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Ad {} @@ -612,7 +612,7 @@ pub struct AdSlot { pub comment: Option, /// Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. - pub compatibility: Option, + pub compatibility: Option, /// Height of this ad slot. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -628,7 +628,7 @@ pub struct AdSlot { /// Payment source type of this ad slot. #[serde(rename="paymentSourceType")] - pub payment_source_type: Option, + pub payment_source_type: Option, /// Primary ad slot of a roadblock inventory item. pub primary: Option, @@ -739,7 +739,7 @@ pub struct Advertiser { pub original_floodlight_configuration_id: Option, /// Status of this advertiser. - pub status: Option, + pub status: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -1799,7 +1799,7 @@ impl client::Resource for Conversion {} pub struct ConversionError { /// The error code. - pub code: Option, + pub code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". pub kind: Option, @@ -2043,15 +2043,15 @@ pub struct Creative { /// Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types. #[serde(rename="authoringSource")] - pub authoring_source: Option, + pub authoring_source: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. #[serde(rename="authoringTool")] - pub authoring_tool: Option, + pub authoring_tool: Option, /// Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. #[serde(rename="autoAdvanceImages")] @@ -2067,7 +2067,7 @@ pub struct Creative { /// List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageFeatures")] - pub backup_image_features: Option>, + pub backup_image_features: Option>, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="backupImageReportingLabel")] @@ -2091,7 +2091,7 @@ pub struct Creative { pub companion_creatives: Option>, /// Compatibilities associated with this creative. This is a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing creatives may have these compatibilities since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in in-stream audio ads developed with the VAST standard. Applicable to all creative types. Acceptable values are: - "APP" - "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - "DISPLAY" - "DISPLAY_INTERSTITIAL" - pub compatibility: Option>, + pub compatibility: Option>, /// Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="convertFlashToHtml5")] @@ -2262,7 +2262,7 @@ pub struct Creative { /// Type of this creative. This is a required field. Applicable to all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. #[serde(rename="universalAdId")] @@ -2301,11 +2301,11 @@ pub struct CreativeAsset { pub additional_sizes: Option>, /// Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL . - pub alignment: Option, + pub alignment: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. #[serde(rename="assetIdentifier")] @@ -2329,7 +2329,7 @@ pub struct CreativeAsset { /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. #[serde(rename="childAssetType")] - pub child_asset_type: Option, + pub child_asset_type: Option, /// Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. #[serde(rename="collapsedSize")] @@ -2346,18 +2346,18 @@ pub struct CreativeAsset { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="displayType")] - pub display_type: Option, + pub display_type: Option, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. pub duration: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="durationType")] - pub duration_type: Option, + pub duration_type: Option, /// Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="expandedDimension")] @@ -2408,7 +2408,7 @@ pub struct CreativeAsset { pub offset: Option, /// Orientation of video asset. This is a read-only, auto-generated field. - pub orientation: Option, + pub orientation: Option, /// Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="originalBackup")] @@ -2423,11 +2423,11 @@ pub struct CreativeAsset { /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionLeftUnit")] - pub position_left_unit: Option, + pub position_left_unit: Option, /// Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="positionTopUnit")] - pub position_top_unit: Option, + pub position_top_unit: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="progressiveServingUrl")] @@ -2441,7 +2441,7 @@ pub struct CreativeAsset { pub pushdown_duration: Option, /// Role of the asset in relation to creative. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets from sources other than Campaign Manager, such as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. - pub role: Option, + pub role: Option, /// Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. pub size: Option, @@ -2452,7 +2452,7 @@ pub struct CreativeAsset { /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. #[serde(rename="startTimeType")] - pub start_time_type: Option, + pub start_time_type: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. #[serde(rename="streamingServingUrl")] @@ -2467,7 +2467,7 @@ pub struct CreativeAsset { /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. #[serde(rename="windowMode")] - pub window_mode: Option, + pub window_mode: Option, /// zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive. #[serde(rename="zIndex")] @@ -2498,7 +2498,7 @@ pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreativeAssetId {} @@ -2530,7 +2530,7 @@ pub struct CreativeAssetMetadata { /// List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. #[serde(rename="detectedFeatures")] - pub detected_features: Option>, + pub detected_features: Option>, /// List of exit events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset. #[serde(rename="exitCustomEvents")] @@ -2557,7 +2557,7 @@ pub struct CreativeAssetMetadata { /// Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - "ZIP_INVALID" #[serde(rename="warnedValidationRules")] - pub warned_validation_rules: Option>, + pub warned_validation_rules: Option>, } impl client::RequestValue for CreativeAssetMetadata {} @@ -2690,7 +2690,7 @@ pub struct CreativeCustomEvent { /// Type of the event. This is a read-only field. #[serde(rename="advertiserCustomEventType")] - pub advertiser_custom_event_type: Option, + pub advertiser_custom_event_type: Option, /// Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion. #[serde(rename="artworkLabel")] @@ -2698,7 +2698,7 @@ pub struct CreativeCustomEvent { /// Artwork type used by the creative.This is a read-only field. #[serde(rename="artworkType")] - pub artwork_type: Option, + pub artwork_type: Option, /// Exit click-through URL for the event. This field is used only for exit events. #[serde(rename="exitClickThroughUrl")] @@ -2714,7 +2714,7 @@ pub struct CreativeCustomEvent { /// Target type used by the event. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, /// Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field. #[serde(rename="videoReportingId")] @@ -2955,7 +2955,7 @@ pub struct CreativeGroupAssignment { /// Creative group number of the creative group assignment. #[serde(rename="creativeGroupNumber")] - pub creative_group_number: Option, + pub creative_group_number: Option, } impl client::Part for CreativeGroupAssignment {} @@ -3009,7 +3009,7 @@ pub struct CreativeOptimizationConfiguration { /// Optimization model for this configuration. #[serde(rename="optimizationModel")] - pub optimization_model: Option, + pub optimization_model: Option, } impl client::Part for CreativeOptimizationConfiguration {} @@ -3034,11 +3034,11 @@ pub struct CreativeRotation { /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. #[serde(rename="weightCalculationStrategy")] - pub weight_calculation_strategy: Option, + pub weight_calculation_strategy: Option, } impl client::Part for CreativeRotation {} @@ -3112,7 +3112,7 @@ pub struct CustomFloodlightVariable { /// The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the custom floodlight variable. The length of string must not exceed 100 characters. pub value: Option, @@ -3206,7 +3206,7 @@ pub struct DateRange { /// The date range relative to the date of when the report is run. #[serde(rename="relativeDateRange")] - pub relative_date_range: Option, + pub relative_date_range: Option, /// no description provided #[serde(rename="startDate")] @@ -3226,7 +3226,7 @@ pub struct DayPartTargeting { /// Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. #[serde(rename="hoursOfDay")] @@ -3315,7 +3315,7 @@ pub struct DeliverySchedule { pub impression_ratio: Option, /// Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. - pub priority: Option, + pub priority: Option, } impl client::Part for DeliverySchedule {} @@ -3420,7 +3420,7 @@ pub struct DimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The value of the dimension. pub value: Option, @@ -3516,11 +3516,11 @@ pub struct DirectorySite { /// Tag types for regular placements. Acceptable values are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" #[serde(rename="inpageTagFormats")] - pub inpage_tag_formats: Option>, + pub inpage_tag_formats: Option>, /// Tag types for interstitial placements. Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" #[serde(rename="interstitialTagFormats")] - pub interstitial_tag_formats: Option>, + pub interstitial_tag_formats: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: Option, @@ -3641,7 +3641,7 @@ pub struct DynamicTargetingKey { /// Type of the object of this dynamic targeting key. This is a required field. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, } impl client::RequestValue for DynamicTargetingKey {} @@ -3687,11 +3687,11 @@ pub struct EncryptionInfo { /// The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer. #[serde(rename="encryptionEntityType")] - pub encryption_entity_type: Option, + pub encryption_entity_type: Option, /// Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. #[serde(rename="encryptionSource")] - pub encryption_source: Option, + pub encryption_source: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". pub kind: Option, @@ -3779,7 +3779,7 @@ pub struct EventTag { /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. #[serde(rename="siteFilterType")] - pub site_filter_type: Option, + pub site_filter_type: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a allowlist or blocklist filter. #[serde(rename="siteIds")] @@ -3791,7 +3791,7 @@ pub struct EventTag { pub ssl_compliant: Option, /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. - pub status: Option, + pub status: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -3800,7 +3800,7 @@ pub struct EventTag { /// Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. pub url: Option, @@ -3884,7 +3884,7 @@ pub struct File { pub file_name: Option, /// The output format of the report. Only available once the file is available. - pub format: Option, + pub format: Option, /// The unique ID of this report file. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -3904,7 +3904,7 @@ pub struct File { pub report_id: Option, /// The status of the report file. - pub status: Option, + pub status: Option, /// The URLs where the completed report file can be downloaded. pub urls: Option, @@ -4062,11 +4062,11 @@ pub struct FloodlightActivity { /// Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. #[serde(rename="cacheBustingType")] - pub cache_busting_type: Option, + pub cache_busting_type: Option, /// Counting method for conversions for this floodlight activity. This is a required field. #[serde(rename="countingMethod")] - pub counting_method: Option, + pub counting_method: Option, /// Dynamic floodlight tags. #[serde(rename="defaultTags")] @@ -4091,7 +4091,7 @@ pub struct FloodlightActivity { /// Type of the associated floodlight activity group. This is a read-only field. #[serde(rename="floodlightActivityGroupType")] - pub floodlight_activity_group_type: Option, + pub floodlight_activity_group_type: Option, /// Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration. #[serde(rename="floodlightConfigurationId")] @@ -4104,7 +4104,7 @@ pub struct FloodlightActivity { /// The type of Floodlight tag this activity will generate. This is a required field. #[serde(rename="floodlightTagType")] - pub floodlight_tag_type: Option, + pub floodlight_tag_type: Option, /// ID of this floodlight activity. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4139,7 +4139,7 @@ pub struct FloodlightActivity { pub ssl_required: Option, /// The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information. - pub status: Option, + pub status: Option, /// Subaccount ID of this floodlight activity. This is a read-only field that can be left blank. #[serde(rename="subaccountId")] @@ -4148,7 +4148,7 @@ pub struct FloodlightActivity { /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. #[serde(rename="tagFormat")] - pub tag_format: Option, + pub tag_format: Option, /// Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion. #[serde(rename="tagString")] @@ -4156,7 +4156,7 @@ pub struct FloodlightActivity { /// List of the user-defined variables used by this conversion tag. These map to the "u[1-100]=" in the tags. Each of these can have a user defined type. Acceptable values are U1 to U100, inclusive. #[serde(rename="userDefinedVariableTypes")] - pub user_defined_variable_types: Option>, + pub user_defined_variable_types: Option>, } impl client::RequestValue for FloodlightActivity {} @@ -4249,7 +4249,7 @@ pub struct FloodlightActivityGroup { /// Type of the floodlight activity group. This is a required field that is read-only after insertion. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for FloodlightActivityGroup {} @@ -4365,7 +4365,7 @@ pub struct FloodlightConfiguration { /// Day that will be counted as the first day of the week in reports. This is a required field. #[serde(rename="firstDayOfWeek")] - pub first_day_of_week: Option, + pub first_day_of_week: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4388,7 +4388,7 @@ pub struct FloodlightConfiguration { /// Types of attribution options for natural search conversions. #[serde(rename="naturalSearchConversionAttributionOption")] - pub natural_search_conversion_attribution_option: Option, + pub natural_search_conversion_attribution_option: Option, /// Settings for Campaign Manager Omniture integration. #[serde(rename="omnitureSettings")] @@ -4498,7 +4498,7 @@ pub struct FsCommand { /// Position in the browser where the window will open. #[serde(rename="positionOption")] - pub position_option: Option, + pub position_option: Option, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: Option, @@ -4647,7 +4647,7 @@ pub struct InventoryItem { /// Type of inventory item. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for InventoryItem {} @@ -4879,7 +4879,7 @@ pub struct ListPopulationTerm { pub negation: Option, /// Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - pub operator: Option, + pub operator: Option, /// ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. #[serde(rename="remarketingListId")] @@ -4888,7 +4888,7 @@ pub struct ListPopulationTerm { /// List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. pub value: Option, @@ -4950,11 +4950,11 @@ pub struct MeasurementPartnerAdvertiserLink { /// . #[serde(rename="linkStatus")] - pub link_status: Option, + pub link_status: Option, /// Measurement partner used for tag wrapping. #[serde(rename="measurementPartner")] - pub measurement_partner: Option, + pub measurement_partner: Option, /// . #[serde(rename="partnerAdvertiserId")] @@ -4974,11 +4974,11 @@ pub struct MeasurementPartnerCampaignLink { /// . #[serde(rename="linkStatus")] - pub link_status: Option, + pub link_status: Option, /// Measurement partner used for tag wrapping. #[serde(rename="measurementPartner")] - pub measurement_partner: Option, + pub measurement_partner: Option, /// Partner campaign ID needed for establishing linking with Measurement partner. #[serde(rename="partnerCampaignId")] @@ -4998,15 +4998,15 @@ pub struct MeasurementPartnerWrappingData { /// Placement wrapping status. #[serde(rename="linkStatus")] - pub link_status: Option, + pub link_status: Option, /// Measurement partner used for wrapping the placement. #[serde(rename="measurementPartner")] - pub measurement_partner: Option, + pub measurement_partner: Option, /// Measurement mode for the wrapped placement. #[serde(rename="tagWrappingMode")] - pub tag_wrapping_mode: Option, + pub tag_wrapping_mode: Option, /// Tag provided by the measurement partner during wrapping. #[serde(rename="wrappedTag")] @@ -5115,7 +5115,7 @@ impl client::ResponseResult for MetrosListResponse {} pub struct MobileApp { /// Mobile app directory. - pub directory: Option, + pub directory: Option, /// ID of this mobile app. pub id: Option, @@ -5281,7 +5281,7 @@ pub struct ObjectFilter { pub object_ids: Option>, /// Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. - pub status: Option, + pub status: Option, } impl client::Part for ObjectFilter {} @@ -5592,7 +5592,7 @@ pub struct OrderContact { /// Type of this contact. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// ID of the user profile containing the signature that will be embedded into order documents. #[serde(rename="signatureUserProfileId")] @@ -5685,7 +5685,7 @@ pub struct OrderDocument { /// Type of this order document #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for OrderDocument {} @@ -5762,7 +5762,7 @@ pub struct PathFilter { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="pathMatchPosition")] - pub path_match_position: Option, + pub path_match_position: Option, } impl client::Part for PathFilter {} @@ -5817,7 +5817,7 @@ pub struct PathReportDimensionValue { /// Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The possible values of the dimension. pub values: Option>, @@ -5911,7 +5911,7 @@ pub struct Placement { pub comment: Option, /// Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. - pub compatibility: Option, + pub compatibility: Option, /// ID of the content category assigned to this placement. #[serde(rename="contentCategoryId")] @@ -5971,7 +5971,7 @@ pub struct Placement { /// Payment source for this placement. This is a required field that is read-only after insertion. #[serde(rename="paymentSource")] - pub payment_source: Option, + pub payment_source: Option, /// ID of this placement's group, if applicable. #[serde(rename="placementGroupId")] @@ -6015,7 +6015,7 @@ pub struct Placement { pub ssl_required: Option, /// Third-party placement status. - pub status: Option, + pub status: Option, /// Subaccount ID of this placement. This field can be left blank. #[serde(rename="subaccountId")] @@ -6024,7 +6024,7 @@ pub struct Placement { /// Tag formats to generate for this placement. This field is required on insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_IFRAME_ILAYER" - "PLACEMENT_TAG_INTERNAL_REDIRECT" - "PLACEMENT_TAG_JAVASCRIPT" - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - "PLACEMENT_TAG_CLICK_COMMANDS" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" - "PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" #[serde(rename="tagFormats")] - pub tag_formats: Option>, + pub tag_formats: Option>, /// Tag settings for this placement. #[serde(rename="tagSetting")] @@ -6040,7 +6040,7 @@ pub struct Placement { /// VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement. *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoice")] - pub vpaid_adapter_choice: Option, + pub vpaid_adapter_choice: Option, /// Whether this placement opts out of tag wrapping. #[serde(rename="wrappingOptOut")] @@ -6172,7 +6172,7 @@ pub struct PlacementGroup { /// Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. #[serde(rename="placementGroupType")] - pub placement_group_type: Option, + pub placement_group_type: Option, /// ID of the placement strategy assigned to this placement group. #[serde(rename="placementStrategyId")] @@ -6438,7 +6438,7 @@ pub struct PopupWindowProperties { /// Popup window position either centered or at specific coordinate. #[serde(rename="positionType")] - pub position_type: Option, + pub position_type: Option, /// Whether to display the browser address bar. #[serde(rename="showAddressBar")] @@ -6536,7 +6536,7 @@ pub struct Pricing { /// Cap cost type of this inventory item. #[serde(rename="capCostType")] - pub cap_cost_type: Option, + pub cap_cost_type: Option, /// no description provided #[serde(rename="endDate")] @@ -6547,11 +6547,11 @@ pub struct Pricing { /// Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Pricing type of this inventory item. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// no description provided #[serde(rename="startDate")] @@ -6571,7 +6571,7 @@ pub struct PricingSchedule { /// Placement cap cost option. #[serde(rename="capCostOption")] - pub cap_cost_option: Option, + pub cap_cost_option: Option, /// no description provided #[serde(rename="endDate")] @@ -6591,7 +6591,7 @@ pub struct PricingSchedule { /// Placement pricing type. This field is required on insertion. #[serde(rename="pricingType")] - pub pricing_type: Option, + pub pricing_type: Option, /// no description provided #[serde(rename="startDate")] @@ -6663,11 +6663,11 @@ pub struct Project { /// Audience age group of this project. #[serde(rename="audienceAgeGroup")] - pub audience_age_group: Option, + pub audience_age_group: Option, /// Audience gender of this project. #[serde(rename="audienceGender")] - pub audience_gender: Option, + pub audience_gender: Option, /// Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -6820,7 +6820,7 @@ pub struct Recipient { /// The delivery type for the recipient. #[serde(rename="deliveryType")] - pub delivery_type: Option, + pub delivery_type: Option, /// The email address of the recipient. pub email: Option, @@ -6953,7 +6953,7 @@ pub struct RemarketingList { /// Product from which this remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the remarketing list. This is a required field. Must be no greater than 128 characters long. pub name: Option, @@ -7082,7 +7082,7 @@ pub struct Report { pub floodlight_criteria: Option, /// The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format. - pub format: Option, + pub format: Option, /// The unique ID identifying this report resource. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -7130,7 +7130,7 @@ pub struct Report { /// The type of the report. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Report {} @@ -7384,7 +7384,7 @@ pub struct SiteContact { /// Site contact type. #[serde(rename="contactType")] - pub contact_type: Option, + pub contact_type: Option, /// Email address of this site contact. This is a required field. pub email: Option, @@ -7441,7 +7441,7 @@ pub struct SiteSettings { /// Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH. #[serde(rename="vpaidAdapterChoiceTemplate")] - pub vpaid_adapter_choice_template: Option, + pub vpaid_adapter_choice_template: Option, } impl client::Part for SiteSettings {} @@ -7516,7 +7516,7 @@ pub struct SiteVideoSettings { pub oba_settings: Option, /// Orientation of a site template used for video. This will act as default for new placements created under this site. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site. #[serde(rename="skippableSettings")] @@ -7656,7 +7656,7 @@ pub struct SortedDimension { /// An optional sort order for the dimension column. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortedDimension {} @@ -7753,7 +7753,7 @@ pub struct TagData { pub creative_id: Option, /// TagData tag format of this tag. - pub format: Option, + pub format: Option, /// Tag string for serving an ad. #[serde(rename="impressionTag")] @@ -7785,7 +7785,7 @@ pub struct TagSetting { /// Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders. #[serde(rename="keywordOption")] - pub keyword_option: Option, + pub keyword_option: Option, } impl client::Part for TagSetting {} @@ -7825,7 +7825,7 @@ pub struct TargetWindow { /// Type of browser window for which the backup image of the flash creative can be displayed. #[serde(rename="targetWindowOption")] - pub target_window_option: Option, + pub target_window_option: Option, } impl client::Part for TargetWindow {} @@ -7883,7 +7883,7 @@ pub struct TargetableRemarketingList { /// Product from which this targetable remarketing list was originated. #[serde(rename="listSource")] - pub list_source: Option, + pub list_source: Option, /// Name of the targetable remarketing list. Is no greater than 128 characters long. pub name: Option, @@ -8090,7 +8090,7 @@ pub struct ThirdPartyTrackingUrl { /// Third-party URL type for in-stream video and in-stream audio creatives. #[serde(rename="thirdPartyUrlType")] - pub third_party_url_type: Option, + pub third_party_url_type: Option, /// URL for the specified third-party URL type. pub url: Option, @@ -8127,7 +8127,7 @@ impl client::Part for TranscodeSetting {} pub struct UniversalAdId { /// Registry used for the Ad ID value. - pub registry: Option, + pub registry: Option, /// ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. pub value: Option, @@ -8146,7 +8146,7 @@ pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". #[serde(rename="reportName")] @@ -8154,7 +8154,7 @@ pub struct UserDefinedVariableConfiguration { /// Variable name in the tag. This is a required field. #[serde(rename="variableType")] - pub variable_type: Option, + pub variable_type: Option, } impl client::Part for UserDefinedVariableConfiguration {} @@ -8305,7 +8305,7 @@ impl client::ResponseResult for UserRole {} pub struct UserRolePermission { /// Levels of availability for a user role permission. - pub availability: Option, + pub availability: Option, /// ID of this user role permission. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -8443,7 +8443,7 @@ pub struct VideoFormat { /// File type of the video format. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// ID of the video format. pub id: Option, @@ -8534,7 +8534,7 @@ pub struct VideoSettings { pub oba_settings: Option, /// Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. - pub orientation: Option, + pub orientation: Option, /// Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. #[serde(rename="skippableSettings")] @@ -8620,7 +8620,7 @@ pub struct ReportCrossDimensionReachCriteria { pub date_range: Option, /// The dimension option. - pub dimension: Option, + pub dimension: Option, /// The list of filters on which dimensions are filtered. #[serde(rename="dimensionFilters")] @@ -8656,7 +8656,7 @@ pub struct ReportDelivery { /// The type of delivery for the owner to receive, if enabled. #[serde(rename="emailOwnerDeliveryType")] - pub email_owner_delivery_type: Option, + pub email_owner_delivery_type: Option, /// The message to be sent with each email. pub message: Option, @@ -8978,11 +8978,11 @@ pub struct ReportSchedule { /// List of week days "WEEKLY" on which scheduled reports should run. #[serde(rename="repeatsOnWeekDays")] - pub repeats_on_week_days: Option>, + pub repeats_on_week_days: Option>, /// Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month. #[serde(rename="runsOnDayOfMonth")] - pub runs_on_day_of_month: Option, + pub runs_on_day_of_month: Option, /// no description provided #[serde(rename="startDate")] diff --git a/gen/dialogflow2/src/api/mod.rs b/gen/dialogflow2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dialogflow2/src/api/mod.rs +++ b/gen/dialogflow2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dialogflow2/src/api/schemas.rs b/gen/dialogflow2/src/api/schemas.rs index c0dc46d8f1..3a27d4ce96 100644 --- a/gen/dialogflow2/src/api/schemas.rs +++ b/gen/dialogflow2/src/api/schemas.rs @@ -16,7 +16,7 @@ pub struct GoogleCloudDialogflowV2Agent { /// Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version. #[serde(rename="apiVersion")] - pub api_version: Option, + pub api_version: Option, /// Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration. #[serde(rename="avatarUri")] @@ -43,7 +43,7 @@ pub struct GoogleCloudDialogflowV2Agent { /// Optional. Determines how intents are detected from user queries. #[serde(rename="matchMode")] - pub match_mode: Option, + pub match_mode: Option, /// Required. The project of this agent. Format: `projects/`. pub parent: Option, @@ -53,7 +53,7 @@ pub struct GoogleCloudDialogflowV2Agent { pub supported_language_codes: Option>, /// Optional. The agent tier. If not specified, TIER_STANDARD is assumed. - pub tier: Option, + pub tier: Option, /// Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. #[serde(rename="timeZone")] @@ -74,15 +74,15 @@ pub struct GoogleCloudDialogflowV2AgentAssistantFeedback { /// Optional. Whether or not the suggested answer is relevant. For example: * Query: "Can I change my mailing address?" * Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." * answer_relevance: AnswerRelevance.IRRELEVANT #[serde(rename="answerRelevance")] - pub answer_relevance: Option, + pub answer_relevance: Option, /// Optional. Whether or not the information in the document is correct. For example: * Query: "Can I return the package in 2 days once received?" * Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." * Ground truth: "No return or exchange is allowed." * [document_correctness]: INCORRECT #[serde(rename="documentCorrectness")] - pub document_correctness: Option, + pub document_correctness: Option, /// Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT. #[serde(rename="documentEfficiency")] - pub document_efficiency: Option, + pub document_efficiency: Option, /// Optional. Feedback for conversation summarization. #[serde(rename="summarizationFeedback")] @@ -269,7 +269,7 @@ pub struct GoogleCloudDialogflowV2AnswerFeedback { /// The correctness level of the specific answer. #[serde(rename="correctnessLevel")] - pub correctness_level: Option, + pub correctness_level: Option, /// Time when the answer/item was displayed. #[serde(rename="displayTime")] @@ -352,7 +352,7 @@ pub struct GoogleCloudDialogflowV2ArticleSuggestionModelMetadata { /// Optional. Type of the article suggestion model. If not provided, model_type is used. #[serde(rename="trainingModelType")] - pub training_model_type: Option, + pub training_model_type: Option, } impl client::Part for GoogleCloudDialogflowV2ArticleSuggestionModelMetadata {} @@ -403,7 +403,7 @@ pub struct GoogleCloudDialogflowV2AutomatedAgentReply { /// AutomatedAgentReply type. #[serde(rename="automatedAgentReplyType")] - pub automated_agent_reply_type: Option, + pub automated_agent_reply_type: Option, /// The unique identifier of the current Dialogflow CX conversation page. Format: `projects//locations//agents//flows//pages/`. #[serde(rename="cxCurrentPage")] @@ -591,7 +591,7 @@ pub struct GoogleCloudDialogflowV2BatchUpdateIntentsRequest { /// Optional. The resource view to apply to the returned intent. #[serde(rename="intentView")] - pub intent_view: Option, + pub intent_view: Option, /// Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). #[serde(rename="languageCode")] @@ -620,11 +620,11 @@ pub struct GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest { /// Required. The participant role to remove the suggestion feature config. Only HUMAN_AGENT or END_USER can be used. #[serde(rename="participantRole")] - pub participant_role: Option, + pub participant_role: Option, /// Required. The type of the suggestion feature to remove. #[serde(rename="suggestionFeatureType")] - pub suggestion_feature_type: Option, + pub suggestion_feature_type: Option, } impl client::RequestValue for GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest {} @@ -707,7 +707,7 @@ pub struct GoogleCloudDialogflowV2Conversation { /// The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation. If the conversation is created with the conversation profile that has Dialogflow config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE. #[serde(rename="conversationStage")] - pub conversation_stage: Option, + pub conversation_stage: Option, /// Output only. The time the conversation was finished. #[serde(rename="endTime")] @@ -715,7 +715,7 @@ pub struct GoogleCloudDialogflowV2Conversation { /// Output only. The current state of the Conversation. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// Output only. The unique identifier of this conversation. Format: `projects//locations//conversations/`. pub name: Option, @@ -837,7 +837,7 @@ pub struct GoogleCloudDialogflowV2ConversationModel { pub smart_reply_model_metadata: Option, /// Output only. State of the model. A model can only serve prediction requests after it gets deployed. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudDialogflowV2ConversationModel {} @@ -1127,7 +1127,7 @@ pub struct GoogleCloudDialogflowV2Document { /// Required. The knowledge type of document content. #[serde(rename="knowledgeTypes")] - pub knowledge_types: Option>, + pub knowledge_types: Option>, /// Output only. The time and status of the latest reload. This reload may have been triggered automatically or manually and may not have succeeded. #[serde(rename="latestReloadStatus")] @@ -1149,7 +1149,7 @@ pub struct GoogleCloudDialogflowV2Document { pub raw_content: Option>, /// Output only. The current state of the document. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudDialogflowV2Document {} @@ -1209,7 +1209,7 @@ pub struct GoogleCloudDialogflowV2EntityType { /// Optional. Indicates whether the entity type can be automatically expanded. #[serde(rename="autoExpansionMode")] - pub auto_expansion_mode: Option, + pub auto_expansion_mode: Option, /// Required. The name of the entity type. #[serde(rename="displayName")] @@ -1223,7 +1223,7 @@ pub struct GoogleCloudDialogflowV2EntityType { pub entities: Option>, /// Required. Indicates the kind of entity type. - pub kind: Option, + pub kind: Option, /// The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `projects//agent/entityTypes/`. pub name: Option, @@ -1298,7 +1298,7 @@ pub struct GoogleCloudDialogflowV2Environment { pub name: Option, /// Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods. - pub state: Option, + pub state: Option, /// Optional. Text to speech settings for this environment. #[serde(rename="textToSpeechSettings")] @@ -1576,7 +1576,7 @@ pub struct GoogleCloudDialogflowV2FulfillmentFeature { /// The type of the feature that enabled for fulfillment. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowV2FulfillmentFeature {} @@ -2023,7 +2023,7 @@ pub struct GoogleCloudDialogflowV2ImportDocumentTemplate { /// Required. The knowledge type of document content. #[serde(rename="knowledgeTypes")] - pub knowledge_types: Option>, + pub knowledge_types: Option>, /// Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes. pub metadata: Option>, @@ -2075,7 +2075,7 @@ pub struct GoogleCloudDialogflowV2InputAudioConfig { /// Required. Audio encoding of the audio content to process. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// Only used in Participants.AnalyzeContent and Participants.StreamingAnalyzeContent. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. #[serde(rename="disableNoSpeechRecognizedEvent")] @@ -2094,7 +2094,7 @@ pub struct GoogleCloudDialogflowV2InputAudioConfig { /// Which variant of the Speech model to use. #[serde(rename="modelVariant")] - pub model_variant: Option, + pub model_variant: Option, /// A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext](). #[serde(rename="phraseHints")] @@ -2169,7 +2169,7 @@ pub struct GoogleCloudDialogflowV2Intent { /// Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). #[serde(rename="defaultResponsePlatforms")] - pub default_response_platforms: Option>, + pub default_response_platforms: Option>, /// Required. The name of this intent. #[serde(rename="displayName")] @@ -2236,7 +2236,7 @@ pub struct GoogleCloudDialogflowV2Intent { /// Optional. Indicates whether webhooks are enabled for the intent. #[serde(rename="webhookState")] - pub webhook_state: Option, + pub webhook_state: Option, } impl client::RequestValue for GoogleCloudDialogflowV2Intent {} @@ -2320,7 +2320,7 @@ pub struct GoogleCloudDialogflowV2IntentMessage { pub payload: Option>, /// Optional. The platform that this message is intended for. - pub platform: Option, + pub platform: Option, /// The quick replies response. #[serde(rename="quickReplies")] @@ -2416,7 +2416,7 @@ pub struct GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard { /// Optional. Settings for displaying the image. Applies to every image in items. #[serde(rename="imageDisplayOptions")] - pub image_display_options: Option, + pub image_display_options: Option, /// Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. pub items: Option>, @@ -2466,7 +2466,7 @@ pub struct GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselC /// Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. #[serde(rename="urlTypeHint")] - pub url_type_hint: Option, + pub url_type_hint: Option, } impl client::Part for GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction {} @@ -2567,7 +2567,7 @@ pub struct GoogleCloudDialogflowV2IntentMessageColumnProperties { /// Optional. Defines text alignment for all cells in this column. #[serde(rename="horizontalAlignment")] - pub horizontal_alignment: Option, + pub horizontal_alignment: Option, } impl client::Part for GoogleCloudDialogflowV2IntentMessageColumnProperties {} @@ -2671,7 +2671,7 @@ pub struct GoogleCloudDialogflowV2IntentMessageMediaContent { /// Optional. What type of media is the content (ie "audio"). #[serde(rename="mediaType")] - pub media_type: Option, + pub media_type: Option, } impl client::Part for GoogleCloudDialogflowV2IntentMessageMediaContent {} @@ -2952,7 +2952,7 @@ pub struct GoogleCloudDialogflowV2IntentTrainingPhrase { /// Required. The type of the training phrase. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowV2IntentTrainingPhrase {} @@ -3467,7 +3467,7 @@ pub struct GoogleCloudDialogflowV2Message { /// Output only. The role of the participant. #[serde(rename="participantRole")] - pub participant_role: Option, + pub participant_role: Option, /// Optional. The time when the message was sent. #[serde(rename="sendTime")] @@ -3510,7 +3510,7 @@ pub struct GoogleCloudDialogflowV2NotificationConfig { /// Format of message. #[serde(rename="messageFormat")] - pub message_format: Option, + pub message_format: Option, /// Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony integration to receive notification, make sure either this topic is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. For chat integration to receive notification, make sure API caller has been granted the `Dialogflow Service Agent` role for the topic. Format: `projects//locations//topics/`. pub topic: Option, @@ -3548,7 +3548,7 @@ pub struct GoogleCloudDialogflowV2OutputAudioConfig { /// Required. Audio encoding of the synthesized audio content. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality). #[serde(rename="sampleRateHertz")] @@ -3591,7 +3591,7 @@ pub struct GoogleCloudDialogflowV2Participant { pub obfuscated_external_user_id: Option, /// Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable. - pub role: Option, + pub role: Option, /// Optional. Label applied to streams representing this participant in SIPREC XML metadata and SDP. This is used to assign transcriptions from that media stream to this participant. This field can be updated. #[serde(rename="sipRecordingMediaLabel")] @@ -3897,7 +3897,7 @@ pub struct GoogleCloudDialogflowV2SessionEntityType { /// Required. Indicates whether the additional data should override or supplement the custom entity type definition. #[serde(rename="entityOverrideMode")] - pub entity_override_mode: Option, + pub entity_override_mode: Option, /// Required. The unique identifier of this session entity type. Format: `projects//agent/sessions//entityTypes/`, or `projects//agent/environments//users//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented. pub name: Option, @@ -3922,7 +3922,7 @@ pub struct GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest { /// Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used. #[serde(rename="participantRole")] - pub participant_role: Option, + pub participant_role: Option, /// Required. The suggestion feature config to add or update. #[serde(rename="suggestionFeatureConfig")] @@ -4007,7 +4007,7 @@ pub struct GoogleCloudDialogflowV2SmartReplyModelMetadata { /// Optional. Type of the smart reply model. If not provided, model_type is used. #[serde(rename="trainingModelType")] - pub training_model_type: Option, + pub training_model_type: Option, } impl client::Part for GoogleCloudDialogflowV2SmartReplyModelMetadata {} @@ -4044,7 +4044,7 @@ pub struct GoogleCloudDialogflowV2SpeechToTextConfig { /// The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error. #[serde(rename="speechModelVariant")] - pub speech_model_variant: Option, + pub speech_model_variant: Option, } impl client::Part for GoogleCloudDialogflowV2SpeechToTextConfig {} @@ -4310,7 +4310,7 @@ pub struct GoogleCloudDialogflowV2SuggestionFeature { /// Type of Human Agent Assistant API feature to request. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowV2SuggestionFeature {} @@ -4406,7 +4406,7 @@ pub struct GoogleCloudDialogflowV2TextToSpeechSettings { /// Required. Audio encoding of the synthesized audio content. #[serde(rename="outputAudioEncoding")] - pub output_audio_encoding: Option, + pub output_audio_encoding: Option, /// Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality). #[serde(rename="sampleRateHertz")] @@ -4468,7 +4468,7 @@ pub struct GoogleCloudDialogflowV2ValidationError { pub error_message: Option, /// The severity of the error. - pub severity: Option, + pub severity: Option, } impl client::Part for GoogleCloudDialogflowV2ValidationError {} @@ -4523,7 +4523,7 @@ pub struct GoogleCloudDialogflowV2Version { pub name: Option, /// Output only. The status of this version. This field is read-only and cannot be set by create and update methods. - pub status: Option, + pub status: Option, /// Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods. #[serde(rename="versionNumber")] @@ -4547,7 +4547,7 @@ pub struct GoogleCloudDialogflowV2VoiceSelectionParams { /// Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request. #[serde(rename="ssmlGender")] - pub ssml_gender: Option, + pub ssml_gender: Option, } impl client::Part for GoogleCloudDialogflowV2VoiceSelectionParams {} diff --git a/gen/dialogflow2_beta1/src/api/mod.rs b/gen/dialogflow2_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dialogflow2_beta1/src/api/mod.rs +++ b/gen/dialogflow2_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dialogflow2_beta1/src/api/schemas.rs b/gen/dialogflow2_beta1/src/api/schemas.rs index 88b293e73a..6f7adf040b 100644 --- a/gen/dialogflow2_beta1/src/api/schemas.rs +++ b/gen/dialogflow2_beta1/src/api/schemas.rs @@ -16,7 +16,7 @@ pub struct GoogleCloudDialogflowV2beta1Agent { /// Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version. #[serde(rename="apiVersion")] - pub api_version: Option, + pub api_version: Option, /// Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration. #[serde(rename="avatarUri")] @@ -43,7 +43,7 @@ pub struct GoogleCloudDialogflowV2beta1Agent { /// Optional. Determines how intents are detected from user queries. #[serde(rename="matchMode")] - pub match_mode: Option, + pub match_mode: Option, /// Required. The project of this agent. Format: `projects/` or `projects//locations/` pub parent: Option, @@ -53,7 +53,7 @@ pub struct GoogleCloudDialogflowV2beta1Agent { pub supported_language_codes: Option>, /// Optional. The agent tier. If not specified, TIER_STANDARD is assumed. - pub tier: Option, + pub tier: Option, /// Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. #[serde(rename="timeZone")] @@ -74,15 +74,15 @@ pub struct GoogleCloudDialogflowV2beta1AgentAssistantFeedback { /// Optional. Whether or not the suggested answer is relevant. For example: * Query: "Can I change my mailing address?" * Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." * answer_relevance: AnswerRelevance.IRRELEVANT #[serde(rename="answerRelevance")] - pub answer_relevance: Option, + pub answer_relevance: Option, /// Optional. Whether or not the information in the document is correct. For example: * Query: "Can I return the package in 2 days once received?" * Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." * Ground truth: "No return or exchange is allowed." * [document_correctness]: INCORRECT #[serde(rename="documentCorrectness")] - pub document_correctness: Option, + pub document_correctness: Option, /// Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT. #[serde(rename="documentEfficiency")] - pub document_efficiency: Option, + pub document_efficiency: Option, /// Feedback for conversation summarization. #[serde(rename="summarizationFeedback")] @@ -281,7 +281,7 @@ pub struct GoogleCloudDialogflowV2beta1AnswerFeedback { /// The correctness level of the specific answer. #[serde(rename="correctnessLevel")] - pub correctness_level: Option, + pub correctness_level: Option, /// Time when the answer/item was displayed. #[serde(rename="displayTime")] @@ -417,7 +417,7 @@ pub struct GoogleCloudDialogflowV2beta1AutomatedAgentReply { /// AutomatedAgentReply type. #[serde(rename="automatedAgentReplyType")] - pub automated_agent_reply_type: Option, + pub automated_agent_reply_type: Option, /// The unique identifier of the current Dialogflow CX conversation page. Format: `projects//locations//agents//flows//pages/`. #[serde(rename="cxCurrentPage")] @@ -666,7 +666,7 @@ pub struct GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest { /// Optional. The resource view to apply to the returned intent. #[serde(rename="intentView")] - pub intent_view: Option, + pub intent_view: Option, /// Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). #[serde(rename="languageCode")] @@ -695,11 +695,11 @@ pub struct GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest { /// Required. The participant role to remove the suggestion feature config. Only HUMAN_AGENT or END_USER can be used. #[serde(rename="participantRole")] - pub participant_role: Option, + pub participant_role: Option, /// Required. The type of the suggestion feature to remove. #[serde(rename="suggestionFeatureType")] - pub suggestion_feature_type: Option, + pub suggestion_feature_type: Option, } impl client::RequestValue for GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest {} @@ -833,7 +833,7 @@ pub struct GoogleCloudDialogflowV2beta1Conversation { /// The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation. If the conversation is created with the conversation profile that has Dialogflow config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE. #[serde(rename="conversationStage")] - pub conversation_stage: Option, + pub conversation_stage: Option, /// Output only. The time the conversation was finished. #[serde(rename="endTime")] @@ -841,7 +841,7 @@ pub struct GoogleCloudDialogflowV2beta1Conversation { /// Output only. The current state of the Conversation. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// Output only. The unique identifier of this conversation. Format: `projects//locations//conversations/`. pub name: Option, @@ -1091,7 +1091,7 @@ pub struct GoogleCloudDialogflowV2beta1Document { /// Required. The knowledge type of document content. #[serde(rename="knowledgeTypes")] - pub knowledge_types: Option>, + pub knowledge_types: Option>, /// Output only. The time and status of the latest reload. This reload may have been triggered automatically or manually and may not have succeeded. #[serde(rename="latestReloadStatus")] @@ -1113,7 +1113,7 @@ pub struct GoogleCloudDialogflowV2beta1Document { pub raw_content: Option>, /// Output only. The current state of the document. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudDialogflowV2beta1Document {} @@ -1173,7 +1173,7 @@ pub struct GoogleCloudDialogflowV2beta1EntityType { /// Optional. Indicates whether the entity type can be automatically expanded. #[serde(rename="autoExpansionMode")] - pub auto_expansion_mode: Option, + pub auto_expansion_mode: Option, /// Required. The name of the entity type. #[serde(rename="displayName")] @@ -1187,7 +1187,7 @@ pub struct GoogleCloudDialogflowV2beta1EntityType { pub entities: Option>, /// Required. Indicates the kind of entity type. - pub kind: Option, + pub kind: Option, /// The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/` pub name: Option, @@ -1262,7 +1262,7 @@ pub struct GoogleCloudDialogflowV2beta1Environment { pub name: Option, /// Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods. - pub state: Option, + pub state: Option, /// Optional. Text to speech settings for this environment. #[serde(rename="textToSpeechSettings")] @@ -1448,7 +1448,7 @@ pub struct GoogleCloudDialogflowV2beta1FulfillmentFeature { /// The type of the feature that enabled for fulfillment. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowV2beta1FulfillmentFeature {} @@ -1874,7 +1874,7 @@ pub struct GoogleCloudDialogflowV2beta1ImportDocumentTemplate { /// Required. The knowledge type of document content. #[serde(rename="knowledgeTypes")] - pub knowledge_types: Option>, + pub knowledge_types: Option>, /// Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes. pub metadata: Option>, @@ -1926,7 +1926,7 @@ pub struct GoogleCloudDialogflowV2beta1InputAudioConfig { /// Required. Audio encoding of the audio content to process. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// Only used in Participants.AnalyzeContent and Participants.StreamingAnalyzeContent. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. #[serde(rename="disableNoSpeechRecognizedEvent")] @@ -1945,7 +1945,7 @@ pub struct GoogleCloudDialogflowV2beta1InputAudioConfig { /// Which variant of the Speech model to use. #[serde(rename="modelVariant")] - pub model_variant: Option, + pub model_variant: Option, /// A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext](). #[serde(rename="phraseHints")] @@ -1989,7 +1989,7 @@ pub struct GoogleCloudDialogflowV2beta1Intent { /// Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). #[serde(rename="defaultResponsePlatforms")] - pub default_response_platforms: Option>, + pub default_response_platforms: Option>, /// Required. The name of this intent. #[serde(rename="displayName")] @@ -2060,7 +2060,7 @@ pub struct GoogleCloudDialogflowV2beta1Intent { /// Optional. Indicates whether webhooks are enabled for the intent. #[serde(rename="webhookState")] - pub webhook_state: Option, + pub webhook_state: Option, } impl client::RequestValue for GoogleCloudDialogflowV2beta1Intent {} @@ -2144,7 +2144,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessage { pub payload: Option>, /// Optional. The platform that this message is intended for. - pub platform: Option, + pub platform: Option, /// Displays quick replies. #[serde(rename="quickReplies")] @@ -2264,7 +2264,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard { /// Optional. Settings for displaying the image. Applies to every image in items. #[serde(rename="imageDisplayOptions")] - pub image_display_options: Option, + pub image_display_options: Option, /// Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. pub items: Option>, @@ -2314,7 +2314,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCaro /// Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. #[serde(rename="urlTypeHint")] - pub url_type_hint: Option, + pub url_type_hint: Option, } impl client::Part for GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction {} @@ -2415,7 +2415,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageColumnProperties { /// Optional. Defines text alignment for all cells in this column. #[serde(rename="horizontalAlignment")] - pub horizontal_alignment: Option, + pub horizontal_alignment: Option, } impl client::Part for GoogleCloudDialogflowV2beta1IntentMessageColumnProperties {} @@ -2519,7 +2519,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageMediaContent { /// Optional. What type of media is the content (ie "audio"). #[serde(rename="mediaType")] - pub media_type: Option, + pub media_type: Option, } impl client::Part for GoogleCloudDialogflowV2beta1IntentMessageMediaContent {} @@ -2610,7 +2610,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia { pub file_uri: Option, /// Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored. - pub height: Option, + pub height: Option, /// Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button. #[serde(rename="thumbnailUri")] @@ -2634,7 +2634,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard { /// Required. The width of the cards in the carousel. #[serde(rename="cardWidth")] - pub card_width: Option, + pub card_width: Option, } impl client::Part for GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard {} @@ -2654,11 +2654,11 @@ pub struct GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard { /// Required. Orientation of the card. #[serde(rename="cardOrientation")] - pub card_orientation: Option, + pub card_orientation: Option, /// Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. #[serde(rename="thumbnailImageAlignment")] - pub thumbnail_image_alignment: Option, + pub thumbnail_image_alignment: Option, } impl client::Part for GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard {} @@ -3069,7 +3069,7 @@ pub struct GoogleCloudDialogflowV2beta1IntentTrainingPhrase { /// Required. The type of the training phrase. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowV2beta1IntentTrainingPhrase {} @@ -3137,7 +3137,7 @@ pub struct GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer { /// The system's confidence level that this knowledge answer is a good match for this conversational query. NOTE: The confidence level for a given `` pair may change without notice, as it depends on models that are constantly being improved. However, it will change less frequently than the confidence score below, and should be preferred for referencing the quality of an answer. #[serde(rename="matchConfidenceLevel")] - pub match_confidence_level: Option, + pub match_confidence_level: Option, /// Indicates which Knowledge Document this answer was extracted from. Format: `projects//knowledgeBases//documents/`. pub source: Option, @@ -3577,7 +3577,7 @@ pub struct GoogleCloudDialogflowV2beta1Message { /// Output only. The role of the participant. #[serde(rename="participantRole")] - pub participant_role: Option, + pub participant_role: Option, /// Optional. The time when the message was sent. #[serde(rename="sendTime")] @@ -3620,7 +3620,7 @@ pub struct GoogleCloudDialogflowV2beta1NotificationConfig { /// Format of message. #[serde(rename="messageFormat")] - pub message_format: Option, + pub message_format: Option, /// Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony integration to receive notification, make sure either this topic is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. For chat integration to receive notification, make sure API caller has been granted the `Dialogflow Service Agent` role for the topic. Format: `projects//locations//topics/`. pub topic: Option, @@ -3658,7 +3658,7 @@ pub struct GoogleCloudDialogflowV2beta1OutputAudioConfig { /// Required. Audio encoding of the synthesized audio content. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality). #[serde(rename="sampleRateHertz")] @@ -3701,7 +3701,7 @@ pub struct GoogleCloudDialogflowV2beta1Participant { pub obfuscated_external_user_id: Option, /// Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable. - pub role: Option, + pub role: Option, } impl client::RequestValue for GoogleCloudDialogflowV2beta1Participant {} @@ -4147,7 +4147,7 @@ pub struct GoogleCloudDialogflowV2beta1SessionEntityType { /// Required. Indicates whether the additional data should override or supplement the custom entity type definition. #[serde(rename="entityOverrideMode")] - pub entity_override_mode: Option, + pub entity_override_mode: Option, /// Required. The unique identifier of this session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented. pub name: Option, @@ -4172,7 +4172,7 @@ pub struct GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest { /// Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used. #[serde(rename="participantRole")] - pub participant_role: Option, + pub participant_role: Option, /// Required. The suggestion feature config to add or update. #[serde(rename="suggestionFeatureConfig")] @@ -4235,7 +4235,7 @@ pub struct GoogleCloudDialogflowV2beta1SpeechToTextConfig { /// The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error. #[serde(rename="speechModelVariant")] - pub speech_model_variant: Option, + pub speech_model_variant: Option, } impl client::Part for GoogleCloudDialogflowV2beta1SpeechToTextConfig {} @@ -4608,7 +4608,7 @@ pub struct GoogleCloudDialogflowV2beta1SuggestionFeature { /// Type of Human Agent Assistant API feature to request. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowV2beta1SuggestionFeature {} @@ -4681,7 +4681,7 @@ pub struct GoogleCloudDialogflowV2beta1TelephonyDtmfEvents { /// A sequence of TelephonyDtmf digits. #[serde(rename="dtmfEvents")] - pub dtmf_events: Option>, + pub dtmf_events: Option>, } impl client::Part for GoogleCloudDialogflowV2beta1TelephonyDtmfEvents {} @@ -4720,7 +4720,7 @@ pub struct GoogleCloudDialogflowV2beta1TextToSpeechSettings { /// Required. Audio encoding of the synthesized audio content. #[serde(rename="outputAudioEncoding")] - pub output_audio_encoding: Option, + pub output_audio_encoding: Option, /// Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality). #[serde(rename="sampleRateHertz")] @@ -4766,7 +4766,7 @@ pub struct GoogleCloudDialogflowV2beta1ValidationError { pub error_message: Option, /// The severity of the error. - pub severity: Option, + pub severity: Option, } impl client::Part for GoogleCloudDialogflowV2beta1ValidationError {} @@ -4821,7 +4821,7 @@ pub struct GoogleCloudDialogflowV2beta1Version { pub name: Option, /// Output only. The status of this version. This field is read-only and cannot be set by create and update methods. - pub status: Option, + pub status: Option, /// Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods. #[serde(rename="versionNumber")] @@ -4845,7 +4845,7 @@ pub struct GoogleCloudDialogflowV2beta1VoiceSelectionParams { /// Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request. #[serde(rename="ssmlGender")] - pub ssml_gender: Option, + pub ssml_gender: Option, } impl client::Part for GoogleCloudDialogflowV2beta1VoiceSelectionParams {} diff --git a/gen/dialogflow3/src/api/mod.rs b/gen/dialogflow3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dialogflow3/src/api/mod.rs +++ b/gen/dialogflow3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dialogflow3/src/api/schemas.rs b/gen/dialogflow3/src/api/schemas.rs index f338485a70..1c5a53402e 100644 --- a/gen/dialogflow3/src/api/schemas.rs +++ b/gen/dialogflow3/src/api/schemas.rs @@ -328,7 +328,7 @@ pub struct GoogleCloudDialogflowCxV3ContinuousTestResult { pub name: Option, /// The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not. - pub result: Option, + pub result: Option, /// Time when the continuous testing run starts. #[serde(rename="runTime")] @@ -478,7 +478,7 @@ pub struct GoogleCloudDialogflowCxV3Deployment { pub start_time: Option>, /// The current state of the deployment. - pub state: Option, + pub state: Option, } impl client::ResponseResult for GoogleCloudDialogflowCxV3Deployment {} @@ -568,7 +568,7 @@ pub struct GoogleCloudDialogflowCxV3DetectIntentResponse { /// Response type. #[serde(rename="responseType")] - pub response_type: Option, + pub response_type: Option, } impl client::ResponseResult for GoogleCloudDialogflowCxV3DetectIntentResponse {} @@ -609,7 +609,7 @@ pub struct GoogleCloudDialogflowCxV3EntityType { /// Indicates whether the entity type can be automatically expanded. #[serde(rename="autoExpansionMode")] - pub auto_expansion_mode: Option, + pub auto_expansion_mode: Option, /// Required. The human-readable name of the entity type, unique within the agent. #[serde(rename="displayName")] @@ -627,7 +627,7 @@ pub struct GoogleCloudDialogflowCxV3EntityType { pub excluded_phrases: Option>, /// Required. Indicates the kind of entity type. - pub kind: Option, + pub kind: Option, /// The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType. Format: `projects//locations//agents//entityTypes/`. pub name: Option, @@ -884,7 +884,7 @@ pub struct GoogleCloudDialogflowCxV3Experiment { pub start_time: Option>, /// The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE. - pub state: Option, + pub state: Option, /// The history of updates to the experiment variants. #[serde(rename="variantsHistory")] @@ -978,14 +978,14 @@ pub struct GoogleCloudDialogflowCxV3ExperimentResultMetric { /// Count-based metric type. Only one of type or count_type is specified in each Metric. #[serde(rename="countType")] - pub count_type: Option, + pub count_type: Option, /// Ratio value of a metric. pub ratio: Option, /// Ratio-based metric type. Only one of type or count_type is specified in each Metric. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowCxV3ExperimentResultMetric {} @@ -1031,7 +1031,7 @@ pub struct GoogleCloudDialogflowCxV3ExportAgentRequest { /// Optional. The data format of the exported agent. If not specified, `BLOB` is assumed. #[serde(rename="dataFormat")] - pub data_format: Option, + pub data_format: Option, /// Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`. pub environment: Option, @@ -1078,7 +1078,7 @@ pub struct GoogleCloudDialogflowCxV3ExportTestCasesRequest { /// The data format of the exported test cases. If not specified, `BLOB` is assumed. #[serde(rename="dataFormat")] - pub data_format: Option, + pub data_format: Option, /// The filter expression used to filter exported test cases, see [API Filtering](https://aip.dev/160). The expression is case insensitive and supports the following syntax: name = [OR name = ] ... For example: * "name = t1 OR name = t2" matches the test case with the exact resource name "t1" or "t2". pub filter: Option, @@ -1427,7 +1427,7 @@ pub struct GoogleCloudDialogflowCxV3ImportFlowRequest { /// Flow import mode. If not specified, `KEEP` is assumed. #[serde(rename="importOption")] - pub import_option: Option, + pub import_option: Option, } impl client::RequestValue for GoogleCloudDialogflowCxV3ImportFlowRequest {} @@ -1467,7 +1467,7 @@ pub struct GoogleCloudDialogflowCxV3InputAudioConfig { /// Required. Audio encoding of the audio content to process. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// Optional. If `true`, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information. #[serde(rename="enableWordInfo")] @@ -1478,7 +1478,7 @@ pub struct GoogleCloudDialogflowCxV3InputAudioConfig { /// Optional. Which variant of the Speech model to use. #[serde(rename="modelVariant")] - pub model_variant: Option, + pub model_variant: Option, /// Optional. A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. #[serde(rename="phraseHints")] @@ -2122,7 +2122,7 @@ pub struct GoogleCloudDialogflowCxV3Match { /// Type of this Match. #[serde(rename="matchType")] - pub match_type: Option, + pub match_type: Option, /// The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value. pub parameters: Option>, @@ -2212,11 +2212,11 @@ pub struct GoogleCloudDialogflowCxV3NluSettings { /// Indicates NLU model training mode. #[serde(rename="modelTrainingMode")] - pub model_training_mode: Option, + pub model_training_mode: Option, /// Indicates the type of NLU model. #[serde(rename="modelType")] - pub model_type: Option, + pub model_type: Option, } impl client::Part for GoogleCloudDialogflowCxV3NluSettings {} @@ -2232,7 +2232,7 @@ pub struct GoogleCloudDialogflowCxV3OutputAudioConfig { /// Required. Audio encoding of the synthesized audio content. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality). #[serde(rename="sampleRateHertz")] @@ -2693,7 +2693,7 @@ pub struct GoogleCloudDialogflowCxV3RestoreAgentRequest { /// Agent restore mode. If not specified, `KEEP` is assumed. #[serde(rename="restoreOption")] - pub restore_option: Option, + pub restore_option: Option, } impl client::RequestValue for GoogleCloudDialogflowCxV3RestoreAgentRequest {} @@ -2844,15 +2844,15 @@ pub struct GoogleCloudDialogflowCxV3SecuritySettings { /// List of types of data to remove when retention settings triggers purge. #[serde(rename="purgeDataTypes")] - pub purge_data_types: Option>, + pub purge_data_types: Option>, /// Defines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to – for example, Cloud logging. #[serde(rename="redactionScope")] - pub redaction_scope: Option, + pub redaction_scope: Option, /// Strategy that defines how we do redaction. #[serde(rename="redactionStrategy")] - pub redaction_strategy: Option, + pub redaction_strategy: Option, /// Retains the data for the specified number of days. User must set a value lower than Dialogflow's default 365d TTL (30 days for Agent Assist traffic), higher value will be ignored and use default. Setting a value higher than that has no effect. A missing value or setting to 0 also means we use default TTL. #[serde(rename="retentionWindowDays")] @@ -2877,7 +2877,7 @@ pub struct GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings { /// File format for exported audio file. Currently only in telephony recordings. #[serde(rename="audioFormat")] - pub audio_format: Option, + pub audio_format: Option, /// Enable audio redaction if it is true. #[serde(rename="enableAudioRedaction")] @@ -2947,7 +2947,7 @@ pub struct GoogleCloudDialogflowCxV3SessionEntityType { /// Required. Indicates whether the additional data should override or supplement the custom entity type definition. #[serde(rename="entityOverrideMode")] - pub entity_override_mode: Option, + pub entity_override_mode: Option, /// Required. The unique identifier of the session entity type. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment. pub name: Option, @@ -3105,7 +3105,7 @@ pub struct GoogleCloudDialogflowCxV3TestCaseResult { /// Whether the test case passed in the agent environment. #[serde(rename="testResult")] - pub test_result: Option, + pub test_result: Option, /// The time that the test was run. #[serde(rename="testTime")] @@ -3150,7 +3150,7 @@ pub struct GoogleCloudDialogflowCxV3TestRunDifference { /// The type of diff. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDialogflowCxV3TestRunDifference {} @@ -3436,13 +3436,13 @@ pub struct GoogleCloudDialogflowCxV3ValidationMessage { /// The type of the resources where the message is found. #[serde(rename="resourceType")] - pub resource_type: Option, + pub resource_type: Option, /// The names of the resources where the message is found. pub resources: Option>, /// Indicates the severity of the message. - pub severity: Option, + pub severity: Option, } impl client::Part for GoogleCloudDialogflowCxV3ValidationMessage {} @@ -3501,7 +3501,7 @@ pub struct GoogleCloudDialogflowCxV3Version { pub nlu_settings: Option, /// Output only. The state of this version. This field is read-only and cannot be set by create and update methods. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudDialogflowCxV3Version {} @@ -3559,7 +3559,7 @@ pub struct GoogleCloudDialogflowCxV3VoiceSelectionParams { /// Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer substitutes a voice with a different gender rather than failing the request. #[serde(rename="ssmlGender")] - pub ssml_gender: Option, + pub ssml_gender: Option, } impl client::Part for GoogleCloudDialogflowCxV3VoiceSelectionParams {} diff --git a/gen/digitalassetlinks1/src/api/mod.rs b/gen/digitalassetlinks1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/digitalassetlinks1/src/api/mod.rs +++ b/gen/digitalassetlinks1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/digitalassetlinks1/src/api/schemas.rs b/gen/digitalassetlinks1/src/api/schemas.rs index 05f877c74a..cb1d1eb8d6 100644 --- a/gen/digitalassetlinks1/src/api/schemas.rs +++ b/gen/digitalassetlinks1/src/api/schemas.rs @@ -90,7 +90,7 @@ pub struct BulkCheckResponse { /// Error code for the entire request. Present only if the entire request failed. Individual check errors will not trigger the presence of this field. #[serde(rename="bulkErrorCode")] - pub bulk_error_code: Option, + pub bulk_error_code: Option, /// List of results for each check request. Results are returned in the same order in which they were sent in the request. #[serde(rename="checkResults")] @@ -134,7 +134,7 @@ pub struct CheckResponse { /// Error codes that describe the result of the Check operation. #[serde(rename="errorCode")] - pub error_code: Option>, + pub error_code: Option>, /// Set to true if the assets specified in the request are linked by the relation specified in the request. pub linked: Option, @@ -166,7 +166,7 @@ pub struct ListResponse { /// Error codes that describe the result of the List operation. #[serde(rename="errorCode")] - pub error_code: Option>, + pub error_code: Option>, /// From serving time, how much longer the response should be considered valid barring further updates. REQUIRED #[serde(rename="maxAge")] diff --git a/gen/discovery1/src/api/call_builders.rs b/gen/discovery1/src/api/call_builders.rs index e6f524f01e..ba4d02da9f 100644 --- a/gen/discovery1/src/api/call_builders.rs +++ b/gen/discovery1/src/api/call_builders.rs @@ -70,8 +70,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("api", self._api); - params.push("version", self._version); + params.push("api", &self._api); + params.push("version", &self._version); params.extend(self._additional_params.iter()); diff --git a/gen/discovery1/src/api/mod.rs b/gen/discovery1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/discovery1/src/api/mod.rs +++ b/gen/discovery1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/displayvideo1/README.md b/gen/displayvideo1/README.md index fed03ee770..119f10194e 100644 --- a/gen/displayvideo1/README.md +++ b/gen/displayvideo1/README.md @@ -211,11 +211,11 @@ let mut hub = DisplayVideo::new(hyper::Client::builder().build(hyper_rustls::Htt // You can configure optional parameters by calling the respective setters at will, and // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! -let result = hub.advertisers().campaigns_targeting_types_assigned_targeting_options_list(-22, -33, "targetingType") - .page_token("ipsum") - .page_size(-28) - .order_by("At") - .filter("sanctus") +let result = hub.advertisers().campaigns_targeting_types_assigned_targeting_options_list(-22, -33, &Default::default()) + .page_token("no") + .page_size(-55) + .order_by("voluptua.") + .filter("At") .doit().await; match result { diff --git a/gen/displayvideo1/src/api/hub.rs b/gen/displayvideo1/src/api/hub.rs index 45f2e218bc..2b58bb9d3f 100644 --- a/gen/displayvideo1/src/api/hub.rs +++ b/gen/displayvideo1/src/api/hub.rs @@ -31,11 +31,11 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.advertisers().campaigns_targeting_types_assigned_targeting_options_list(-51, -12, "targetingType") -/// .page_token("dolor") -/// .page_size(-17) -/// .order_by("ipsum") -/// .filter("invidunt") +/// let result = hub.advertisers().campaigns_targeting_types_assigned_targeting_options_list(-55, -62, &Default::default()) +/// .page_token("Lorem") +/// .page_size(-12) +/// .order_by("eos") +/// .filter("dolor") /// .doit().await; /// /// match result { diff --git a/gen/displayvideo1/src/api/method_builders.rs b/gen/displayvideo1/src/api/method_builders.rs index 2695c63b88..66d616e9b7 100644 --- a/gen/displayvideo1/src/api/method_builders.rs +++ b/gen/displayvideo1/src/api/method_builders.rs @@ -66,12 +66,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `campaignId` - Required. The ID of the campaign the assigned targeting option belongs to. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_VIEWABILITY` /// * `assignedTargetingOptionId` - Required. An identifier unique to the targeting type in this campaign that identifies the assigned targeting option being requested. - pub fn campaigns_targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, campaign_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> AdvertiserCampaignTargetingTypeAssignedTargetingOptionGetCall<'a, S> { + pub fn campaigns_targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, campaign_id: i64, targeting_type: &AdvertiserTargetingTypeEnum, assigned_targeting_option_id: &str) -> AdvertiserCampaignTargetingTypeAssignedTargetingOptionGetCall<'a, S> { AdvertiserCampaignTargetingTypeAssignedTargetingOptionGetCall { hub: self.hub, _advertiser_id: advertiser_id, _campaign_id: campaign_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -88,12 +88,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `advertiserId` - Required. The ID of the advertiser the campaign belongs to. /// * `campaignId` - Required. The ID of the campaign to list assigned targeting options for. /// * `targetingType` - Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_VIEWABILITY` - pub fn campaigns_targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, campaign_id: i64, targeting_type: &str) -> AdvertiserCampaignTargetingTypeAssignedTargetingOptionListCall<'a, S> { + pub fn campaigns_targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, campaign_id: i64, targeting_type: &AdvertiserTargetingTypeEnum) -> AdvertiserCampaignTargetingTypeAssignedTargetingOptionListCall<'a, S> { AdvertiserCampaignTargetingTypeAssignedTargetingOptionListCall { hub: self.hub, _advertiser_id: advertiser_id, _campaign_id: campaign_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _page_token: Default::default(), _page_size: Default::default(), _order_by: Default::default(), @@ -532,12 +532,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `insertionOrderId` - Required. The ID of the insertion order the assigned targeting option belongs to. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. /// * `assignedTargetingOptionId` - Required. An identifier unique to the targeting type in this insertion order that identifies the assigned targeting option being requested. - pub fn insertion_orders_targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, insertion_order_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> AdvertiserInsertionOrderTargetingTypeAssignedTargetingOptionGetCall<'a, S> { + pub fn insertion_orders_targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, insertion_order_id: i64, targeting_type: &AdvertiserTargetingTypeEnum, assigned_targeting_option_id: &str) -> AdvertiserInsertionOrderTargetingTypeAssignedTargetingOptionGetCall<'a, S> { AdvertiserInsertionOrderTargetingTypeAssignedTargetingOptionGetCall { hub: self.hub, _advertiser_id: advertiser_id, _insertion_order_id: insertion_order_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -554,12 +554,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `advertiserId` - Required. The ID of the advertiser the insertion order belongs to. /// * `insertionOrderId` - Required. The ID of the insertion order to list assigned targeting options for. /// * `targetingType` - Required. Identifies the type of assigned targeting options to list. - pub fn insertion_orders_targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, insertion_order_id: i64, targeting_type: &str) -> AdvertiserInsertionOrderTargetingTypeAssignedTargetingOptionListCall<'a, S> { + pub fn insertion_orders_targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, insertion_order_id: i64, targeting_type: &AdvertiserTargetingTypeEnum) -> AdvertiserInsertionOrderTargetingTypeAssignedTargetingOptionListCall<'a, S> { AdvertiserInsertionOrderTargetingTypeAssignedTargetingOptionListCall { hub: self.hub, _advertiser_id: advertiser_id, _insertion_order_id: insertion_order_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _page_token: Default::default(), _page_size: Default::default(), _order_by: Default::default(), @@ -742,13 +742,13 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `advertiserId` - Required. The ID of the advertiser the line item belongs to. /// * `lineItemId` - Required. The ID of the line item the assigned targeting option will belong to. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. - pub fn line_items_targeting_types_assigned_targeting_options_create(&self, request: AssignedTargetingOption, advertiser_id: i64, line_item_id: i64, targeting_type: &str) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionCreateCall<'a, S> { + pub fn line_items_targeting_types_assigned_targeting_options_create(&self, request: AssignedTargetingOption, advertiser_id: i64, line_item_id: i64, targeting_type: &AdvertiserTargetingTypeEnum) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionCreateCall<'a, S> { AdvertiserLineItemTargetingTypeAssignedTargetingOptionCreateCall { hub: self.hub, _request: request, _advertiser_id: advertiser_id, _line_item_id: line_item_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -765,12 +765,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `lineItemId` - Required. The ID of the line item the assigned targeting option belongs to. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. /// * `assignedTargetingOptionId` - Required. The ID of the assigned targeting option to delete. - pub fn line_items_targeting_types_assigned_targeting_options_delete(&self, advertiser_id: i64, line_item_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionDeleteCall<'a, S> { + pub fn line_items_targeting_types_assigned_targeting_options_delete(&self, advertiser_id: i64, line_item_id: i64, targeting_type: &AdvertiserTargetingTypeEnum, assigned_targeting_option_id: &str) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionDeleteCall<'a, S> { AdvertiserLineItemTargetingTypeAssignedTargetingOptionDeleteCall { hub: self.hub, _advertiser_id: advertiser_id, _line_item_id: line_item_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -788,12 +788,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `lineItemId` - Required. The ID of the line item the assigned targeting option belongs to. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. /// * `assignedTargetingOptionId` - Required. An identifier unique to the targeting type in this line item that identifies the assigned targeting option being requested. - pub fn line_items_targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, line_item_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionGetCall<'a, S> { + pub fn line_items_targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, line_item_id: i64, targeting_type: &AdvertiserTargetingTypeEnum, assigned_targeting_option_id: &str) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionGetCall<'a, S> { AdvertiserLineItemTargetingTypeAssignedTargetingOptionGetCall { hub: self.hub, _advertiser_id: advertiser_id, _line_item_id: line_item_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -810,12 +810,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `advertiserId` - Required. The ID of the advertiser the line item belongs to. /// * `lineItemId` - Required. The ID of the line item to list assigned targeting options for. /// * `targetingType` - Required. Identifies the type of assigned targeting options to list. - pub fn line_items_targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, line_item_id: i64, targeting_type: &str) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionListCall<'a, S> { + pub fn line_items_targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, line_item_id: i64, targeting_type: &AdvertiserTargetingTypeEnum) -> AdvertiserLineItemTargetingTypeAssignedTargetingOptionListCall<'a, S> { AdvertiserLineItemTargetingTypeAssignedTargetingOptionListCall { hub: self.hub, _advertiser_id: advertiser_id, _line_item_id: line_item_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _page_token: Default::default(), _page_size: Default::default(), _order_by: Default::default(), @@ -1493,12 +1493,12 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `request` - No description provided. /// * `advertiserId` - Required. The ID of the advertiser. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` - pub fn targeting_types_assigned_targeting_options_create(&self, request: AssignedTargetingOption, advertiser_id: i64, targeting_type: &str) -> AdvertiserTargetingTypeAssignedTargetingOptionCreateCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_create(&self, request: AssignedTargetingOption, advertiser_id: i64, targeting_type: &AdvertiserTargetingTypeEnum) -> AdvertiserTargetingTypeAssignedTargetingOptionCreateCall<'a, S> { AdvertiserTargetingTypeAssignedTargetingOptionCreateCall { hub: self.hub, _request: request, _advertiser_id: advertiser_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -1514,11 +1514,11 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `advertiserId` - Required. The ID of the advertiser. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` /// * `assignedTargetingOptionId` - Required. The ID of the assigned targeting option to delete. - pub fn targeting_types_assigned_targeting_options_delete(&self, advertiser_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> AdvertiserTargetingTypeAssignedTargetingOptionDeleteCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_delete(&self, advertiser_id: i64, targeting_type: &AdvertiserTargetingTypeEnum, assigned_targeting_option_id: &str) -> AdvertiserTargetingTypeAssignedTargetingOptionDeleteCall<'a, S> { AdvertiserTargetingTypeAssignedTargetingOptionDeleteCall { hub: self.hub, _advertiser_id: advertiser_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -1535,11 +1535,11 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// * `advertiserId` - Required. The ID of the advertiser. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` /// * `assignedTargetingOptionId` - Required. An identifier unique to the targeting type in this advertiser that identifies the assigned targeting option being requested. - pub fn targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> AdvertiserTargetingTypeAssignedTargetingOptionGetCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_get(&self, advertiser_id: i64, targeting_type: &AdvertiserTargetingTypeEnum, assigned_targeting_option_id: &str) -> AdvertiserTargetingTypeAssignedTargetingOptionGetCall<'a, S> { AdvertiserTargetingTypeAssignedTargetingOptionGetCall { hub: self.hub, _advertiser_id: advertiser_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -1555,11 +1555,11 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// /// * `advertiserId` - Required. The ID of the advertiser. /// * `targetingType` - Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` - pub fn targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, targeting_type: &str) -> AdvertiserTargetingTypeAssignedTargetingOptionListCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_list(&self, advertiser_id: i64, targeting_type: &AdvertiserTargetingTypeEnum) -> AdvertiserTargetingTypeAssignedTargetingOptionListCall<'a, S> { AdvertiserTargetingTypeAssignedTargetingOptionListCall { hub: self.hub, _advertiser_id: advertiser_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _page_token: Default::default(), _page_size: Default::default(), _order_by: Default::default(), @@ -3181,12 +3181,12 @@ impl<'a, S> PartnerMethods<'a, S> { /// * `request` - No description provided. /// * `partnerId` - Required. The ID of the partner. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` - pub fn targeting_types_assigned_targeting_options_create(&self, request: AssignedTargetingOption, partner_id: i64, targeting_type: &str) -> PartnerTargetingTypeAssignedTargetingOptionCreateCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_create(&self, request: AssignedTargetingOption, partner_id: i64, targeting_type: &PartnerTargetingTypeEnum) -> PartnerTargetingTypeAssignedTargetingOptionCreateCall<'a, S> { PartnerTargetingTypeAssignedTargetingOptionCreateCall { hub: self.hub, _request: request, _partner_id: partner_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -3202,11 +3202,11 @@ impl<'a, S> PartnerMethods<'a, S> { /// * `partnerId` - Required. The ID of the partner. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` /// * `assignedTargetingOptionId` - Required. The ID of the assigned targeting option to delete. - pub fn targeting_types_assigned_targeting_options_delete(&self, partner_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> PartnerTargetingTypeAssignedTargetingOptionDeleteCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_delete(&self, partner_id: i64, targeting_type: &PartnerTargetingTypeEnum, assigned_targeting_option_id: &str) -> PartnerTargetingTypeAssignedTargetingOptionDeleteCall<'a, S> { PartnerTargetingTypeAssignedTargetingOptionDeleteCall { hub: self.hub, _partner_id: partner_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -3223,11 +3223,11 @@ impl<'a, S> PartnerMethods<'a, S> { /// * `partnerId` - Required. The ID of the partner. /// * `targetingType` - Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` /// * `assignedTargetingOptionId` - Required. An identifier unique to the targeting type in this partner that identifies the assigned targeting option being requested. - pub fn targeting_types_assigned_targeting_options_get(&self, partner_id: i64, targeting_type: &str, assigned_targeting_option_id: &str) -> PartnerTargetingTypeAssignedTargetingOptionGetCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_get(&self, partner_id: i64, targeting_type: &PartnerTargetingTypeEnum, assigned_targeting_option_id: &str) -> PartnerTargetingTypeAssignedTargetingOptionGetCall<'a, S> { PartnerTargetingTypeAssignedTargetingOptionGetCall { hub: self.hub, _partner_id: partner_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _assigned_targeting_option_id: assigned_targeting_option_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -3243,11 +3243,11 @@ impl<'a, S> PartnerMethods<'a, S> { /// /// * `partnerId` - Required. The ID of the partner. /// * `targetingType` - Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` - pub fn targeting_types_assigned_targeting_options_list(&self, partner_id: i64, targeting_type: &str) -> PartnerTargetingTypeAssignedTargetingOptionListCall<'a, S> { + pub fn targeting_types_assigned_targeting_options_list(&self, partner_id: i64, targeting_type: &PartnerTargetingTypeEnum) -> PartnerTargetingTypeAssignedTargetingOptionListCall<'a, S> { PartnerTargetingTypeAssignedTargetingOptionListCall { hub: self.hub, _partner_id: partner_id, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _page_token: Default::default(), _page_size: Default::default(), _order_by: Default::default(), @@ -3434,10 +3434,10 @@ impl<'a, S> TargetingTypeMethods<'a, S> { /// /// * `targetingType` - Required. The type of targeting option to retrieve. Accepted values are: * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` /// * `targetingOptionId` - Required. The ID of the of targeting option to retrieve. - pub fn targeting_options_get(&self, targeting_type: &str, targeting_option_id: &str) -> TargetingTypeTargetingOptionGetCall<'a, S> { + pub fn targeting_options_get(&self, targeting_type: &TargetingTypeTargetingTypeEnum, targeting_option_id: &str) -> TargetingTypeTargetingOptionGetCall<'a, S> { TargetingTypeTargetingOptionGetCall { hub: self.hub, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _targeting_option_id: targeting_option_id.to_string(), _advertiser_id: Default::default(), _delegate: Default::default(), @@ -3453,10 +3453,10 @@ impl<'a, S> TargetingTypeMethods<'a, S> { /// # Arguments /// /// * `targetingType` - Required. The type of targeting option to be listed. Accepted values are: * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` - pub fn targeting_options_list(&self, targeting_type: &str) -> TargetingTypeTargetingOptionListCall<'a, S> { + pub fn targeting_options_list(&self, targeting_type: &TargetingTypeTargetingTypeEnum) -> TargetingTypeTargetingOptionListCall<'a, S> { TargetingTypeTargetingOptionListCall { hub: self.hub, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _page_token: Default::default(), _page_size: Default::default(), _order_by: Default::default(), @@ -3476,11 +3476,11 @@ impl<'a, S> TargetingTypeMethods<'a, S> { /// /// * `request` - No description provided. /// * `targetingType` - Required. The type of targeting options to retrieve. Accepted values are: * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_BUSINESS_CHAIN` - pub fn targeting_options_search(&self, request: SearchTargetingOptionsRequest, targeting_type: &str) -> TargetingTypeTargetingOptionSearchCall<'a, S> { + pub fn targeting_options_search(&self, request: SearchTargetingOptionsRequest, targeting_type: &TargetingTypeTargetingTypeEnum) -> TargetingTypeTargetingOptionSearchCall<'a, S> { TargetingTypeTargetingOptionSearchCall { hub: self.hub, _request: request, - _targeting_type: targeting_type.to_string(), + _targeting_type: targeting_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/displayvideo1/src/api/mod.rs b/gen/displayvideo1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/displayvideo1/src/api/mod.rs +++ b/gen/displayvideo1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/displayvideo1/src/api/schemas.rs b/gen/displayvideo1/src/api/schemas.rs index 22eae72dcb..6875d8ab57 100644 --- a/gen/displayvideo1/src/api/schemas.rs +++ b/gen/displayvideo1/src/api/schemas.rs @@ -28,19 +28,19 @@ pub struct ActiveViewVideoViewabilityMetricConfig { /// The minimum visible video duration required (in seconds) in order for an impression to be recorded. You must specify minimum_duration, minimum_quartile or both. If both are specified, an impression meets the metric criteria if either requirement is met (whichever happens first). #[serde(rename="minimumDuration")] - pub minimum_duration: Option, + pub minimum_duration: Option, /// The minimum visible video duration required, based on the video quartiles, in order for an impression to be recorded. You must specify minimum_duration, minimum_quartile or both. If both are specified, an impression meets the metric criteria if either requirement is met (whichever happens first). #[serde(rename="minimumQuartile")] - pub minimum_quartile: Option, + pub minimum_quartile: Option, /// Required. The minimum percentage of the video ad's pixels visible on the screen in order for an impression to be recorded. #[serde(rename="minimumViewability")] - pub minimum_viewability: Option, + pub minimum_viewability: Option, /// Required. The minimum percentage of the video ad's volume required in order for an impression to be recorded. #[serde(rename="minimumVolume")] - pub minimum_volume: Option, + pub minimum_volume: Option, } impl client::Part for ActiveViewVideoViewabilityMetricConfig {} @@ -56,7 +56,7 @@ pub struct Adloox { /// Adloox's brand safety settings. #[serde(rename="excludedAdlooxCategories")] - pub excluded_adloox_categories: Option>, + pub excluded_adloox_categories: Option>, } impl client::Part for Adloox {} @@ -177,7 +177,7 @@ pub struct Advertiser { /// Required. Controls whether or not insertion orders and line items of the advertiser can spend their budgets and bid on inventory. * Accepted values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_PAUSED` and `ENTITY_STATUS_SCHEDULED_FOR_DELETION`. * If set to `ENTITY_STATUS_SCHEDULED_FOR_DELETION`, the advertiser will be deleted 30 days from when it was first scheduled for deletion. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Required. General settings of the advertiser. #[serde(rename="generalConfig")] @@ -348,7 +348,7 @@ pub struct AgeRangeAssignedTargetingOptionDetails { /// The age range of an audience. We only support targeting a continuous age range of an audience. Thus, the age range represented in this field can be 1) targeted solely, or, 2) part of a larger continuous age range. The reach of a continuous age range targeting can be expanded by also targeting an audience of an unknown age. Output only in v1. Required in v2. #[serde(rename="ageRange")] - pub age_range: Option, + pub age_range: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_AGE_RANGE`. #[serde(rename="targetingOptionId")] @@ -368,7 +368,7 @@ pub struct AgeRangeTargetingOptionDetails { /// Output only. The age range of an audience. #[serde(rename="ageRange")] - pub age_range: Option, + pub age_range: Option, } impl client::Part for AgeRangeTargetingOptionDetails {} @@ -388,7 +388,7 @@ pub struct AppAssignedTargetingOptionDetails { /// Indicates the platform of the targeted app. If this field is not specified, the app platform will be assumed to be mobile (i.e., Android or iOS), and we will derive the appropriate mobile platform from the app ID. #[serde(rename="appPlatform")] - pub app_platform: Option, + pub app_platform: Option, /// Output only. The display name of the app. #[serde(rename="displayName")] @@ -472,7 +472,7 @@ pub struct AssetAssociation { pub asset: Option, /// The role of this asset for the creative. - pub role: Option, + pub role: Option, } impl client::Part for AssetAssociation {} @@ -660,7 +660,7 @@ pub struct AssignedTargetingOption { pub household_income_details: Option, /// Output only. The inheritance status of the assigned targeting option. - pub inheritance: Option, + pub inheritance: Option, /// Inventory source details. This field will be populated when the targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`. #[serde(rename="inventorySourceDetails")] @@ -727,7 +727,7 @@ pub struct AssignedTargetingOption { /// Output only. Identifies the type of this assigned targeting option. #[serde(rename="targetingType")] - pub targeting_type: Option, + pub targeting_type: Option, /// Third party verification details. This field will be populated when the targeting_type is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. #[serde(rename="thirdPartyVerifierDetails")] @@ -778,7 +778,7 @@ pub struct AssignedUserRole { /// Required. The user role to assign to a user for the entity. #[serde(rename="userRole")] - pub user_role: Option, + pub user_role: Option, } impl client::Part for AssignedUserRole {} @@ -830,7 +830,7 @@ pub struct AudioContentTypeAssignedTargetingOptionDetails { /// The audio content type. Output only in v1. Required in v2. #[serde(rename="audioContentType")] - pub audio_content_type: Option, + pub audio_content_type: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. #[serde(rename="targetingOptionId")] @@ -850,7 +850,7 @@ pub struct AudioContentTypeTargetingOptionDetails { /// Output only. The audio content type. #[serde(rename="audioContentType")] - pub audio_content_type: Option, + pub audio_content_type: Option, } impl client::Part for AudioContentTypeTargetingOptionDetails {} @@ -942,7 +942,7 @@ pub struct AuthorizedSellerStatusAssignedTargetingOptionDetails { /// Output only. The authorized seller status to target. #[serde(rename="authorizedSellerStatus")] - pub authorized_seller_status: Option, + pub authorized_seller_status: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. #[serde(rename="targetingOptionId")] @@ -962,7 +962,7 @@ pub struct AuthorizedSellerStatusTargetingOptionDetails { /// Output only. The authorized seller status. #[serde(rename="authorizedSellerStatus")] - pub authorized_seller_status: Option, + pub authorized_seller_status: Option, } impl client::Part for AuthorizedSellerStatusTargetingOptionDetails {} @@ -1555,7 +1555,7 @@ pub struct BusinessChainAssignedTargetingOptionDetails { /// Required. The unit of distance by which the targeting radius is measured. #[serde(rename="proximityRadiusUnit")] - pub proximity_radius_unit: Option, + pub proximity_radius_unit: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_BUSINESS_CHAIN`. Accepted business chain targeting option IDs can be retrieved using SearchTargetingOptions. #[serde(rename="targetingOptionId")] @@ -1603,7 +1603,7 @@ pub struct BusinessChainTargetingOptionDetails { /// Output only. The type of the geographic region. #[serde(rename="geoRegionType")] - pub geo_region_type: Option, + pub geo_region_type: Option, } impl client::Part for BusinessChainTargetingOptionDetails {} @@ -1651,7 +1651,7 @@ pub struct Campaign { /// Required. Controls whether or not the insertion orders under this campaign can spend their budgets and bid on inventory. * Accepted values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. * For CreateCampaign method, `ENTITY_STATUS_ARCHIVED` is not allowed. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Required. The frequency cap setting of the campaign. #[serde(rename="frequencyCap")] @@ -1689,7 +1689,7 @@ pub struct CampaignBudget { /// Required. Immutable. Specifies whether the budget is measured in currency or impressions. #[serde(rename="budgetUnit")] - pub budget_unit: Option, + pub budget_unit: Option, /// Required. The date range for the campaign budget. Linked budget segments may have a different date range. They are resolved relative to the parent advertiser's time zone. Both `start_date` and `end_date` must be before the year 2037. #[serde(rename="dateRange")] @@ -1705,7 +1705,7 @@ pub struct CampaignBudget { /// Required. The external source of the budget. #[serde(rename="externalBudgetSource")] - pub external_budget_source: Option, + pub external_budget_source: Option, /// Immutable. The ID used to group budgets to be included the same invoice. If this field is set and the invoice level of the corresponding billing profile is set to "Budget invoice grouping ID", all external_budget_id sharing the same invoice_grouping_id will be grouped in the same invoice. #[serde(rename="invoiceGroupingId")] @@ -1750,7 +1750,7 @@ pub struct CampaignGoal { /// Required. The type of the campaign goal. #[serde(rename="campaignGoalType")] - pub campaign_goal_type: Option, + pub campaign_goal_type: Option, /// Required. The performance goal of the campaign. Acceptable values for performance_goal_type are: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` * `PERFORMANCE_GOAL_TYPE_OTHER` #[serde(rename="performanceGoal")] @@ -1797,7 +1797,7 @@ pub struct CarrierAndIspTargetingOptionDetails { /// Output only. The type indicating if it's carrier or ISP. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CarrierAndIspTargetingOptionDetails {} @@ -2106,7 +2106,7 @@ pub struct ContentDurationAssignedTargetingOptionDetails { /// Output only. The content duration. #[serde(rename="contentDuration")] - pub content_duration: Option, + pub content_duration: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. #[serde(rename="targetingOptionId")] @@ -2126,7 +2126,7 @@ pub struct ContentDurationTargetingOptionDetails { /// Output only. The content duration. #[serde(rename="contentDuration")] - pub content_duration: Option, + pub content_duration: Option, } impl client::Part for ContentDurationTargetingOptionDetails {} @@ -2181,11 +2181,11 @@ pub struct ContentInstreamPositionAssignedTargetingOptionDetails { /// Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. * `AD_TYPE_AUDIO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_AUDIO_DEFAULT`. #[serde(rename="adType")] - pub ad_type: Option, + pub ad_type: Option, /// The content instream position for video or audio ads. Output only in v1. Required in v2. #[serde(rename="contentInstreamPosition")] - pub content_instream_position: Option, + pub content_instream_position: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. #[serde(rename="targetingOptionId")] @@ -2205,7 +2205,7 @@ pub struct ContentInstreamPositionTargetingOptionDetails { /// Output only. The content instream position. #[serde(rename="contentInstreamPosition")] - pub content_instream_position: Option, + pub content_instream_position: Option, } impl client::Part for ContentInstreamPositionTargetingOptionDetails {} @@ -2221,11 +2221,11 @@ pub struct ContentOutstreamPositionAssignedTargetingOptionDetails { /// Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. #[serde(rename="adType")] - pub ad_type: Option, + pub ad_type: Option, /// The content outstream position. Output only in v1. Required in v2. #[serde(rename="contentOutstreamPosition")] - pub content_outstream_position: Option, + pub content_outstream_position: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. #[serde(rename="targetingOptionId")] @@ -2245,7 +2245,7 @@ pub struct ContentOutstreamPositionTargetingOptionDetails { /// Output only. The content outstream position. #[serde(rename="contentOutstreamPosition")] - pub content_outstream_position: Option, + pub content_outstream_position: Option, } impl client::Part for ContentOutstreamPositionTargetingOptionDetails {} @@ -2261,7 +2261,7 @@ pub struct ContentStreamTypeAssignedTargetingOptionDetails { /// Output only. The content stream type. #[serde(rename="contentStreamType")] - pub content_stream_type: Option, + pub content_stream_type: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. #[serde(rename="targetingOptionId")] @@ -2281,7 +2281,7 @@ pub struct ContentStreamTypeTargetingOptionDetails { /// Output only. The content stream type. #[serde(rename="contentStreamType")] - pub content_stream_type: Option, + pub content_stream_type: Option, } impl client::Part for ContentStreamTypeTargetingOptionDetails {} @@ -2379,7 +2379,7 @@ pub struct CreateAssignedTargetingOptionsRequest { /// Required. Identifies the type of this assigned targeting option. #[serde(rename="targetingType")] - pub targeting_type: Option, + pub targeting_type: Option, } impl client::Part for CreateAssignedTargetingOptionsRequest {} @@ -2420,7 +2420,7 @@ pub struct CreateSdfDownloadTaskRequest { pub partner_id: Option, /// Required. The SDF version of the downloaded file. If set to `SDF_VERSION_UNSPECIFIED`, this will default to the version specified by the advertiser or partner identified by `root_id`. An advertiser inherits its SDF version from its partner unless configured otherwise. - pub version: Option, + pub version: Option, } impl client::RequestValue for CreateSdfDownloadTaskRequest {} @@ -2480,7 +2480,7 @@ pub struct Creative { /// Output only. A list of attributes of the creative that is generated by the system. #[serde(rename="creativeAttributes")] - pub creative_attributes: Option>, + pub creative_attributes: Option>, /// Output only. The unique ID of the creative. Assigned by the system. #[serde(rename="creativeId")] @@ -2489,7 +2489,7 @@ pub struct Creative { /// Required. Immutable. The type of the creative. #[serde(rename="creativeType")] - pub creative_type: Option, + pub creative_type: Option, /// Required. Primary dimensions of the creative. Applicable to all creative types. The value of width_pixels and height_pixels defaults to `0` when creative_type is one of: * `CREATIVE_TYPE_VIDEO` * `CREATIVE_TYPE_TEMPLATED_APP_INSTALL_INTERSTITIAL` * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE_VIDEO` * `CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO` pub dimensions: Option, @@ -2503,7 +2503,7 @@ pub struct Creative { /// Required. Controls whether or not the creative can serve. Accepted values are: * `ENTITY_STATUS_ACTIVE` * `ENTITY_STATUS_ARCHIVED` * `ENTITY_STATUS_PAUSED` #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Required. Exit events for this creative. An exit (also known as a click tag) is any area in your creative that someone can click or tap to open an advertiser's landing page. Every creative must include at least one exit. You can add an exit to your creative in any of the following ways: * Use Google Web Designer's tap area. * Define a JavaScript variable called "clickTag". * Use the Enabler (Enabler.exit()) to track exits in rich media formats. #[serde(rename="exitEvents")] @@ -2515,11 +2515,11 @@ pub struct Creative { /// Optional. Specifies the expanding direction of the creative. Required and only valid for third-party expandable creatives. Third-party expandable creatives are creatives with following hosting source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * `CREATIVE_TYPE_EXPANDABLE` #[serde(rename="expandingDirection")] - pub expanding_direction: Option, + pub expanding_direction: Option, /// Required. Indicates where the creative is hosted. #[serde(rename="hostingSource")] - pub hosting_source: Option, + pub hosting_source: Option, /// Output only. Indicates the third-party VAST tag creative requires HTML5 Video support. Output only and only valid for third-party VAST tag creatives. Third-party VAST tag creatives are creatives with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * `CREATIVE_TYPE_VIDEO` #[serde(rename="html5Video")] @@ -2641,7 +2641,7 @@ pub struct CreativeConfig { /// The type of creative that can be assigned to the inventory source. Only the following types are supported: * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO` #[serde(rename="creativeType")] - pub creative_type: Option, + pub creative_type: Option, /// The configuration for display creatives. Applicable when creative_type is `CREATIVE_TYPE_STANDARD`. #[serde(rename="displayCreativeConfig")] @@ -2686,11 +2686,11 @@ pub struct CustomBiddingAlgorithm { /// Output only. The status of custom bidding algorithm. #[serde(rename="customBiddingAlgorithmState")] - pub custom_bidding_algorithm_state: Option, + pub custom_bidding_algorithm_state: Option, /// Required. Immutable. The type of custom bidding algorithm. #[serde(rename="customBiddingAlgorithmType")] - pub custom_bidding_algorithm_type: Option, + pub custom_bidding_algorithm_type: Option, /// Required. The display name of the custom bidding algorithm. Must be UTF-8 encoded with a maximum size of 240 bytes. #[serde(rename="displayName")] @@ -2698,7 +2698,7 @@ pub struct CustomBiddingAlgorithm { /// Controls whether or not the custom bidding algorithm can be used as a bidding strategy. Accepted values are: * `ENTITY_STATUS_ACTIVE` * `ENTITY_STATUS_ARCHIVED` #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Output only. The state of custom bidding model readiness for each advertiser who has access. This field may only include the state of the queried advertiser if the algorithm [`owner`](https://developers.google.com/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBiddingAlgorithm.FIELDS.oneof_owner) is a partner and is being retrieved using an advertiser [`accessor`](https://developers.google.com/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY_PARAMETERS.oneof_accessor). #[serde(rename="modelReadiness")] @@ -2738,7 +2738,7 @@ pub struct CustomBiddingModelReadinessState { /// The readiness state of custom bidding model. #[serde(rename="readinessState")] - pub readiness_state: Option, + pub readiness_state: Option, } impl client::Part for CustomBiddingModelReadinessState {} @@ -2784,7 +2784,7 @@ pub struct CustomBiddingScript { pub script: Option, /// Output only. The state of the custom bidding script. - pub state: Option, + pub state: Option, } impl client::RequestValue for CustomBiddingScript {} @@ -2924,7 +2924,7 @@ pub struct DayAndTimeAssignedTargetingOptionDetails { /// Required. The day of the week for this day and time targeting setting. #[serde(rename="dayOfWeek")] - pub day_of_week: Option, + pub day_of_week: Option, /// Required. The end hour for day and time targeting. Must be between 1 (1 hour after start of day) and 24 (end of day). #[serde(rename="endHour")] @@ -2936,7 +2936,7 @@ pub struct DayAndTimeAssignedTargetingOptionDetails { /// Required. The mechanism used to determine which timezone to use for this day and time targeting setting. #[serde(rename="timeZoneResolution")] - pub time_zone_resolution: Option, + pub time_zone_resolution: Option, } impl client::Part for DayAndTimeAssignedTargetingOptionDetails {} @@ -2971,7 +2971,7 @@ pub struct DeleteAssignedTargetingOptionsRequest { /// Required. Identifies the type of this assigned targeting option. #[serde(rename="targetingType")] - pub targeting_type: Option, + pub targeting_type: Option, } impl client::Part for DeleteAssignedTargetingOptionsRequest {} @@ -3026,7 +3026,7 @@ pub struct DeviceTypeAssignedTargetingOptionDetails { /// The display name of the device type. Output only in v1. Required in v2. #[serde(rename="deviceType")] - pub device_type: Option, + pub device_type: Option, /// Required. ID of the device type. #[serde(rename="targetingOptionId")] @@ -3046,7 +3046,7 @@ pub struct DeviceTypeTargetingOptionDetails { /// Output only. The device type that is used to be targeted. #[serde(rename="deviceType")] - pub device_type: Option, + pub device_type: Option, } impl client::Part for DeviceTypeTargetingOptionDetails {} @@ -3062,7 +3062,7 @@ pub struct DigitalContentLabelAssignedTargetingOptionDetails { /// Output only. The display name of the digital content label rating tier. #[serde(rename="contentRatingTier")] - pub content_rating_tier: Option, + pub content_rating_tier: Option, /// Required. ID of the digital content label to be EXCLUDED. #[serde(rename="excludedTargetingOptionId")] @@ -3082,7 +3082,7 @@ pub struct DigitalContentLabelTargetingOptionDetails { /// Output only. An enum for the content label brand safety tiers. #[serde(rename="contentRatingTier")] - pub content_rating_tier: Option, + pub content_rating_tier: Option, } impl client::Part for DigitalContentLabelTargetingOptionDetails {} @@ -3122,7 +3122,7 @@ pub struct DoubleVerify { /// Avoid bidding on apps with the age rating. #[serde(rename="avoidedAgeRatings")] - pub avoided_age_ratings: Option>, + pub avoided_age_ratings: Option>, /// DV Brand Safety Controls. #[serde(rename="brandSafetyCategories")] @@ -3163,7 +3163,7 @@ pub struct DoubleVerifyAppStarRating { /// Avoid bidding on apps with the star ratings. #[serde(rename="avoidedStarRating")] - pub avoided_star_rating: Option, + pub avoided_star_rating: Option, } impl client::Part for DoubleVerifyAppStarRating {} @@ -3183,11 +3183,11 @@ pub struct DoubleVerifyBrandSafetyCategories { /// Brand safety high severity avoidance categories. #[serde(rename="avoidedHighSeverityCategories")] - pub avoided_high_severity_categories: Option>, + pub avoided_high_severity_categories: Option>, /// Brand safety medium severity avoidance categories. #[serde(rename="avoidedMediumSeverityCategories")] - pub avoided_medium_severity_categories: Option>, + pub avoided_medium_severity_categories: Option>, } impl client::Part for DoubleVerifyBrandSafetyCategories {} @@ -3202,11 +3202,11 @@ impl client::Part for DoubleVerifyBrandSafetyCategories {} pub struct DoubleVerifyDisplayViewability { /// Target web and app inventory to maximize IAB viewable rate. - pub iab: Option, + pub iab: Option, /// Target web and app inventory to maximize 100% viewable duration. #[serde(rename="viewableDuring")] - pub viewable_during: Option, + pub viewable_during: Option, } impl client::Part for DoubleVerifyDisplayViewability {} @@ -3226,7 +3226,7 @@ pub struct DoubleVerifyFraudInvalidTraffic { /// Avoid Sites and Apps with historical Fraud & IVT. #[serde(rename="avoidedFraudOption")] - pub avoided_fraud_option: Option, + pub avoided_fraud_option: Option, } impl client::Part for DoubleVerifyFraudInvalidTraffic {} @@ -3242,15 +3242,15 @@ pub struct DoubleVerifyVideoViewability { /// Target inventory to maximize impressions with 400x300 or greater player size. #[serde(rename="playerImpressionRate")] - pub player_impression_rate: Option, + pub player_impression_rate: Option, /// Target web inventory to maximize IAB viewable rate. #[serde(rename="videoIab")] - pub video_iab: Option, + pub video_iab: Option, /// Target web inventory to maximize fully viewable rate. #[serde(rename="videoViewableRate")] - pub video_viewable_rate: Option, + pub video_viewable_rate: Option, } impl client::Part for DoubleVerifyVideoViewability {} @@ -3456,7 +3456,7 @@ impl client::ResponseResult for Empty {} pub struct EnvironmentAssignedTargetingOptionDetails { /// The serving environment. Output only in v1. Required in v2. - pub environment: Option, + pub environment: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_ENVIRONMENT` (e.g., "508010" for targeting the `ENVIRONMENT_WEB_OPTIMIZED` option). #[serde(rename="targetingOptionId")] @@ -3475,7 +3475,7 @@ impl client::Part for EnvironmentAssignedTargetingOptionDetails {} pub struct EnvironmentTargetingOptionDetails { /// Output only. The serving environment. - pub environment: Option, + pub environment: Option, } impl client::Part for EnvironmentTargetingOptionDetails {} @@ -3522,7 +3522,7 @@ impl client::Part for ExchangeConfig {} pub struct ExchangeConfigEnabledExchange { /// The enabled exchange. - pub exchange: Option, + pub exchange: Option, /// Output only. Agency ID of Google Ad Manager. The field is only relevant when Google Ad Manager is the enabled exchange. #[serde(rename="googleAdManagerAgencyId")] @@ -3549,10 +3549,10 @@ impl client::Part for ExchangeConfigEnabledExchange {} pub struct ExchangeReviewStatus { /// The exchange reviewing the creative. - pub exchange: Option, + pub exchange: Option, /// Status of the exchange review. - pub status: Option, + pub status: Option, } impl client::Part for ExchangeReviewStatus {} @@ -3567,7 +3567,7 @@ impl client::Part for ExchangeReviewStatus {} pub struct ExchangeTargetingOptionDetails { /// Output only. The type of exchange. - pub exchange: Option, + pub exchange: Option, } impl client::Part for ExchangeTargetingOptionDetails {} @@ -3590,7 +3590,7 @@ pub struct ExitEvent { /// Required. The type of the exit event. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Required. The click through URL of the exit event. This is required when type is: * `EXIT_EVENT_TYPE_DEFAULT` * `EXIT_EVENT_TYPE_BACKUP` pub url: Option, @@ -3626,11 +3626,11 @@ pub struct FirstAndThirdPartyAudience { /// Output only. The source of the audience. #[serde(rename="audienceSource")] - pub audience_source: Option, + pub audience_source: Option, /// The type of the audience. #[serde(rename="audienceType")] - pub audience_type: Option, + pub audience_type: Option, /// Input only. A list of contact information to define the initial audience members. Only applicable to audience_type `CUSTOMER_MATCH_CONTACT_INFO` #[serde(rename="contactInfoList")] @@ -3670,7 +3670,7 @@ pub struct FirstAndThirdPartyAudience { /// Whether the audience is a first or third party audience. #[serde(rename="firstAndThirdPartyAudienceType")] - pub first_and_third_party_audience_type: Option, + pub first_and_third_party_audience_type: Option, /// Output only. The estimated audience size for Gmail network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request. #[serde(rename="gmailAudienceSize")] @@ -3729,7 +3729,7 @@ pub struct FirstAndThirdPartyAudienceTargetingSetting { pub first_and_third_party_audience_id: Option, /// The recency of the first and third party audience targeting setting. Only applicable to first party audiences, otherwise will be ignored. For more info, refer to https://support.google.com/displayvideo/answer/2949947#recency When unspecified, no recency limit will be used. - pub recency: Option, + pub recency: Option, } impl client::Part for FirstAndThirdPartyAudienceTargetingSetting {} @@ -3791,7 +3791,7 @@ pub struct FloodlightGroup { /// Required. The web tag type enabled for the Floodlight group. #[serde(rename="webTagType")] - pub web_tag_type: Option, + pub web_tag_type: Option, } impl client::RequestValue for FloodlightGroup {} @@ -3813,7 +3813,7 @@ pub struct FrequencyCap { /// The time unit in which the frequency cap will be applied. Required when unlimited is `false`. #[serde(rename="timeUnit")] - pub time_unit: Option, + pub time_unit: Option, /// The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59 #[serde(rename="timeUnitCount")] @@ -3835,7 +3835,7 @@ impl client::Part for FrequencyCap {} pub struct GenderAssignedTargetingOptionDetails { /// The gender of the audience. Output only in v1. Required in v2. - pub gender: Option, + pub gender: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_GENDER`. #[serde(rename="targetingOptionId")] @@ -3854,7 +3854,7 @@ impl client::Part for GenderAssignedTargetingOptionDetails {} pub struct GenderTargetingOptionDetails { /// Output only. The gender of an audience. - pub gender: Option, + pub gender: Option, } impl client::Part for GenderTargetingOptionDetails {} @@ -3883,7 +3883,7 @@ pub struct GenerateDefaultLineItemRequest { /// Required. The type of the line item. #[serde(rename="lineItemType")] - pub line_item_type: Option, + pub line_item_type: Option, /// The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`. #[serde(rename="mobileApp")] @@ -3907,7 +3907,7 @@ pub struct GeoRegionAssignedTargetingOptionDetails { /// Output only. The type of geographic region targeting. #[serde(rename="geoRegionType")] - pub geo_region_type: Option, + pub geo_region_type: Option, /// Indicates if this option is being negatively targeted. pub negative: Option, @@ -3950,7 +3950,7 @@ pub struct GeoRegionTargetingOptionDetails { /// Output only. The type of geographic region targeting. #[serde(rename="geoRegionType")] - pub geo_region_type: Option, + pub geo_region_type: Option, } impl client::Part for GeoRegionTargetingOptionDetails {} @@ -3980,7 +3980,7 @@ pub struct GoogleAudience { /// Output only. The type of Google audience. . #[serde(rename="googleAudienceType")] - pub google_audience_type: Option, + pub google_audience_type: Option, /// Output only. The resource name of the google audience. pub name: Option, @@ -4075,7 +4075,7 @@ pub struct GuaranteedOrder { pub display_name: Option, /// Required. Immutable. The exchange where the guaranteed order originated. - pub exchange: Option, + pub exchange: Option, /// Output only. The unique identifier of the guaranteed order. The guaranteed order IDs have the format `{exchange}-{legacy_guaranteed_order_id}`. #[serde(rename="guaranteedOrderId")] @@ -4134,7 +4134,7 @@ pub struct GuaranteedOrderStatus { /// Output only. The configuration status of the guaranteed order. Acceptable values are `PENDING` and `COMPLETED`. A guaranteed order must be configured (fill in the required fields, choose creatives, and select a default campaign) before it can serve. Currently the configuration action can only be performed via UI. #[serde(rename="configStatus")] - pub config_status: Option, + pub config_status: Option, /// The user-provided reason for pausing this guaranteed order. Must be UTF-8 encoded with a maximum length of 100 bytes. Only applicable when entity_status is set to `ENTITY_STATUS_PAUSED`. #[serde(rename="entityPauseReason")] @@ -4142,7 +4142,7 @@ pub struct GuaranteedOrderStatus { /// Whether or not the guaranteed order is servable. Acceptable values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. Default value is `ENTITY_STATUS_ACTIVE`. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, } impl client::Part for GuaranteedOrderStatus {} @@ -4158,7 +4158,7 @@ pub struct HouseholdIncomeAssignedTargetingOptionDetails { /// The household income of the audience. Output only in v1. Required in v2. #[serde(rename="householdIncome")] - pub household_income: Option, + pub household_income: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_HOUSEHOLD_INCOME`. #[serde(rename="targetingOptionId")] @@ -4178,7 +4178,7 @@ pub struct HouseholdIncomeTargetingOptionDetails { /// Output only. The household income of an audience. #[serde(rename="householdIncome")] - pub household_income: Option, + pub household_income: Option, } impl client::Part for HouseholdIncomeTargetingOptionDetails {} @@ -4251,7 +4251,7 @@ pub struct InsertionOrder { /// Immutable. The billable outcome of the insertion order. #[serde(rename="billableOutcome")] - pub billable_outcome: Option, + pub billable_outcome: Option, /// Required. The budget allocation settings of the insertion order. pub budget: Option, @@ -4267,7 +4267,7 @@ pub struct InsertionOrder { /// Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Required. The frequency capping setting of the insertion order. #[serde(rename="frequencyCap")] @@ -4280,7 +4280,7 @@ pub struct InsertionOrder { /// The type of insertion order. If this field is unspecified in creation, the value defaults to `RTB`. #[serde(rename="insertionOrderType")] - pub insertion_order_type: Option, + pub insertion_order_type: Option, /// Additional integration details of the insertion order. #[serde(rename="integrationDetails")] @@ -4302,7 +4302,7 @@ pub struct InsertionOrder { /// Output only. The reservation type of the insertion order. #[serde(rename="reservationType")] - pub reservation_type: Option, + pub reservation_type: Option, /// Output only. The timestamp when the insertion order was last updated. Assigned by the system. #[serde(rename="updateTime")] @@ -4323,7 +4323,7 @@ pub struct InsertionOrderBudget { /// The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`. #[serde(rename="automationType")] - pub automation_type: Option, + pub automation_type: Option, /// Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running. #[serde(rename="budgetSegments")] @@ -4331,7 +4331,7 @@ pub struct InsertionOrderBudget { /// Required. Immutable. The budget unit specifies whether the budget is currency based or impression based. #[serde(rename="budgetUnit")] - pub budget_unit: Option, + pub budget_unit: Option, } impl client::Part for InsertionOrderBudget {} @@ -4381,7 +4381,7 @@ pub struct IntegralAdScience { /// Display Viewability section (applicable to display line items only). #[serde(rename="displayViewability")] - pub display_viewability: Option, + pub display_viewability: Option, /// Brand Safety - **Unrateable**. #[serde(rename="excludeUnrateable")] @@ -4389,47 +4389,47 @@ pub struct IntegralAdScience { /// Ad Fraud settings. #[serde(rename="excludedAdFraudRisk")] - pub excluded_ad_fraud_risk: Option, + pub excluded_ad_fraud_risk: Option, /// Brand Safety - **Adult content**. #[serde(rename="excludedAdultRisk")] - pub excluded_adult_risk: Option, + pub excluded_adult_risk: Option, /// Brand Safety - **Alcohol**. #[serde(rename="excludedAlcoholRisk")] - pub excluded_alcohol_risk: Option, + pub excluded_alcohol_risk: Option, /// Brand Safety - **Drugs**. #[serde(rename="excludedDrugsRisk")] - pub excluded_drugs_risk: Option, + pub excluded_drugs_risk: Option, /// Brand Safety - **Gambling**. #[serde(rename="excludedGamblingRisk")] - pub excluded_gambling_risk: Option, + pub excluded_gambling_risk: Option, /// Brand Safety - **Hate speech**. #[serde(rename="excludedHateSpeechRisk")] - pub excluded_hate_speech_risk: Option, + pub excluded_hate_speech_risk: Option, /// Brand Safety - **Illegal downloads**. #[serde(rename="excludedIllegalDownloadsRisk")] - pub excluded_illegal_downloads_risk: Option, + pub excluded_illegal_downloads_risk: Option, /// Brand Safety - **Offensive language**. #[serde(rename="excludedOffensiveLanguageRisk")] - pub excluded_offensive_language_risk: Option, + pub excluded_offensive_language_risk: Option, /// Brand Safety - **Violence**. #[serde(rename="excludedViolenceRisk")] - pub excluded_violence_risk: Option, + pub excluded_violence_risk: Option, /// True advertising quality (applicable to Display line items only). #[serde(rename="traqScoreOption")] - pub traq_score_option: Option, + pub traq_score_option: Option, /// Video Viewability Section (applicable to video line items only). #[serde(rename="videoViewability")] - pub video_viewability: Option, + pub video_viewability: Option, } impl client::Part for IntegralAdScience {} @@ -4471,7 +4471,7 @@ impl client::Part for IntegrationDetails {} pub struct InventorySource { /// Whether the inventory source has a guaranteed or non-guaranteed delivery. - pub commitment: Option, + pub commitment: Option, /// The creative requirements of the inventory source. Not applicable for auction packages. #[serde(rename="creativeConfigs")] @@ -4483,14 +4483,14 @@ pub struct InventorySource { /// The delivery method of the inventory source. * For non-guaranteed inventory sources, the only acceptable value is `INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC`. * For guaranteed inventory sources, acceptable values are `INVENTORY_SOURCE_DELIVERY_METHOD_TAG` and `INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC`. #[serde(rename="deliveryMethod")] - pub delivery_method: Option, + pub delivery_method: Option, /// The display name of the inventory source. Must be UTF-8 encoded with a maximum size of 240 bytes. #[serde(rename="displayName")] pub display_name: Option, /// The exchange to which the inventory source belongs. - pub exchange: Option, + pub exchange: Option, /// Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when commitment is `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`. #[serde(rename="guaranteedOrderId")] @@ -4503,11 +4503,11 @@ pub struct InventorySource { /// Output only. The product type of the inventory source, denoting the way through which it sells inventory. #[serde(rename="inventorySourceProductType")] - pub inventory_source_product_type: Option, + pub inventory_source_product_type: Option, /// Denotes the type of the inventory source. #[serde(rename="inventorySourceType")] - pub inventory_source_type: Option, + pub inventory_source_type: Option, /// Output only. The resource name of the inventory source. pub name: Option, @@ -4727,7 +4727,7 @@ pub struct InventorySourceStatus { /// Output only. The configuration status of the inventory source. Only applicable for guaranteed inventory sources. Acceptable values are `INVENTORY_SOURCE_CONFIG_STATUS_PENDING` and `INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED`. An inventory source must be configured (fill in the required fields, choose creatives, and select a default campaign) before it can serve. #[serde(rename="configStatus")] - pub config_status: Option, + pub config_status: Option, /// The user-provided reason for pausing this inventory source. Must not exceed 100 characters. Only applicable when entity_status is set to `ENTITY_STATUS_PAUSED`. #[serde(rename="entityPauseReason")] @@ -4735,7 +4735,7 @@ pub struct InventorySourceStatus { /// Whether or not the inventory source is servable. Acceptable values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. Default value is `ENTITY_STATUS_ACTIVE`. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Output only. The seller-provided reason for pausing this inventory source. Only applicable for inventory sources synced directly from the publishers and when seller_status is set to `ENTITY_STATUS_PAUSED`. #[serde(rename="sellerPauseReason")] @@ -4743,7 +4743,7 @@ pub struct InventorySourceStatus { /// Output only. The status set by the seller for the inventory source. Only applicable for inventory sources synced directly from the publishers. Acceptable values are `ENTITY_STATUS_ACTIVE` and `ENTITY_STATUS_PAUSED`. #[serde(rename="sellerStatus")] - pub seller_status: Option, + pub seller_status: Option, } impl client::Part for InventorySourceStatus {} @@ -4803,7 +4803,7 @@ pub struct Invoice { /// The type of invoice document. #[serde(rename="invoiceType")] - pub invoice_type: Option, + pub invoice_type: Option, /// The date when the invoice was issued. #[serde(rename="issueDate")] @@ -4964,7 +4964,7 @@ pub struct LineItem { /// Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item's parent insertion order is not active, the line item can't spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default. #[serde(rename="excludeNewExchanges")] @@ -4998,7 +4998,7 @@ pub struct LineItem { /// Required. Immutable. The type of the line item. #[serde(rename="lineItemType")] - pub line_item_type: Option, + pub line_item_type: Option, /// The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`. #[serde(rename="mobileApp")] @@ -5020,7 +5020,7 @@ pub struct LineItem { /// Output only. The reservation type of the line item. #[serde(rename="reservationType")] - pub reservation_type: Option, + pub reservation_type: Option, /// The [targeting expansion](https://developers.google.com//support.google.com/displayvideo/answer/10191558) settings of the line item. This config is only applicable when eligible audience list targeting is assigned to the line item. Beginning November 7, 2022, these settings may represent the [optimized targeting feature](https://developers.google.com//support.google.com/displayvideo/answer/12060859) in place of targeting expansion. This feature will be rolled out to all partners by November 9, 2022. #[serde(rename="targetingExpansion")] @@ -5032,7 +5032,7 @@ pub struct LineItem { /// Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running. #[serde(rename="warningMessages")] - pub warning_messages: Option>, + pub warning_messages: Option>, } impl client::RequestValue for LineItem {} @@ -5049,11 +5049,11 @@ pub struct LineItemBudget { /// Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order. #[serde(rename="budgetAllocationType")] - pub budget_allocation_type: Option, + pub budget_allocation_type: Option, /// Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order. #[serde(rename="budgetUnit")] - pub budget_unit: Option, + pub budget_unit: Option, /// The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser's currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system. #[serde(rename="maxAmount")] @@ -5078,7 +5078,7 @@ pub struct LineItemFlight { /// Required. The type of the line item's flight dates. #[serde(rename="flightDateType")] - pub flight_date_type: Option, + pub flight_date_type: Option, /// The ID of the manual trigger associated with the line item. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER`. Must not be set otherwise. * When set, the line item's flight dates are inherited from its parent insertion order. * Active line items will spend when the selected trigger is activated within the parent insertion order's flight dates. #[serde(rename="triggerId")] @@ -5857,7 +5857,7 @@ pub struct LocationList { /// Required. Immutable. The type of location. All locations in the list will share this type. #[serde(rename="locationType")] - pub location_type: Option, + pub location_type: Option, /// Output only. The resource name of the location list. pub name: Option, @@ -5945,7 +5945,7 @@ pub struct ManualTrigger { pub name: Option, /// Output only. The state of the manual trigger. Will be set to the `INACTIVE` state upon creation. - pub state: Option, + pub state: Option, /// Output only. The unique ID of the manual trigger. #[serde(rename="triggerId")] @@ -5977,7 +5977,7 @@ pub struct MaximizeSpendBidStrategy { /// Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy. #[serde(rename="performanceGoalType")] - pub performance_goal_type: Option, + pub performance_goal_type: Option, /// Whether the strategy takes deal floor prices into account. #[serde(rename="raiseBidForDeals")] @@ -6024,7 +6024,7 @@ pub struct MobileApp { pub display_name: Option, /// Output only. The app platform. - pub platform: Option, + pub platform: Option, /// Output only. The app publisher. pub publisher: Option, @@ -6082,7 +6082,7 @@ pub struct NativeContentPositionAssignedTargetingOptionDetails { /// The content position. Output only in v1. Required in v2. #[serde(rename="contentPosition")] - pub content_position: Option, + pub content_position: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. #[serde(rename="targetingOptionId")] @@ -6102,7 +6102,7 @@ pub struct NativeContentPositionTargetingOptionDetails { /// Output only. The content position. #[serde(rename="contentPosition")] - pub content_position: Option, + pub content_position: Option, } impl client::Part for NativeContentPositionTargetingOptionDetails {} @@ -6210,7 +6210,7 @@ pub struct ObaIcon { pub landing_page_url: Option, /// The position of the OBA icon on the creative. - pub position: Option, + pub position: Option, /// The program of the OBA icon. For example: “AdChoices”. pub program: Option, @@ -6240,7 +6240,7 @@ impl client::Part for ObaIcon {} pub struct OmidAssignedTargetingOptionDetails { /// The type of Open Measurement enabled inventory. Output only in v1. Required in v2. - pub omid: Option, + pub omid: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_OMID`. #[serde(rename="targetingOptionId")] @@ -6259,7 +6259,7 @@ impl client::Part for OmidAssignedTargetingOptionDetails {} pub struct OmidTargetingOptionDetails { /// Output only. The type of Open Measurement enabled inventory. - pub omid: Option, + pub omid: Option, } impl client::Part for OmidTargetingOptionDetails {} @@ -6275,11 +6275,11 @@ pub struct OnScreenPositionAssignedTargetingOptionDetails { /// Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. #[serde(rename="adType")] - pub ad_type: Option, + pub ad_type: Option, /// Output only. The on screen position. #[serde(rename="onScreenPosition")] - pub on_screen_position: Option, + pub on_screen_position: Option, /// Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. #[serde(rename="targetingOptionId")] @@ -6299,7 +6299,7 @@ pub struct OnScreenPositionTargetingOptionDetails { /// Output only. The on screen position. #[serde(rename="onScreenPosition")] - pub on_screen_position: Option, + pub on_screen_position: Option, } impl client::Part for OnScreenPositionTargetingOptionDetails {} @@ -6396,11 +6396,11 @@ pub struct Pacing { /// Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`. #[serde(rename="pacingPeriod")] - pub pacing_period: Option, + pub pacing_period: Option, /// Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. #[serde(rename="pacingType")] - pub pacing_type: Option, + pub pacing_type: Option, } impl client::Part for Pacing {} @@ -6416,7 +6416,7 @@ pub struct ParentEntityFilter { /// Required. File types that will be returned. #[serde(rename="fileType")] - pub file_type: Option>, + pub file_type: Option>, /// The IDs of the specified filter type. This is used to filter entities to fetch. If filter type is not `FILTER_TYPE_NONE`, at least one ID must be specified. #[serde(rename="filterIds")] @@ -6425,7 +6425,7 @@ pub struct ParentEntityFilter { /// Required. Filter type used to filter fetched entities. #[serde(rename="filterType")] - pub filter_type: Option, + pub filter_type: Option, } impl client::Part for ParentEntityFilter {} @@ -6441,7 +6441,7 @@ pub struct ParentalStatusAssignedTargetingOptionDetails { /// The parental status of the audience. Output only in v1. Required in v2. #[serde(rename="parentalStatus")] - pub parental_status: Option, + pub parental_status: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_PARENTAL_STATUS`. #[serde(rename="targetingOptionId")] @@ -6461,7 +6461,7 @@ pub struct ParentalStatusTargetingOptionDetails { /// Output only. The parental status of an audience. #[serde(rename="parentalStatus")] - pub parental_status: Option, + pub parental_status: Option, } impl client::Part for ParentalStatusTargetingOptionDetails {} @@ -6508,7 +6508,7 @@ pub struct Partner { /// Output only. The status of the partner. #[serde(rename="entityStatus")] - pub entity_status: Option, + pub entity_status: Option, /// Settings that control which exchanges are enabled for the partner. #[serde(rename="exchangeConfig")] @@ -6561,7 +6561,7 @@ pub struct PartnerCost { /// Required. The type of the partner cost. #[serde(rename="costType")] - pub cost_type: Option, + pub cost_type: Option, /// The CPM fee amount in micros of advertiser's currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser's currency, set this field to 1500000. #[serde(rename="feeAmount")] @@ -6575,11 +6575,11 @@ pub struct PartnerCost { /// Required. The fee type for this partner cost. #[serde(rename="feeType")] - pub fee_type: Option, + pub fee_type: Option, /// The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types. #[serde(rename="invoiceType")] - pub invoice_type: Option, + pub invoice_type: Option, } impl client::Part for PartnerCost {} @@ -6636,7 +6636,7 @@ pub struct PartnerRevenueModel { /// Required. The markup type of the partner revenue model. #[serde(rename="markupType")] - pub markup_type: Option, + pub markup_type: Option, } impl client::Part for PartnerRevenueModel {} @@ -6666,7 +6666,7 @@ pub struct PerformanceGoal { /// Required. The type of the performance goal. #[serde(rename="performanceGoalType")] - pub performance_goal_type: Option, + pub performance_goal_type: Option, } impl client::Part for PerformanceGoal {} @@ -6697,7 +6697,7 @@ pub struct PerformanceGoalBidStrategy { /// Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. #[serde(rename="performanceGoalType")] - pub performance_goal_type: Option, + pub performance_goal_type: Option, } impl client::Part for PerformanceGoalBidStrategy {} @@ -6727,7 +6727,7 @@ pub struct PoiAssignedTargetingOptionDetails { /// Required. The unit of distance by which the targeting radius is measured. #[serde(rename="proximityRadiusUnit")] - pub proximity_radius_unit: Option, + pub proximity_radius_unit: Option, /// Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_POI`. Accepted POI targeting option IDs can be retrieved using SearchTargetingOptions. If targeting a specific latitude/longitude coordinate removed from an address or POI name, you can generate the necessary targeting option ID by rounding the desired coordinate values to the 6th decimal place, removing the decimals, and concatenating the string values separated by a semicolon. For example, you can target the latitude/longitude pair of 40.7414691, -74.003387 using the targeting option ID "40741469;-74003387". #[serde(rename="targetingOptionId")] @@ -6789,7 +6789,7 @@ pub struct PrismaConfig { /// Required. The Prisma type. #[serde(rename="prismaType")] - pub prisma_type: Option, + pub prisma_type: Option, /// Required. The entity allocated this budget (DSP, site, etc.). pub supplier: Option, @@ -6837,7 +6837,7 @@ pub struct ProximityLocationListAssignedTargetingOptionDetails { /// Required. Radius range for proximity location list. This represents the size of the area around a chosen location that will be targeted. `All` proximity location targeting under a single resource must have the same radius range value. Set this value to match any existing targeting. If updated, this field will change the radius range for all proximity targeting under the resource. #[serde(rename="proximityRadiusRange")] - pub proximity_radius_range: Option, + pub proximity_radius_range: Option, } impl client::Part for ProximityLocationListAssignedTargetingOptionDetails {} @@ -6856,7 +6856,7 @@ pub struct PublisherReviewStatus { pub publisher_name: Option, /// Status of the publisher review. - pub status: Option, + pub status: Option, } impl client::Part for PublisherReviewStatus {} @@ -6872,7 +6872,7 @@ pub struct RateDetails { /// The rate type. Acceptable values are `INVENTORY_SOURCE_RATE_TYPE_CPM_FIXED`, `INVENTORY_SOURCE_RATE_TYPE_CPM_FLOOR`, and `INVENTORY_SOURCE_RATE_TYPE_CPD`. #[serde(rename="inventorySourceRateType")] - pub inventory_source_rate_type: Option, + pub inventory_source_rate_type: Option, /// Output only. The amount that the buyer has committed to spending on the inventory source up front. Only applicable for guaranteed inventory sources. #[serde(rename="minimumSpend")] @@ -7011,15 +7011,15 @@ pub struct ReviewStatusInfo { /// Represents the basic approval needed for a creative to begin serving. Summary of creative_and_landing_page_review_status and content_and_policy_review_status. #[serde(rename="approvalStatus")] - pub approval_status: Option, + pub approval_status: Option, /// Content and policy review status for the creative. #[serde(rename="contentAndPolicyReviewStatus")] - pub content_and_policy_review_status: Option, + pub content_and_policy_review_status: Option, /// Creative and landing page review status for the creative. #[serde(rename="creativeAndLandingPageReviewStatus")] - pub creative_and_landing_page_review_status: Option, + pub creative_and_landing_page_review_status: Option, /// Exchange review statuses for the creative. #[serde(rename="exchangeReviewStatuses")] @@ -7047,7 +7047,7 @@ pub struct ScriptError { /// The type of error. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// The detailed error message. #[serde(rename="errorMessage")] @@ -7074,7 +7074,7 @@ pub struct SdfConfig { pub admin_email: Option, /// Required. The version of SDF being used. - pub version: Option, + pub version: Option, } impl client::Part for SdfConfig {} @@ -7159,7 +7159,7 @@ pub struct SensitiveCategoryAssignedTargetingOptionDetails { /// Output only. An enum for the DV360 Sensitive category content classifier. #[serde(rename="sensitiveCategory")] - pub sensitive_category: Option, + pub sensitive_category: Option, } impl client::Part for SensitiveCategoryAssignedTargetingOptionDetails {} @@ -7175,7 +7175,7 @@ pub struct SensitiveCategoryTargetingOptionDetails { /// Output only. An enum for the DV360 Sensitive category content classifier. #[serde(rename="sensitiveCategory")] - pub sensitive_category: Option, + pub sensitive_category: Option, } impl client::Part for SensitiveCategoryTargetingOptionDetails {} @@ -7272,7 +7272,7 @@ pub struct TargetingExpansionConfig { /// Required. Magnitude of expansion for applicable targeting under this line item. Beginning November 7, 2022, the behavior of this field will change in the following ways with the replacement of targeting expansion with [optimized targeting](https://developers.google.com//support.google.com/displayvideo/answer/12060859): * This field will represent the optimized targeting checkbox, with a `NO_EXPANSION` value representing optimized targeting turned off and a `LEAST_EXPANSION` value representing optimized targeting turned on. * `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field. * If you set the field to any value other than `NO_EXPANSION`, it will automatically be set to `LEAST_EXPANSION`. #[serde(rename="targetingExpansionLevel")] - pub targeting_expansion_level: Option, + pub targeting_expansion_level: Option, } impl client::Part for TargetingExpansionConfig {} @@ -7419,7 +7419,7 @@ pub struct TargetingOption { /// Output only. The type of this targeting option. #[serde(rename="targetingType")] - pub targeting_type: Option, + pub targeting_type: Option, /// User rewarded content details. #[serde(rename="userRewardedContentDetails")] @@ -7463,7 +7463,7 @@ pub struct ThirdPartyUrl { /// The type of interaction needs to be tracked by the tracking URL #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Tracking URL used to track the interaction. Provide a URL with optional path or query string, beginning with `https:`. For example, https://www.example.com/path pub url: Option, @@ -7620,7 +7620,7 @@ pub struct UniversalAdId { pub id: Option, /// The registry provides unique creative identifiers. - pub registry: Option, + pub registry: Option, } impl client::Part for UniversalAdId {} @@ -7700,7 +7700,7 @@ pub struct UserRewardedContentAssignedTargetingOptionDetails { /// Output only. User rewarded content status for video ads. #[serde(rename="userRewardedContent")] - pub user_rewarded_content: Option, + pub user_rewarded_content: Option, } impl client::Part for UserRewardedContentAssignedTargetingOptionDetails {} @@ -7716,7 +7716,7 @@ pub struct UserRewardedContentTargetingOptionDetails { /// Output only. User rewarded content status for video ads. #[serde(rename="userRewardedContent")] - pub user_rewarded_content: Option, + pub user_rewarded_content: Option, } impl client::Part for UserRewardedContentTargetingOptionDetails {} @@ -7736,7 +7736,7 @@ pub struct VideoPlayerSizeAssignedTargetingOptionDetails { /// The video player size. Output only in v1. Required in v2. #[serde(rename="videoPlayerSize")] - pub video_player_size: Option, + pub video_player_size: Option, } impl client::Part for VideoPlayerSizeAssignedTargetingOptionDetails {} @@ -7752,7 +7752,7 @@ pub struct VideoPlayerSizeTargetingOptionDetails { /// Output only. The video player size. #[serde(rename="videoPlayerSize")] - pub video_player_size: Option, + pub video_player_size: Option, } impl client::Part for VideoPlayerSizeTargetingOptionDetails {} @@ -7771,7 +7771,7 @@ pub struct ViewabilityAssignedTargetingOptionDetails { pub targeting_option_id: Option, /// The predicted viewability percentage. Output only in v1. Required in v2. - pub viewability: Option, + pub viewability: Option, } impl client::Part for ViewabilityAssignedTargetingOptionDetails {} @@ -7786,7 +7786,7 @@ impl client::Part for ViewabilityAssignedTargetingOptionDetails {} pub struct ViewabilityTargetingOptionDetails { /// Output only. The predicted viewability percentage. - pub viewability: Option, + pub viewability: Option, } impl client::Part for ViewabilityTargetingOptionDetails {} diff --git a/gen/displayvideo1/src/lib.rs b/gen/displayvideo1/src/lib.rs index cff7f89ce3..01ea86e2f4 100644 --- a/gen/displayvideo1/src/lib.rs +++ b/gen/displayvideo1/src/lib.rs @@ -212,11 +212,11 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.advertisers().campaigns_targeting_types_assigned_targeting_options_list(-80, -2, "targetingType") +//! let result = hub.advertisers().campaigns_targeting_types_assigned_targeting_options_list(-8, -80, &Default::default()) //! .page_token("amet.") -//! .page_size(-20) -//! .order_by("ipsum") -//! .filter("gubergren") +//! .page_size(-59) +//! .order_by("amet.") +//! .filter("duo") //! .doit().await; //! //! match result { diff --git a/gen/dlp2/src/api/mod.rs b/gen/dlp2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dlp2/src/api/mod.rs +++ b/gen/dlp2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dlp2/src/api/schemas.rs b/gen/dlp2/src/api/schemas.rs index 314ea296ff..a3059ecda1 100644 --- a/gen/dlp2/src/api/schemas.rs +++ b/gen/dlp2/src/api/schemas.rs @@ -217,7 +217,7 @@ pub struct GooglePrivacyDlpV2BigQueryOptions { /// no description provided #[serde(rename="sampleMethod")] - pub sample_method: Option, + pub sample_method: Option, /// Complete BigQuery table reference. #[serde(rename="tableReference")] @@ -326,7 +326,7 @@ pub struct GooglePrivacyDlpV2ByteContentItem { /// The type of data stored in the bytes string. Default will be TEXT_UTF8. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GooglePrivacyDlpV2ByteContentItem {} @@ -457,7 +457,7 @@ pub struct GooglePrivacyDlpV2CharsToIgnore { /// Common characters to not transform when masking. Useful to avoid removing punctuation. #[serde(rename="commonCharactersToIgnore")] - pub common_characters_to_ignore: Option, + pub common_characters_to_ignore: Option, } impl client::Part for GooglePrivacyDlpV2CharsToIgnore {} @@ -501,7 +501,7 @@ pub struct GooglePrivacyDlpV2CloudStorageOptions { /// List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. #[serde(rename="fileTypes")] - pub file_types: Option>, + pub file_types: Option>, /// Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. #[serde(rename="filesLimitPercent")] @@ -509,7 +509,7 @@ pub struct GooglePrivacyDlpV2CloudStorageOptions { /// no description provided #[serde(rename="sampleMethod")] - pub sample_method: Option, + pub sample_method: Option, } impl client::Part for GooglePrivacyDlpV2CloudStorageOptions {} @@ -587,7 +587,7 @@ pub struct GooglePrivacyDlpV2Condition { pub field: Option, /// Required. Operator used to compare the field or infoType to the value. - pub operator: Option, + pub operator: Option, /// Value to compare against. [Mandatory, except for `EXISTS` tests.] pub value: Option, @@ -938,7 +938,7 @@ pub struct GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig { /// Common alphabets. #[serde(rename="commonAlphabet")] - pub common_alphabet: Option, + pub common_alphabet: Option, /// The 'tweak', a context may be used for higher security since the same identifier in two different contexts won't be given the same surrogate. If the context is not set, a default tweak will be used. If the context is set but: 1. there is no record present when transforming a given value or 1. the field is not present when transforming a given value, a default tweak will be used. Note that case (1) is expected when an `InfoTypeTransformation` is applied to both structured and unstructured `ContentItem`s. Currently, the referenced field may be of value type integer or string. The tweak is constructed as a sequence of bytes in big endian byte order such that: - a 64 bit integer is encoded followed by a single byte of value 1 - a string is encoded in UTF-8 format followed by a single byte of value 2 pub context: Option, @@ -979,14 +979,14 @@ pub struct GooglePrivacyDlpV2CustomInfoType { /// If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching. #[serde(rename="exclusionType")] - pub exclusion_type: Option, + pub exclusion_type: Option, /// CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in `InspectContent.info_types` field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in `InspectContent.info_types` list then the name is treated as a custom info type. #[serde(rename="infoType")] pub info_type: Option, /// Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to `VERY_LIKELY` if not specified. - pub likelihood: Option, + pub likelihood: Option, /// Regular expression based CustomInfoType. pub regex: Option, @@ -1078,7 +1078,7 @@ pub struct GooglePrivacyDlpV2DateTime { /// Day of week #[serde(rename="dayOfWeek")] - pub day_of_week: Option, + pub day_of_week: Option, /// Time of day pub time: Option, @@ -1105,7 +1105,7 @@ pub struct GooglePrivacyDlpV2Deidentify { /// List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV. #[serde(rename="fileTypesToTransform")] - pub file_types_to_transform: Option>, + pub file_types_to_transform: Option>, /// User specified deidentify templates and configs for structured, unstructured, and image files. #[serde(rename="transformationConfig")] @@ -1437,11 +1437,11 @@ pub struct GooglePrivacyDlpV2DlpJob { pub start_time: Option>, /// State of a job. - pub state: Option, + pub state: Option, /// The type of job. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::ResponseResult for GooglePrivacyDlpV2DlpJob {} @@ -1553,7 +1553,7 @@ pub struct GooglePrivacyDlpV2ExclusionRule { /// How the rule is applied, see MatchingType documentation for details. #[serde(rename="matchingType")] - pub matching_type: Option, + pub matching_type: Option, /// Regular expression which defines the rule. pub regex: Option, @@ -1575,7 +1575,7 @@ pub struct GooglePrivacyDlpV2Expressions { /// The operator to apply to the result of conditions. Default and currently only supported value is `AND`. #[serde(rename="logicalOperator")] - pub logical_operator: Option, + pub logical_operator: Option, } impl client::Part for GooglePrivacyDlpV2Expressions {} @@ -1673,7 +1673,7 @@ pub struct GooglePrivacyDlpV2Finding { pub labels: Option>, /// Confidence of how likely it is that the `info_type` is correct. - pub likelihood: Option, + pub likelihood: Option, /// Where the content was found. pub location: Option, @@ -2058,15 +2058,15 @@ pub struct GooglePrivacyDlpV2InfoTypeCategory { /// The group of relevant businesses where this infoType is commonly used #[serde(rename="industryCategory")] - pub industry_category: Option, + pub industry_category: Option, /// The region or country that issued the ID or document represented by the infoType. #[serde(rename="locationCategory")] - pub location_category: Option, + pub location_category: Option, /// The class of identifiers where this infoType belongs #[serde(rename="typeCategory")] - pub type_category: Option, + pub type_category: Option, } impl client::Part for GooglePrivacyDlpV2InfoTypeCategory {} @@ -2099,7 +2099,7 @@ pub struct GooglePrivacyDlpV2InfoTypeDescription { /// Which parts of the API supports this InfoType. #[serde(rename="supportedBy")] - pub supported_by: Option>, + pub supported_by: Option>, /// A list of available versions for the infotype. pub versions: Option>, @@ -2193,7 +2193,7 @@ pub struct GooglePrivacyDlpV2InspectConfig { /// Deprecated and unused. #[serde(rename="contentOptions")] - pub content_options: Option>, + pub content_options: Option>, /// CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. #[serde(rename="customInfoTypes")] @@ -2216,7 +2216,7 @@ pub struct GooglePrivacyDlpV2InspectConfig { /// Only returns findings equal or above this threshold. The default is POSSIBLE. See https://cloud.google.com/dlp/docs/likelihood to learn more. #[serde(rename="minLikelihood")] - pub min_likelihood: Option, + pub min_likelihood: Option, /// Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. #[serde(rename="ruleSet")] @@ -2488,7 +2488,7 @@ pub struct GooglePrivacyDlpV2JobTrigger { pub name: Option, /// Required. A status for this trigger. - pub status: Option, + pub status: Option, /// A list of triggers which will be OR'ed together. Only one in the list needs to trigger for a job to be started. The list may contain only a single Schedule trigger and must have at least one object. pub triggers: Option>, @@ -2910,7 +2910,7 @@ pub struct GooglePrivacyDlpV2LikelihoodAdjustment { /// Set the likelihood of a finding to a fixed value. #[serde(rename="fixedLikelihood")] - pub fixed_likelihood: Option, + pub fixed_likelihood: Option, /// Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be `POSSIBLE` without the detection rule and `relative_likelihood` is 1, then it is upgraded to `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. Likelihood may never drop below `VERY_UNLIKELY` or exceed `VERY_LIKELY`, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is `VERY_LIKELY` will result in a final likelihood of `LIKELY`. #[serde(rename="relativeLikelihood")] @@ -3125,7 +3125,7 @@ pub struct GooglePrivacyDlpV2MetadataLocation { /// Type of metadata containing the finding. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GooglePrivacyDlpV2MetadataLocation {} @@ -3180,7 +3180,7 @@ pub struct GooglePrivacyDlpV2OutputStorageConfig { /// Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage. #[serde(rename="outputSchema")] - pub output_schema: Option, + pub output_schema: Option, /// Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table. pub table: Option, @@ -3958,7 +3958,7 @@ impl client::Part for GooglePrivacyDlpV2SelectedInfoTypes {} pub struct GooglePrivacyDlpV2SensitivityScore { /// The score applied to the resource. - pub score: Option, + pub score: Option, } impl client::Part for GooglePrivacyDlpV2SensitivityScore {} @@ -4136,7 +4136,7 @@ pub struct GooglePrivacyDlpV2StoredInfoTypeVersion { pub errors: Option>, /// Stored info type version state. Read-only, updated by the system during dictionary creation. - pub state: Option, + pub state: Option, /// Statistics about this storedInfoType version. pub stats: Option, @@ -4173,7 +4173,7 @@ impl client::Part for GooglePrivacyDlpV2StoredType {} pub struct GooglePrivacyDlpV2SummaryResult { /// Outcome of the transformation. - pub code: Option, + pub code: Option, /// Number of transformations counted by this result. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4295,7 +4295,7 @@ pub struct GooglePrivacyDlpV2TimePartConfig { /// The part of the time to keep. #[serde(rename="partToExtract")] - pub part_to_extract: Option, + pub part_to_extract: Option, } impl client::Part for GooglePrivacyDlpV2TimePartConfig {} @@ -4636,7 +4636,7 @@ pub struct GooglePrivacyDlpV2Value { /// day of week #[serde(rename="dayOfWeekValue")] - pub day_of_week_value: Option, + pub day_of_week_value: Option, /// float #[serde(rename="floatValue")] diff --git a/gen/dlp2_beta1/src/api/call_builders.rs b/gen/dlp2_beta1/src/api/call_builders.rs index d44ee0fad3..ced598eb45 100644 --- a/gen/dlp2_beta1/src/api/call_builders.rs +++ b/gen/dlp2_beta1/src/api/call_builders.rs @@ -900,7 +900,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("category", self._category); + params.push("category", &self._category); if let Some(value) = self._language_code.as_ref() { params.push("languageCode", value); } @@ -1442,7 +1442,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()); @@ -1729,7 +1729,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()); @@ -1999,7 +1999,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); } @@ -2295,7 +2295,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()); @@ -3118,7 +3118,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()); @@ -3405,7 +3405,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()); @@ -3675,7 +3675,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); } @@ -3971,7 +3971,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()); @@ -4241,7 +4241,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); } diff --git a/gen/dlp2_beta1/src/api/mod.rs b/gen/dlp2_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dlp2_beta1/src/api/mod.rs +++ b/gen/dlp2_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dlp2_beta1/src/api/schemas.rs b/gen/dlp2_beta1/src/api/schemas.rs index 15b4b9b328..7ccc2f90be 100644 --- a/gen/dlp2_beta1/src/api/schemas.rs +++ b/gen/dlp2_beta1/src/api/schemas.rs @@ -225,7 +225,7 @@ pub struct GooglePrivacyDlpV2beta1CharsToIgnore { /// no description provided #[serde(rename="commonCharactersToIgnore")] - pub common_characters_to_ignore: Option, + pub common_characters_to_ignore: Option, } impl client::Part for GooglePrivacyDlpV2beta1CharsToIgnore {} @@ -388,7 +388,7 @@ pub struct GooglePrivacyDlpV2beta1Finding { pub location: Option, /// Estimate of how likely it is that the info_type is correct. - pub likelihood: Option, + pub likelihood: Option, /// The specific type of info the string might be. #[serde(rename="infoType")] @@ -538,7 +538,7 @@ pub struct GooglePrivacyDlpV2beta1Expressions { /// only supported value is `AND`. #[serde(rename="logicalOperator")] - pub logical_operator: Option, + pub logical_operator: Option, /// no description provided pub conditions: Option, @@ -854,7 +854,7 @@ pub struct GooglePrivacyDlpV2beta1TimePartConfig { /// no description provided #[serde(rename="partToExtract")] - pub part_to_extract: Option, + pub part_to_extract: Option, } impl client::Part for GooglePrivacyDlpV2beta1TimePartConfig {} @@ -1020,7 +1020,7 @@ pub struct GooglePrivacyDlpV2beta1InspectConfig { /// Only returns findings equal or above this threshold. #[serde(rename="minLikelihood")] - pub min_likelihood: Option, + pub min_likelihood: Option, } impl client::Part for GooglePrivacyDlpV2beta1InspectConfig {} @@ -1492,7 +1492,7 @@ pub struct GooglePrivacyDlpV2beta1SummaryResult { pub count: Option, /// no description provided - pub code: Option, + pub code: Option, } impl client::Part for GooglePrivacyDlpV2beta1SummaryResult {} @@ -1970,7 +1970,7 @@ pub struct GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig { /// no description provided #[serde(rename="commonAlphabet")] - pub common_alphabet: Option, + pub common_alphabet: Option, /// The native way to select the alphabet. Must be in the range [2, 62]. pub radix: Option, @@ -2164,7 +2164,7 @@ pub struct GooglePrivacyDlpV2beta1Condition { pub field: Option, /// Operator used to compare the field or info type to the value. [required] - pub operator: Option, + pub operator: Option, /// Value to compare against. [Required, except for `EXISTS` tests.] pub value: Option, diff --git a/gen/dns1/src/api/mod.rs b/gen/dns1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dns1/src/api/mod.rs +++ b/gen/dns1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dns1/src/api/schemas.rs b/gen/dns1/src/api/schemas.rs index afa11a42c3..74074783bc 100644 --- a/gen/dns1/src/api/schemas.rs +++ b/gen/dns1/src/api/schemas.rs @@ -34,7 +34,7 @@ pub struct Change { pub start_time: Option, /// Status of the operation (output only). A status of "done" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet. - pub status: Option, + pub status: Option, } impl client::RequestValue for Change {} @@ -85,7 +85,7 @@ impl client::ResponseResult for ChangesListResponse {} pub struct DnsKey { /// String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. - pub algorithm: Option, + pub algorithm: Option, /// The time that this resource was created in the control plane. This is in RFC3339 text format. Output only. #[serde(rename="creationTime")] @@ -121,7 +121,7 @@ pub struct DnsKey { /// One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the Secure Entry Point flag set and, when active, are used to sign only resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag is cleared, and this key is used to sign only resource record sets of other types. Immutable after creation time. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for DnsKey {} @@ -141,7 +141,7 @@ pub struct DnsKeyDigest { /// Specifies the algorithm used to calculate this digest. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DnsKeyDigest {} @@ -156,7 +156,7 @@ impl client::Part for DnsKeyDigest {} pub struct DnsKeySpec { /// String mnemonic specifying the DNSSEC algorithm of this key. - pub algorithm: Option, + pub algorithm: Option, /// Length of the keys in bits. #[serde(rename="keyLength")] @@ -164,7 +164,7 @@ pub struct DnsKeySpec { /// Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK). Key signing keys have the Secure Entry Point flag set and, when active, are only used to sign resource record sets of type DNSKEY. Zone signing keys do not have the Secure Entry Point flag set and are used to sign all other types of resource record sets. #[serde(rename="keyType")] - pub key_type: Option, + pub key_type: Option, /// no description provided pub kind: Option, @@ -260,7 +260,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} @@ -495,7 +495,7 @@ pub struct ManagedZone { pub service_directory_config: Option, /// The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources. - pub visibility: Option, + pub visibility: Option, } impl client::RequestValue for ManagedZone {} @@ -539,10 +539,10 @@ pub struct ManagedZoneDnsSecConfig { /// Specifies the mechanism for authenticated denial-of-existence responses. Can only be changed while the state is OFF. #[serde(rename="nonExistence")] - pub non_existence: Option, + pub non_existence: Option, /// Specifies whether DNSSEC is enabled, and what mode it is in. - pub state: Option, + pub state: Option, } impl client::Part for ManagedZoneDnsSecConfig {} @@ -577,7 +577,7 @@ pub struct ManagedZoneForwardingConfigNameServerTarget { /// Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on IP address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target. #[serde(rename="forwardingPath")] - pub forwarding_path: Option, + pub forwarding_path: Option, /// IPv4 address of a target name server. #[serde(rename="ipv4Address")] @@ -840,7 +840,7 @@ pub struct Operation { pub start_time: Option, /// Status of the operation. Can be one of the following: "PENDING" or "DONE" (output only). A status of "DONE" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet. - pub status: Option, + pub status: Option, /// Type of the operation. Operations include insert, update, and delete (output only). #[serde(rename="type")] @@ -1047,7 +1047,7 @@ pub struct PolicyAlternativeNameServerConfigTargetNameServer { /// Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target. #[serde(rename="forwardingPath")] - pub forwarding_path: Option, + pub forwarding_path: Option, /// IPv4 address to forward queries to. #[serde(rename="ipv4Address")] @@ -1325,14 +1325,14 @@ pub struct RRSetRoutingPolicyLoadBalancerTarget { /// no description provided #[serde(rename="ipProtocol")] - pub ip_protocol: Option, + pub ip_protocol: Option, /// no description provided pub kind: Option, /// no description provided #[serde(rename="loadBalancerType")] - pub load_balancer_type: Option, + pub load_balancer_type: Option, /// The fully qualified url of the network on which the ILB is #[serde(rename="networkUrl")] @@ -1704,7 +1704,7 @@ impl client::Part for ResponsePolicyNetwork {} pub struct ResponsePolicyRule { /// Answer this query with a behavior rather than DNS data. - pub behavior: Option, + pub behavior: Option, /// The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule. #[serde(rename="dnsName")] diff --git a/gen/dns2/src/api/mod.rs b/gen/dns2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/dns2/src/api/mod.rs +++ b/gen/dns2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/dns2/src/api/schemas.rs b/gen/dns2/src/api/schemas.rs index db1e0f9f14..2373f6d7d1 100644 --- a/gen/dns2/src/api/schemas.rs +++ b/gen/dns2/src/api/schemas.rs @@ -34,7 +34,7 @@ pub struct Change { pub start_time: Option, /// Status of the operation (output only). A status of "done" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet. - pub status: Option, + pub status: Option, } impl client::RequestValue for Change {} @@ -85,7 +85,7 @@ impl client::ResponseResult for ChangesListResponse {} pub struct DnsKey { /// String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. - pub algorithm: Option, + pub algorithm: Option, /// The time that this resource was created in the control plane. This is in RFC3339 text format. Output only. #[serde(rename="creationTime")] @@ -121,7 +121,7 @@ pub struct DnsKey { /// One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the Secure Entry Point flag set and, when active, are used to sign only resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag is cleared, and this key is used to sign only resource record sets of other types. Immutable after creation time. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for DnsKey {} @@ -141,7 +141,7 @@ pub struct DnsKeyDigest { /// Specifies the algorithm used to calculate this digest. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DnsKeyDigest {} @@ -156,7 +156,7 @@ impl client::Part for DnsKeyDigest {} pub struct DnsKeySpec { /// String mnemonic specifying the DNSSEC algorithm of this key. - pub algorithm: Option, + pub algorithm: Option, /// Length of the keys in bits. #[serde(rename="keyLength")] @@ -164,7 +164,7 @@ pub struct DnsKeySpec { /// Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK). Key signing keys have the Secure Entry Point flag set and, when active, are only used to sign resource record sets of type DNSKEY. Zone signing keys do not have the Secure Entry Point flag set and are used to sign all other types of resource record sets. #[serde(rename="keyType")] - pub key_type: Option, + pub key_type: Option, /// no description provided pub kind: Option, @@ -260,7 +260,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} @@ -495,7 +495,7 @@ pub struct ManagedZone { pub service_directory_config: Option, /// The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources. - pub visibility: Option, + pub visibility: Option, } impl client::RequestValue for ManagedZone {} @@ -539,10 +539,10 @@ pub struct ManagedZoneDnsSecConfig { /// Specifies the mechanism for authenticated denial-of-existence responses. Can only be changed while the state is OFF. #[serde(rename="nonExistence")] - pub non_existence: Option, + pub non_existence: Option, /// Specifies whether DNSSEC is enabled, and what mode it is in. - pub state: Option, + pub state: Option, } impl client::Part for ManagedZoneDnsSecConfig {} @@ -577,7 +577,7 @@ pub struct ManagedZoneForwardingConfigNameServerTarget { /// Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on IP address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target. #[serde(rename="forwardingPath")] - pub forwarding_path: Option, + pub forwarding_path: Option, /// IPv4 address of a target name server. #[serde(rename="ipv4Address")] @@ -840,7 +840,7 @@ pub struct Operation { pub start_time: Option, /// Status of the operation. Can be one of the following: "PENDING" or "DONE" (output only). A status of "DONE" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet. - pub status: Option, + pub status: Option, /// Type of the operation. Operations include insert, update, and delete (output only). #[serde(rename="type")] @@ -1047,7 +1047,7 @@ pub struct PolicyAlternativeNameServerConfigTargetNameServer { /// Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target. #[serde(rename="forwardingPath")] - pub forwarding_path: Option, + pub forwarding_path: Option, /// IPv4 address to forward queries to. #[serde(rename="ipv4Address")] @@ -1325,14 +1325,14 @@ pub struct RRSetRoutingPolicyLoadBalancerTarget { /// no description provided #[serde(rename="ipProtocol")] - pub ip_protocol: Option, + pub ip_protocol: Option, /// no description provided pub kind: Option, /// no description provided #[serde(rename="loadBalancerType")] - pub load_balancer_type: Option, + pub load_balancer_type: Option, /// The fully qualified url of the network on which the ILB is #[serde(rename="networkUrl")] @@ -1689,7 +1689,7 @@ impl client::Part for ResponsePolicyNetwork {} pub struct ResponsePolicyRule { /// Answer this query with a behavior rather than DNS data. - pub behavior: Option, + pub behavior: Option, /// The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule. #[serde(rename="dnsName")] diff --git a/gen/docs1/src/api/call_builders.rs b/gen/docs1/src/api/call_builders.rs index 27644e7c02..276bf2cfdd 100644 --- a/gen/docs1/src/api/call_builders.rs +++ b/gen/docs1/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("documentId", self._document_id); + params.push("documentId", &self._document_id); params.extend(self._additional_params.iter()); @@ -591,7 +591,7 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.documents().get("documentId") -/// .suggestions_view_mode("At") +/// .suggestions_view_mode(&Default::default()) /// .doit().await; /// # } /// ``` @@ -600,7 +600,7 @@ pub struct DocumentGetCall<'a, S> pub(super) hub: &'a Docs, pub(super) _document_id: String, - pub(super) _suggestions_view_mode: Option, + pub(super) _suggestions_view_mode: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, pub(super) _scopes: BTreeSet @@ -637,7 +637,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("documentId", self._document_id); + params.push("documentId", &self._document_id); if let Some(value) = self._suggestions_view_mode.as_ref() { params.push("suggestionsViewMode", value); } @@ -758,8 +758,8 @@ where /// The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used. /// /// Sets the *suggestions view mode* query property to the given value. - pub fn suggestions_view_mode(mut self, new_value: &str) -> DocumentGetCall<'a, S> { - self._suggestions_view_mode = Some(new_value.to_string()); + pub fn suggestions_view_mode(mut self, new_value: &DocumentSuggestionsViewModeEnum) -> DocumentGetCall<'a, S> { + self._suggestions_view_mode = Some(new_value.clone()); self } /// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong diff --git a/gen/docs1/src/api/mod.rs b/gen/docs1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/docs1/src/api/mod.rs +++ b/gen/docs1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/docs1/src/api/schemas.rs b/gen/docs1/src/api/schemas.rs index c5edb3642f..fa560401e6 100644 --- a/gen/docs1/src/api/schemas.rs +++ b/gen/docs1/src/api/schemas.rs @@ -206,7 +206,7 @@ pub struct AutoText { /// The type of this auto text. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AutoText {} @@ -414,7 +414,7 @@ pub struct CreateFooterRequest { /// The type of footer to create. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreateFooterRequest {} @@ -485,7 +485,7 @@ pub struct CreateHeaderRequest { /// The type of header to create. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CreateHeaderRequest {} @@ -551,7 +551,7 @@ pub struct CreateParagraphBulletsRequest { /// The kinds of bullet glyphs to be used. #[serde(rename="bulletPreset")] - pub bullet_preset: Option, + pub bullet_preset: Option, /// The range to apply the bullet preset to. pub range: Option, @@ -764,7 +764,7 @@ pub struct Dimension { pub magnitude: Option, /// The units for magnitude. - pub unit: Option, + pub unit: Option, } impl client::Part for Dimension {} @@ -837,7 +837,7 @@ pub struct Document { /// Output only. The suggestions view mode applied to the document. Note: When editing a document, changes must be based on a document with SUGGESTIONS_INLINE. #[serde(rename="suggestionsViewMode")] - pub suggestions_view_mode: Option, + pub suggestions_view_mode: Option, /// The title of the document. pub title: Option, @@ -1111,11 +1111,11 @@ pub struct EmbeddedObjectBorder { /// The dash style of the border. #[serde(rename="dashStyle")] - pub dash_style: Option, + pub dash_style: Option, /// The property state of the border property. #[serde(rename="propertyState")] - pub property_state: Option, + pub property_state: Option, /// The width of the border. pub width: Option, @@ -1631,7 +1631,7 @@ pub struct InsertSectionBreakRequest { /// The type of section to insert. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, } impl client::Part for InsertSectionBreakRequest {} @@ -1925,7 +1925,7 @@ pub struct NamedStyle { /// The type of this named style. #[serde(rename="namedStyleType")] - pub named_style_type: Option, + pub named_style_type: Option, /// The paragraph style of this named style. #[serde(rename="paragraphStyle")] @@ -1949,7 +1949,7 @@ pub struct NamedStyleSuggestionState { /// The named style type that this suggestion state corresponds to. This field is provided as a convenience for matching the NamedStyleSuggestionState with its corresponding NamedStyle. #[serde(rename="namedStyleType")] - pub named_style_type: Option, + pub named_style_type: Option, /// A mask that indicates which of the fields in paragraph style have been changed in this suggestion. #[serde(rename="paragraphStyleSuggestionState")] @@ -2004,7 +2004,7 @@ pub struct NestingLevel { /// The alignment of the bullet within the space allotted for rendering the bullet. #[serde(rename="bulletAlignment")] - pub bullet_alignment: Option, + pub bullet_alignment: Option, /// The format string used by bullets at this level of nesting. The glyph format contains one or more placeholders, and these placeholders are replaced with the appropriate values depending on the glyph_type or glyph_symbol. The placeholders follow the pattern `%[nesting_level]`. Furthermore, placeholders can have prefixes and suffixes. Thus, the glyph format follows the pattern `%[nesting_level]`. Note that the prefix and suffix are optional and can be arbitrary strings. For example, the glyph format `%0.` indicates that the rendered glyph will replace the placeholder with the corresponding glyph for nesting level 0 followed by a period as the suffix. So a list with a glyph type of UPPER_ALPHA and glyph format `%0.` at nesting level 0 will result in a list with rendered glyphs `A.` `B.` `C.` The glyph format can contain placeholders for the current nesting level as well as placeholders for parent nesting levels. For example, a list can have a glyph format of `%0.` at nesting level 0 and a glyph format of `%0.%1.` at nesting level 1. Assuming both nesting levels have DECIMAL glyph types, this would result in a list with rendered glyphs `1.` `2.` ` 2.1.` ` 2.2.` `3.` For nesting levels that are ordered, the string that replaces a placeholder in the glyph format for a particular paragraph depends on the paragraph's order within the list. #[serde(rename="glyphFormat")] @@ -2016,7 +2016,7 @@ pub struct NestingLevel { /// The type of glyph used by bullets when paragraphs at this level of nesting are ordered. The glyph type determines the type of glyph used to replace placeholders within the glyph_format when paragraphs at this level of nesting are ordered. For example, if the nesting level is 0, the glyph_format is `%0.` and the glyph type is DECIMAL, then the rendered glyph would replace the placeholder `%0` in the glyph format with a number corresponding to list item's order within the list. #[serde(rename="glyphType")] - pub glyph_type: Option, + pub glyph_type: Option, /// The amount of indentation for the first line of paragraphs at this level of nesting. #[serde(rename="indentFirstLine")] @@ -2192,7 +2192,7 @@ pub struct ParagraphBorder { /// The dash style of the border. #[serde(rename="dashStyle")] - pub dash_style: Option, + pub dash_style: Option, /// The padding of the border. pub padding: Option, @@ -2271,7 +2271,7 @@ impl client::Part for ParagraphElement {} pub struct ParagraphStyle { /// The text alignment for this paragraph. - pub alignment: Option, + pub alignment: Option, /// Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent. #[serde(rename="avoidWidowAndOrphan")] @@ -2298,7 +2298,7 @@ pub struct ParagraphStyle { pub border_top: Option, /// The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since paragraph direction is not inherited. - pub direction: Option, + pub direction: Option, /// The heading ID of the paragraph. If empty, then this paragraph is not a heading. This property is read-only. #[serde(rename="headingId")] @@ -2330,7 +2330,7 @@ pub struct ParagraphStyle { /// The named style type of the paragraph. Since updating the named style type affects other properties within ParagraphStyle, the named style type is applied before the other properties are updated. #[serde(rename="namedStyleType")] - pub named_style_type: Option, + pub named_style_type: Option, /// Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update page_break_before for paragraphs in unsupported regions, including Table, Header, Footer and Footnote, can result in an invalid document state that returns a 400 bad request error. #[serde(rename="pageBreakBefore")] @@ -2349,7 +2349,7 @@ pub struct ParagraphStyle { /// The spacing mode for the paragraph. #[serde(rename="spacingMode")] - pub spacing_mode: Option, + pub spacing_mode: Option, /// A list of the tab stops for this paragraph. The list of tab stops is not inherited. This property is read-only. #[serde(rename="tabStops")] @@ -2570,7 +2570,7 @@ impl client::Part for PositionedObject {} pub struct PositionedObjectPositioning { /// The layout of this positioned object. - pub layout: Option, + pub layout: Option, /// The offset of the left edge of the positioned object relative to the beginning of the Paragraph it's tethered to. The exact positioning of the object can depend on other content in the document and the document's styling. #[serde(rename="leftOffset")] @@ -2721,7 +2721,7 @@ pub struct ReplaceImageRequest { /// The replacement method. #[serde(rename="imageReplaceMethod")] - pub image_replace_method: Option, + pub image_replace_method: Option, /// The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URI can't surpass 2 KB in length. The URI is saved with the image, and exposed through the ImageProperties.source_uri field. pub uri: Option, @@ -3073,11 +3073,11 @@ pub struct SectionStyle { /// The style of column separators. This style can be set even when there's one column in the section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. #[serde(rename="columnSeparatorStyle")] - pub column_separator_style: Option, + pub column_separator_style: Option, /// The content direction of this section. If unset, the value defaults to LEFT_TO_RIGHT. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. #[serde(rename="contentDirection")] - pub content_direction: Option, + pub content_direction: Option, /// The ID of the default footer. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id. This property is read-only. #[serde(rename="defaultFooterId")] @@ -3137,7 +3137,7 @@ pub struct SectionStyle { /// Output only. The type of section. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, /// Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's use_first_page_header_footer for the first section. If the value is unset for subsequent sectors, it should be interpreted as false. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. #[serde(rename="useFirstPageHeaderFooter")] @@ -3518,7 +3518,7 @@ impl client::Part for SuggestedTextStyle {} pub struct TabStop { /// The alignment of this tab stop. If unset, the value defaults to START. - pub alignment: Option, + pub alignment: Option, /// The offset between this tab stop and the start margin. pub offset: Option, @@ -3613,7 +3613,7 @@ pub struct TableCellBorder { /// The dash style of the border. #[serde(rename="dashStyle")] - pub dash_style: Option, + pub dash_style: Option, /// The width of the border. pub width: Option, @@ -3680,7 +3680,7 @@ pub struct TableCellStyle { /// The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Docs editor. #[serde(rename="contentAlignment")] - pub content_alignment: Option, + pub content_alignment: Option, /// The bottom padding of the cell. #[serde(rename="paddingBottom")] @@ -3779,7 +3779,7 @@ pub struct TableColumnProperties { /// The width type of the column. #[serde(rename="widthType")] - pub width_type: Option, + pub width_type: Option, } impl client::Part for TableColumnProperties {} @@ -3973,7 +3973,7 @@ pub struct TextStyle { /// The text's vertical offset from its normal position. Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically rendered in a smaller font size, computed based on the `font_size` field. Changes in this field don't affect the `font_size`. #[serde(rename="baselineOffset")] - pub baseline_offset: Option, + pub baseline_offset: Option, /// Whether or not the text is rendered as bold. pub bold: Option, diff --git a/gen/documentai1/src/api/call_builders.rs b/gen/documentai1/src/api/call_builders.rs index 1fa5ff68fa..f4d1140eea 100644 --- a/gen/documentai1/src/api/call_builders.rs +++ b/gen/documentai1/src/api/call_builders.rs @@ -3634,7 +3634,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()); @@ -3896,7 +3896,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()); @@ -4158,7 +4158,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()); @@ -4426,7 +4426,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); } @@ -4718,7 +4718,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()); @@ -4984,7 +4984,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5273,7 +5273,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("humanReviewConfig", self._human_review_config); + params.push("humanReviewConfig", &self._human_review_config); params.extend(self._additional_params.iter()); @@ -5558,7 +5558,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()); @@ -5824,7 +5824,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -6113,7 +6113,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()); @@ -6398,7 +6398,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()); @@ -6667,7 +6667,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()); @@ -6959,7 +6959,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("processorVersion", self._processor_version); + params.push("processorVersion", &self._processor_version); params.extend(self._additional_params.iter()); @@ -7244,7 +7244,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()); @@ -7510,7 +7510,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7799,7 +7799,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()); @@ -8091,7 +8091,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8383,7 +8383,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()); @@ -8675,7 +8675,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()); @@ -8967,7 +8967,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9252,7 +9252,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()); @@ -9521,7 +9521,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()); @@ -9813,7 +9813,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()); @@ -10098,7 +10098,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()); @@ -10364,7 +10364,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -10653,7 +10653,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()); @@ -10945,7 +10945,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("processor", self._processor); + params.push("processor", &self._processor); params.extend(self._additional_params.iter()); @@ -11230,7 +11230,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -11492,7 +11492,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()); @@ -11760,7 +11760,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); } @@ -12052,7 +12052,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()); diff --git a/gen/documentai1/src/api/mod.rs b/gen/documentai1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/documentai1/src/api/mod.rs +++ b/gen/documentai1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/documentai1/src/api/schemas.rs b/gen/documentai1/src/api/schemas.rs index 6f970ed9d7..9b19c64569 100644 --- a/gen/documentai1/src/api/schemas.rs +++ b/gen/documentai1/src/api/schemas.rs @@ -457,7 +457,7 @@ pub struct GoogleCloudDocumentaiV1DocumentPageAnchorPageRef { /// Optional. The type of the layout element that is being referenced if any. #[serde(rename="layoutType")] - pub layout_type: Option, + pub layout_type: Option, /// Required. Index into the Document.pages element, for example using `Document.pages` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -671,7 +671,7 @@ pub struct GoogleCloudDocumentaiV1DocumentPageLayout { pub confidence: Option, /// Detected orientation for the Layout. - pub orientation: Option, + pub orientation: Option, /// Text anchor indexing into the Document.text. #[serde(rename="textAnchor")] @@ -878,7 +878,7 @@ pub struct GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak { /// Detected break type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak {} @@ -926,7 +926,7 @@ pub struct GoogleCloudDocumentaiV1DocumentProvenance { /// The type of provenance operation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDocumentaiV1DocumentProvenance {} @@ -1092,7 +1092,7 @@ pub struct GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty { /// Occurrence type limits the number of instances an entity type appears in the document. #[serde(rename="occurrenceType")] - pub occurrence_type: Option, + pub occurrence_type: Option, /// A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. #[serde(rename="valueType")] @@ -1494,7 +1494,7 @@ pub struct GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics { /// The metrics type for the label. #[serde(rename="metricsType")] - pub metrics_type: Option, + pub metrics_type: Option, } impl client::Part for GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics {} @@ -1610,7 +1610,7 @@ pub struct GoogleCloudDocumentaiV1HumanReviewStatus { pub human_review_operation: Option, /// The state of human review on the processing request. - pub state: Option, + pub state: Option, /// A message providing more details about the human review state. #[serde(rename="stateMessage")] @@ -1826,7 +1826,7 @@ pub struct GoogleCloudDocumentaiV1Processor { pub process_endpoint: Option, /// Output only. The state of the processor. - pub state: Option, + pub state: Option, /// The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. To get a list of processors types, see FetchProcessorTypes. #[serde(rename="type")] @@ -1862,7 +1862,7 @@ pub struct GoogleCloudDocumentaiV1ProcessorType { /// Launch stage of the processor type #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}` pub name: Option, @@ -1943,7 +1943,7 @@ pub struct GoogleCloudDocumentaiV1ProcessorVersion { pub name: Option, /// The state of the processor version. - pub state: Option, + pub state: Option, } impl client::ResponseResult for GoogleCloudDocumentaiV1ProcessorVersion {} @@ -2014,7 +2014,7 @@ pub struct GoogleCloudDocumentaiV1ReviewDocumentRequest { pub inline_document: Option, /// The priority of the human review task. - pub priority: Option, + pub priority: Option, } impl client::RequestValue for GoogleCloudDocumentaiV1ReviewDocumentRequest {} diff --git a/gen/documentai1_beta2/src/api/call_builders.rs b/gen/documentai1_beta2/src/api/call_builders.rs index b995541dc9..f5f42ab572 100644 --- a/gen/documentai1_beta2/src/api/call_builders.rs +++ b/gen/documentai1_beta2/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -369,7 +369,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -661,7 +661,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -953,7 +953,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1238,7 +1238,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()); @@ -1500,7 +1500,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()); diff --git a/gen/documentai1_beta2/src/api/mod.rs b/gen/documentai1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/documentai1_beta2/src/api/mod.rs +++ b/gen/documentai1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/documentai1_beta2/src/api/schemas.rs b/gen/documentai1_beta2/src/api/schemas.rs index 77b4a5b400..b23ed5c7ee 100644 --- a/gen/documentai1_beta2/src/api/schemas.rs +++ b/gen/documentai1_beta2/src/api/schemas.rs @@ -383,7 +383,7 @@ pub struct GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef { /// Optional. The type of the layout element that is being referenced if any. #[serde(rename="layoutType")] - pub layout_type: Option, + pub layout_type: Option, /// Required. Index into the Document.pages element, for example using `Document.pages` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -597,7 +597,7 @@ pub struct GoogleCloudDocumentaiV1beta2DocumentPageLayout { pub confidence: Option, /// Detected orientation for the Layout. - pub orientation: Option, + pub orientation: Option, /// Text anchor indexing into the Document.text. #[serde(rename="textAnchor")] @@ -804,7 +804,7 @@ pub struct GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak { /// Detected break type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak {} @@ -852,7 +852,7 @@ pub struct GoogleCloudDocumentaiV1beta2DocumentProvenance { /// The type of provenance operation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudDocumentaiV1beta2DocumentProvenance {} diff --git a/gen/domains1/src/api/call_builders.rs b/gen/domains1/src/api/call_builders.rs index 9efaa03948..9f790ec498 100644 --- a/gen/domains1/src/api/call_builders.rs +++ b/gen/domains1/src/api/call_builders.rs @@ -1818,7 +1818,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()); @@ -2086,7 +2086,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); } @@ -2385,7 +2385,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -2677,7 +2677,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -2969,7 +2969,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -3254,7 +3254,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()); @@ -3523,7 +3523,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()); @@ -3808,7 +3808,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()); @@ -4072,7 +4072,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()); } @@ -4351,7 +4351,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4642,7 +4642,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4943,7 +4943,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5245,7 +5245,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5537,7 +5537,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -5822,7 +5822,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -6088,7 +6088,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -6372,7 +6372,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._domain_name.as_ref() { params.push("domainName", value); } @@ -6646,7 +6646,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._domain_name.as_ref() { params.push("domainName", value); } @@ -6920,7 +6920,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -7199,7 +7199,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()); @@ -7491,7 +7491,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()); @@ -7783,7 +7783,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8068,7 +8068,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()); @@ -8336,7 +8336,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); } diff --git a/gen/domains1/src/api/mod.rs b/gen/domains1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/domains1/src/api/mod.rs +++ b/gen/domains1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/domains1/src/api/schemas.rs b/gen/domains1/src/api/schemas.rs index a46c3fa256..7909675797 100644 --- a/gen/domains1/src/api/schemas.rs +++ b/gen/domains1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -93,7 +93,7 @@ pub struct ConfigureContactSettingsRequest { /// The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `contact_settings`. #[serde(rename="contactNotices")] - pub contact_notices: Option>, + pub contact_notices: Option>, /// Fields of the `ContactSettings` to update. #[serde(rename="contactSettings")] @@ -203,7 +203,7 @@ pub struct ContactSettings { pub admin_contact: Option, /// Required. Privacy setting for the contacts associated with the `Registration`. - pub privacy: Option, + pub privacy: Option, /// Required. The registrant contact for the `Registration`. *Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.* *Warning: For new `Registration`s, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.* #[serde(rename="registrantContact")] @@ -275,7 +275,7 @@ pub struct Domain { /// The state of this domain as a `Registration` resource. #[serde(rename="resourceState")] - pub resource_state: Option, + pub resource_state: Option, /// Price to renew the domain for one year. Only set when `resource_state` is `IMPORTABLE`. #[serde(rename="yearlyPrice")] @@ -294,14 +294,14 @@ impl client::Part for Domain {} pub struct DsRecord { /// The algorithm used to generate the referenced DNSKEY. - pub algorithm: Option, + pub algorithm: Option, /// The digest generated from the referenced DNSKEY. pub digest: Option, /// The hash function used to generate the digest of the referenced DNSKEY. #[serde(rename="digestType")] - pub digest_type: Option, + pub digest_type: Option, /// The key tag of the record. Must be set in range 0 -- 65535. #[serde(rename="keyTag")] @@ -388,7 +388,7 @@ pub struct GoogleDomainsDns { /// Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC. #[serde(rename="dsState")] - pub ds_state: Option, + pub ds_state: Option, /// Output only. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format. This field is automatically populated with the name servers assigned to the Google Domains DNS zone. #[serde(rename="nameServers")] @@ -533,11 +533,11 @@ pub struct ManagementSettings { /// Output only. The renewal method for this `Registration`. #[serde(rename="renewalMethod")] - pub renewal_method: Option, + pub renewal_method: Option, /// Controls whether the domain can be transferred to another registrar. #[serde(rename="transferLockState")] - pub transfer_lock_state: Option, + pub transfer_lock_state: Option, } impl client::Part for ManagementSettings {} @@ -702,11 +702,11 @@ pub struct RegisterDomainRequest { /// The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `registration.contact_settings`. #[serde(rename="contactNotices")] - pub contact_notices: Option>, + pub contact_notices: Option>, /// The list of domain notices that you acknowledge. Call `RetrieveRegisterParameters` to see the notices that need acknowledgement. #[serde(rename="domainNotices")] - pub domain_notices: Option>, + pub domain_notices: Option>, /// Required. The complete `Registration` resource to be created. pub registration: Option, @@ -732,7 +732,7 @@ impl client::RequestValue for RegisterDomainRequest {} pub struct RegisterParameters { /// Indicates whether the domain is available for registration. This value is accurate when obtained by calling `RetrieveRegisterParameters`, but is approximate when obtained by calling `SearchDomains`. - pub availability: Option, + pub availability: Option, /// The domain name. Unicode domain names are expressed in Punycode format. #[serde(rename="domainName")] @@ -740,11 +740,11 @@ pub struct RegisterParameters { /// Notices about special properties of the domain. #[serde(rename="domainNotices")] - pub domain_notices: Option>, + pub domain_notices: Option>, /// Contact privacy options that the domain supports. #[serde(rename="supportedPrivacy")] - pub supported_privacy: Option>, + pub supported_privacy: Option>, /// Price to register or renew the domain for one year. #[serde(rename="yearlyPrice")] @@ -788,7 +788,7 @@ pub struct Registration { pub expire_time: Option>, /// Output only. The set of issues with the `Registration` that require attention. - pub issues: Option>, + pub issues: Option>, /// Set of labels associated with the `Registration`. pub labels: Option>, @@ -806,18 +806,18 @@ pub struct Registration { /// Output only. The reason the domain registration failed. Only set for domains in REGISTRATION_FAILED state. #[serde(rename="registerFailureReason")] - pub register_failure_reason: Option, + pub register_failure_reason: Option, /// Output only. The state of the `Registration` - pub state: Option, + pub state: Option, /// Output only. Set of options for the `contact_settings.privacy` field that this `Registration` supports. #[serde(rename="supportedPrivacy")] - pub supported_privacy: Option>, + pub supported_privacy: Option>, /// Output only. The reason the domain transfer failed. Only set for domains in TRANSFER_FAILED state. #[serde(rename="transferFailureReason")] - pub transfer_failure_reason: Option, + pub transfer_failure_reason: Option, } impl client::RequestValue for Registration {} @@ -1022,7 +1022,7 @@ pub struct TransferDomainRequest { /// The list of contact notices that you acknowledge. The notices needed here depend on the values specified in `registration.contact_settings`. #[serde(rename="contactNotices")] - pub contact_notices: Option>, + pub contact_notices: Option>, /// Required. The complete `Registration` resource to be created. You can leave `registration.dns_settings` unset to import the domain's current DNS configuration from its current registrar. Use this option only if you are sure that the domain's current DNS service does not cease upon transfer, as is often the case for DNS services provided for free by the registrar. pub registration: Option, @@ -1065,11 +1065,11 @@ pub struct TransferParameters { /// Contact privacy options that the domain supports. #[serde(rename="supportedPrivacy")] - pub supported_privacy: Option>, + pub supported_privacy: Option>, /// Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show `UNLOCKED`. To unlock a domain, go to its current registrar. #[serde(rename="transferLockState")] - pub transfer_lock_state: Option, + pub transfer_lock_state: Option, /// Price to transfer or renew the domain for one year. #[serde(rename="yearlyPrice")] diff --git a/gen/domains1_beta1/src/api/call_builders.rs b/gen/domains1_beta1/src/api/call_builders.rs index ce3a5bdc15..e5744ce03d 100644 --- a/gen/domains1_beta1/src/api/call_builders.rs +++ b/gen/domains1_beta1/src/api/call_builders.rs @@ -1818,7 +1818,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()); @@ -2086,7 +2086,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); } @@ -2385,7 +2385,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -2677,7 +2677,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -2969,7 +2969,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -3254,7 +3254,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()); @@ -3523,7 +3523,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()); @@ -3808,7 +3808,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()); @@ -4072,7 +4072,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()); } @@ -4351,7 +4351,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4642,7 +4642,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4943,7 +4943,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5245,7 +5245,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5537,7 +5537,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -5822,7 +5822,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("registration", self._registration); + params.push("registration", &self._registration); params.extend(self._additional_params.iter()); @@ -6088,7 +6088,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -6372,7 +6372,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._domain_name.as_ref() { params.push("domainName", value); } @@ -6646,7 +6646,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._domain_name.as_ref() { params.push("domainName", value); } @@ -6920,7 +6920,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); if let Some(value) = self._query.as_ref() { params.push("query", value); } @@ -7199,7 +7199,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()); @@ -7491,7 +7491,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()); @@ -7783,7 +7783,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8068,7 +8068,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()); @@ -8336,7 +8336,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); } diff --git a/gen/domains1_beta1/src/api/mod.rs b/gen/domains1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/domains1_beta1/src/api/mod.rs +++ b/gen/domains1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/domains1_beta1/src/api/schemas.rs b/gen/domains1_beta1/src/api/schemas.rs index a46c3fa256..7909675797 100644 --- a/gen/domains1_beta1/src/api/schemas.rs +++ b/gen/domains1_beta1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -93,7 +93,7 @@ pub struct ConfigureContactSettingsRequest { /// The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `contact_settings`. #[serde(rename="contactNotices")] - pub contact_notices: Option>, + pub contact_notices: Option>, /// Fields of the `ContactSettings` to update. #[serde(rename="contactSettings")] @@ -203,7 +203,7 @@ pub struct ContactSettings { pub admin_contact: Option, /// Required. Privacy setting for the contacts associated with the `Registration`. - pub privacy: Option, + pub privacy: Option, /// Required. The registrant contact for the `Registration`. *Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.* *Warning: For new `Registration`s, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.* #[serde(rename="registrantContact")] @@ -275,7 +275,7 @@ pub struct Domain { /// The state of this domain as a `Registration` resource. #[serde(rename="resourceState")] - pub resource_state: Option, + pub resource_state: Option, /// Price to renew the domain for one year. Only set when `resource_state` is `IMPORTABLE`. #[serde(rename="yearlyPrice")] @@ -294,14 +294,14 @@ impl client::Part for Domain {} pub struct DsRecord { /// The algorithm used to generate the referenced DNSKEY. - pub algorithm: Option, + pub algorithm: Option, /// The digest generated from the referenced DNSKEY. pub digest: Option, /// The hash function used to generate the digest of the referenced DNSKEY. #[serde(rename="digestType")] - pub digest_type: Option, + pub digest_type: Option, /// The key tag of the record. Must be set in range 0 -- 65535. #[serde(rename="keyTag")] @@ -388,7 +388,7 @@ pub struct GoogleDomainsDns { /// Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC. #[serde(rename="dsState")] - pub ds_state: Option, + pub ds_state: Option, /// Output only. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format. This field is automatically populated with the name servers assigned to the Google Domains DNS zone. #[serde(rename="nameServers")] @@ -533,11 +533,11 @@ pub struct ManagementSettings { /// Output only. The renewal method for this `Registration`. #[serde(rename="renewalMethod")] - pub renewal_method: Option, + pub renewal_method: Option, /// Controls whether the domain can be transferred to another registrar. #[serde(rename="transferLockState")] - pub transfer_lock_state: Option, + pub transfer_lock_state: Option, } impl client::Part for ManagementSettings {} @@ -702,11 +702,11 @@ pub struct RegisterDomainRequest { /// The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `registration.contact_settings`. #[serde(rename="contactNotices")] - pub contact_notices: Option>, + pub contact_notices: Option>, /// The list of domain notices that you acknowledge. Call `RetrieveRegisterParameters` to see the notices that need acknowledgement. #[serde(rename="domainNotices")] - pub domain_notices: Option>, + pub domain_notices: Option>, /// Required. The complete `Registration` resource to be created. pub registration: Option, @@ -732,7 +732,7 @@ impl client::RequestValue for RegisterDomainRequest {} pub struct RegisterParameters { /// Indicates whether the domain is available for registration. This value is accurate when obtained by calling `RetrieveRegisterParameters`, but is approximate when obtained by calling `SearchDomains`. - pub availability: Option, + pub availability: Option, /// The domain name. Unicode domain names are expressed in Punycode format. #[serde(rename="domainName")] @@ -740,11 +740,11 @@ pub struct RegisterParameters { /// Notices about special properties of the domain. #[serde(rename="domainNotices")] - pub domain_notices: Option>, + pub domain_notices: Option>, /// Contact privacy options that the domain supports. #[serde(rename="supportedPrivacy")] - pub supported_privacy: Option>, + pub supported_privacy: Option>, /// Price to register or renew the domain for one year. #[serde(rename="yearlyPrice")] @@ -788,7 +788,7 @@ pub struct Registration { pub expire_time: Option>, /// Output only. The set of issues with the `Registration` that require attention. - pub issues: Option>, + pub issues: Option>, /// Set of labels associated with the `Registration`. pub labels: Option>, @@ -806,18 +806,18 @@ pub struct Registration { /// Output only. The reason the domain registration failed. Only set for domains in REGISTRATION_FAILED state. #[serde(rename="registerFailureReason")] - pub register_failure_reason: Option, + pub register_failure_reason: Option, /// Output only. The state of the `Registration` - pub state: Option, + pub state: Option, /// Output only. Set of options for the `contact_settings.privacy` field that this `Registration` supports. #[serde(rename="supportedPrivacy")] - pub supported_privacy: Option>, + pub supported_privacy: Option>, /// Output only. The reason the domain transfer failed. Only set for domains in TRANSFER_FAILED state. #[serde(rename="transferFailureReason")] - pub transfer_failure_reason: Option, + pub transfer_failure_reason: Option, } impl client::RequestValue for Registration {} @@ -1022,7 +1022,7 @@ pub struct TransferDomainRequest { /// The list of contact notices that you acknowledge. The notices needed here depend on the values specified in `registration.contact_settings`. #[serde(rename="contactNotices")] - pub contact_notices: Option>, + pub contact_notices: Option>, /// Required. The complete `Registration` resource to be created. You can leave `registration.dns_settings` unset to import the domain's current DNS configuration from its current registrar. Use this option only if you are sure that the domain's current DNS service does not cease upon transfer, as is often the case for DNS services provided for free by the registrar. pub registration: Option, @@ -1065,11 +1065,11 @@ pub struct TransferParameters { /// Contact privacy options that the domain supports. #[serde(rename="supportedPrivacy")] - pub supported_privacy: Option>, + pub supported_privacy: Option>, /// Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show `UNLOCKED`. To unlock a domain, go to its current registrar. #[serde(rename="transferLockState")] - pub transfer_lock_state: Option, + pub transfer_lock_state: Option, /// Price to transfer or renew the domain for one year. #[serde(rename="yearlyPrice")] diff --git a/gen/domainsrdap1/src/api/call_builders.rs b/gen/domainsrdap1/src/api/call_builders.rs index 3770fa272e..cfa3bac760 100644 --- a/gen/domainsrdap1/src/api/call_builders.rs +++ b/gen/domainsrdap1/src/api/call_builders.rs @@ -749,7 +749,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("autnumId", self._autnum_id); + params.push("autnumId", &self._autnum_id); params.extend(self._additional_params.iter()); @@ -965,7 +965,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("domainName", self._domain_name); + params.push("domainName", &self._domain_name); params.extend(self._additional_params.iter()); @@ -1182,7 +1182,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("entityId", self._entity_id); + params.push("entityId", &self._entity_id); params.extend(self._additional_params.iter()); @@ -1399,8 +1399,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("ipId", self._ip_id); - params.push("ipId1", self._ip_id1); + params.push("ipId", &self._ip_id); + params.push("ipId1", &self._ip_id1); params.extend(self._additional_params.iter()); @@ -1625,7 +1625,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("nameserverId", self._nameserver_id); + params.push("nameserverId", &self._nameserver_id); params.extend(self._additional_params.iter()); diff --git a/gen/domainsrdap1/src/api/mod.rs b/gen/domainsrdap1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/domainsrdap1/src/api/mod.rs +++ b/gen/domainsrdap1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/doubleclickbidmanager1/src/api/call_builders.rs b/gen/doubleclickbidmanager1/src/api/call_builders.rs index dd04c2c1b8..cdacdd549c 100644 --- a/gen/doubleclickbidmanager1/src/api/call_builders.rs +++ b/gen/doubleclickbidmanager1/src/api/call_builders.rs @@ -1985,7 +1985,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); params.extend(self._additional_params.iter()); @@ -2236,7 +2236,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); params.extend(self._additional_params.iter()); @@ -2748,7 +2748,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); params.extend(self._additional_params.iter()); @@ -3022,7 +3022,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); params.extend(self._additional_params.iter()); diff --git a/gen/doubleclickbidmanager1/src/api/mod.rs b/gen/doubleclickbidmanager1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/doubleclickbidmanager1/src/api/mod.rs +++ b/gen/doubleclickbidmanager1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/doubleclickbidmanager1/src/api/schemas.rs b/gen/doubleclickbidmanager1/src/api/schemas.rs index ea8fb1c5b9..c608b3e3b1 100644 --- a/gen/doubleclickbidmanager1/src/api/schemas.rs +++ b/gen/doubleclickbidmanager1/src/api/schemas.rs @@ -13,7 +13,7 @@ pub struct DownloadLineItemsRequest { /// File specification (column names, types, order) in which the line items will be returned. Default to EWF. #[serde(rename="fileSpec")] - pub file_spec: Option, + pub file_spec: Option, /// Ids of the specified filter type used to filter line items to fetch. If omitted, all the line items will be returned. #[serde(rename="filterIds")] @@ -22,10 +22,10 @@ pub struct DownloadLineItemsRequest { /// Filter type used to filter line items to fetch. #[serde(rename="filterType")] - pub filter_type: Option, + pub filter_type: Option, /// Format in which the line items will be returned. Default to CSV. - pub format: Option, + pub format: Option, } impl client::RequestValue for DownloadLineItemsRequest {} @@ -65,7 +65,7 @@ pub struct DownloadRequest { /// File types that will be returned. If INVENTORY_SOURCE is requested, no other file types may be requested. Acceptable values are: - "AD" - "AD_GROUP" - "CAMPAIGN" - "INSERTION_ORDER" - "INVENTORY_SOURCE" - "LINE_ITEM" #[serde(rename="fileTypes")] - pub file_types: Option>, + pub file_types: Option>, /// The IDs of the specified filter type. This is used to filter entities to fetch. At least one ID must be specified. #[serde(rename="filterIds")] @@ -74,7 +74,7 @@ pub struct DownloadRequest { /// Filter type used to filter entities to fetch. PARTNER_ID and INVENTORY_SOURCE_ID may only be used when downloading inventory sources. #[serde(rename="filterType")] - pub filter_type: Option, + pub filter_type: Option, /// SDF Version (column names, types, order) in which the entities will be returned. Default to 5. pub version: Option, @@ -131,7 +131,7 @@ pub struct FilterPair { /// Filter type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Filter value. pub value: Option, @@ -197,18 +197,18 @@ pub struct Parameters { /// Data is grouped by the filters listed in this field. #[serde(rename="groupBys")] - pub group_bys: Option>, + pub group_bys: Option>, /// Deprecated. This field is no longer in use. #[serde(rename="includeInviteData")] pub include_invite_data: Option, /// Metrics to include as columns in your report. - pub metrics: Option>, + pub metrics: Option>, /// Report type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Parameters {} @@ -273,10 +273,10 @@ pub struct QueryMetadata { /// Range of report data. #[serde(rename="dataRange")] - pub data_range: Option, + pub data_range: Option, /// Format of the generated report. - pub format: Option, + pub format: Option, /// The path to the location in Google Cloud Storage where the latest report is stored. #[serde(rename="googleCloudStoragePathForLatestReport")] @@ -330,7 +330,7 @@ pub struct QuerySchedule { pub end_time_ms: Option, /// How often the query is run. - pub frequency: Option, + pub frequency: Option, /// Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports. #[serde(rename="nextRunMinuteOfDay")] @@ -379,7 +379,7 @@ pub struct ReportFailure { /// Error code that shows why the report was not created. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, } impl client::Part for ReportFailure {} @@ -453,10 +453,10 @@ pub struct ReportStatus { pub finish_time_ms: Option, /// The file type of the report. - pub format: Option, + pub format: Option, /// The state of the report. - pub state: Option, + pub state: Option, } impl client::Part for ReportStatus {} @@ -510,7 +510,7 @@ pub struct RunQueryRequest { /// Report data range used to generate the report. #[serde(rename="dataRange")] - pub data_range: Option, + pub data_range: Option, /// The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. #[serde(rename="reportDataEndTimeMs")] @@ -547,7 +547,7 @@ pub struct UploadLineItemsRequest { pub dry_run: Option, /// Format the line items are in. Default to CSV. - pub format: Option, + pub format: Option, /// Line items in CSV to upload. Refer to Entity Write File Format for more information on file format. #[serde(rename="lineItems")] diff --git a/gen/doubleclickbidmanager1d1/src/api/call_builders.rs b/gen/doubleclickbidmanager1d1/src/api/call_builders.rs index dbc836de7f..cfce11ab3c 100644 --- a/gen/doubleclickbidmanager1d1/src/api/call_builders.rs +++ b/gen/doubleclickbidmanager1d1/src/api/call_builders.rs @@ -1268,7 +1268,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); params.extend(self._additional_params.iter()); @@ -1519,7 +1519,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); params.extend(self._additional_params.iter()); @@ -2057,7 +2057,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); if let Some(value) = self._asynchronous.as_ref() { params.push("asynchronous", value.to_string()); } @@ -2345,7 +2345,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("queryId", self._query_id.to_string()); + params.push("queryId", &self._query_id.to_string()); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/doubleclickbidmanager1d1/src/api/mod.rs b/gen/doubleclickbidmanager1d1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/doubleclickbidmanager1d1/src/api/mod.rs +++ b/gen/doubleclickbidmanager1d1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/doubleclickbidmanager1d1/src/api/schemas.rs b/gen/doubleclickbidmanager1d1/src/api/schemas.rs index b85ceab567..b2653ffc99 100644 --- a/gen/doubleclickbidmanager1d1/src/api/schemas.rs +++ b/gen/doubleclickbidmanager1d1/src/api/schemas.rs @@ -63,7 +63,7 @@ pub struct FilterPair { /// Filter type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Filter value. pub value: Option, @@ -157,21 +157,21 @@ pub struct Parameters { /// Data is grouped by the filters listed in this field. #[serde(rename="groupBys")] - pub group_bys: Option>, + pub group_bys: Option>, /// Deprecated. This field is no longer in use. #[serde(rename="includeInviteData")] pub include_invite_data: Option, /// Metrics to include as columns in your report. - pub metrics: Option>, + pub metrics: Option>, /// Additional query options. pub options: Option, /// Report type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Parameters {} @@ -191,7 +191,7 @@ pub struct PathFilter { /// Indicates the position of the path the filter should match to (first, last, or any event in path). #[serde(rename="pathMatchPosition")] - pub path_match_position: Option, + pub path_match_position: Option, } impl client::Part for PathFilter {} @@ -226,11 +226,11 @@ impl client::Part for PathQueryOptions {} pub struct PathQueryOptionsFilter { /// Dimension the filter is applied to. - pub filter: Option, + pub filter: Option, /// Indicates how the filter should be matched to the value. #[serde(rename="match")] - pub match_: Option, + pub match_: Option, /// Value to filter on. pub values: Option>, @@ -298,10 +298,10 @@ pub struct QueryMetadata { /// Range of report data. #[serde(rename="dataRange")] - pub data_range: Option, + pub data_range: Option, /// Format of the generated report. - pub format: Option, + pub format: Option, /// The path to the location in Google Cloud Storage where the latest report is stored. #[serde(rename="googleCloudStoragePathForLatestReport")] @@ -355,7 +355,7 @@ pub struct QuerySchedule { pub end_time_ms: Option, /// How often the query is run. - pub frequency: Option, + pub frequency: Option, /// Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports. #[serde(rename="nextRunMinuteOfDay")] @@ -409,7 +409,7 @@ pub struct ReportFailure { /// Error code that shows why the report was not created. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, } impl client::Part for ReportFailure {} @@ -483,10 +483,10 @@ pub struct ReportStatus { pub finish_time_ms: Option, /// The file type of the report. - pub format: Option, + pub format: Option, /// The state of the report. - pub state: Option, + pub state: Option, } impl client::Part for ReportStatus {} @@ -525,7 +525,7 @@ pub struct RunQueryRequest { /// Report data range used to generate the report. #[serde(rename="dataRange")] - pub data_range: Option, + pub data_range: Option, /// The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. #[serde(rename="reportDataEndTimeMs")] diff --git a/gen/doubleclicksearch2/src/api/call_builders.rs b/gen/doubleclicksearch2/src/api/call_builders.rs index d91fddcb7f..c951208501 100644 --- a/gen/doubleclicksearch2/src/api/call_builders.rs +++ b/gen/doubleclicksearch2/src/api/call_builders.rs @@ -1308,13 +1308,13 @@ where } let mut params = Params::with_capacity(14 + self._additional_params.len()); - params.push("agencyId", self._agency_id.to_string()); - params.push("advertiserId", self._advertiser_id.to_string()); - params.push("engineAccountId", self._engine_account_id.to_string()); - params.push("endDate", self._end_date.to_string()); - params.push("rowCount", self._row_count.to_string()); - params.push("startDate", self._start_date.to_string()); - params.push("startRow", self._start_row.to_string()); + params.push("agencyId", &self._agency_id.to_string()); + params.push("advertiserId", &self._advertiser_id.to_string()); + params.push("engineAccountId", &self._engine_account_id.to_string()); + params.push("endDate", &self._end_date.to_string()); + params.push("rowCount", &self._row_count.to_string()); + params.push("startDate", &self._start_date.to_string()); + params.push("startRow", &self._start_row.to_string()); if let Some(value) = self._customer_id.as_ref() { params.push("customerId", value); } @@ -1704,11 +1704,11 @@ where } let mut params = Params::with_capacity(14 + self._additional_params.len()); - params.push("customerId", self._customer_id); - params.push("endDate", self._end_date.to_string()); - params.push("rowCount", self._row_count.to_string()); - params.push("startDate", self._start_date.to_string()); - params.push("startRow", self._start_row.to_string()); + params.push("customerId", &self._customer_id); + params.push("endDate", &self._end_date.to_string()); + params.push("rowCount", &self._row_count.to_string()); + params.push("startDate", &self._start_date.to_string()); + params.push("startRow", &self._start_row.to_string()); if let Some(value) = self._engine_account_id.as_ref() { params.push("engineAccountId", value.to_string()); } @@ -3172,7 +3172,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("reportId", self._report_id); + params.push("reportId", &self._report_id); params.extend(self._additional_params.iter()); @@ -3438,8 +3438,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("reportId", self._report_id); - params.push("reportFragment", self._report_fragment.to_string()); + params.push("reportId", &self._report_id); + params.push("reportFragment", &self._report_fragment.to_string()); params.extend(self._additional_params.iter()); @@ -3706,8 +3706,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("agencyId", self._agency_id.to_string()); - params.push("advertiserId", self._advertiser_id.to_string()); + params.push("agencyId", &self._agency_id.to_string()); + params.push("advertiserId", &self._advertiser_id.to_string()); params.extend(self._additional_params.iter()); @@ -4262,8 +4262,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("agencyId", self._agency_id.to_string()); - params.push("advertiserId", self._advertiser_id.to_string()); + params.push("agencyId", &self._agency_id.to_string()); + params.push("advertiserId", &self._advertiser_id.to_string()); params.extend(self._additional_params.iter()); diff --git a/gen/doubleclicksearch2/src/api/mod.rs b/gen/doubleclicksearch2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/doubleclicksearch2/src/api/mod.rs +++ b/gen/doubleclicksearch2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/drive2/README.md b/gen/drive2/README.md index 8c422623fb..53186b9b07 100644 --- a/gen/drive2/README.md +++ b/gen/drive2/README.md @@ -171,12 +171,12 @@ let result = hub.files().patch(req, "fileId") .ocr_language("dolor") .ocr(true) .new_revision(false) - .modified_date_behavior("amet") - .include_permissions_for_view("duo") - .include_labels("ipsum") - .enforce_single_parent(false) - .convert(true) - .add_parents("ipsum") + .modified_date_behavior(&Default::default()) + .include_permissions_for_view("amet") + .include_labels("duo") + .enforce_single_parent(true) + .convert(false) + .add_parents("ut") .doit().await; match result { diff --git a/gen/drive2/src/api/hub.rs b/gen/drive2/src/api/hub.rs index 1dff756c71..28cf822877 100644 --- a/gen/drive2/src/api/hub.rs +++ b/gen/drive2/src/api/hub.rs @@ -40,22 +40,22 @@ use super::*; /// let result = hub.files().patch(req, "fileId") /// .use_content_as_indexable_text(false) /// .update_viewed_date(false) -/// .timed_text_track_name("duo") -/// .timed_text_language("vero") +/// .timed_text_track_name("diam") +/// .timed_text_language("dolor") /// .supports_team_drives(false) /// .supports_all_drives(false) -/// .set_modified_date(true) +/// .set_modified_date(false) /// .remove_parents("vero") -/// .pinned(true) -/// .ocr_language("Lorem") -/// .ocr(true) -/// .new_revision(false) -/// .modified_date_behavior("accusam") -/// .include_permissions_for_view("takimata") -/// .include_labels("consetetur") -/// .enforce_single_parent(false) +/// .pinned(false) +/// .ocr_language("Stet") +/// .ocr(false) +/// .new_revision(true) +/// .modified_date_behavior(&Default::default()) +/// .include_permissions_for_view("Lorem") +/// .include_labels("diam") +/// .enforce_single_parent(true) /// .convert(false) -/// .add_parents("amet.") +/// .add_parents("accusam") /// .doit().await; /// /// match result { diff --git a/gen/drive2/src/api/mod.rs b/gen/drive2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/drive2/src/api/mod.rs +++ b/gen/drive2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/drive2/src/lib.rs b/gen/drive2/src/lib.rs index b21f19c96b..d6e1b8826e 100644 --- a/gen/drive2/src/lib.rs +++ b/gen/drive2/src/lib.rs @@ -161,23 +161,23 @@ //! // Values shown here are possibly random and not representative ! //! let result = hub.files().patch(req, "fileId") //! .use_content_as_indexable_text(true) -//! .update_viewed_date(false) -//! .timed_text_track_name("Lorem") -//! .timed_text_language("eos") -//! .supports_team_drives(false) -//! .supports_all_drives(true) -//! .set_modified_date(false) -//! .remove_parents("sed") -//! .pinned(true) -//! .ocr_language("Stet") -//! .ocr(true) -//! .new_revision(true) -//! .modified_date_behavior("vero") -//! .include_permissions_for_view("erat") -//! .include_labels("sed") -//! .enforce_single_parent(false) -//! .convert(false) -//! .add_parents("dolor") +//! .update_viewed_date(true) +//! .timed_text_track_name("ipsum") +//! .timed_text_language("est") +//! .supports_team_drives(true) +//! .supports_all_drives(false) +//! .set_modified_date(true) +//! .remove_parents("eos") +//! .pinned(false) +//! .ocr_language("sed") +//! .ocr(false) +//! .new_revision(false) +//! .modified_date_behavior(&Default::default()) +//! .include_permissions_for_view("no") +//! .include_labels("Stet") +//! .enforce_single_parent(true) +//! .convert(true) +//! .add_parents("vero") //! .doit().await; //! //! match result { diff --git a/gen/drive3/README.md b/gen/drive3/README.md index 064ba9c731..0ebde80f0e 100644 --- a/gen/drive3/README.md +++ b/gen/drive3/README.md @@ -157,8 +157,8 @@ let result = hub.files().list() .include_labels("gubergren") .include_items_from_all_drives(false) .drive_id("dolor") - .corpus("ea") - .corpora("ipsum") + .corpus(&Default::default()) + .corpora("ea") .doit().await; match result { diff --git a/gen/drive3/src/api/hub.rs b/gen/drive3/src/api/hub.rs index ef3728d366..3409eab83d 100644 --- a/gen/drive3/src/api/hub.rs +++ b/gen/drive3/src/api/hub.rs @@ -32,7 +32,7 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.files().list() -/// .team_drive_id("eos") +/// .team_drive_id("Lorem") /// .supports_team_drives(false) /// .supports_all_drives(true) /// .spaces("duo") @@ -45,8 +45,8 @@ use super::*; /// .include_labels("et") /// .include_items_from_all_drives(false) /// .drive_id("erat") -/// .corpus("sed") -/// .corpora("duo") +/// .corpus(&Default::default()) +/// .corpora("sed") /// .doit().await; /// /// match result { diff --git a/gen/drive3/src/api/mod.rs b/gen/drive3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/drive3/src/api/mod.rs +++ b/gen/drive3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/drive3/src/lib.rs b/gen/drive3/src/lib.rs index e358f5a29f..ce4265c80f 100644 --- a/gen/drive3/src/lib.rs +++ b/gen/drive3/src/lib.rs @@ -145,21 +145,21 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.files().list() -//! .team_drive_id("invidunt") -//! .supports_team_drives(true) +//! .team_drive_id("ipsum") +//! .supports_team_drives(false) //! .supports_all_drives(true) -//! .spaces("sed") -//! .q("ut") -//! .page_token("gubergren") -//! .page_size(-16) -//! .order_by("est") +//! .spaces("duo") +//! .q("ipsum") +//! .page_token("sed") +//! .page_size(-37) +//! .order_by("gubergren") //! .include_team_drive_items(true) //! .include_permissions_for_view("ipsum") -//! .include_labels("est") +//! .include_labels("ipsum") //! .include_items_from_all_drives(true) //! .drive_id("ea") -//! .corpus("dolor") -//! .corpora("Lorem") +//! .corpus(&Default::default()) +//! .corpora("dolor") //! .doit().await; //! //! match result { diff --git a/gen/driveactivity2/src/api/mod.rs b/gen/driveactivity2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/driveactivity2/src/api/mod.rs +++ b/gen/driveactivity2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/driveactivity2/src/api/schemas.rs b/gen/driveactivity2/src/api/schemas.rs index a8127f443f..e47397cbac 100644 --- a/gen/driveactivity2/src/api/schemas.rs +++ b/gen/driveactivity2/src/api/schemas.rs @@ -319,7 +319,7 @@ pub struct ApplicationReference { /// The reference type corresponding to this event. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ApplicationReference {} @@ -359,7 +359,7 @@ pub struct AppliedLabelChangeDetail { pub title: Option, /// The types of changes made to the Label on the Target. - pub types: Option>, + pub types: Option>, } impl client::Part for AppliedLabelChangeDetail {} @@ -378,7 +378,7 @@ pub struct Assignment { pub assigned_user: Option, /// The sub-type of this event. - pub subtype: Option, + pub subtype: Option, } impl client::Part for Assignment {} @@ -474,7 +474,7 @@ pub struct DataLeakPreventionChange { /// The type of Data Leak Prevention (DLP) change. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DataLeakPreventionChange {} @@ -505,7 +505,7 @@ pub struct Delete { /// The type of delete action taken. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Delete {} @@ -615,7 +615,7 @@ pub struct DriveFolder { /// The type of Drive folder. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DriveFolder {} @@ -836,7 +836,7 @@ pub struct Folder { /// This field is deprecated; please see `DriveFolder.type` instead. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Folder {} @@ -1012,7 +1012,7 @@ pub struct Permission { pub group: Option, /// Indicates the [Google Drive permissions role](https://developers.google.com/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items. - pub role: Option, + pub role: Option, /// The user to whom this permission applies. pub user: Option, @@ -1050,7 +1050,7 @@ impl client::Part for PermissionChange {} pub struct Post { /// The sub-type of this event. - pub subtype: Option, + pub subtype: Option, } impl client::Part for Post {} @@ -1148,7 +1148,7 @@ pub struct Restore { /// The type of restore action taken. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Restore {} @@ -1163,11 +1163,11 @@ impl client::Part for Restore {} pub struct RestrictionChange { /// The feature which had a change in restriction policy. - pub feature: Option, + pub feature: Option, /// The restriction in place after the change. #[serde(rename="newRestriction")] - pub new_restriction: Option, + pub new_restriction: Option, } impl client::Part for RestrictionChange {} @@ -1247,7 +1247,7 @@ impl client::Part for SingleUser {} pub struct Suggestion { /// The sub-type of this event. - pub subtype: Option, + pub subtype: Option, } impl client::Part for Suggestion {} @@ -1263,7 +1263,7 @@ pub struct SystemEvent { /// The type of the system event that may triggered activity. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SystemEvent {} diff --git a/gen/essentialcontacts1/src/api/mod.rs b/gen/essentialcontacts1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/essentialcontacts1/src/api/mod.rs +++ b/gen/essentialcontacts1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/essentialcontacts1/src/api/schemas.rs b/gen/essentialcontacts1/src/api/schemas.rs index 028b4596e7..dfb8ee8442 100644 --- a/gen/essentialcontacts1/src/api/schemas.rs +++ b/gen/essentialcontacts1/src/api/schemas.rs @@ -56,7 +56,7 @@ pub struct GoogleCloudEssentialcontactsV1Contact { /// Required. The categories of notifications that the contact will receive communications for. #[serde(rename="notificationCategorySubscriptions")] - pub notification_category_subscriptions: Option>, + pub notification_category_subscriptions: Option>, /// The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago. #[serde(rename="validateTime")] @@ -64,7 +64,7 @@ pub struct GoogleCloudEssentialcontactsV1Contact { /// The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource. #[serde(rename="validationState")] - pub validation_state: Option, + pub validation_state: Option, } impl client::RequestValue for GoogleCloudEssentialcontactsV1Contact {} @@ -115,7 +115,7 @@ pub struct GoogleCloudEssentialcontactsV1SendTestMessageRequest { /// Required. The notification category to send the test message for. All contacts must be subscribed to this category. #[serde(rename="notificationCategory")] - pub notification_category: Option, + pub notification_category: Option, } impl client::RequestValue for GoogleCloudEssentialcontactsV1SendTestMessageRequest {} diff --git a/gen/eventarc1/src/api/call_builders.rs b/gen/eventarc1/src/api/call_builders.rs index 5df9d4d1d1..bb9c2becde 100644 --- a/gen/eventarc1/src/api/call_builders.rs +++ b/gen/eventarc1/src/api/call_builders.rs @@ -1830,7 +1830,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._channel_connection_id.as_ref() { params.push("channelConnectionId", value); } @@ -2125,7 +2125,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()); @@ -2387,7 +2387,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()); @@ -2651,7 +2651,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()); } @@ -2927,7 +2927,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3216,7 +3216,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()); @@ -3508,7 +3508,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()); @@ -3804,7 +3804,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -4111,7 +4111,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -4383,7 +4383,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()); @@ -4647,7 +4647,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()); } @@ -4925,7 +4925,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5228,7 +5228,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -5540,7 +5540,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()); @@ -5832,7 +5832,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()); @@ -6124,7 +6124,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()); @@ -6409,7 +6409,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()); @@ -6671,7 +6671,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()); @@ -6939,7 +6939,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); } @@ -7231,7 +7231,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()); @@ -7501,7 +7501,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); } @@ -7814,7 +7814,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -8125,7 +8125,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -8417,7 +8417,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()); @@ -8681,7 +8681,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()); } @@ -8961,7 +8961,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); } @@ -9276,7 +9276,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -9598,7 +9598,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()); @@ -9890,7 +9890,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()); @@ -10175,7 +10175,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()); @@ -10437,7 +10437,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()); @@ -10705,7 +10705,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); } @@ -11006,7 +11006,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/eventarc1/src/api/mod.rs b/gen/eventarc1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/eventarc1/src/api/mod.rs +++ b/gen/eventarc1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/eventarc1/src/api/schemas.rs b/gen/eventarc1/src/api/schemas.rs index 5edd48c85e..785eeb8a55 100644 --- a/gen/eventarc1/src/api/schemas.rs +++ b/gen/eventarc1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -96,7 +96,7 @@ pub struct Channel { pub pubsub_topic: Option, /// Output only. The state of a Channel. - pub state: Option, + pub state: Option, /// Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. pub uid: Option, @@ -738,7 +738,7 @@ impl client::RequestValue for SetIamPolicyRequest {} pub struct StateCondition { /// The canonical code of the condition. - pub code: Option, + pub code: Option, /// Human-readable message. pub message: Option, diff --git a/gen/factchecktools1_alpha1/src/api/call_builders.rs b/gen/factchecktools1_alpha1/src/api/call_builders.rs index 1fe8eaf5bc..141163998a 100644 --- a/gen/factchecktools1_alpha1/src/api/call_builders.rs +++ b/gen/factchecktools1_alpha1/src/api/call_builders.rs @@ -1296,7 +1296,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()); @@ -1558,7 +1558,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()); @@ -2130,7 +2130,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()); diff --git a/gen/factchecktools1_alpha1/src/api/mod.rs b/gen/factchecktools1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/factchecktools1_alpha1/src/api/mod.rs +++ b/gen/factchecktools1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/fcm1/src/api/call_builders.rs b/gen/fcm1/src/api/call_builders.rs index 6e61e52ce2..4c60d55020 100644 --- a/gen/fcm1/src/api/call_builders.rs +++ b/gen/fcm1/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); diff --git a/gen/fcm1/src/api/mod.rs b/gen/fcm1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/fcm1/src/api/mod.rs +++ b/gen/fcm1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/fcmdata1_beta1/src/api/call_builders.rs b/gen/fcmdata1_beta1/src/api/call_builders.rs index 3d96207f8d..230d760724 100644 --- a/gen/fcmdata1_beta1/src/api/call_builders.rs +++ b/gen/fcmdata1_beta1/src/api/call_builders.rs @@ -74,7 +74,7 @@ where } let mut params = Params::with_capacity(5 + 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); } diff --git a/gen/fcmdata1_beta1/src/api/mod.rs b/gen/fcmdata1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/fcmdata1_beta1/src/api/mod.rs +++ b/gen/fcmdata1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/file1/src/api/call_builders.rs b/gen/file1/src/api/call_builders.rs index 6d165a23b9..ec4355357e 100644 --- a/gen/file1/src/api/call_builders.rs +++ b/gen/file1/src/api/call_builders.rs @@ -1298,7 +1298,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._backup_id.as_ref() { params.push("backupId", value); } @@ -1593,7 +1593,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()); @@ -1855,7 +1855,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()); @@ -2125,7 +2125,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); } @@ -2436,7 +2436,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2740,7 +2740,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._snapshot_id.as_ref() { params.push("snapshotId", value); } @@ -3035,7 +3035,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()); @@ -3297,7 +3297,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()); @@ -3567,7 +3567,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); } @@ -3878,7 +3878,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4182,7 +4182,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._instance_id.as_ref() { params.push("instanceId", value); } @@ -4479,7 +4479,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._force.as_ref() { params.push("force", value.to_string()); } @@ -4751,7 +4751,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()); @@ -5021,7 +5021,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); } @@ -5332,7 +5332,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5634,7 +5634,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()); @@ -6218,7 +6218,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()); @@ -6503,7 +6503,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()); @@ -6765,7 +6765,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()); @@ -7033,7 +7033,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); } @@ -7325,7 +7325,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()); @@ -7595,7 +7595,7 @@ where } let mut params = Params::with_capacity(7 + 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); } diff --git a/gen/file1/src/api/mod.rs b/gen/file1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/file1/src/api/mod.rs +++ b/gen/file1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/file1/src/api/schemas.rs b/gen/file1/src/api/schemas.rs index bcb8909225..3ee3bc53d3 100644 --- a/gen/file1/src/api/schemas.rs +++ b/gen/file1/src/api/schemas.rs @@ -50,10 +50,10 @@ pub struct Backup { /// Output only. The service tier of the source Filestore instance that this backup is created from. #[serde(rename="sourceInstanceTier")] - pub source_instance_tier: Option, + pub source_instance_tier: Option, /// Output only. The backup state. - pub state: Option, + pub state: Option, /// Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion. #[serde(rename="storageBytes")] @@ -170,7 +170,7 @@ pub struct Instance { pub satisfies_pzs: Option, /// Output only. The instance state. - pub state: Option, + pub state: Option, /// Output only. Additional information about the instance state, if available. #[serde(rename="statusMessage")] @@ -178,10 +178,10 @@ pub struct Instance { /// Output only. Field indicates all the reasons the instance is in "SUSPENDED" state. #[serde(rename="suspensionReasons")] - pub suspension_reasons: Option>, + pub suspension_reasons: Option>, /// The service tier of the instance. - pub tier: Option, + pub tier: Option, } impl client::RequestValue for Instance {} @@ -352,14 +352,14 @@ pub struct NetworkConfig { /// The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING. #[serde(rename="connectMode")] - pub connect_mode: Option, + pub connect_mode: Option, /// Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`. #[serde(rename="ipAddresses")] pub ip_addresses: Option>, /// Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported. - pub modes: Option>, + pub modes: Option>, /// The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. pub network: Option, @@ -382,7 +382,7 @@ pub struct NfsExportOptions { /// Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE. #[serde(rename="accessMode")] - pub access_mode: Option, + pub access_mode: Option, /// An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings. #[serde(rename="anonGid")] @@ -400,7 +400,7 @@ pub struct NfsExportOptions { /// Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH. #[serde(rename="squashMode")] - pub squash_mode: Option, + pub squash_mode: Option, } impl client::Part for NfsExportOptions {} @@ -504,7 +504,7 @@ pub struct Snapshot { pub name: Option, /// Output only. The snapshot state. - pub state: Option, + pub state: Option, } impl client::RequestValue for Snapshot {} diff --git a/gen/file1_beta1/src/api/call_builders.rs b/gen/file1_beta1/src/api/call_builders.rs index 71c4480540..1004255c4f 100644 --- a/gen/file1_beta1/src/api/call_builders.rs +++ b/gen/file1_beta1/src/api/call_builders.rs @@ -1546,7 +1546,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._backup_id.as_ref() { params.push("backupId", value); } @@ -1841,7 +1841,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()); @@ -2103,7 +2103,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()); @@ -2373,7 +2373,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); } @@ -2684,7 +2684,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2988,7 +2988,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._share_id.as_ref() { params.push("shareId", value); } @@ -3283,7 +3283,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()); @@ -3545,7 +3545,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()); @@ -3815,7 +3815,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); } @@ -4126,7 +4126,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4430,7 +4430,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._snapshot_id.as_ref() { params.push("snapshotId", value); } @@ -4725,7 +4725,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()); @@ -4987,7 +4987,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()); @@ -5257,7 +5257,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); } @@ -5568,7 +5568,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5872,7 +5872,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._instance_id.as_ref() { params.push("instanceId", value); } @@ -6169,7 +6169,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._force.as_ref() { params.push("force", value.to_string()); } @@ -6441,7 +6441,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()); @@ -6711,7 +6711,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); } @@ -7022,7 +7022,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7324,7 +7324,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()); @@ -7616,7 +7616,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()); @@ -7908,7 +7908,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()); @@ -8193,7 +8193,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()); @@ -8455,7 +8455,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()); @@ -8723,7 +8723,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); } @@ -9015,7 +9015,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()); @@ -9285,7 +9285,7 @@ where } let mut params = Params::with_capacity(7 + 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); } diff --git a/gen/file1_beta1/src/api/mod.rs b/gen/file1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/file1_beta1/src/api/mod.rs +++ b/gen/file1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/file1_beta1/src/api/schemas.rs b/gen/file1_beta1/src/api/schemas.rs index 783968c6dd..f968449eb8 100644 --- a/gen/file1_beta1/src/api/schemas.rs +++ b/gen/file1_beta1/src/api/schemas.rs @@ -54,10 +54,10 @@ pub struct Backup { /// Output only. The service tier of the source Filestore instance that this backup is created from. #[serde(rename="sourceInstanceTier")] - pub source_instance_tier: Option, + pub source_instance_tier: Option, /// Output only. The backup state. - pub state: Option, + pub state: Option, /// Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion. #[serde(rename="storageBytes")] @@ -194,14 +194,14 @@ pub struct Instance { pub networks: Option>, /// Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`. - pub protocol: Option, + pub protocol: Option, /// Output only. Reserved for future use. #[serde(rename="satisfiesPzs")] pub satisfies_pzs: Option, /// Output only. The instance state. - pub state: Option, + pub state: Option, /// Output only. Additional information about the instance state, if available. #[serde(rename="statusMessage")] @@ -209,10 +209,10 @@ pub struct Instance { /// Output only. Field indicates all the reasons the instance is in "SUSPENDED" state. #[serde(rename="suspensionReasons")] - pub suspension_reasons: Option>, + pub suspension_reasons: Option>, /// The service tier of the instance. - pub tier: Option, + pub tier: Option, } impl client::RequestValue for Instance {} @@ -409,14 +409,14 @@ pub struct NetworkConfig { /// The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING. #[serde(rename="connectMode")] - pub connect_mode: Option, + pub connect_mode: Option, /// Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`. #[serde(rename="ipAddresses")] pub ip_addresses: Option>, /// Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported. - pub modes: Option>, + pub modes: Option>, /// The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. pub network: Option, @@ -439,7 +439,7 @@ pub struct NfsExportOptions { /// Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE. #[serde(rename="accessMode")] - pub access_mode: Option, + pub access_mode: Option, /// An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings. #[serde(rename="anonGid")] @@ -457,7 +457,7 @@ pub struct NfsExportOptions { /// Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH. #[serde(rename="squashMode")] - pub squash_mode: Option, + pub squash_mode: Option, } impl client::Part for NfsExportOptions {} @@ -597,7 +597,7 @@ pub struct Share { pub nfs_export_options: Option>, /// Output only. The share state. - pub state: Option, + pub state: Option, } impl client::RequestValue for Share {} @@ -637,7 +637,7 @@ pub struct Snapshot { pub name: Option, /// Output only. The snapshot state. - pub state: Option, + pub state: Option, } impl client::RequestValue for Snapshot {} diff --git a/gen/firebase1_beta1/src/api/call_builders.rs b/gen/firebase1_beta1/src/api/call_builders.rs index c2b8827723..78a20e0255 100644 --- a/gen/firebase1_beta1/src/api/call_builders.rs +++ b/gen/firebase1_beta1/src/api/call_builders.rs @@ -2407,7 +2407,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()); @@ -2676,7 +2676,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2961,7 +2961,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()); @@ -3223,7 +3223,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3492,7 +3492,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3777,7 +3777,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()); @@ -4039,7 +4039,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()); @@ -4307,7 +4307,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -4608,7 +4608,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4910,7 +4910,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()); @@ -5202,7 +5202,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()); @@ -5491,7 +5491,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5780,7 +5780,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6072,7 +6072,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6357,7 +6357,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()); @@ -6619,7 +6619,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()); @@ -6887,7 +6887,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -7188,7 +7188,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7490,7 +7490,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()); @@ -7782,7 +7782,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()); @@ -8074,7 +8074,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8359,7 +8359,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()); @@ -8621,7 +8621,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()); @@ -8889,7 +8889,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -9190,7 +9190,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -9492,7 +9492,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()); @@ -9784,7 +9784,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()); @@ -10076,7 +10076,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -10368,7 +10368,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10653,7 +10653,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()); @@ -10915,7 +10915,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()); @@ -11177,7 +11177,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()); @@ -11727,7 +11727,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12029,7 +12029,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -12322,7 +12322,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } diff --git a/gen/firebase1_beta1/src/api/mod.rs b/gen/firebase1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebase1_beta1/src/api/mod.rs +++ b/gen/firebase1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebase1_beta1/src/api/schemas.rs b/gen/firebase1_beta1/src/api/schemas.rs index 4603d1d096..c2b86d2222 100644 --- a/gen/firebase1_beta1/src/api/schemas.rs +++ b/gen/firebase1_beta1/src/api/schemas.rs @@ -171,7 +171,7 @@ pub struct AndroidApp { pub sha256_hashes: Option>, /// Output only. The lifecycle state of the App. - pub state: Option, + pub state: Option, } impl client::RequestValue for AndroidApp {} @@ -294,10 +294,10 @@ pub struct FirebaseAppInfo { pub namespace: Option, /// The platform of the Firebase App. - pub platform: Option, + pub platform: Option, /// Output only. The lifecycle state of the App. - pub state: Option, + pub state: Option, } impl client::Part for FirebaseAppInfo {} @@ -342,7 +342,7 @@ pub struct FirebaseProject { pub resources: Option, /// Output only. The lifecycle state of the Project. - pub state: Option, + pub state: Option, } impl client::RequestValue for FirebaseProject {} @@ -394,7 +394,7 @@ pub struct IosApp { pub project_id: Option, /// Output only. The lifecycle state of the App. - pub state: Option, + pub state: Option, /// The Apple Developer Team ID associated with the App in the App Store. #[serde(rename="teamId")] @@ -597,7 +597,7 @@ impl client::ResponseResult for ListWebAppsResponse {} pub struct Location { /// Products and services that are available in the GCP resource location. - pub features: Option>, + pub features: Option>, /// The ID of the GCP resource location. It will be one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations#types). #[serde(rename="locationId")] @@ -605,7 +605,7 @@ pub struct Location { /// Indicates whether the GCP resource location is a [regional or multi-regional location](https://firebase.google.com/docs/projects/locations#types) for data replication. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Location {} @@ -825,7 +825,7 @@ pub struct ShaCertificate { /// The type of SHA certificate encoded in the hash. #[serde(rename="certType")] - pub cert_type: Option, + pub cert_type: Option, /// The resource name of the ShaCertificate for the AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID/sha/SHA_HASH * PROJECT_IDENTIFIER: the parent Project’s [`ProjectNumber`](https://firebase.google.com/../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](https://firebase.google.com/../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google’s [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](https://firebase.google.com/../projects.androidApps#AndroidApp.FIELDS.app_id)). * SHA_HASH: the certificate hash for the App (see [`shaHash`](https://firebase.google.com/../projects.androidApps.sha#ShaCertificate.FIELDS.sha_hash)). pub name: Option, @@ -994,7 +994,7 @@ pub struct WebApp { pub project_id: Option, /// Output only. The lifecycle state of the App. - pub state: Option, + pub state: Option, /// Output only. Immutable. A unique, Firebase-assigned identifier for the `WebApp`. This identifier is only used to populate the `namespace` value for the `WebApp`. For most use cases, use `appId` to identify or reference the App. The `webId` value is only unique within a `FirebaseProject` and its associated Apps. #[serde(rename="webId")] diff --git a/gen/firebaseappcheck1_beta/src/api/call_builders.rs b/gen/firebaseappcheck1_beta/src/api/call_builders.rs index 93ba4c06c6..4524643dc6 100644 --- a/gen/firebaseappcheck1_beta/src/api/call_builders.rs +++ b/gen/firebaseappcheck1_beta/src/api/call_builders.rs @@ -2548,7 +2548,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()); @@ -3980,7 +3980,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -4255,7 +4255,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()); @@ -4526,7 +4526,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4828,7 +4828,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5113,7 +5113,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()); @@ -5375,7 +5375,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()); @@ -5641,7 +5641,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5932,7 +5932,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6229,7 +6229,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -6504,7 +6504,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()); @@ -6775,7 +6775,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7072,7 +7072,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -7347,7 +7347,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()); @@ -7618,7 +7618,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7915,7 +7915,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -8190,7 +8190,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()); @@ -8461,7 +8461,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8758,7 +8758,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -9033,7 +9033,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()); @@ -9304,7 +9304,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -9601,7 +9601,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -9876,7 +9876,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()); @@ -10147,7 +10147,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10444,7 +10444,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if self._names.len() > 0 { for f in self._names.iter() { params.push("names", f); @@ -10719,7 +10719,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()); @@ -10990,7 +10990,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -11292,7 +11292,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -11584,7 +11584,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -11876,7 +11876,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -12168,7 +12168,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -12460,7 +12460,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -12752,7 +12752,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -13044,7 +13044,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -13336,7 +13336,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -13628,7 +13628,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -13920,7 +13920,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -14212,7 +14212,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -14504,7 +14504,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("app", self._app); + params.push("app", &self._app); params.extend(self._additional_params.iter()); @@ -16518,7 +16518,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -16803,7 +16803,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()); @@ -17069,7 +17069,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -17360,7 +17360,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/firebaseappcheck1_beta/src/api/mod.rs b/gen/firebaseappcheck1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebaseappcheck1_beta/src/api/mod.rs +++ b/gen/firebaseappcheck1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebaseappcheck1_beta/src/api/schemas.rs b/gen/firebaseappcheck1_beta/src/api/schemas.rs index 58e0ec0b05..069d51b277 100644 --- a/gen/firebaseappcheck1_beta/src/api/schemas.rs +++ b/gen/firebaseappcheck1_beta/src/api/schemas.rs @@ -907,7 +907,7 @@ pub struct GoogleFirebaseAppcheckV1betaService { /// Required. The App Check enforcement mode for this service. #[serde(rename="enforcementMode")] - pub enforcement_mode: Option, + pub enforcement_mode: Option, /// Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) pub name: Option, diff --git a/gen/firebasedatabase1_beta/src/api/call_builders.rs b/gen/firebasedatabase1_beta/src/api/call_builders.rs index 82630b730c..1f809d9b1f 100644 --- a/gen/firebasedatabase1_beta/src/api/call_builders.rs +++ b/gen/firebasedatabase1_beta/src/api/call_builders.rs @@ -551,7 +551,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -856,7 +856,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()); @@ -1125,7 +1125,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()); @@ -1410,7 +1410,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()); @@ -1678,7 +1678,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -1977,7 +1977,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()); @@ -2269,7 +2269,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()); diff --git a/gen/firebasedatabase1_beta/src/api/mod.rs b/gen/firebasedatabase1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebasedatabase1_beta/src/api/mod.rs +++ b/gen/firebasedatabase1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebasedatabase1_beta/src/api/schemas.rs b/gen/firebasedatabase1_beta/src/api/schemas.rs index 36224f04d7..c815009d6c 100644 --- a/gen/firebasedatabase1_beta/src/api/schemas.rs +++ b/gen/firebasedatabase1_beta/src/api/schemas.rs @@ -27,11 +27,11 @@ pub struct DatabaseInstance { pub project: Option, /// Output only. The database's lifecycle state. Read-only. - pub state: Option, + pub state: Option, /// Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for DatabaseInstance {} diff --git a/gen/firebasedynamiclinks1/src/api/call_builders.rs b/gen/firebasedynamiclinks1/src/api/call_builders.rs index 4aef466d0f..765597bfc1 100644 --- a/gen/firebasedynamiclinks1/src/api/call_builders.rs +++ b/gen/firebasedynamiclinks1/src/api/call_builders.rs @@ -1752,7 +1752,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("dynamicLink", self._dynamic_link); + params.push("dynamicLink", &self._dynamic_link); if let Some(value) = self._sdk_version.as_ref() { params.push("sdkVersion", value); } diff --git a/gen/firebasedynamiclinks1/src/api/mod.rs b/gen/firebasedynamiclinks1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebasedynamiclinks1/src/api/mod.rs +++ b/gen/firebasedynamiclinks1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebasedynamiclinks1/src/api/schemas.rs b/gen/firebasedynamiclinks1/src/api/schemas.rs index c67c221537..4a4ed85ae5 100644 --- a/gen/firebasedynamiclinks1/src/api/schemas.rs +++ b/gen/firebasedynamiclinks1/src/api/schemas.rs @@ -236,10 +236,10 @@ pub struct DynamicLinkEventStat { pub count: Option, /// Link event. - pub event: Option, + pub event: Option, /// Requested platform. - pub platform: Option, + pub platform: Option, } impl client::Part for DynamicLinkEventStat {} @@ -322,7 +322,7 @@ pub struct DynamicLinkWarning { /// The warning code. #[serde(rename="warningCode")] - pub warning_code: Option, + pub warning_code: Option, /// The document describing the warning, and helps resolve. #[serde(rename="warningDocumentLink")] @@ -366,7 +366,7 @@ pub struct GetIosPostInstallAttributionRequest { /// App post install attribution retrieval information. Disambiguates mechanism (iSDK or developer invoked) to retrieve payload from clicked link. #[serde(rename="retrievalMethod")] - pub retrieval_method: Option, + pub retrieval_method: Option, /// Google SDK version. Version takes the form "$major.$minor.$patch" #[serde(rename="sdkVersion")] @@ -378,7 +378,7 @@ pub struct GetIosPostInstallAttributionRequest { /// Strong match page information. Disambiguates between default UI and custom page to present when strong match succeeds/fails to find cookie. #[serde(rename="visualStyle")] - pub visual_style: Option, + pub visual_style: Option, } impl client::RequestValue for GetIosPostInstallAttributionRequest {} @@ -402,7 +402,7 @@ pub struct GetIosPostInstallAttributionResponse { /// The confidence of the returned attribution. #[serde(rename="attributionConfidence")] - pub attribution_confidence: Option, + pub attribution_confidence: Option, /// The deep-link attributed post-install via one of several techniques (fingerprint, copy unique). #[serde(rename="deepLink")] @@ -430,7 +430,7 @@ pub struct GetIosPostInstallAttributionResponse { /// Which IP version the request was made from. #[serde(rename="requestIpVersion")] - pub request_ip_version: Option, + pub request_ip_version: Option, /// Entire FDL (short or long) attributed post-install via one of several techniques (fingerprint, copy unique). #[serde(rename="requestedLink")] @@ -661,7 +661,7 @@ pub struct ManagedShortLink { /// Attributes that have been flagged about this short url. #[serde(rename="flaggedAttribute")] - pub flagged_attribute: Option>, + pub flagged_attribute: Option>, /// Full Dyamic Link info pub info: Option, @@ -674,7 +674,7 @@ pub struct ManagedShortLink { pub link_name: Option, /// Visibility status of link. - pub visibility: Option, + pub visibility: Option, } impl client::Resource for ManagedShortLink {} @@ -733,7 +733,7 @@ pub struct Suffix { pub custom_suffix: Option, /// Suffix option. - pub option: Option, + pub option: Option, } impl client::Part for Suffix {} diff --git a/gen/firebasehosting1/src/api/call_builders.rs b/gen/firebasehosting1/src/api/call_builders.rs index 1c21fec79d..25e55e034a 100644 --- a/gen/firebasehosting1/src/api/call_builders.rs +++ b/gen/firebasehosting1/src/api/call_builders.rs @@ -541,7 +541,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()); @@ -781,7 +781,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()); @@ -1004,7 +1004,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); } diff --git a/gen/firebasehosting1/src/api/mod.rs b/gen/firebasehosting1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebasehosting1/src/api/mod.rs +++ b/gen/firebasehosting1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebasehosting1_beta1/src/api/hub.rs b/gen/firebasehosting1_beta1/src/api/hub.rs index 577b9ea491..b3b36b1501 100644 --- a/gen/firebasehosting1_beta1/src/api/hub.rs +++ b/gen/firebasehosting1_beta1/src/api/hub.rs @@ -32,9 +32,9 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.sites().versions_files_list("parent") -/// .status("takimata") -/// .page_token("amet.") -/// .page_size(-20) +/// .status(&Default::default()) +/// .page_token("sed") +/// .page_size(-2) /// .doit().await; /// /// match result { diff --git a/gen/firebasehosting1_beta1/src/api/mod.rs b/gen/firebasehosting1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebasehosting1_beta1/src/api/mod.rs +++ b/gen/firebasehosting1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebasehosting1_beta1/src/api/schemas.rs b/gen/firebasehosting1_beta1/src/api/schemas.rs index b78d2cffd5..37ce50f1e2 100644 --- a/gen/firebasehosting1_beta1/src/api/schemas.rs +++ b/gen/firebasehosting1_beta1/src/api/schemas.rs @@ -190,7 +190,7 @@ pub struct Domain { pub site: Option, /// Output only. Additional status of the domain association. - pub status: Option, + pub status: Option, /// Output only. The time at which the domain was last updated. #[serde(rename="updateTime")] @@ -223,7 +223,7 @@ pub struct DomainProvisioning { /// The certificate provisioning status; updated when Firebase Hosting provisions an SSL certificate for the domain. #[serde(rename="certStatus")] - pub cert_status: Option, + pub cert_status: Option, /// The IPs found at the last DNS fetch. #[serde(rename="discoveredIps")] @@ -235,7 +235,7 @@ pub struct DomainProvisioning { /// The DNS record match status as of the last DNS fetch. #[serde(rename="dnsStatus")] - pub dns_status: Option, + pub dns_status: Option, /// The list of IPs to which the domain is expected to resolve. #[serde(rename="expectedIps")] @@ -259,7 +259,7 @@ pub struct DomainRedirect { /// Required. The redirect status code. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DomainRedirect {} @@ -616,7 +616,7 @@ pub struct Release { /// Explains the reason for the release. Specify a value for this field only when creating a `SITE_DISABLE` type release. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The configuration and content that was released. pub version: Option, @@ -671,7 +671,7 @@ pub struct ServingConfig { /// How to handle well known App Association files. #[serde(rename="appAssociation")] - pub app_association: Option, + pub app_association: Option, /// Defines whether to drop the file extension from uploaded files. #[serde(rename="cleanUrls")] @@ -691,7 +691,7 @@ pub struct ServingConfig { /// Defines how to handle a trailing slash in the URL path. #[serde(rename="trailingSlashBehavior")] - pub trailing_slash_behavior: Option, + pub trailing_slash_behavior: Option, } impl client::Part for ServingConfig {} @@ -750,7 +750,7 @@ pub struct Site { /// Output only. The type of Hosting site. Every Firebase project has a `DEFAULT_SITE`, which is created when Hosting is provisioned for the project. All additional sites are `USER_SITE`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Site {} @@ -862,7 +862,7 @@ pub struct Version { pub name: Option, /// The deploy status of the version. For a successful deploy, call [`CreateVersion`](sites.versions/create) to make a new version (`CREATED` status), [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) the version to the `FINALIZED` status. Note that if you leave the version in the `CREATED` state for more than 12 hours, the system will automatically mark the version as `ABANDONED`. You can also change the status of a version to `DELETED` by calling [`DeleteVersion`](sites.versions/delete). - pub status: Option, + pub status: Option, /// Output only. The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`. #[serde(rename="versionBytes")] @@ -889,7 +889,7 @@ pub struct VersionFile { pub path: Option, /// Output only. The current status of a particular file in the specified version. The value will be either `pending upload` or `uploaded`. - pub status: Option, + pub status: Option, } impl client::Part for VersionFile {} diff --git a/gen/firebaseml1/src/api/call_builders.rs b/gen/firebaseml1/src/api/call_builders.rs index dfee8e3468..9c0f5a914a 100644 --- a/gen/firebaseml1/src/api/call_builders.rs +++ b/gen/firebaseml1/src/api/call_builders.rs @@ -455,7 +455,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()); @@ -740,7 +740,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()); @@ -1008,7 +1008,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); } diff --git a/gen/firebaseml1/src/api/mod.rs b/gen/firebaseml1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebaseml1/src/api/mod.rs +++ b/gen/firebaseml1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebaseremoteconfig1/src/api/call_builders.rs b/gen/firebaseremoteconfig1/src/api/call_builders.rs index 5ed43099ab..e8c288e06d 100644 --- a/gen/firebaseremoteconfig1/src/api/call_builders.rs +++ b/gen/firebaseremoteconfig1/src/api/call_builders.rs @@ -468,7 +468,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -714,7 +714,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } diff --git a/gen/firebaseremoteconfig1/src/api/mod.rs b/gen/firebaseremoteconfig1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebaseremoteconfig1/src/api/mod.rs +++ b/gen/firebaseremoteconfig1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firebaseremoteconfig1/src/api/schemas.rs b/gen/firebaseremoteconfig1/src/api/schemas.rs index 3fd1491040..f75ddf38e8 100644 --- a/gen/firebaseremoteconfig1/src/api/schemas.rs +++ b/gen/firebaseremoteconfig1/src/api/schemas.rs @@ -51,7 +51,7 @@ pub struct RemoteConfigCondition { /// displaying the condition. #[serde(rename="tagColor")] - pub tag_color: Option, + pub tag_color: Option, /// Required. /// A non empty and unique name of this condition. diff --git a/gen/firebasestorage1_beta/src/api/call_builders.rs b/gen/firebasestorage1_beta/src/api/call_builders.rs index 030c7f0a5b..411f534f79 100644 --- a/gen/firebasestorage1_beta/src/api/call_builders.rs +++ b/gen/firebasestorage1_beta/src/api/call_builders.rs @@ -460,7 +460,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("bucket", self._bucket); + params.push("bucket", &self._bucket); params.extend(self._additional_params.iter()); @@ -745,7 +745,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()); @@ -1011,7 +1011,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1300,7 +1300,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("bucket", self._bucket); + params.push("bucket", &self._bucket); params.extend(self._additional_params.iter()); diff --git a/gen/firebasestorage1_beta/src/api/mod.rs b/gen/firebasestorage1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firebasestorage1_beta/src/api/mod.rs +++ b/gen/firebasestorage1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firestore1/src/api/mod.rs b/gen/firestore1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firestore1/src/api/mod.rs +++ b/gen/firestore1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firestore1/src/api/schemas.rs b/gen/firestore1/src/api/schemas.rs index 68007b96b7..20788c4c4a 100644 --- a/gen/firestore1/src/api/schemas.rs +++ b/gen/firestore1/src/api/schemas.rs @@ -275,7 +275,7 @@ pub struct CompositeFilter { pub filters: Option>, /// The operator for combining multiple filters. - pub op: Option, + pub op: Option, } impl client::Part for CompositeFilter {} @@ -518,7 +518,7 @@ pub struct FieldFilter { pub field: Option, /// The operator to filter by. - pub op: Option, + pub op: Option, /// The value to compare to. pub value: Option, @@ -574,7 +574,7 @@ pub struct FieldTransform { /// Sets the field to the given server value. #[serde(rename="setToServerValue")] - pub set_to_server_value: Option, + pub set_to_server_value: Option, } impl client::Part for FieldTransform {} @@ -620,11 +620,11 @@ pub struct GoogleFirestoreAdminV1Database { /// The App Engine integration mode to use for this database. #[serde(rename="appEngineIntegrationMode")] - pub app_engine_integration_mode: Option, + pub app_engine_integration_mode: Option, /// The concurrency control mode to use for this database. #[serde(rename="concurrencyMode")] - pub concurrency_mode: Option, + pub concurrency_mode: Option, /// This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. pub etag: Option, @@ -642,7 +642,7 @@ pub struct GoogleFirestoreAdminV1Database { /// The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for GoogleFirestoreAdminV1Database {} @@ -749,7 +749,7 @@ pub struct GoogleFirestoreAdminV1Index { /// The API scope supported by this index. #[serde(rename="apiScope")] - pub api_scope: Option, + pub api_scope: Option, /// The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path `__name__`. If, on creation, `__name__` was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the `__name__` will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. pub fields: Option>, @@ -759,10 +759,10 @@ pub struct GoogleFirestoreAdminV1Index { /// Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index. #[serde(rename="queryScope")] - pub query_scope: Option, + pub query_scope: Option, /// Output only. The serving state of the index. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleFirestoreAdminV1Index {} @@ -805,14 +805,14 @@ pub struct GoogleFirestoreAdminV1IndexField { /// Indicates that this field supports operations on `array_value`s. #[serde(rename="arrayConfig")] - pub array_config: Option, + pub array_config: Option, /// Can be __name__. For single field indexes, this must match the name of the field or may be omitted. #[serde(rename="fieldPath")] pub field_path: Option, /// Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=. - pub order: Option, + pub order: Option, } impl client::Part for GoogleFirestoreAdminV1IndexField {} @@ -892,7 +892,7 @@ impl client::ResponseResult for GoogleFirestoreAdminV1ListIndexesResponse {} pub struct GoogleFirestoreAdminV1TtlConfig { /// Output only. The state of the TTL configuration. - pub state: Option, + pub state: Option, } impl client::Part for GoogleFirestoreAdminV1TtlConfig {} @@ -1210,7 +1210,7 @@ impl client::Part for MapValue {} pub struct Order { /// The direction to order by. Defaults to `ASCENDING`. - pub direction: Option, + pub direction: Option, /// The field to order by. pub field: Option, @@ -1646,7 +1646,7 @@ pub struct TargetChange { /// The type of change that occurred. #[serde(rename="targetChangeType")] - pub target_change_type: Option, + pub target_change_type: Option, /// The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined. #[serde(rename="targetIds")] @@ -1688,7 +1688,7 @@ pub struct UnaryFilter { pub field: Option, /// The unary operator to apply. - pub op: Option, + pub op: Option, } impl client::Part for UnaryFilter {} @@ -1734,7 +1734,7 @@ pub struct Value { /// A null value. #[serde(rename="nullValue")] - pub null_value: Option, + pub null_value: Option, /// A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. #[serde(rename="referenceValue")] diff --git a/gen/firestore1_beta1/src/api/call_builders.rs b/gen/firestore1_beta1/src/api/call_builders.rs index 56c5bdc9cb..36958c8e79 100644 --- a/gen/firestore1_beta1/src/api/call_builders.rs +++ b/gen/firestore1_beta1/src/api/call_builders.rs @@ -2433,7 +2433,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -2725,7 +2725,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -3017,7 +3017,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -3309,7 +3309,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -3606,8 +3606,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("parent", self._parent); - params.push("collectionId", self._collection_id); + params.push("parent", &self._parent); + params.push("collectionId", &self._collection_id); if self._mask_field_paths.len() > 0 { for f in self._mask_field_paths.iter() { params.push("mask.fieldPaths", f); @@ -3929,7 +3929,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._current_document_update_time.as_ref() { params.push("currentDocument.updateTime", ::client::serde::datetime_to_string(&value)); } @@ -4217,7 +4217,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._transaction.as_ref() { params.push("transaction", ::client::serde::standard_base64::to_string(&value)); } @@ -4527,8 +4527,8 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("parent", self._parent); - params.push("collectionId", self._collection_id); + params.push("parent", &self._parent); + params.push("collectionId", &self._collection_id); if let Some(value) = self._transaction.as_ref() { params.push("transaction", ::client::serde::standard_base64::to_string(&value)); } @@ -4880,7 +4880,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5180,8 +5180,8 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("parent", self._parent); - params.push("collectionId", self._collection_id); + params.push("parent", &self._parent); + params.push("collectionId", &self._collection_id); if let Some(value) = self._transaction.as_ref() { params.push("transaction", ::client::serde::standard_base64::to_string(&value)); } @@ -5533,7 +5533,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -5825,7 +5825,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6125,7 +6125,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if self._update_mask_field_paths.len() > 0 { for f in self._update_mask_field_paths.iter() { params.push("updateMask.fieldPaths", f); @@ -6463,7 +6463,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -6755,7 +6755,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7047,7 +7047,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7339,7 +7339,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("database", self._database); + params.push("database", &self._database); params.extend(self._additional_params.iter()); @@ -7631,7 +7631,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7916,7 +7916,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()); @@ -8178,7 +8178,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()); @@ -8446,7 +8446,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._page_token.as_ref() { params.push("pageToken", value); } @@ -8744,7 +8744,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()); @@ -9036,7 +9036,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()); diff --git a/gen/firestore1_beta1/src/api/mod.rs b/gen/firestore1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/firestore1_beta1/src/api/mod.rs +++ b/gen/firestore1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/firestore1_beta1/src/api/schemas.rs b/gen/firestore1_beta1/src/api/schemas.rs index 6e6af497e1..4f1c4aa802 100644 --- a/gen/firestore1_beta1/src/api/schemas.rs +++ b/gen/firestore1_beta1/src/api/schemas.rs @@ -275,7 +275,7 @@ pub struct CompositeFilter { pub filters: Option>, /// The operator for combining multiple filters. - pub op: Option, + pub op: Option, } impl client::Part for CompositeFilter {} @@ -516,7 +516,7 @@ pub struct FieldFilter { pub field: Option, /// The operator to filter by. - pub op: Option, + pub op: Option, /// The value to compare to. pub value: Option, @@ -572,7 +572,7 @@ pub struct FieldTransform { /// Sets the field to the given server value. #[serde(rename="setToServerValue")] - pub set_to_server_value: Option, + pub set_to_server_value: Option, } impl client::Part for FieldTransform {} @@ -674,7 +674,7 @@ pub struct GoogleFirestoreAdminV1beta1Index { pub name: Option, /// The state of the index. Output only. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleFirestoreAdminV1beta1Index {} @@ -694,7 +694,7 @@ pub struct GoogleFirestoreAdminV1beta1IndexField { pub field_path: Option, /// The field's mode. - pub mode: Option, + pub mode: Option, } impl client::Part for GoogleFirestoreAdminV1beta1IndexField {} @@ -936,7 +936,7 @@ impl client::Part for MapValue {} pub struct Order { /// The direction to order by. Defaults to `ASCENDING`. - pub direction: Option, + pub direction: Option, /// The field to order by. pub field: Option, @@ -1372,7 +1372,7 @@ pub struct TargetChange { /// The type of change that occurred. #[serde(rename="targetChangeType")] - pub target_change_type: Option, + pub target_change_type: Option, /// The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined. #[serde(rename="targetIds")] @@ -1414,7 +1414,7 @@ pub struct UnaryFilter { pub field: Option, /// The unary operator to apply. - pub op: Option, + pub op: Option, } impl client::Part for UnaryFilter {} @@ -1460,7 +1460,7 @@ pub struct Value { /// A null value. #[serde(rename="nullValue")] - pub null_value: Option, + pub null_value: Option, /// A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. #[serde(rename="referenceValue")] diff --git a/gen/fitness1/src/api/call_builders.rs b/gen/fitness1/src/api/call_builders.rs index 8dbeba5b2e..d1b03d5a33 100644 --- a/gen/fitness1/src/api/call_builders.rs +++ b/gen/fitness1/src/api/call_builders.rs @@ -1273,8 +1273,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -1568,9 +1568,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); - params.push("datasetId", self._dataset_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -1847,9 +1847,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); - params.push("datasetId", self._dataset_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); + params.push("datasetId", &self._dataset_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2160,9 +2160,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); - params.push("datasetId", self._dataset_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); + params.push("datasetId", &self._dataset_id); params.extend(self._additional_params.iter()); @@ -2474,7 +2474,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("userId", self._user_id); + params.push("userId", &self._user_id); params.extend(self._additional_params.iter()); @@ -2760,8 +2760,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); params.extend(self._additional_params.iter()); @@ -3034,8 +3034,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); params.extend(self._additional_params.iter()); @@ -3309,7 +3309,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("userId", self._user_id); + params.push("userId", &self._user_id); if self._data_type_name.len() > 0 { for f in self._data_type_name.iter() { params.push("dataTypeName", f); @@ -3592,8 +3592,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("dataSourceId", self._data_source_id); + params.push("userId", &self._user_id); + params.push("dataSourceId", &self._data_source_id); params.extend(self._additional_params.iter()); @@ -3895,7 +3895,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("userId", self._user_id); + params.push("userId", &self._user_id); params.extend(self._additional_params.iter()); @@ -4181,8 +4181,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("sessionId", self._session_id); + params.push("userId", &self._user_id); + params.push("sessionId", &self._session_id); params.extend(self._additional_params.iter()); @@ -4453,7 +4453,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("userId", self._user_id); + params.push("userId", &self._user_id); if let Some(value) = self._start_time.as_ref() { params.push("startTime", value); } @@ -4776,8 +4776,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("userId", self._user_id); - params.push("sessionId", self._session_id); + params.push("userId", &self._user_id); + params.push("sessionId", &self._session_id); params.extend(self._additional_params.iter()); diff --git a/gen/fitness1/src/api/mod.rs b/gen/fitness1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/fitness1/src/api/mod.rs +++ b/gen/fitness1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/fitness1/src/api/schemas.rs b/gen/fitness1/src/api/schemas.rs index a9ba8398e0..e62ca30ac8 100644 --- a/gen/fitness1/src/api/schemas.rs +++ b/gen/fitness1/src/api/schemas.rs @@ -28,7 +28,7 @@ pub struct AggregateBucket { /// The type of a bucket signifies how the data aggregation is performed in the bucket. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AggregateBucket {} @@ -93,7 +93,7 @@ pub struct AggregateRequest { /// DO NOT POPULATE THIS FIELD. It is ignored. #[serde(rename="filteredDataQualityStandard")] - pub filtered_data_quality_standard: Option>, + pub filtered_data_quality_standard: Option>, /// The start of a window of time. Data that intersects with this time window will be aggregated. The time is in milliseconds since epoch, inclusive. #[serde(rename="startTimeMillis")] @@ -221,7 +221,7 @@ pub struct BucketByTimePeriod { /// no description provided #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// no description provided pub value: Option, @@ -298,7 +298,7 @@ pub struct DataSource { /// DO NOT POPULATE THIS FIELD. It is never populated in responses from the platform, and is ignored in queries. It will be removed in a future version entirely. #[serde(rename="dataQualityStandard")] - pub data_quality_standard: Option>, + pub data_quality_standard: Option>, /// A unique identifier for the data stream produced by this data source. The identifier includes: - The physical device's manufacturer, model, and serial number (UID). - The application's package name or name. Package name is used when the data source was created by an Android application. The developer project number is used when the data source was created by a REST client. - The data source's type. - The data source's stream name. Note that not all attributes of the data source are used as part of the stream identifier. In particular, the version of the hardware/the application isn't used. This allows us to preserve the same stream through version updates. This also means that two DataSource objects may represent the same data stream even if they're not equal. The exact format of the data stream ID created by an Android application is: type:dataType.name:application.packageName:device.manufacturer:device.model:device.uid:dataStreamName The exact format of the data stream ID created by a REST client is: type:dataType.name:developer project number:device.manufacturer:device.model:device.uid:dataStreamName When any of the optional fields that make up the data stream ID are absent, they will be omitted from the data stream ID. The minimum viable data stream ID would be: type:dataType.name:developer project number Finally, the developer project number and device UID are obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the developer project number in clear and normal form. This means a client will see a different set of data_stream_ids than another client with different credentials. #[serde(rename="dataStreamId")] @@ -320,7 +320,7 @@ pub struct DataSource { /// A constant describing the type of this data source. Indicates whether this data source produces raw or derived data. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for DataSource {} @@ -354,7 +354,7 @@ impl client::Part for DataType {} pub struct DataTypeField { /// The different supported formats for each field in a data type. - pub format: Option, + pub format: Option, /// Defines the name and format of data. Unlike data type names, field names are not namespaced, and only need to be unique within the data type. pub name: Option, @@ -421,7 +421,7 @@ pub struct Device { /// A constant representing the type of the device. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The serial number or other unique ID for the hardware. This field is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the uid field in clear and normal form. The obfuscation preserves equality; that is, given two IDs, if id1 == id2, obfuscated(id1) == obfuscated(id2). pub uid: Option, diff --git a/gen/fusiontables2/src/api/call_builders.rs b/gen/fusiontables2/src/api/call_builders.rs index d99cef7a88..bd1c11399c 100644 --- a/gen/fusiontables2/src/api/call_builders.rs +++ b/gen/fusiontables2/src/api/call_builders.rs @@ -1850,8 +1850,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("columnId", self._column_id); + params.push("tableId", &self._table_id); + params.push("columnId", &self._column_id); params.extend(self._additional_params.iter()); @@ -2109,8 +2109,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("columnId", self._column_id); + params.push("tableId", &self._table_id); + params.push("columnId", &self._column_id); params.extend(self._additional_params.iter()); @@ -2385,7 +2385,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -2670,7 +2670,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2956,8 +2956,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("columnId", self._column_id); + params.push("tableId", &self._table_id); + params.push("columnId", &self._column_id); params.extend(self._additional_params.iter()); @@ -3256,8 +3256,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("columnId", self._column_id); + params.push("tableId", &self._table_id); + params.push("columnId", &self._column_id); params.extend(self._additional_params.iter()); @@ -3564,7 +3564,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("sql", self._sql); + params.push("sql", &self._sql); if let Some(value) = self._typed.as_ref() { params.push("typed", value.to_string()); } @@ -3863,7 +3863,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("sql", self._sql); + params.push("sql", &self._sql); if let Some(value) = self._typed.as_ref() { params.push("typed", value.to_string()); } @@ -4147,8 +4147,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("styleId", self._style_id.to_string()); + params.push("tableId", &self._table_id); + params.push("styleId", &self._style_id.to_string()); params.extend(self._additional_params.iter()); @@ -4406,8 +4406,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("styleId", self._style_id.to_string()); + params.push("tableId", &self._table_id); + params.push("styleId", &self._style_id.to_string()); params.extend(self._additional_params.iter()); @@ -4682,7 +4682,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -4967,7 +4967,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5253,8 +5253,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("styleId", self._style_id.to_string()); + params.push("tableId", &self._table_id); + params.push("styleId", &self._style_id.to_string()); params.extend(self._additional_params.iter()); @@ -5553,8 +5553,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("styleId", self._style_id.to_string()); + params.push("tableId", &self._table_id); + params.push("styleId", &self._style_id.to_string()); params.extend(self._additional_params.iter()); @@ -5847,7 +5847,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._copy_presentation.as_ref() { params.push("copyPresentation", value.to_string()); } @@ -6115,7 +6115,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -6362,7 +6362,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -6632,7 +6632,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._start_line.as_ref() { params.push("startLine", value.to_string()); } @@ -7054,7 +7054,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._encoding.as_ref() { params.push("encoding", value); } @@ -7974,7 +7974,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._replace_view_definition.as_ref() { params.push("replaceViewDefinition", value.to_string()); } @@ -8265,7 +8265,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -8535,7 +8535,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._start_line.as_ref() { params.push("startLine", value.to_string()); } @@ -8960,7 +8960,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._replace_view_definition.as_ref() { params.push("replaceViewDefinition", value.to_string()); } @@ -9252,8 +9252,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("taskId", self._task_id); + params.push("tableId", &self._table_id); + params.push("taskId", &self._task_id); params.extend(self._additional_params.iter()); @@ -9511,8 +9511,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("taskId", self._task_id); + params.push("tableId", &self._table_id); + params.push("taskId", &self._task_id); params.extend(self._additional_params.iter()); @@ -9786,7 +9786,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._start_index.as_ref() { params.push("startIndex", value.to_string()); } @@ -10075,8 +10075,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("templateId", self._template_id.to_string()); + params.push("tableId", &self._table_id); + params.push("templateId", &self._template_id.to_string()); params.extend(self._additional_params.iter()); @@ -10334,8 +10334,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("templateId", self._template_id.to_string()); + params.push("tableId", &self._table_id); + params.push("templateId", &self._template_id.to_string()); params.extend(self._additional_params.iter()); @@ -10610,7 +10610,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); params.extend(self._additional_params.iter()); @@ -10895,7 +10895,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); + params.push("tableId", &self._table_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -11181,8 +11181,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("templateId", self._template_id.to_string()); + params.push("tableId", &self._table_id); + params.push("templateId", &self._template_id.to_string()); params.extend(self._additional_params.iter()); @@ -11481,8 +11481,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tableId", self._table_id); - params.push("templateId", self._template_id.to_string()); + params.push("tableId", &self._table_id); + params.push("templateId", &self._template_id.to_string()); params.extend(self._additional_params.iter()); diff --git a/gen/fusiontables2/src/api/mod.rs b/gen/fusiontables2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/fusiontables2/src/api/mod.rs +++ b/gen/fusiontables2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/games1/README.md b/gen/games1/README.md index cab2518bef..9e0e43f2c5 100644 --- a/gen/games1/README.md +++ b/gen/games1/README.md @@ -120,8 +120,8 @@ let mut hub = Games::new(hyper::Client::builder().build(hyper_rustls::HttpsConne // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.applications().get("applicationId") - .platform_type("magna") - .language("no") + .platform_type(&Default::default()) + .language("magna") .doit().await; match result { diff --git a/gen/games1/src/api/hub.rs b/gen/games1/src/api/hub.rs index 02748c3da4..f241b37213 100644 --- a/gen/games1/src/api/hub.rs +++ b/gen/games1/src/api/hub.rs @@ -32,8 +32,8 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.applications().get("applicationId") -/// .platform_type("sed") -/// .language("amet.") +/// .platform_type(&Default::default()) +/// .language("At") /// .doit().await; /// /// match result { diff --git a/gen/games1/src/api/method_builders.rs b/gen/games1/src/api/method_builders.rs index 4ca0efd3b0..3d1da6e1ee 100644 --- a/gen/games1/src/api/method_builders.rs +++ b/gen/games1/src/api/method_builders.rs @@ -531,11 +531,11 @@ impl<'a, S> MetagameMethods<'a, S> { /// /// * `playerId` - A player ID. A value of `me` may be used in place of the authenticated player's ID. /// * `collection` - The collection of categories for which data will be returned. - pub fn list_categories_by_player(&self, player_id: &str, collection: &str) -> MetagameListCategoriesByPlayerCall<'a, S> { + pub fn list_categories_by_player(&self, player_id: &str, collection: &MetagameCollectionEnum) -> MetagameListCategoriesByPlayerCall<'a, S> { MetagameListCategoriesByPlayerCall { hub: self.hub, _player_id: player_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _max_results: Default::default(), _language: Default::default(), @@ -624,10 +624,10 @@ impl<'a, S> PlayerMethods<'a, S> { /// # Arguments /// /// * `collection` - Collection of players being retrieved - pub fn list(&self, collection: &str) -> PlayerListCall<'a, S> { + pub fn list(&self, collection: &PlayerCollectionEnum) -> PlayerListCall<'a, S> { PlayerListCall { hub: self.hub, - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _max_results: Default::default(), _language: Default::default(), @@ -745,12 +745,12 @@ impl<'a, S> ScoreMethods<'a, S> { /// * `playerId` - A player ID. A value of `me` may be used in place of the authenticated player's ID. /// * `leaderboardId` - The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application. /// * `timeSpan` - The time span for the scores and ranks you're requesting. - pub fn get(&self, player_id: &str, leaderboard_id: &str, time_span: &str) -> ScoreGetCall<'a, S> { + pub fn get(&self, player_id: &str, leaderboard_id: &str, time_span: &ScoreTimeSpanEnum) -> ScoreGetCall<'a, S> { ScoreGetCall { hub: self.hub, _player_id: player_id.to_string(), _leaderboard_id: leaderboard_id.to_string(), - _time_span: time_span.to_string(), + _time_span: time_span.clone(), _page_token: Default::default(), _max_results: Default::default(), _language: Default::default(), @@ -770,12 +770,12 @@ impl<'a, S> ScoreMethods<'a, S> { /// * `leaderboardId` - The ID of the leaderboard. /// * `collection` - The collection of scores you're requesting. /// * `timeSpan` - The time span for the scores and ranks you're requesting. - pub fn list(&self, leaderboard_id: &str, collection: &str, time_span: &str) -> ScoreListCall<'a, S> { + pub fn list(&self, leaderboard_id: &str, collection: &ScoreCollectionEnum, time_span: &ScoreTimeSpanEnum) -> ScoreListCall<'a, S> { ScoreListCall { hub: self.hub, _leaderboard_id: leaderboard_id.to_string(), - _collection: collection.to_string(), - _time_span: time_span.to_string(), + _collection: collection.clone(), + _time_span: time_span.clone(), _page_token: Default::default(), _max_results: Default::default(), _language: Default::default(), @@ -794,12 +794,12 @@ impl<'a, S> ScoreMethods<'a, S> { /// * `leaderboardId` - The ID of the leaderboard. /// * `collection` - The collection of scores you're requesting. /// * `timeSpan` - The time span for the scores and ranks you're requesting. - pub fn list_window(&self, leaderboard_id: &str, collection: &str, time_span: &str) -> ScoreListWindowCall<'a, S> { + pub fn list_window(&self, leaderboard_id: &str, collection: &ScoreCollectionEnum, time_span: &ScoreTimeSpanEnum) -> ScoreListWindowCall<'a, S> { ScoreListWindowCall { hub: self.hub, _leaderboard_id: leaderboard_id.to_string(), - _collection: collection.to_string(), - _time_span: time_span.to_string(), + _collection: collection.clone(), + _time_span: time_span.clone(), _return_top_if_absent: Default::default(), _results_above: Default::default(), _page_token: Default::default(), diff --git a/gen/games1/src/api/mod.rs b/gen/games1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/games1/src/api/mod.rs +++ b/gen/games1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/games1/src/api/schemas.rs b/gen/games1/src/api/schemas.rs index d85078000f..6a4cb27d87 100644 --- a/gen/games1/src/api/schemas.rs +++ b/gen/games1/src/api/schemas.rs @@ -13,7 +13,7 @@ pub struct AchievementDefinition { /// The type of the achievement. #[serde(rename="achievementType")] - pub achievement_type: Option, + pub achievement_type: Option, /// The description of the achievement. pub description: Option, @@ -32,7 +32,7 @@ pub struct AchievementDefinition { /// The initial state of the achievement. #[serde(rename="initialState")] - pub initial_state: Option, + pub initial_state: Option, /// Indicates whether the revealed icon image being returned is a default image, or is provided by the game. #[serde(rename="isRevealedIconUrlDefault")] @@ -131,7 +131,7 @@ pub struct AchievementRevealResponse { /// The current state of the achievement for which a reveal was attempted. This might be `UNLOCKED` if the achievement was already unlocked. #[serde(rename="currentState")] - pub current_state: Option, + pub current_state: Option, /// Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementRevealResponse`. pub kind: Option, @@ -260,7 +260,7 @@ pub struct AchievementUpdateRequest { /// The type of update being applied. #[serde(rename="updateType")] - pub update_type: Option, + pub update_type: Option, } impl client::Part for AchievementUpdateRequest {} @@ -280,7 +280,7 @@ pub struct AchievementUpdateResponse { /// The current state of the achievement. #[serde(rename="currentState")] - pub current_state: Option, + pub current_state: Option, /// The current steps recorded for this achievement if it is incremental. #[serde(rename="currentSteps")] @@ -333,7 +333,7 @@ pub struct Application { /// A list of features that have been enabled for the application. #[serde(rename="enabledFeatures")] - pub enabled_features: Option>, + pub enabled_features: Option>, /// The ID of the application. pub id: Option, @@ -488,7 +488,7 @@ pub struct EventBatchRecordFailure { /// The cause for the update failure. #[serde(rename="failureCause")] - pub failure_cause: Option, + pub failure_cause: Option, /// Uniquely identifies the type of this resource. Value is always the fixed string `games#eventBatchRecordFailure`. pub kind: Option, @@ -553,7 +553,7 @@ pub struct EventDefinition { pub kind: Option, /// The visibility of event being tracked in this definition. - pub visibility: Option, + pub visibility: Option, } impl client::Part for EventDefinition {} @@ -646,7 +646,7 @@ pub struct EventRecordFailure { /// The cause for the update failure. #[serde(rename="failureCause")] - pub failure_cause: Option, + pub failure_cause: Option, /// Uniquely identifies the type of this resource. Value is always the fixed string `games#eventRecordFailure`. pub kind: Option, @@ -839,7 +839,7 @@ pub struct Instance { /// The platform type. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, /// Flag to show if this game instance supports realtime play. #[serde(rename="realtimePlay")] @@ -975,7 +975,7 @@ pub struct Leaderboard { pub name: Option, /// How scores are ordered. - pub order: Option, + pub order: Option, } impl client::Resource for Leaderboard {} @@ -1020,7 +1020,7 @@ pub struct LeaderboardEntry { /// The time span of this high score. #[serde(rename="timeSpan")] - pub time_span: Option, + pub time_span: Option, /// The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. #[serde(rename="writeTimestampMillis")] @@ -1192,7 +1192,7 @@ pub struct Player { /// The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game. #[serde(rename="friendStatus")] - pub friend_status: Option, + pub friend_status: Option, /// Per-application unique player identifier. #[serde(rename="gamePlayerId")] @@ -1234,7 +1234,7 @@ pub struct PlayerAchievement { /// The state of the achievement. #[serde(rename="achievementState")] - pub achievement_state: Option, + pub achievement_state: Option, /// The current steps for an incremental achievement. #[serde(rename="currentSteps")] @@ -1422,7 +1422,7 @@ pub struct PlayerLeaderboardScore { /// The time span of this score. #[serde(rename="timeSpan")] - pub time_span: Option, + pub time_span: Option, /// The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. #[serde(rename="writeTimestamp")] @@ -1541,7 +1541,7 @@ pub struct PlayerScore { /// The time span for this player score. #[serde(rename="timeSpan")] - pub time_span: Option, + pub time_span: Option, } impl client::Part for PlayerScore {} @@ -1584,7 +1584,7 @@ pub struct PlayerScoreResponse { /// The time spans where the submitted score is better than the existing score for that time span. #[serde(rename="beatenScoreTimeSpans")] - pub beaten_score_time_spans: Option>, + pub beaten_score_time_spans: Option>, /// The formatted value of the submitted score. #[serde(rename="formattedScore")] @@ -1641,7 +1641,7 @@ pub struct ProfileSettings { /// no description provided #[serde(rename="friendsListVisibility")] - pub friends_list_visibility: Option, + pub friends_list_visibility: Option, /// Uniquely identifies the type of this resource. Value is always the fixed string `games#profileSettings`. pub kind: Option, @@ -1675,7 +1675,7 @@ pub struct RevisionCheckResponse { /// The result of the revision check. #[serde(rename="revisionStatus")] - pub revision_status: Option, + pub revision_status: Option, } impl client::ResponseResult for RevisionCheckResponse {} @@ -1785,7 +1785,7 @@ pub struct Snapshot { /// The type of this snapshot. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The unique name provided when the snapshot was created. #[serde(rename="uniqueName")] diff --git a/gen/games1/src/lib.rs b/gen/games1/src/lib.rs index a2ff737dd7..771316cfe4 100644 --- a/gen/games1/src/lib.rs +++ b/gen/games1/src/lib.rs @@ -121,8 +121,8 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.applications().get("applicationId") -//! .platform_type("voluptua.") -//! .language("At") +//! .platform_type(&Default::default()) +//! .language("ipsum") //! .doit().await; //! //! match result { diff --git a/gen/gamesconfiguration1_configuration/src/api/call_builders.rs b/gen/gamesconfiguration1_configuration/src/api/call_builders.rs index 89881d5fe1..e514db59b7 100644 --- a/gen/gamesconfiguration1_configuration/src/api/call_builders.rs +++ b/gen/gamesconfiguration1_configuration/src/api/call_builders.rs @@ -820,7 +820,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("achievementId", self._achievement_id); + params.push("achievementId", &self._achievement_id); params.extend(self._additional_params.iter()); @@ -1071,7 +1071,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("achievementId", self._achievement_id); + params.push("achievementId", &self._achievement_id); params.extend(self._additional_params.iter()); @@ -1340,7 +1340,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("applicationId", self._application_id); + params.push("applicationId", &self._application_id); params.extend(self._additional_params.iter()); @@ -1629,7 +1629,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("applicationId", self._application_id); + params.push("applicationId", &self._application_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -1918,7 +1918,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("achievementId", self._achievement_id); + params.push("achievementId", &self._achievement_id); params.extend(self._additional_params.iter()); @@ -2203,7 +2203,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("leaderboardId", self._leaderboard_id); + params.push("leaderboardId", &self._leaderboard_id); params.extend(self._additional_params.iter()); @@ -2454,7 +2454,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("leaderboardId", self._leaderboard_id); + params.push("leaderboardId", &self._leaderboard_id); params.extend(self._additional_params.iter()); @@ -2723,7 +2723,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("applicationId", self._application_id); + params.push("applicationId", &self._application_id); params.extend(self._additional_params.iter()); @@ -3012,7 +3012,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("applicationId", self._application_id); + params.push("applicationId", &self._application_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3301,7 +3301,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("leaderboardId", self._leaderboard_id); + params.push("leaderboardId", &self._leaderboard_id); params.extend(self._additional_params.iter()); diff --git a/gen/gamesconfiguration1_configuration/src/api/mod.rs b/gen/gamesconfiguration1_configuration/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gamesconfiguration1_configuration/src/api/mod.rs +++ b/gen/gamesconfiguration1_configuration/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gamesconfiguration1_configuration/src/api/schemas.rs b/gen/gamesconfiguration1_configuration/src/api/schemas.rs index 032250cddd..e04398dee6 100644 --- a/gen/gamesconfiguration1_configuration/src/api/schemas.rs +++ b/gen/gamesconfiguration1_configuration/src/api/schemas.rs @@ -17,7 +17,7 @@ pub struct AchievementConfiguration { /// The type of the achievement. #[serde(rename="achievementType")] - pub achievement_type: Option, + pub achievement_type: Option, /// The draft data of the achievement. pub draft: Option, @@ -27,7 +27,7 @@ pub struct AchievementConfiguration { /// The initial state of the achievement. #[serde(rename="initialState")] - pub initial_state: Option, + pub initial_state: Option, /// Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`. pub kind: Option, @@ -155,7 +155,7 @@ pub struct GamesNumberFormatConfiguration { /// The formatting for the number. #[serde(rename="numberFormatType")] - pub number_format_type: Option, + pub number_format_type: Option, /// An optional suffix for the NUMERIC format type. These strings follow the same plural rules as all Android string resources. pub suffix: Option, @@ -204,7 +204,7 @@ pub struct LeaderboardConfiguration { /// no description provided #[serde(rename="scoreOrder")] - pub score_order: Option, + pub score_order: Option, /// The token for this resource. pub token: Option, diff --git a/gen/gameservices1/src/api/call_builders.rs b/gen/gameservices1/src/api/call_builders.rs index c5d6d05757..3dc2f41cbe 100644 --- a/gen/gameservices1/src/api/call_builders.rs +++ b/gen/gameservices1/src/api/call_builders.rs @@ -978,7 +978,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()); } @@ -1257,7 +1257,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()); @@ -1549,7 +1549,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()); @@ -1841,7 +1841,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()); @@ -2126,7 +2126,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()); @@ -2388,7 +2388,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()); @@ -2656,7 +2656,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); } @@ -2948,7 +2948,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()); @@ -3218,7 +3218,7 @@ where } let mut params = Params::with_capacity(7 + 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); } diff --git a/gen/gameservices1/src/api/mod.rs b/gen/gameservices1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gameservices1/src/api/mod.rs +++ b/gen/gameservices1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gameservices1/src/api/schemas.rs b/gen/gameservices1/src/api/schemas.rs index c8d503e8f4..ef6c84a72f 100644 --- a/gen/gameservices1/src/api/schemas.rs +++ b/gen/gameservices1/src/api/schemas.rs @@ -36,7 +36,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -52,7 +52,7 @@ pub struct AuthorizationLoggingOptions { /// The type of the permission that was checked. #[serde(rename="permissionType")] - pub permission_type: Option, + pub permission_type: Option, } impl client::Part for AuthorizationLoggingOptions {} @@ -112,7 +112,7 @@ pub struct CloudAuditOptions { /// The log_name to populate in the Cloud Audit Record. #[serde(rename="logName")] - pub log_name: Option, + pub log_name: Option, } impl client::Part for CloudAuditOptions {} @@ -127,16 +127,16 @@ impl client::Part for CloudAuditOptions {} pub struct Condition { /// Trusted attributes supplied by the IAM system. - pub iam: Option, + pub iam: Option, /// An operator to apply the subject with. - pub op: Option, + pub op: Option, /// Trusted attributes discharged by the service. pub svc: Option, /// Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. - pub sys: Option, + pub sys: Option, /// The objects of the condition. pub values: Option>, @@ -195,7 +195,7 @@ pub struct DataAccessOptions { /// no description provided #[serde(rename="logMode")] - pub log_mode: Option, + pub log_mode: Option, } impl client::Part for DataAccessOptions {} @@ -417,7 +417,7 @@ impl client::ResponseResult for Policy {} pub struct Rule { /// Required - pub action: Option, + pub action: Option, /// Additional restrictions that must be met. All conditions must pass for the rule to match. pub conditions: Option>, diff --git a/gen/gamesmanagement1_management/src/api/call_builders.rs b/gen/gamesmanagement1_management/src/api/call_builders.rs index 04b68225b3..cf51835631 100644 --- a/gen/gamesmanagement1_management/src/api/call_builders.rs +++ b/gen/gamesmanagement1_management/src/api/call_builders.rs @@ -1109,7 +1109,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("achievementId", self._achievement_id); + params.push("achievementId", &self._achievement_id); params.extend(self._additional_params.iter()); @@ -1846,7 +1846,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("achievementId", self._achievement_id); + params.push("achievementId", &self._achievement_id); params.extend(self._additional_params.iter()); @@ -2363,7 +2363,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("applicationId", self._application_id); + params.push("applicationId", &self._application_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2645,7 +2645,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("eventId", self._event_id); + params.push("eventId", &self._event_id); params.extend(self._additional_params.iter()); @@ -3360,7 +3360,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("eventId", self._event_id); + params.push("eventId", &self._event_id); params.extend(self._additional_params.iter()); @@ -3874,8 +3874,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("applicationId", self._application_id); - params.push("playerId", self._player_id); + params.push("applicationId", &self._application_id); + params.push("playerId", &self._player_id); params.extend(self._additional_params.iter()); @@ -4137,8 +4137,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("applicationId", self._application_id); - params.push("playerId", self._player_id); + params.push("applicationId", &self._application_id); + params.push("playerId", &self._player_id); params.extend(self._additional_params.iter()); @@ -4399,7 +4399,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("leaderboardId", self._leaderboard_id); + params.push("leaderboardId", &self._leaderboard_id); params.extend(self._additional_params.iter()); @@ -5136,7 +5136,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("leaderboardId", self._leaderboard_id); + params.push("leaderboardId", &self._leaderboard_id); params.extend(self._additional_params.iter()); diff --git a/gen/gamesmanagement1_management/src/api/mod.rs b/gen/gamesmanagement1_management/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gamesmanagement1_management/src/api/mod.rs +++ b/gen/gamesmanagement1_management/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gan1_beta1/README.md b/gen/gan1_beta1/README.md index 414115ddf3..fae05a28bd 100644 --- a/gen/gan1_beta1/README.md +++ b/gen/gan1_beta1/README.md @@ -106,20 +106,20 @@ let mut hub = Gan::new(hyper::Client::builder().build(hyper_rustls::HttpsConnect // You can configure optional parameters by calling the respective setters at will, and // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! -let result = hub.links().list("role", "roleId") - .start_date_min("no") - .start_date_max("ipsum") - .search_text("voluptua.") - .relationship_status("At") - .add_promotion_type("sanctus") - .page_token("sed") - .max_results(99) - .link_type("takimata") - .create_date_min("amet.") - .create_date_max("duo") - .authorship("ipsum") - .add_asset_size("gubergren") - .add_advertiser_id(-51) +let result = hub.links().list(&Default::default(), "roleId") + .start_date_min("magna") + .start_date_max("no") + .search_text("ipsum") + .relationship_status(&Default::default()) + .add_promotion_type(&Default::default()) + .page_token("voluptua.") + .max_results(74) + .link_type(&Default::default()) + .create_date_min("sanctus") + .create_date_max("sed") + .authorship(&Default::default()) + .add_asset_size("amet.") + .add_advertiser_id(-59) .doit().await; match result { diff --git a/gen/gan1_beta1/src/api/hub.rs b/gen/gan1_beta1/src/api/hub.rs index ae651210ec..b7e6a1ab50 100644 --- a/gen/gan1_beta1/src/api/hub.rs +++ b/gen/gan1_beta1/src/api/hub.rs @@ -31,20 +31,20 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.links().list("role", "roleId") -/// .start_date_min("gubergren") -/// .start_date_max("ea") -/// .search_text("dolor") -/// .relationship_status("Lorem") -/// .add_promotion_type("eos") -/// .page_token("labore") -/// .max_results(58) -/// .link_type("duo") -/// .create_date_min("sed") -/// .create_date_max("no") -/// .authorship("Stet") -/// .add_asset_size("kasd") -/// .add_advertiser_id(-24) +/// let result = hub.links().list(&Default::default(), "roleId") +/// .start_date_min("amet") +/// .start_date_max("duo") +/// .search_text("ipsum") +/// .relationship_status(&Default::default()) +/// .add_promotion_type(&Default::default()) +/// .page_token("sed") +/// .max_results(64) +/// .link_type(&Default::default()) +/// .create_date_min("gubergren") +/// .create_date_max("rebum.") +/// .authorship(&Default::default()) +/// .add_asset_size("est") +/// .add_advertiser_id(-50) /// .doit().await; /// /// match result { diff --git a/gen/gan1_beta1/src/api/method_builders.rs b/gen/gan1_beta1/src/api/method_builders.rs index 5286d39ef5..919bf0bfc4 100644 --- a/gen/gan1_beta1/src/api/method_builders.rs +++ b/gen/gan1_beta1/src/api/method_builders.rs @@ -45,10 +45,10 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn get(&self, role: &str, role_id: &str) -> AdvertiserGetCall<'a, S> { + pub fn get(&self, role: &AdvertiserRoleEnum, role_id: &str) -> AdvertiserGetCall<'a, S> { AdvertiserGetCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _advertiser_id: Default::default(), _delegate: Default::default(), @@ -64,10 +64,10 @@ impl<'a, S> AdvertiserMethods<'a, S> { /// /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn list(&self, role: &str, role_id: &str) -> AdvertiserListCall<'a, S> { + pub fn list(&self, role: &AdvertiserRoleEnum, role_id: &str) -> AdvertiserListCall<'a, S> { AdvertiserListCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _relationship_status: Default::default(), _page_token: Default::default(), @@ -189,10 +189,10 @@ impl<'a, S> EventMethods<'a, S> { /// /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn list(&self, role: &str, role_id: &str) -> EventListCall<'a, S> { + pub fn list(&self, role: &EventRoleEnum, role_id: &str) -> EventListCall<'a, S> { EventListCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _type_: Default::default(), _status: Default::default(), @@ -265,10 +265,10 @@ impl<'a, S> LinkMethods<'a, S> { /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. /// * `linkId` - The ID of the link to look up. - pub fn get(&self, role: &str, role_id: &str, link_id: i64) -> LinkGetCall<'a, S> { + pub fn get(&self, role: &LinkRoleEnum, role_id: &str, link_id: i64) -> LinkGetCall<'a, S> { LinkGetCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _link_id: link_id, _delegate: Default::default(), @@ -285,11 +285,11 @@ impl<'a, S> LinkMethods<'a, S> { /// * `request` - No description provided. /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn insert(&self, request: Link, role: &str, role_id: &str) -> LinkInsertCall<'a, S> { + pub fn insert(&self, request: Link, role: &LinkRoleEnum, role_id: &str) -> LinkInsertCall<'a, S> { LinkInsertCall { hub: self.hub, _request: request, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _delegate: Default::default(), _additional_params: Default::default(), @@ -304,10 +304,10 @@ impl<'a, S> LinkMethods<'a, S> { /// /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn list(&self, role: &str, role_id: &str) -> LinkListCall<'a, S> { + pub fn list(&self, role: &LinkRoleEnum, role_id: &str) -> LinkListCall<'a, S> { LinkListCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _start_date_min: Default::default(), _start_date_max: Default::default(), @@ -376,10 +376,10 @@ impl<'a, S> PublisherMethods<'a, S> { /// /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn get(&self, role: &str, role_id: &str) -> PublisherGetCall<'a, S> { + pub fn get(&self, role: &PublisherRoleEnum, role_id: &str) -> PublisherGetCall<'a, S> { PublisherGetCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _publisher_id: Default::default(), _delegate: Default::default(), @@ -395,10 +395,10 @@ impl<'a, S> PublisherMethods<'a, S> { /// /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. - pub fn list(&self, role: &str, role_id: &str) -> PublisherListCall<'a, S> { + pub fn list(&self, role: &PublisherRoleEnum, role_id: &str) -> PublisherListCall<'a, S> { PublisherListCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), _relationship_status: Default::default(), _publisher_category: Default::default(), @@ -462,12 +462,12 @@ impl<'a, S> ReportMethods<'a, S> { /// * `role` - The role of the requester. Valid values: 'advertisers' or 'publishers'. /// * `roleId` - The ID of the requesting advertiser or publisher. /// * `reportType` - The type of report being requested. Valid values: 'order_delta'. Required. - pub fn get(&self, role: &str, role_id: &str, report_type: &str) -> ReportGetCall<'a, S> { + pub fn get(&self, role: &ReportRoleEnum, role_id: &str, report_type: &ReportReportTypeEnum) -> ReportGetCall<'a, S> { ReportGetCall { hub: self.hub, - _role: role.to_string(), + _role: role.clone(), _role_id: role_id.to_string(), - _report_type: report_type.to_string(), + _report_type: report_type.clone(), _status: Default::default(), _start_index: Default::default(), _start_date: Default::default(), diff --git a/gen/gan1_beta1/src/api/mod.rs b/gen/gan1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gan1_beta1/src/api/mod.rs +++ b/gen/gan1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gan1_beta1/src/lib.rs b/gen/gan1_beta1/src/lib.rs index 8d994b3044..38e23f982a 100644 --- a/gen/gan1_beta1/src/lib.rs +++ b/gen/gan1_beta1/src/lib.rs @@ -107,20 +107,20 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.links().list("role", "roleId") -//! .start_date_min("dolor") -//! .start_date_max("ea") -//! .search_text("ipsum") -//! .relationship_status("invidunt") -//! .add_promotion_type("amet") -//! .page_token("duo") -//! .max_results(51) -//! .link_type("sed") -//! .create_date_min("ut") -//! .create_date_max("gubergren") -//! .authorship("rebum.") -//! .add_asset_size("est") -//! .add_advertiser_id(-50) +//! let result = hub.links().list(&Default::default(), "roleId") +//! .start_date_min("duo") +//! .start_date_max("ipsum") +//! .search_text("gubergren") +//! .relationship_status(&Default::default()) +//! .add_promotion_type(&Default::default()) +//! .page_token("Lorem") +//! .max_results(89) +//! .link_type(&Default::default()) +//! .create_date_min("eos") +//! .create_date_max("dolor") +//! .authorship(&Default::default()) +//! .add_asset_size("ea") +//! .add_advertiser_id(-55) //! .doit().await; //! //! match result { diff --git a/gen/genomics1/src/api/call_builders.rs b/gen/genomics1/src/api/call_builders.rs index 7d6d9cdb0f..56bd8047d9 100644 --- a/gen/genomics1/src/api/call_builders.rs +++ b/gen/genomics1/src/api/call_builders.rs @@ -459,7 +459,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()); @@ -744,7 +744,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()); @@ -1012,7 +1012,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); } diff --git a/gen/genomics1/src/api/mod.rs b/gen/genomics1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/genomics1/src/api/mod.rs +++ b/gen/genomics1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gkehub1/src/api/call_builders.rs b/gen/gkehub1/src/api/call_builders.rs index 4f66af590d..32a08b6c0b 100644 --- a/gen/gkehub1/src/api/call_builders.rs +++ b/gen/gkehub1/src/api/call_builders.rs @@ -81,7 +81,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); } @@ -390,7 +390,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -672,7 +672,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()); @@ -936,7 +936,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()); } @@ -1216,7 +1216,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); } @@ -1529,7 +1529,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()); } @@ -1841,7 +1841,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()); @@ -2133,7 +2133,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()); @@ -2429,7 +2429,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); } @@ -2736,7 +2736,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); } @@ -3020,7 +3020,7 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._version.as_ref() { params.push("version", value); } @@ -3342,7 +3342,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()); @@ -3606,7 +3606,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()); } @@ -3886,7 +3886,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); } @@ -4199,7 +4199,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()); } @@ -4511,7 +4511,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()); @@ -4803,7 +4803,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()); @@ -5095,7 +5095,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()); @@ -5380,7 +5380,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()); @@ -5642,7 +5642,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()); @@ -5910,7 +5910,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); } @@ -6202,7 +6202,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()); @@ -6470,7 +6470,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); } diff --git a/gen/gkehub1/src/api/mod.rs b/gen/gkehub1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gkehub1/src/api/mod.rs +++ b/gen/gkehub1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gkehub1/src/api/schemas.rs b/gen/gkehub1/src/api/schemas.rs index aa2fa10e9a..8b687c6258 100644 --- a/gen/gkehub1/src/api/schemas.rs +++ b/gen/gkehub1/src/api/schemas.rs @@ -75,7 +75,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -230,28 +230,28 @@ pub struct ConfigManagementConfigSyncDeploymentState { /// Deployment state of admission-webhook #[serde(rename="admissionWebhook")] - pub admission_webhook: Option, + pub admission_webhook: Option, /// Deployment state of the git-sync pod #[serde(rename="gitSync")] - pub git_sync: Option, + pub git_sync: Option, /// Deployment state of the importer pod - pub importer: Option, + pub importer: Option, /// Deployment state of the monitor pod - pub monitor: Option, + pub monitor: Option, /// Deployment state of reconciler-manager pod #[serde(rename="reconcilerManager")] - pub reconciler_manager: Option, + pub reconciler_manager: Option, /// Deployment state of root-reconciler #[serde(rename="rootReconciler")] - pub root_reconciler: Option, + pub root_reconciler: Option, /// Deployment state of the syncer pod - pub syncer: Option, + pub syncer: Option, } impl client::Part for ConfigManagementConfigSyncDeploymentState {} @@ -355,15 +355,15 @@ pub struct ConfigManagementGatekeeperDeploymentState { /// Status of gatekeeper-audit deployment. #[serde(rename="gatekeeperAudit")] - pub gatekeeper_audit: Option, + pub gatekeeper_audit: Option, /// Status of gatekeeper-controller-manager pod. #[serde(rename="gatekeeperControllerManagerState")] - pub gatekeeper_controller_manager_state: Option, + pub gatekeeper_controller_manager_state: Option, /// Status of the pod serving the mutation webhook. #[serde(rename="gatekeeperMutation")] - pub gatekeeper_mutation: Option, + pub gatekeeper_mutation: Option, } impl client::Part for ConfigManagementGatekeeperDeploymentState {} @@ -467,10 +467,10 @@ impl client::Part for ConfigManagementHierarchyControllerConfig {} pub struct ConfigManagementHierarchyControllerDeploymentState { /// The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) - pub extension: Option, + pub extension: Option, /// The deployment state for open source HNC (e.g. v0.7.0-hc.0) - pub hnc: Option, + pub hnc: Option, } impl client::Part for ConfigManagementHierarchyControllerDeploymentState {} @@ -634,7 +634,7 @@ pub struct ConfigManagementOperatorState { /// The state of the Operator's deployment #[serde(rename="deploymentState")] - pub deployment_state: Option, + pub deployment_state: Option, /// Install errors. pub errors: Option>, @@ -698,7 +698,7 @@ impl client::Part for ConfigManagementPolicyController {} pub struct ConfigManagementPolicyControllerMonitoring { /// Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. - pub backends: Option>, + pub backends: Option>, } impl client::Part for ConfigManagementPolicyControllerMonitoring {} @@ -770,7 +770,7 @@ impl client::Part for ConfigManagementSyncError {} pub struct ConfigManagementSyncState { /// Sync status code - pub code: Option, + pub code: Option, /// A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist. pub errors: Option>, @@ -946,7 +946,7 @@ impl client::ResponseResult for Feature {} pub struct FeatureResourceState { /// The current state of the Feature resource in the Hub API. - pub state: Option, + pub state: Option, } impl client::Part for FeatureResourceState {} @@ -961,7 +961,7 @@ impl client::Part for FeatureResourceState {} pub struct FeatureState { /// The high-level, machine-readable status of this Feature. - pub code: Option, + pub code: Option, /// A human-readable description of the current status. pub description: Option, @@ -1192,7 +1192,7 @@ pub struct IdentityServiceMembershipState { pub member_config: Option, /// Deployment state on this member - pub state: Option, + pub state: Option, } impl client::Part for IdentityServiceMembershipState {} @@ -1626,7 +1626,7 @@ impl client::Part for MembershipFeatureState {} pub struct MembershipState { /// Output only. The current state of the Membership resource. - pub code: Option, + pub code: Option, } impl client::Part for MembershipState {} @@ -1686,7 +1686,7 @@ pub struct OnPremCluster { /// Immutable. The on prem cluster's type. #[serde(rename="clusterType")] - pub cluster_type: Option, + pub cluster_type: Option, /// Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster #[serde(rename="resourceLink")] @@ -1847,7 +1847,7 @@ pub struct ServiceMeshControlPlaneManagement { pub details: Option>, /// LifecycleState of control plane management. - pub state: Option, + pub state: Option, } impl client::Part for ServiceMeshControlPlaneManagement {} @@ -1865,7 +1865,7 @@ pub struct ServiceMeshDataPlaneManagement { pub details: Option>, /// Lifecycle status of data plane management. - pub state: Option, + pub state: Option, } impl client::Part for ServiceMeshDataPlaneManagement {} @@ -1881,10 +1881,10 @@ pub struct ServiceMeshMembershipSpec { /// Enables automatic control plane management. #[serde(rename="controlPlane")] - pub control_plane: Option, + pub control_plane: Option, /// Enables automatic Service Mesh management. - pub management: Option, + pub management: Option, } impl client::Part for ServiceMeshMembershipSpec {} @@ -1961,7 +1961,7 @@ impl client::RequestValue for SetIamPolicyRequest {} pub struct Status { /// Code specifies AppDevExperienceFeature's subcomponent ready state. - pub code: Option, + pub code: Option, /// Description is populated if Code is Failed, explaining why it has failed. pub description: Option, diff --git a/gen/gmail1/README.md b/gen/gmail1/README.md index 2c0aa00e6a..209f1aed94 100644 --- a/gen/gmail1/README.md +++ b/gen/gmail1/README.md @@ -120,7 +120,7 @@ let mut req = Message::default(); let result = hub.users().messages_import(req, "userId") .process_for_calendar(true) .never_mark_spam(false) - .internal_date_source("amet.") + .internal_date_source(&Default::default()) .deleted(true) .upload_resumable(fs::File::open("file.ext").unwrap(), "application/octet-stream".parse().unwrap()).await; diff --git a/gen/gmail1/src/api/hub.rs b/gen/gmail1/src/api/hub.rs index aaaa88d83e..2829fab8f5 100644 --- a/gen/gmail1/src/api/hub.rs +++ b/gen/gmail1/src/api/hub.rs @@ -39,10 +39,10 @@ use super::*; /// // execute the final call using `upload_resumable(...)`. /// // Values shown here are possibly random and not representative ! /// let result = hub.users().messages_import(req, "userId") -/// .process_for_calendar(true) -/// .never_mark_spam(false) -/// .internal_date_source("amet") -/// .deleted(true) +/// .process_for_calendar(false) +/// .never_mark_spam(true) +/// .internal_date_source(&Default::default()) +/// .deleted(false) /// .upload_resumable(fs::File::open("file.ext").unwrap(), "application/octet-stream".parse().unwrap()).await; /// /// match result { diff --git a/gen/gmail1/src/api/mod.rs b/gen/gmail1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gmail1/src/api/mod.rs +++ b/gen/gmail1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gmail1/src/api/schemas.rs b/gen/gmail1/src/api/schemas.rs index ddd683f438..cc9c4dc602 100644 --- a/gen/gmail1/src/api/schemas.rs +++ b/gen/gmail1/src/api/schemas.rs @@ -13,7 +13,7 @@ use super::*; pub struct AutoForwarding { /// The state that a message should be left in after it has been forwarded. - pub disposition: Option, + pub disposition: Option, /// Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses. #[serde(rename="emailAddress")] @@ -121,7 +121,7 @@ pub struct CseKeyPair { /// Output only. The current state of the key pair. #[serde(rename="enablementState")] - pub enablement_state: Option, + pub enablement_state: Option, /// Output only. The immutable ID for the client-side encryption S/MIME key pair. #[serde(rename="keyPairId")] @@ -185,7 +185,7 @@ pub struct Delegate { /// Indicates whether this address has been verified and can act as a delegate for the account. Read-only. #[serde(rename="verificationStatus")] - pub verification_status: Option, + pub verification_status: Option, } impl client::RequestValue for Delegate {} @@ -329,7 +329,7 @@ pub struct FilterCriteria { /// How the message size in bytes should be in relation to the size field. #[serde(rename="sizeComparison")] - pub size_comparison: Option, + pub size_comparison: Option, /// Case-insensitive phrase found in the message's subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed. pub subject: Option, @@ -360,7 +360,7 @@ pub struct ForwardingAddress { /// Indicates whether this address has been verified and is usable for forwarding. Read-only. #[serde(rename="verificationStatus")] - pub verification_status: Option, + pub verification_status: Option, } impl client::RequestValue for ForwardingAddress {} @@ -492,7 +492,7 @@ pub struct ImapSettings { /// The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder. #[serde(rename="expungeBehavior")] - pub expunge_behavior: Option, + pub expunge_behavior: Option, /// An optional limit on the number of messages that an IMAP folder may contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted to mean that there is no limit. #[serde(rename="maxFolderSize")] @@ -546,11 +546,11 @@ pub struct Label { /// The visibility of the label in the label list in the Gmail web interface. #[serde(rename="labelListVisibility")] - pub label_list_visibility: Option, + pub label_list_visibility: Option, /// The visibility of messages with this label in the message list in the Gmail web interface. #[serde(rename="messageListVisibility")] - pub message_list_visibility: Option, + pub message_list_visibility: Option, /// The total number of messages with the label. #[serde(rename="messagesTotal")] @@ -573,7 +573,7 @@ pub struct Label { /// The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the `INBOX` and `UNREAD` labels from messages and threads, but cannot apply or remove the `DRAFTS` or `SENT` labels from messages or threads. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Label {} @@ -1110,10 +1110,10 @@ pub struct PopSettings { /// The range of messages which are accessible via POP. #[serde(rename="accessWindow")] - pub access_window: Option, + pub access_window: Option, /// The action that will be executed on a message after it has been fetched via POP. - pub disposition: Option, + pub disposition: Option, } impl client::RequestValue for PopSettings {} @@ -1201,7 +1201,7 @@ pub struct SendAs { /// Indicates whether this address has been verified for use as a send-as alias. Read-only. This setting only applies to custom "from" aliases. #[serde(rename="verificationStatus")] - pub verification_status: Option, + pub verification_status: Option, } impl client::RequestValue for SendAs {} @@ -1271,7 +1271,7 @@ pub struct SmtpMsa { /// The protocol that will be used to secure communication with the SMTP service. Required. #[serde(rename="securityMode")] - pub security_mode: Option, + pub security_mode: Option, /// The username that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses. pub username: Option, @@ -1379,7 +1379,7 @@ pub struct WatchRequest { /// Filtering behavior of labelIds list specified. #[serde(rename="labelFilterAction")] - pub label_filter_action: Option, + pub label_filter_action: Option, /// List of label_ids to restrict notifications about. By default, if unspecified, all changes are pushed out. If specified then dictates which labels are required for a push notification to be generated. #[serde(rename="labelIds")] diff --git a/gen/gmail1/src/lib.rs b/gen/gmail1/src/lib.rs index 4e87410ccf..f79a89c5a8 100644 --- a/gen/gmail1/src/lib.rs +++ b/gen/gmail1/src/lib.rs @@ -121,8 +121,8 @@ //! let result = hub.users().messages_import(req, "userId") //! .process_for_calendar(true) //! .never_mark_spam(true) -//! .internal_date_source("Lorem") -//! .deleted(false) +//! .internal_date_source(&Default::default()) +//! .deleted(true) //! .upload_resumable(fs::File::open("file.ext").unwrap(), "application/octet-stream".parse().unwrap()).await; //! //! match result { diff --git a/gen/gmailpostmastertools1/src/api/call_builders.rs b/gen/gmailpostmastertools1/src/api/call_builders.rs index 8eb211056e..55da8872a7 100644 --- a/gen/gmailpostmastertools1/src/api/call_builders.rs +++ b/gen/gmailpostmastertools1/src/api/call_builders.rs @@ -573,7 +573,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()); @@ -851,7 +851,7 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._start_date_year.as_ref() { params.push("startDate.year", value.to_string()); } @@ -1193,7 +1193,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()); diff --git a/gen/gmailpostmastertools1/src/api/mod.rs b/gen/gmailpostmastertools1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gmailpostmastertools1/src/api/mod.rs +++ b/gen/gmailpostmastertools1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gmailpostmastertools1/src/api/schemas.rs b/gen/gmailpostmastertools1/src/api/schemas.rs index 002f805885..81035adaf4 100644 --- a/gen/gmailpostmastertools1/src/api/schemas.rs +++ b/gen/gmailpostmastertools1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct DeliveryError { /// The class of delivery error. #[serde(rename="errorClass")] - pub error_class: Option, + pub error_class: Option, /// The ratio of messages where the error occurred vs all authenticated traffic. #[serde(rename="errorRatio")] @@ -17,7 +17,7 @@ pub struct DeliveryError { /// The type of delivery error. #[serde(rename="errorType")] - pub error_type: Option, + pub error_type: Option, } impl client::Part for DeliveryError {} @@ -46,7 +46,7 @@ pub struct Domain { pub name: Option, /// User’s permission for this domain. Assigned by the server. - pub permission: Option, + pub permission: Option, } impl client::Resource for Domain {} @@ -86,7 +86,7 @@ pub struct IpReputation { pub ip_count: Option, /// The reputation category this IP reputation represents. - pub reputation: Option, + pub reputation: Option, /// A sample of IPs in this reputation category. #[serde(rename="sampleIps")] @@ -169,7 +169,7 @@ pub struct TrafficStats { /// Reputation of the domain. #[serde(rename="domainReputation")] - pub domain_reputation: Option, + pub domain_reputation: Option, /// The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs all mail received from that domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/). #[serde(rename="inboundEncryptionRatio")] diff --git a/gen/gmailpostmastertools1_beta1/src/api/call_builders.rs b/gen/gmailpostmastertools1_beta1/src/api/call_builders.rs index 0c632e8932..634683904d 100644 --- a/gen/gmailpostmastertools1_beta1/src/api/call_builders.rs +++ b/gen/gmailpostmastertools1_beta1/src/api/call_builders.rs @@ -578,7 +578,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()); @@ -856,7 +856,7 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._start_date_year.as_ref() { params.push("startDate.year", value.to_string()); } @@ -1198,7 +1198,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()); diff --git a/gen/gmailpostmastertools1_beta1/src/api/mod.rs b/gen/gmailpostmastertools1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/gmailpostmastertools1_beta1/src/api/mod.rs +++ b/gen/gmailpostmastertools1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/gmailpostmastertools1_beta1/src/api/schemas.rs b/gen/gmailpostmastertools1_beta1/src/api/schemas.rs index 470328227b..d830e91b83 100644 --- a/gen/gmailpostmastertools1_beta1/src/api/schemas.rs +++ b/gen/gmailpostmastertools1_beta1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct DeliveryError { /// The class of delivery error. #[serde(rename="errorClass")] - pub error_class: Option, + pub error_class: Option, /// The ratio of messages where the error occurred vs all authenticated traffic. #[serde(rename="errorRatio")] @@ -17,7 +17,7 @@ pub struct DeliveryError { /// The type of delivery error. #[serde(rename="errorType")] - pub error_type: Option, + pub error_type: Option, } impl client::Part for DeliveryError {} @@ -46,7 +46,7 @@ pub struct Domain { pub name: Option, /// User’s permission for this domain. Assigned by the server. - pub permission: Option, + pub permission: Option, } impl client::Resource for Domain {} @@ -91,7 +91,7 @@ pub struct IpReputation { pub num_ips: Option, /// The reputation category this IP reputation represents. - pub reputation: Option, + pub reputation: Option, /// A sample of IPs in this reputation category. #[serde(rename="sampleIps")] @@ -174,7 +174,7 @@ pub struct TrafficStats { /// Reputation of the domain. #[serde(rename="domainReputation")] - pub domain_reputation: Option, + pub domain_reputation: Option, /// The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs all mail received from that domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/). #[serde(rename="inboundEncryptionRatio")] diff --git a/gen/groupsmigration1/src/api/call_builders.rs b/gen/groupsmigration1/src/api/call_builders.rs index cdaec95fd6..51f556e1ad 100644 --- a/gen/groupsmigration1/src/api/call_builders.rs +++ b/gen/groupsmigration1/src/api/call_builders.rs @@ -324,7 +324,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("groupId", self._group_id); + params.push("groupId", &self._group_id); params.extend(self._additional_params.iter()); diff --git a/gen/groupsmigration1/src/api/mod.rs b/gen/groupsmigration1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/groupsmigration1/src/api/mod.rs +++ b/gen/groupsmigration1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/groupssettings1/src/api/call_builders.rs b/gen/groupssettings1/src/api/call_builders.rs index 062d96bf2a..482eeafb51 100644 --- a/gen/groupssettings1/src/api/call_builders.rs +++ b/gen/groupssettings1/src/api/call_builders.rs @@ -70,7 +70,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("groupUniqueId", self._group_unique_id); + params.push("groupUniqueId", &self._group_unique_id); params.extend(self._additional_params.iter()); @@ -335,7 +335,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("groupUniqueId", self._group_unique_id); + params.push("groupUniqueId", &self._group_unique_id); params.extend(self._additional_params.iter()); @@ -623,7 +623,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("groupUniqueId", self._group_unique_id); + params.push("groupUniqueId", &self._group_unique_id); params.extend(self._additional_params.iter()); diff --git a/gen/groupssettings1/src/api/mod.rs b/gen/groupssettings1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/groupssettings1/src/api/mod.rs +++ b/gen/groupssettings1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/healthcare1/src/api/mod.rs b/gen/healthcare1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/healthcare1/src/api/mod.rs +++ b/gen/healthcare1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/healthcare1/src/api/schemas.rs b/gen/healthcare1/src/api/schemas.rs index 071355e0cf..58fe9c75d1 100644 --- a/gen/healthcare1/src/api/schemas.rs +++ b/gen/healthcare1/src/api/schemas.rs @@ -45,7 +45,7 @@ pub struct AnalyzeEntitiesRequest { /// A list of licensed vocabularies to use in the request, in addition to the default unlicensed vocabularies. #[serde(rename="licensedVocabularies")] - pub licensed_vocabularies: Option>, + pub licensed_vocabularies: Option>, } impl client::RequestValue for AnalyzeEntitiesRequest {} @@ -145,7 +145,7 @@ pub struct AttributeDefinition { pub allowed_values: Option>, /// Required. The category of the attribute. The value of this field cannot be changed after creation. - pub category: Option, + pub category: Option, /// Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value. #[serde(rename="consentDefaultValues")] @@ -199,7 +199,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -283,7 +283,7 @@ pub struct CheckDataAccessRequest { /// Optional. The view for CheckDataAccessResponse. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, } impl client::RequestValue for CheckDataAccessRequest {} @@ -355,7 +355,7 @@ pub struct Consent { pub revision_id: Option, /// Required. Indicates the current state of this Consent. - pub state: Option, + pub state: Option, /// Input only. The time to live for this Consent from when it is created. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] @@ -428,7 +428,7 @@ pub struct ConsentEvaluation { /// The evaluation result. #[serde(rename="evaluationResult")] - pub evaluation_result: Option, + pub evaluation_result: Option, } impl client::Part for ConsentEvaluation {} @@ -715,7 +715,7 @@ pub struct DicomConfig { /// Tag filtering profile that determines which tags to keep/remove. #[serde(rename="filterProfile")] - pub filter_profile: Option, + pub filter_profile: Option, /// List of tags to keep. Remove all other tags. #[serde(rename="keepList")] @@ -928,7 +928,7 @@ pub struct EvaluateUserConsentsRequest { /// Optional. The view for EvaluateUserConsentsResponse. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. User ID to evaluate consents for. #[serde(rename="userId")] @@ -1136,7 +1136,7 @@ pub struct FhirStore { /// Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources. #[serde(rename="complexDataTypeReferenceParsing")] - pub complex_data_type_reference_parsing: Option, + pub complex_data_type_reference_parsing: Option, /// If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`. #[serde(rename="defaultSearchHandlingStrict")] @@ -1173,7 +1173,7 @@ pub struct FhirStore { pub validation_config: Option, /// Immutable. The FHIR specification version that this FHIR store supports natively. This field is immutable after store creation. Requests are rejected if they contain FHIR resources of a different version. Version is required for every FHIR store. - pub version: Option, + pub version: Option, } impl client::RequestValue for FhirStore {} @@ -1219,7 +1219,7 @@ impl client::Part for Field {} pub struct FieldMetadata { /// Deidentify action for one field. - pub action: Option, + pub action: Option, /// List of paths to FHIR fields to be redacted. Each path is a period-separated list where each component is either a field name or FHIR type name, for example: Patient, HumanName. For "choice" types (those defined in the FHIR spec with the form: field[x]) we use two separate components. For example, "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. pub paths: Option>, @@ -1238,11 +1238,11 @@ pub struct GcsDestination { /// The format of the exported HL7v2 message files. #[serde(rename="contentStructure")] - pub content_structure: Option, + pub content_structure: Option, /// Specifies the parts of the Message resource to include in the export. If not specified, FULL is used. #[serde(rename="messageView")] - pub message_view: Option, + pub message_view: Option, /// URI of an existing Cloud Storage directory where the server writes result files, in the format `gs://{bucket-id}/{path/to/destination/dir}`. If there is no trailing slash, the service appends one when composing the object path. #[serde(rename="uriPrefix")] @@ -1320,7 +1320,7 @@ pub struct GoogleCloudHealthcareV1DicomBigQueryDestination { /// Determines whether the existing table in the destination is to be overwritten or appended to. If a write_disposition is specified, the `force` parameter is ignored. #[serde(rename="writeDisposition")] - pub write_disposition: Option, + pub write_disposition: Option, } impl client::Part for GoogleCloudHealthcareV1DicomBigQueryDestination {} @@ -1382,7 +1382,7 @@ pub struct GoogleCloudHealthcareV1FhirBigQueryDestination { /// Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored. #[serde(rename="writeDisposition")] - pub write_disposition: Option, + pub write_disposition: Option, } impl client::Part for GoogleCloudHealthcareV1FhirBigQueryDestination {} @@ -1619,7 +1619,7 @@ pub struct ImageConfig { /// Determines how to redact text from image. #[serde(rename="textRedactionMode")] - pub text_redaction_mode: Option, + pub text_redaction_mode: Option, } impl client::Part for ImageConfig {} @@ -1679,7 +1679,7 @@ pub struct ImportResourcesRequest { /// The content structure in the source location. If not specified, the server treats the input source files as BUNDLE. #[serde(rename="contentStructure")] - pub content_structure: Option, + pub content_structure: Option, /// Cloud Storage source data location and import configuration. The Healthcare Service Agent account requires the `roles/storage.objectAdmin` role on the Cloud Storage location. Each Cloud Storage object should be a text file that contains the format specified in ContentStructure. #[serde(rename="gcsSource")] @@ -2298,7 +2298,7 @@ pub struct ParserConfig { pub segment_terminator: Option>, /// Immutable. Determines the version of both the default parser to be used when `schema` is not given, as well as the schematized parser used when `schema` is specified. This field is immutable after HL7v2 store creation. - pub version: Option, + pub version: Option, } impl client::Part for ParserConfig {} @@ -2505,7 +2505,7 @@ pub struct SchemaConfig { /// Specifies the output schema type. Schema type is required. #[serde(rename="schemaType")] - pub schema_type: Option, + pub schema_type: Option, } impl client::Part for SchemaConfig {} @@ -2557,14 +2557,14 @@ pub struct SchemaPackage { /// Determines how messages that fail to parse are handled. #[serde(rename="schematizedParsingType")] - pub schematized_parsing_type: Option, + pub schematized_parsing_type: Option, /// Schema type definitions that are layered based on their VersionSources that match the incoming message. Type definitions present in higher indices override those in lower indices with the same type name if their VersionSources all match an incoming message. pub types: Option>, /// Determines how unexpected segments (segments not matched to the schema) are handled. #[serde(rename="unexpectedSegmentHandling")] - pub unexpected_segment_handling: Option, + pub unexpected_segment_handling: Option, } impl client::Part for SchemaPackage {} @@ -2864,7 +2864,7 @@ pub struct Type { pub name: Option, /// If this is a primitive type then this field is the type of the primitive For example, STRING. Leave unspecified for composite types. - pub primitive: Option, + pub primitive: Option, } impl client::Part for Type {} diff --git a/gen/healthcare1_beta1/src/api/mod.rs b/gen/healthcare1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/healthcare1_beta1/src/api/mod.rs +++ b/gen/healthcare1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/healthcare1_beta1/src/api/schemas.rs b/gen/healthcare1_beta1/src/api/schemas.rs index 1ece5d4042..9c5464cc87 100644 --- a/gen/healthcare1_beta1/src/api/schemas.rs +++ b/gen/healthcare1_beta1/src/api/schemas.rs @@ -92,7 +92,7 @@ pub struct AnalyzeEntitiesRequest { /// A list of licensed vocabularies to use in the request, in addition to the default unlicensed vocabularies. #[serde(rename="licensedVocabularies")] - pub licensed_vocabularies: Option>, + pub licensed_vocabularies: Option>, } impl client::RequestValue for AnalyzeEntitiesRequest {} @@ -295,7 +295,7 @@ pub struct AttributeDefinition { pub allowed_values: Option>, /// Required. The category of the attribute. The value of this field cannot be changed after creation. - pub category: Option, + pub category: Option, /// Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value. #[serde(rename="consentDefaultValues")] @@ -349,7 +349,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -481,7 +481,7 @@ pub struct CheckDataAccessRequest { /// Optional. The view for CheckDataAccessResponse. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, } impl client::RequestValue for CheckDataAccessRequest {} @@ -625,7 +625,7 @@ pub struct Consent { pub revision_id: Option, /// Required. Indicates the current state of this Consent. - pub state: Option, + pub state: Option, /// Input only. The time to live for this Consent from when it is created. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] @@ -698,7 +698,7 @@ pub struct ConsentEvaluation { /// The evaluation result. #[serde(rename="evaluationResult")] - pub evaluation_result: Option, + pub evaluation_result: Option, } impl client::Part for ConsentEvaluation {} @@ -1075,7 +1075,7 @@ pub struct DicomConfig { /// Tag filtering profile that determines which tags to keep/remove. #[serde(rename="filterProfile")] - pub filter_profile: Option, + pub filter_profile: Option, /// List of tags to keep. Remove all other tags. #[serde(rename="keepList")] @@ -1158,7 +1158,7 @@ pub struct DicomTagConfig { /// Base profile type for handling DICOM tags. #[serde(rename="profileType")] - pub profile_type: Option, + pub profile_type: Option, } impl client::Part for DicomTagConfig {} @@ -1353,7 +1353,7 @@ pub struct EvaluateUserConsentsRequest { /// Optional. The view for EvaluateUserConsentsResponse. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`. #[serde(rename="responseView")] - pub response_view: Option, + pub response_view: Option, /// Required. User ID to evaluate consents for. #[serde(rename="userId")] @@ -1575,7 +1575,7 @@ pub struct FhirFieldConfig { /// Base profile type for handling FHIR fields. #[serde(rename="profileType")] - pub profile_type: Option, + pub profile_type: Option, } impl client::Part for FhirFieldConfig {} @@ -1648,7 +1648,7 @@ pub struct FhirStore { /// Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources. #[serde(rename="complexDataTypeReferenceParsing")] - pub complex_data_type_reference_parsing: Option, + pub complex_data_type_reference_parsing: Option, /// If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`. #[serde(rename="defaultSearchHandlingStrict")] @@ -1693,7 +1693,7 @@ pub struct FhirStore { pub validation_config: Option, /// Immutable. The FHIR specification version that this FHIR store supports natively. This field is immutable after store creation. Requests are rejected if they contain FHIR resources of a different version. Version is required for every FHIR store. - pub version: Option, + pub version: Option, } impl client::RequestValue for FhirStore {} @@ -1739,7 +1739,7 @@ impl client::Part for Field {} pub struct FieldMetadata { /// Deidentify action for one field. - pub action: Option, + pub action: Option, /// List of paths to FHIR fields to redact. Each path is a period-separated list where each component is either a field name or FHIR type name. All types begin with an upper case letter. For example, the resource field "Patient.Address.city", which uses a string type, can be matched by "Patient.Address.String". Path also supports partial matching. For example, "Patient.Address.city" can be matched by "Address.city" (Patient omitted). Partial matching and type matching can be combined. For example, "Patient.Address.city" can be matched by "Address.String". For "choice" types (those defined in the FHIR spec with the form: field[x]), use two separate components. For example, "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. The sub-type for HumanName(for example HumanName.given, HumanName.family) can be omitted. pub paths: Option>, @@ -1801,11 +1801,11 @@ pub struct GcsDestination { /// The format of the exported HL7v2 message files. #[serde(rename="contentStructure")] - pub content_structure: Option, + pub content_structure: Option, /// Specifies the parts of the Message resource to include in the export. If not specified, FULL is used. #[serde(rename="messageView")] - pub message_view: Option, + pub message_view: Option, /// URI of an existing Cloud Storage directory where the server writes result files, in the format `gs://{bucket-id}/{path/to/destination/dir}`. If there is no trailing slash, the service appends one when composing the object path. #[serde(rename="uriPrefix")] @@ -1843,7 +1843,7 @@ pub struct GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination { /// Specifies the schema format to export. #[serde(rename="schemaType")] - pub schema_type: Option, + pub schema_type: Option, /// BigQuery URI to a table, up to 2000 characters long, must be of the form bq://projectId.bqDatasetId.tableId. #[serde(rename="tableUri")] @@ -1851,7 +1851,7 @@ pub struct GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination { /// Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored. #[serde(rename="writeDisposition")] - pub write_disposition: Option, + pub write_disposition: Option, } impl client::Part for GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination {} @@ -2012,7 +2012,7 @@ pub struct GoogleCloudHealthcareV1beta1DicomBigQueryDestination { /// Determines whether the existing table in the destination is to be overwritten or appended to. If a write_disposition is specified, the `force` parameter is ignored. #[serde(rename="writeDisposition")] - pub write_disposition: Option, + pub write_disposition: Option, } impl client::Part for GoogleCloudHealthcareV1beta1DicomBigQueryDestination {} @@ -2090,7 +2090,7 @@ pub struct GoogleCloudHealthcareV1beta1FhirBigQueryDestination { /// Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored. #[serde(rename="writeDisposition")] - pub write_disposition: Option, + pub write_disposition: Option, } impl client::Part for GoogleCloudHealthcareV1beta1FhirBigQueryDestination {} @@ -2364,7 +2364,7 @@ pub struct ImageConfig { /// Determines how to redact text from image. #[serde(rename="textRedactionMode")] - pub text_redaction_mode: Option, + pub text_redaction_mode: Option, } impl client::Part for ImageConfig {} @@ -2444,7 +2444,7 @@ pub struct ImportResourcesRequest { /// The content structure in the source location. If not specified, the server treats the input source files as BUNDLE. #[serde(rename="contentStructure")] - pub content_structure: Option, + pub content_structure: Option, /// Cloud Storage source data location and import configuration. The Cloud Healthcare Service Agent requires the `roles/storage.objectViewer` Cloud IAM roles on the Cloud Storage location. The Healthcare Service Agent Each Cloud Storage object should be a text file that contains the format specified in ContentStructure. #[serde(rename="gcsSource")] @@ -3157,7 +3157,7 @@ pub struct Options { /// Set `Action` for [`StudyInstanceUID`, `SeriesInstanceUID`, `SOPInstanceUID`, and `MediaStorageSOPInstanceUID`](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html). #[serde(rename="primaryIds")] - pub primary_ids: Option, + pub primary_ids: Option, } impl client::Part for Options {} @@ -3199,7 +3199,7 @@ pub struct ParserConfig { pub segment_terminator: Option>, /// Immutable. Determines the version of both the default parser to be used when `schema` is not given, as well as the schematized parser used when `schema` is specified. This field is immutable after HL7v2 store creation. - pub version: Option, + pub version: Option, } impl client::Part for ParserConfig {} @@ -3482,7 +3482,7 @@ pub struct SchemaConfig { /// Specifies the output schema type. Schema type is required. #[serde(rename="schemaType")] - pub schema_type: Option, + pub schema_type: Option, } impl client::Part for SchemaConfig {} @@ -3534,14 +3534,14 @@ pub struct SchemaPackage { /// Determines how messages that fail to parse are handled. #[serde(rename="schematizedParsingType")] - pub schematized_parsing_type: Option, + pub schematized_parsing_type: Option, /// Schema type definitions that are layered based on their VersionSources that match the incoming message. Type definitions present in higher indices override those in lower indices with the same type name if their VersionSources all match an incoming message. pub types: Option>, /// Determines how unexpected segments (segments not matched to the schema) are handled. #[serde(rename="unexpectedSegmentHandling")] - pub unexpected_segment_handling: Option, + pub unexpected_segment_handling: Option, } impl client::Part for SchemaPackage {} @@ -3863,7 +3863,7 @@ pub struct TextConfig { /// Base profile type for text transformation. #[serde(rename="profileType")] - pub profile_type: Option, + pub profile_type: Option, /// The transformations to apply to the detected data. Deprecated. Use `additional_transformations` instead. pub transformations: Option>, @@ -3906,7 +3906,7 @@ pub struct TimePartitioning { /// Type of partitioning. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for TimePartitioning {} @@ -3927,7 +3927,7 @@ pub struct Type { pub name: Option, /// If this is a primitive type then this field is the type of the primitive For example, STRING. Leave unspecified for composite types. - pub primitive: Option, + pub primitive: Option, } impl client::Part for Type {} diff --git a/gen/iam1/src/api/mod.rs b/gen/iam1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/iam1/src/api/mod.rs +++ b/gen/iam1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/iam1/src/api/schemas.rs b/gen/iam1/src/api/schemas.rs index 118e6db47c..bd05f19a1a 100644 --- a/gen/iam1/src/api/schemas.rs +++ b/gen/iam1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -128,11 +128,11 @@ pub struct CreateServiceAccountKeyRequest { /// Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. #[serde(rename="keyAlgorithm")] - pub key_algorithm: Option, + pub key_algorithm: Option, /// The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. #[serde(rename="privateKeyType")] - pub private_key_type: Option, + pub private_key_type: Option, } impl client::RequestValue for CreateServiceAccountKeyRequest {} @@ -326,14 +326,14 @@ pub struct LintResult { pub field_name: Option, /// The validation unit level. - pub level: Option, + pub level: Option, /// 0-based character position of problematic construct within the object identified by `field_name`. Currently, this is populated only for condition expression. #[serde(rename="locationOffset")] pub location_offset: Option, /// The validation unit severity. - pub severity: Option, + pub severity: Option, /// The validation unit name, for instance "lintValidationUnits/ConditionComplexityCheck". #[serde(rename="validationUnitName")] @@ -565,7 +565,7 @@ pub struct Permission { /// The current custom role support level. #[serde(rename="customRolesSupportLevel")] - pub custom_roles_support_level: Option, + pub custom_roles_support_level: Option, /// A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles. pub description: Option, @@ -582,7 +582,7 @@ pub struct Permission { pub primary_permission: Option, /// The current launch stage of the permission. - pub stage: Option, + pub stage: Option, /// The title of this Permission. pub title: Option, @@ -686,7 +686,7 @@ pub struct QueryGrantableRolesRequest { pub page_token: Option, /// no description provided - pub view: Option, + pub view: Option, } impl client::RequestValue for QueryGrantableRolesRequest {} @@ -808,7 +808,7 @@ pub struct Role { pub name: Option, /// The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role. - pub stage: Option, + pub stage: Option, /// Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes. pub title: Option, @@ -906,15 +906,15 @@ pub struct ServiceAccountKey { /// Specifies the algorithm (and possibly key size) for the key. #[serde(rename="keyAlgorithm")] - pub key_algorithm: Option, + pub key_algorithm: Option, /// The key origin. #[serde(rename="keyOrigin")] - pub key_origin: Option, + pub key_origin: Option, /// The key type. #[serde(rename="keyType")] - pub key_type: Option, + pub key_type: Option, /// The resource name of the service account key in the following format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. pub name: Option, @@ -926,7 +926,7 @@ pub struct ServiceAccountKey { /// The output format for the private key. Only provided in `CreateServiceAccountKey` responses, not in `GetServiceAccountKey` or `ListServiceAccountKey` responses. Google never exposes system-managed private keys, and never retains user-managed private keys. #[serde(rename="privateKeyType")] - pub private_key_type: Option, + pub private_key_type: Option, /// The public key data. Only provided in `GetServiceAccountKey` responses. #[serde(rename="publicKeyData")] @@ -1250,7 +1250,7 @@ pub struct WorkloadIdentityPool { pub name: Option, /// Output only. The state of the pool. - pub state: Option, + pub state: Option, } impl client::RequestValue for WorkloadIdentityPool {} @@ -1302,7 +1302,7 @@ pub struct WorkloadIdentityPoolProvider { pub saml: Option, /// Output only. The state of the provider. - pub state: Option, + pub state: Option, } impl client::RequestValue for WorkloadIdentityPoolProvider {} diff --git a/gen/iamcredentials1/src/api/call_builders.rs b/gen/iamcredentials1/src/api/call_builders.rs index 39bfbdf560..2107737a42 100644 --- a/gen/iamcredentials1/src/api/call_builders.rs +++ b/gen/iamcredentials1/src/api/call_builders.rs @@ -559,7 +559,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()); @@ -851,7 +851,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()); @@ -1143,7 +1143,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()); @@ -1435,7 +1435,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()); diff --git a/gen/iamcredentials1/src/api/mod.rs b/gen/iamcredentials1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/iamcredentials1/src/api/mod.rs +++ b/gen/iamcredentials1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/iap1/src/api/call_builders.rs b/gen/iap1/src/api/call_builders.rs index 45cb208831..f91083b182 100644 --- a/gen/iap1/src/api/call_builders.rs +++ b/gen/iap1/src/api/call_builders.rs @@ -1385,7 +1385,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1670,7 +1670,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()); @@ -1932,7 +1932,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()); @@ -2198,7 +2198,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2487,7 +2487,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()); @@ -2779,7 +2779,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3064,7 +3064,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()); @@ -3326,7 +3326,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3597,7 +3597,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tunnel_dest_group_id.as_ref() { params.push("tunnelDestGroupId", value); } @@ -3892,7 +3892,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()); @@ -4154,7 +4154,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()); @@ -4420,7 +4420,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4711,7 +4711,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5013,7 +5013,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()); @@ -5298,7 +5298,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()); @@ -5567,7 +5567,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()); @@ -5859,7 +5859,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()); @@ -6153,7 +6153,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/iap1/src/api/mod.rs b/gen/iap1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/iap1/src/api/mod.rs +++ b/gen/iap1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/iap1/src/api/schemas.rs b/gen/iap1/src/api/schemas.rs index 8b3ea55fb1..500e7be4cc 100644 --- a/gen/iap1/src/api/schemas.rs +++ b/gen/iap1/src/api/schemas.rs @@ -121,7 +121,7 @@ pub struct AttributePropagationSettings { /// Which output credentials attributes selected by the CEL expression should be propagated in. All attributes will be fully duplicated in each selected output credential. #[serde(rename="outputCredentials")] - pub output_credentials: Option>, + pub output_credentials: Option>, } impl client::Part for AttributePropagationSettings {} @@ -539,11 +539,11 @@ pub struct ReauthSettings { pub max_age: Option, /// Reauth method requested. - pub method: Option, + pub method: Option, /// How IAP determines the effective policy in cases of hierarchial policies. Policies are merged from higher in the hierarchy to lower in the hierarchy. #[serde(rename="policyType")] - pub policy_type: Option, + pub policy_type: Option, } impl client::Part for ReauthSettings {} diff --git a/gen/iap1_beta1/src/api/call_builders.rs b/gen/iap1_beta1/src/api/call_builders.rs index 75106b9f75..a2c2748281 100644 --- a/gen/iap1_beta1/src/api/call_builders.rs +++ b/gen/iap1_beta1/src/api/call_builders.rs @@ -515,7 +515,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()); @@ -807,7 +807,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()); @@ -1099,7 +1099,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()); diff --git a/gen/iap1_beta1/src/api/mod.rs b/gen/iap1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/iap1_beta1/src/api/mod.rs +++ b/gen/iap1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ideahub1_beta/src/api/call_builders.rs b/gen/ideahub1_beta/src/api/call_builders.rs index 96d211d975..94b0feef30 100644 --- a/gen/ideahub1_beta/src/api/call_builders.rs +++ b/gen/ideahub1_beta/src/api/call_builders.rs @@ -558,7 +558,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -807,7 +807,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -1065,7 +1065,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); } @@ -1326,7 +1326,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1572,7 +1572,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/ideahub1_beta/src/api/mod.rs b/gen/ideahub1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/ideahub1_beta/src/api/mod.rs +++ b/gen/ideahub1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ideahub1_beta/src/api/schemas.rs b/gen/ideahub1_beta/src/api/schemas.rs index 5d359ef608..d0206b04f4 100644 --- a/gen/ideahub1_beta/src/api/schemas.rs +++ b/gen/ideahub1_beta/src/api/schemas.rs @@ -61,7 +61,7 @@ pub struct GoogleSearchIdeahubV1betaIdeaActivity { /// The type of activity performed. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The uri the activity relates to. pub uri: Option, diff --git a/gen/identitytoolkit3/src/api/mod.rs b/gen/identitytoolkit3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/identitytoolkit3/src/api/mod.rs +++ b/gen/identitytoolkit3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ids1/src/api/call_builders.rs b/gen/ids1/src/api/call_builders.rs index 39b7354ecd..d87bdcce10 100644 --- a/gen/ids1/src/api/call_builders.rs +++ b/gen/ids1/src/api/call_builders.rs @@ -992,7 +992,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); } @@ -1299,7 +1299,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); } @@ -1571,7 +1571,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()); @@ -1835,7 +1835,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()); } @@ -2115,7 +2115,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); } @@ -2428,7 +2428,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()); } @@ -2740,7 +2740,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()); @@ -3032,7 +3032,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()); @@ -3324,7 +3324,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()); @@ -3609,7 +3609,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()); @@ -3871,7 +3871,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()); @@ -4139,7 +4139,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); } @@ -4431,7 +4431,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()); @@ -4699,7 +4699,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); } diff --git a/gen/ids1/src/api/mod.rs b/gen/ids1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/ids1/src/api/mod.rs +++ b/gen/ids1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ids1/src/api/schemas.rs b/gen/ids1/src/api/schemas.rs index 4bbbfaa24e..203821c032 100644 --- a/gen/ids1/src/api/schemas.rs +++ b/gen/ids1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -129,10 +129,10 @@ pub struct Endpoint { pub network: Option, /// Required. Lowest threat severity that this endpoint will alert on. - pub severity: Option, + pub severity: Option, /// Output only. Current state of the endpoint. - pub state: Option, + pub state: Option, /// List of threat IDs to be excepted from generating alerts. #[serde(rename="threatExceptions")] diff --git a/gen/indexing3/src/api/mod.rs b/gen/indexing3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/indexing3/src/api/mod.rs +++ b/gen/indexing3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/indexing3/src/api/schemas.rs b/gen/indexing3/src/api/schemas.rs index 3adfd7f243..589eb4cb7c 100644 --- a/gen/indexing3/src/api/schemas.rs +++ b/gen/indexing3/src/api/schemas.rs @@ -38,7 +38,7 @@ pub struct UrlNotification { /// The URL life cycle event that Google is being notified about. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The object of this notification. The URL must be owned by the publisher of this notification and, in case of `URL_UPDATED` notifications, it _must_ be crawlable by Google. pub url: Option, diff --git a/gen/jobs3/src/api/call_builders.rs b/gen/jobs3/src/api/call_builders.rs index 02725064e5..8d572d55b9 100644 --- a/gen/jobs3/src/api/call_builders.rs +++ b/gen/jobs3/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -369,7 +369,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -654,7 +654,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()); @@ -916,7 +916,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()); @@ -1184,7 +1184,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._require_open_jobs.as_ref() { params.push("requireOpenJobs", value.to_string()); } @@ -1483,7 +1483,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()); @@ -1775,7 +1775,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2067,7 +2067,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2352,7 +2352,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()); @@ -2614,7 +2614,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()); @@ -2834,8 +2834,8 @@ where /// let result = hub.projects().jobs_list("parent") /// .page_token("ea") /// .page_size(-55) -/// .job_view("invidunt") -/// .filter("amet") +/// .job_view(&Default::default()) +/// .filter("invidunt") /// .doit().await; /// # } /// ``` @@ -2846,7 +2846,7 @@ pub struct ProjectJobListCall<'a, S> pub(super) _parent: String, pub(super) _page_token: Option, pub(super) _page_size: Option, - pub(super) _job_view: Option, + pub(super) _job_view: Option, pub(super) _filter: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -2884,7 +2884,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); } @@ -3028,8 +3028,8 @@ where /// Optional. The desired job attributes returned for jobs in the search response. Defaults to JobView.JOB_VIEW_FULL if no value is specified. /// /// Sets the *job view* query property to the given value. - pub fn job_view(mut self, new_value: &str) -> ProjectJobListCall<'a, S> { - self._job_view = Some(new_value.to_string()); + pub fn job_view(mut self, new_value: &ProjectJobViewEnum) -> ProjectJobListCall<'a, S> { + self._job_view = Some(new_value.clone()); self } /// Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible for filtering are: * `companyName` * `requisitionId` * `status` Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. At least one of `companyName` and `requisitionId` must present or an INVALID_ARGUMENT error is thrown. Sample Query: * companyName = "projects/api-test-project/companies/123" * companyName = "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = "projects/api-test-project/companies/123" AND status = "EXPIRED" * requisitionId = "req-1" * requisitionId = "req-1" AND status = "EXPIRED" @@ -3193,7 +3193,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()); @@ -3485,7 +3485,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3777,7 +3777,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4018,13 +4018,13 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.projects().complete("name") -/// .type_("gubergren") -/// .scope("rebum.") -/// .query("est") -/// .page_size(-50) -/// .add_language_codes("ipsum") +/// .type_(&Default::default()) +/// .scope(&Default::default()) +/// .query("ut") +/// .page_size(-12) +/// .add_language_codes("rebum.") /// .language_code("est") -/// .company_name("gubergren") +/// .company_name("ipsum") /// .doit().await; /// # } /// ``` @@ -4033,8 +4033,8 @@ pub struct ProjectCompleteCall<'a, S> pub(super) hub: &'a CloudTalentSolution, pub(super) _name: String, - pub(super) _type_: Option, - pub(super) _scope: Option, + pub(super) _type_: Option, + pub(super) _scope: Option, pub(super) _query: Option, pub(super) _page_size: Option, pub(super) _language_codes: Vec, @@ -4076,7 +4076,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._type_.as_ref() { params.push("type", value); } @@ -4217,15 +4217,15 @@ where /// Optional. The completion topic. The default is CompletionType.COMBINED. /// /// Sets the *type* query property to the given value. - pub fn type_(mut self, new_value: &str) -> ProjectCompleteCall<'a, S> { - self._type_ = Some(new_value.to_string()); + pub fn type_(mut self, new_value: &ProjectTypeEnum) -> ProjectCompleteCall<'a, S> { + self._type_ = Some(new_value.clone()); self } /// Optional. The scope of the completion. The defaults is CompletionScope.PUBLIC. /// /// Sets the *scope* query property to the given value. - pub fn scope(mut self, new_value: &str) -> ProjectCompleteCall<'a, S> { - self._scope = Some(new_value.to_string()); + pub fn scope(mut self, new_value: &ProjectScopeEnum) -> ProjectCompleteCall<'a, S> { + self._scope = Some(new_value.clone()); self } /// Required. The query used to generate suggestions. The maximum number of allowed characters is 255. diff --git a/gen/jobs3/src/api/mod.rs b/gen/jobs3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/jobs3/src/api/mod.rs +++ b/gen/jobs3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/jobs3/src/api/schemas.rs b/gen/jobs3/src/api/schemas.rs index aadda51f78..3915fffa16 100644 --- a/gen/jobs3/src/api/schemas.rs +++ b/gen/jobs3/src/api/schemas.rs @@ -129,7 +129,7 @@ pub struct CommuteFilter { /// Required. The method of transportation for which to calculate the commute time. #[serde(rename="commuteMethod")] - pub commute_method: Option, + pub commute_method: Option, /// Optional. The departure time used to calculate traffic impact, represented as google.type.TimeOfDay in local time zone. Currently traffic model is restricted to hour level resolution. #[serde(rename="departureTime")] @@ -137,7 +137,7 @@ pub struct CommuteFilter { /// Optional. Specifies the traffic density to use when calculating commute time. #[serde(rename="roadTraffic")] - pub road_traffic: Option, + pub road_traffic: Option, /// Required. The latitude and longitude of the location from which to calculate the commute time. #[serde(rename="startCoordinates")] @@ -227,7 +227,7 @@ pub struct Company { pub name: Option, /// Optional. The employer's company size. - pub size: Option, + pub size: Option, /// Output only. Indicates whether a company is flagged to be suspended from public availability by the service when job content appears suspicious, abusive, or spammy. pub suspended: Option, @@ -279,10 +279,10 @@ pub struct CompensationEntry { /// Optional. Compensation type. Default is CompensationUnit.COMPENSATION_TYPE_UNSPECIFIED. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Optional. Frequency of the specified amount. Default is CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED. - pub unit: Option, + pub unit: Option, } impl client::Part for CompensationEntry {} @@ -305,10 +305,10 @@ pub struct CompensationFilter { /// Required. Type of filter. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Required. Specify desired `base compensation entry's` CompensationInfo.CompensationUnit. - pub units: Option>, + pub units: Option>, } impl client::Part for CompensationFilter {} @@ -328,7 +328,7 @@ pub struct CompensationHistogramRequest { /// Required. Type of the request, representing which field the histogramming should be performed over. A single request can only specify one histogram of each `CompensationHistogramRequestType`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CompensationHistogramRequest {} @@ -347,7 +347,7 @@ pub struct CompensationHistogramResult { /// Type of the request, corresponding to CompensationHistogramRequest.type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CompensationHistogramResult {} @@ -436,7 +436,7 @@ pub struct CompletionResult { /// The completion topic. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CompletionResult {} @@ -580,7 +580,7 @@ pub struct DeviceInfo { /// Optional. Type of the device. #[serde(rename="deviceType")] - pub device_type: Option, + pub device_type: Option, /// Optional. A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices. pub id: Option, @@ -624,7 +624,7 @@ pub struct HistogramFacets { /// Optional. Specifies the simple type of histogram facets, for example, `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. #[serde(rename="simpleHistogramFacets")] - pub simple_histogram_facets: Option>, + pub simple_histogram_facets: Option>, } impl client::Part for HistogramFacets {} @@ -640,7 +640,7 @@ pub struct HistogramResult { /// The Histogram search filters. #[serde(rename="searchType")] - pub search_type: Option, + pub search_type: Option, /// A map from the values of field to the number of jobs with that value in this search result. Key: search type (filter names, such as the companyName). Values: the count of jobs that match the filter for this search. pub values: Option>, @@ -712,7 +712,7 @@ pub struct Job { /// Optional. The desired education degrees for the job, such as Bachelors, Masters. #[serde(rename="degreeTypes")] - pub degree_types: Option>, + pub degree_types: Option>, /// Optional. The department or functional area within the company with the open position. The maximum number of allowed characters is 255. pub department: Option, @@ -726,14 +726,14 @@ pub struct Job { /// Optional. The employment type(s) of a job, for example, full time or part time. #[serde(rename="employmentTypes")] - pub employment_types: Option>, + pub employment_types: Option>, /// Optional. A description of bonus, commission, and other compensation incentives associated with the job not including salary or pay. The maximum number of allowed characters is 10,000. pub incentives: Option, /// Optional. The benefits included with the job. #[serde(rename="jobBenefits")] - pub job_benefits: Option>, + pub job_benefits: Option>, /// Optional. The end timestamp of the job. Typically this field is used for contracting engagements. Invalid timestamps are ignored. #[serde(rename="jobEndTime")] @@ -741,7 +741,7 @@ pub struct Job { /// Optional. The experience level associated with the job, such as "Entry Level". #[serde(rename="jobLevel")] - pub job_level: Option, + pub job_level: Option, /// Optional. The start timestamp of the job in UTC time zone. Typically this field is used for contracting engagements. Invalid timestamps are ignored. #[serde(rename="jobStartTime")] @@ -768,7 +768,7 @@ pub struct Job { /// Optional. The job PostingRegion (for example, state, country) throughout which the job is available. If this field is set, a LocationFilter in a search query within the job region finds this job posting if an exact location match isn't specified. If this field is set to PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as this field is strongly recommended. #[serde(rename="postingRegion")] - pub posting_region: Option, + pub posting_region: Option, /// Output only. The timestamp when this job posting was last updated. #[serde(rename="postingUpdateTime")] @@ -796,7 +796,7 @@ pub struct Job { pub title: Option, /// Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified. - pub visibility: Option, + pub visibility: Option, } impl client::ResponseResult for Job {} @@ -812,7 +812,7 @@ pub struct JobDerivedInfo { /// Job categories derived from Job.title and Job.description. #[serde(rename="jobCategories")] - pub job_categories: Option>, + pub job_categories: Option>, /// Structured locations of the job, resolved from Job.addresses. locations are exactly matched to Job.addresses in the same order. pub locations: Option>, @@ -834,7 +834,7 @@ pub struct JobEvent { /// Required. The type of the event (see JobEventType). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for JobEvent {} @@ -874,11 +874,11 @@ pub struct JobQuery { /// Optional. The employment type filter specifies the employment type of jobs to search against, such as EmploymentType.FULL_TIME. If a value is not specified, jobs in the search results includes any employment type. If multiple values are specified, jobs in the search results include any of the specified employment types. #[serde(rename="employmentTypes")] - pub employment_types: Option>, + pub employment_types: Option>, /// Optional. The category filter specifies the categories of jobs to search against. See Category for more information. If a value is not specified, jobs from any category are searched against. If multiple values are specified, jobs from any of the specified categories are searched against. #[serde(rename="jobCategories")] - pub job_categories: Option>, + pub job_categories: Option>, /// Optional. This filter specifies the locale of jobs to search against, for example, "en-US". If a value isn't specified, the search results can contain jobs in any locale. Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). At most 10 language code filters are allowed. #[serde(rename="languageCodes")] @@ -987,7 +987,7 @@ pub struct Location { /// The type of a location, which corresponds to the address lines field of PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType#LOCALITY. #[serde(rename="locationType")] - pub location_type: Option, + pub location_type: Option, /// Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location. #[serde(rename="postalAddress")] @@ -1026,7 +1026,7 @@ pub struct LocationFilter { /// Optional. Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location). Job.posting_region indicates if a job permits telecommuting. If this field is set to TelecommutePreference.TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED, the telecommute status of the jobs is ignored. Jobs that have PostingRegion.TELECOMMUTE and have additional Job.addresses may still be matched based on other location filters using address or latlng. This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as "Mountain View" or "telecommuting" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response. #[serde(rename="telecommutePreference")] - pub telecommute_preference: Option, + pub telecommute_preference: Option, } impl client::Part for LocationFilter {} @@ -1194,7 +1194,7 @@ pub struct ProcessingOptions { /// Optional. Option for job HTML content sanitization. Applied fields are: * description * applicationInfo.instruction * incentives * qualifications * responsibilities HTML tags in these fields may be stripped if sanitiazation is not disabled. Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY. #[serde(rename="htmlSanitization")] - pub html_sanitization: Option, + pub html_sanitization: Option, } impl client::Part for ProcessingOptions {} @@ -1262,7 +1262,7 @@ pub struct SearchJobsRequest { /// Optional. Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly similar based on their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results. Defaults to DiversificationLevel.SIMPLE if no value is specified. #[serde(rename="diversificationLevel")] - pub diversification_level: Option, + pub diversification_level: Option, /// Optional. Controls whether to broaden the search when it produces sparse results. Broadened queries append results to the end of the matching results list. Defaults to false. #[serde(rename="enableBroadening")] @@ -1278,7 +1278,7 @@ pub struct SearchJobsRequest { /// Optional. The desired job attributes returned for jobs in the search response. Defaults to JobView.SMALL if no value is specified. #[serde(rename="jobView")] - pub job_view: Option, + pub job_view: Option, /// Optional. An integer that specifies the current offset (that is, starting result location, amongst the jobs deemed by the API as relevant) in search results. This field is only considered if page_token is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching job, and 10 means to return from the 11th job. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page). pub offset: Option, @@ -1305,7 +1305,7 @@ pub struct SearchJobsRequest { /// Optional. Mode of a search. Defaults to SearchMode.JOB_SEARCH. #[serde(rename="searchMode")] - pub search_mode: Option, + pub search_mode: Option, } impl client::RequestValue for SearchJobsRequest {} diff --git a/gen/jobs4/src/api/mod.rs b/gen/jobs4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/jobs4/src/api/mod.rs +++ b/gen/jobs4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/jobs4/src/api/schemas.rs b/gen/jobs4/src/api/schemas.rs index f83470bdfe..6f674496d2 100644 --- a/gen/jobs4/src/api/schemas.rs +++ b/gen/jobs4/src/api/schemas.rs @@ -132,7 +132,7 @@ pub struct CommuteFilter { /// Required. The method of transportation to calculate the commute time for. #[serde(rename="commuteMethod")] - pub commute_method: Option, + pub commute_method: Option, /// The departure time used to calculate traffic impact, represented as google.type.TimeOfDay in local time zone. Currently traffic model is restricted to hour level resolution. #[serde(rename="departureTime")] @@ -140,7 +140,7 @@ pub struct CommuteFilter { /// Specifies the traffic density to use when calculating commute time. #[serde(rename="roadTraffic")] - pub road_traffic: Option, + pub road_traffic: Option, /// Required. The latitude and longitude of the location to calculate the commute time from. #[serde(rename="startCoordinates")] @@ -230,7 +230,7 @@ pub struct Company { pub name: Option, /// The employer's company size. - pub size: Option, + pub size: Option, /// Output only. Indicates whether a company is flagged to be suspended from public availability by the service when job content appears suspicious, abusive, or spammy. pub suspended: Option, @@ -283,10 +283,10 @@ pub struct CompensationEntry { /// Compensation type. Default is CompensationType.COMPENSATION_TYPE_UNSPECIFIED. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Frequency of the specified amount. Default is CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED. - pub unit: Option, + pub unit: Option, } impl client::Part for CompensationEntry {} @@ -309,10 +309,10 @@ pub struct CompensationFilter { /// Required. Type of filter. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Required. Specify desired `base compensation entry's` CompensationInfo.CompensationUnit. - pub units: Option>, + pub units: Option>, } impl client::Part for CompensationFilter {} @@ -401,7 +401,7 @@ pub struct CompletionResult { /// The completion topic. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CompletionResult {} @@ -445,7 +445,7 @@ pub struct CustomRankingInfo { /// Required. Controls over how important the score of CustomRankingInfo.ranking_expression gets applied to job's final ranking position. An error is thrown if not specified. #[serde(rename="importanceLevel")] - pub importance_level: Option, + pub importance_level: Option, /// Required. Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm). A combination of the ranking expression and relevance score is used to determine job's final ranking position. The syntax for this expression is a subset of Google SQL syntax. Supported operators are: +, -, *, /, where the left and right side of the operator is either a numeric Job.custom_attributes key, integer/double value or an expression that can be evaluated to a number. Parenthesis are supported to adjust calculation precedence. The expression must be < 200 characters in length. The expression is considered invalid for a job if the expression references custom attributes that are not populated on the job or if the expression results in a divide by zero. If an expression is invalid for a job, that job is demoted to the end of the results. Sample ranking expression (year + 25) * 0.25 - (freshness / 0.5) #[serde(rename="rankingExpression")] @@ -465,7 +465,7 @@ pub struct DeviceInfo { /// Type of the device. #[serde(rename="deviceType")] - pub device_type: Option, + pub device_type: Option, /// A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices. pub id: Option, @@ -565,7 +565,7 @@ pub struct Job { /// The desired education degrees for the job, such as Bachelors, Masters. #[serde(rename="degreeTypes")] - pub degree_types: Option>, + pub degree_types: Option>, /// The department or functional area within the company with the open position. The maximum number of allowed characters is 255. pub department: Option, @@ -579,14 +579,14 @@ pub struct Job { /// The employment type(s) of a job, for example, full time or part time. #[serde(rename="employmentTypes")] - pub employment_types: Option>, + pub employment_types: Option>, /// A description of bonus, commission, and other compensation incentives associated with the job not including salary or pay. The maximum number of allowed characters is 10,000. pub incentives: Option, /// The benefits included with the job. #[serde(rename="jobBenefits")] - pub job_benefits: Option>, + pub job_benefits: Option>, /// The end timestamp of the job. Typically this field is used for contracting engagements. Invalid timestamps are ignored. #[serde(rename="jobEndTime")] @@ -594,7 +594,7 @@ pub struct Job { /// The experience level associated with the job, such as "Entry Level". #[serde(rename="jobLevel")] - pub job_level: Option, + pub job_level: Option, /// The start timestamp of the job in UTC time zone. Typically this field is used for contracting engagements. Invalid timestamps are ignored. #[serde(rename="jobStartTime")] @@ -621,7 +621,7 @@ pub struct Job { /// The job PostingRegion (for example, state, country) throughout which the job is available. If this field is set, a LocationFilter in a search query within the job region finds this job posting if an exact location match isn't specified. If this field is set to PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as this field is strongly recommended. #[serde(rename="postingRegion")] - pub posting_region: Option, + pub posting_region: Option, /// Output only. The timestamp when this job posting was last updated. #[serde(rename="postingUpdateTime")] @@ -649,7 +649,7 @@ pub struct Job { pub title: Option, /// Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified. - pub visibility: Option, + pub visibility: Option, } impl client::RequestValue for Job {} @@ -666,7 +666,7 @@ pub struct JobDerivedInfo { /// Job categories derived from Job.title and Job.description. #[serde(rename="jobCategories")] - pub job_categories: Option>, + pub job_categories: Option>, /// Structured locations of the job, resolved from Job.addresses. locations are exactly matched to Job.addresses in the same order. pub locations: Option>, @@ -688,7 +688,7 @@ pub struct JobEvent { /// Required. The type of the event (see JobEventType). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for JobEvent {} @@ -727,7 +727,7 @@ pub struct JobQuery { /// The employment type filter specifies the employment type of jobs to search against, such as EmploymentType.FULL_TIME. If a value isn't specified, jobs in the search results includes any employment type. If multiple values are specified, jobs in the search results include any of the specified employment types. #[serde(rename="employmentTypes")] - pub employment_types: Option>, + pub employment_types: Option>, /// This filter specifies a list of job names to be excluded during search. At most 400 excluded job names are allowed. #[serde(rename="excludedJobs")] @@ -735,7 +735,7 @@ pub struct JobQuery { /// The category filter specifies the categories of jobs to search against. See JobCategory for more information. If a value isn't specified, jobs from any category are searched against. If multiple values are specified, jobs from any of the specified categories are searched against. #[serde(rename="jobCategories")] - pub job_categories: Option>, + pub job_categories: Option>, /// This filter specifies the locale of jobs to search against, for example, "en-US". If a value isn't specified, the search results can contain jobs in any locale. Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). At most 10 language code filters are allowed. #[serde(rename="languageCodes")] @@ -870,7 +870,7 @@ pub struct Location { /// The type of a location, which corresponds to the address lines field of google.type.PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY. #[serde(rename="locationType")] - pub location_type: Option, + pub location_type: Option, /// Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location. #[serde(rename="postalAddress")] @@ -909,7 +909,7 @@ pub struct LocationFilter { /// Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location). Job.posting_region indicates if a job permits telecommuting. If this field is set to TelecommutePreference.TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED, the telecommute status of the jobs is ignored. Jobs that have PostingRegion.TELECOMMUTE and have additional Job.addresses may still be matched based on other location filters using address or latlng. This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as "Mountain View" or "telecommuting" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response. This field is only used for job search requests. #[serde(rename="telecommutePreference")] - pub telecommute_preference: Option, + pub telecommute_preference: Option, } impl client::Part for LocationFilter {} @@ -1068,7 +1068,7 @@ pub struct ProcessingOptions { /// Option for job HTML content sanitization. Applied fields are: * description * applicationInfo.instruction * incentives * qualifications * responsibilities HTML tags in these fields may be stripped if sanitiazation isn't disabled. Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY. #[serde(rename="htmlSanitization")] - pub html_sanitization: Option, + pub html_sanitization: Option, } impl client::Part for ProcessingOptions {} @@ -1144,7 +1144,7 @@ pub struct SearchJobsRequest { /// Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly similar based on their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results. Defaults to DiversificationLevel.SIMPLE if no value is specified. #[serde(rename="diversificationLevel")] - pub diversification_level: Option, + pub diversification_level: Option, /// Controls whether to broaden the search when it produces sparse results. Broadened queries append results to the end of the matching results list. Defaults to false. #[serde(rename="enableBroadening")] @@ -1160,11 +1160,11 @@ pub struct SearchJobsRequest { /// The desired job attributes returned for jobs in the search response. Defaults to JobView.JOB_VIEW_SMALL if no value is specified. #[serde(rename="jobView")] - pub job_view: Option, + pub job_view: Option, /// Controls what keyword match options to use. If both keyword_match_mode and disable_keyword_match are set, keyword_match_mode will take precedence. Defaults to KeywordMatchMode.KEYWORD_MATCH_ALL if no value is specified. #[serde(rename="keywordMatchMode")] - pub keyword_match_mode: Option, + pub keyword_match_mode: Option, /// A limit on the number of jobs returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100. #[serde(rename="maxPageSize")] @@ -1187,7 +1187,7 @@ pub struct SearchJobsRequest { /// Mode of a search. Defaults to SearchMode.JOB_SEARCH. #[serde(rename="searchMode")] - pub search_mode: Option, + pub search_mode: Option, } impl client::RequestValue for SearchJobsRequest {} diff --git a/gen/keep1/src/api/call_builders.rs b/gen/keep1/src/api/call_builders.rs index a53e08350e..0e7ee65976 100644 --- a/gen/keep1/src/api/call_builders.rs +++ b/gen/keep1/src/api/call_builders.rs @@ -796,7 +796,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._mime_type.as_ref() { params.push("mimeType", value); } @@ -1084,7 +1084,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1376,7 +1376,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1934,7 +1934,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()); @@ -2196,7 +2196,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()); diff --git a/gen/keep1/src/api/mod.rs b/gen/keep1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/keep1/src/api/mod.rs +++ b/gen/keep1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/keep1/src/api/schemas.rs b/gen/keep1/src/api/schemas.rs index e67fb12db4..68c5779db6 100644 --- a/gen/keep1/src/api/schemas.rs +++ b/gen/keep1/src/api/schemas.rs @@ -277,7 +277,7 @@ pub struct Permission { pub name: Option, /// The role granted by this permission. The role determines the entity’s ability to read, write, and share notes. - pub role: Option, + pub role: Option, /// Output only. The user to whom this role applies. pub user: Option, diff --git a/gen/language1/src/api/mod.rs b/gen/language1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/language1/src/api/mod.rs +++ b/gen/language1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/language1/src/api/schemas.rs b/gen/language1/src/api/schemas.rs index 988ee83f6e..fefdab01f7 100644 --- a/gen/language1/src/api/schemas.rs +++ b/gen/language1/src/api/schemas.rs @@ -16,7 +16,7 @@ pub struct AnalyzeEntitiesRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeEntitiesRequest {} @@ -61,7 +61,7 @@ pub struct AnalyzeEntitySentimentRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeEntitySentimentRequest {} @@ -106,7 +106,7 @@ pub struct AnalyzeSentimentRequest { /// The encoding type used by the API to calculate sentence offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeSentimentRequest {} @@ -155,7 +155,7 @@ pub struct AnalyzeSyntaxRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeSyntaxRequest {} @@ -203,7 +203,7 @@ pub struct AnnotateTextRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, /// Required. The enabled features. pub features: Option, @@ -340,7 +340,7 @@ pub struct DependencyEdge { pub head_token_index: Option, /// The parse label for the token. - pub label: Option, + pub label: Option, } impl client::Part for DependencyEdge {} @@ -375,7 +375,7 @@ pub struct Document { /// Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for Document {} @@ -406,7 +406,7 @@ pub struct Entity { /// The entity type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Entity {} @@ -428,7 +428,7 @@ pub struct EntityMention { /// The type of the entity mention. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for EntityMention {} @@ -479,40 +479,40 @@ impl client::Part for Features {} pub struct PartOfSpeech { /// The grammatical aspect. - pub aspect: Option, + pub aspect: Option, /// The grammatical case. - pub case: Option, + pub case: Option, /// The grammatical form. - pub form: Option, + pub form: Option, /// The grammatical gender. - pub gender: Option, + pub gender: Option, /// The grammatical mood. - pub mood: Option, + pub mood: Option, /// The grammatical number. - pub number: Option, + pub number: Option, /// The grammatical person. - pub person: Option, + pub person: Option, /// The grammatical properness. - pub proper: Option, + pub proper: Option, /// The grammatical reciprocity. - pub reciprocity: Option, + pub reciprocity: Option, /// The part of speech tag. - pub tag: Option, + pub tag: Option, /// The grammatical tense. - pub tense: Option, + pub tense: Option, /// The grammatical voice. - pub voice: Option, + pub voice: Option, } impl client::Part for PartOfSpeech {} @@ -620,7 +620,7 @@ pub struct V2Model { /// The content categories used for classification. #[serde(rename="contentCategoriesVersion")] - pub content_categories_version: Option, + pub content_categories_version: Option, } impl client::Part for V2Model {} diff --git a/gen/language1_beta1/src/api/mod.rs b/gen/language1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/language1_beta1/src/api/mod.rs +++ b/gen/language1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/language1_beta1/src/api/schemas.rs b/gen/language1_beta1/src/api/schemas.rs index 4eb9f43c52..1163b023af 100644 --- a/gen/language1_beta1/src/api/schemas.rs +++ b/gen/language1_beta1/src/api/schemas.rs @@ -16,7 +16,7 @@ pub struct AnalyzeEntitiesRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeEntitiesRequest {} @@ -61,7 +61,7 @@ pub struct AnalyzeSentimentRequest { /// The encoding type used by the API to calculate sentence offsets for the sentence sentiment. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeSentimentRequest {} @@ -110,7 +110,7 @@ pub struct AnalyzeSyntaxRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, } impl client::RequestValue for AnalyzeSyntaxRequest {} @@ -158,7 +158,7 @@ pub struct AnnotateTextRequest { /// The encoding type used by the API to calculate offsets. #[serde(rename="encodingType")] - pub encoding_type: Option, + pub encoding_type: Option, /// The enabled features. pub features: Option, @@ -212,7 +212,7 @@ pub struct DependencyEdge { pub head_token_index: Option, /// The parse label for the token. - pub label: Option, + pub label: Option, } impl client::Part for DependencyEdge {} @@ -245,7 +245,7 @@ pub struct Document { /// Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for Document {} @@ -273,7 +273,7 @@ pub struct Entity { /// The entity type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Entity {} @@ -292,7 +292,7 @@ pub struct EntityMention { /// The type of the entity mention. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for EntityMention {} @@ -331,40 +331,40 @@ impl client::Part for Features {} pub struct PartOfSpeech { /// The grammatical aspect. - pub aspect: Option, + pub aspect: Option, /// The grammatical case. - pub case: Option, + pub case: Option, /// The grammatical form. - pub form: Option, + pub form: Option, /// The grammatical gender. - pub gender: Option, + pub gender: Option, /// The grammatical mood. - pub mood: Option, + pub mood: Option, /// The grammatical number. - pub number: Option, + pub number: Option, /// The grammatical person. - pub person: Option, + pub person: Option, /// The grammatical properness. - pub proper: Option, + pub proper: Option, /// The grammatical reciprocity. - pub reciprocity: Option, + pub reciprocity: Option, /// The part of speech tag. - pub tag: Option, + pub tag: Option, /// The grammatical tense. - pub tense: Option, + pub tense: Option, /// The grammatical voice. - pub voice: Option, + pub voice: Option, } impl client::Part for PartOfSpeech {} diff --git a/gen/libraryagent1/src/api/call_builders.rs b/gen/libraryagent1/src/api/call_builders.rs index d9314792e6..e1cc9efa7e 100644 --- a/gen/libraryagent1/src/api/call_builders.rs +++ b/gen/libraryagent1/src/api/call_builders.rs @@ -480,7 +480,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()); @@ -742,7 +742,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()); @@ -1008,7 +1008,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1290,7 +1290,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()); @@ -1552,7 +1552,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()); diff --git a/gen/libraryagent1/src/api/mod.rs b/gen/libraryagent1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/libraryagent1/src/api/mod.rs +++ b/gen/libraryagent1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/licensing1/src/api/call_builders.rs b/gen/licensing1/src/api/call_builders.rs index 11006e9a6f..c4c2268e3e 100644 --- a/gen/licensing1/src/api/call_builders.rs +++ b/gen/licensing1/src/api/call_builders.rs @@ -557,9 +557,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("skuId", self._sku_id); - params.push("userId", self._user_id); + params.push("productId", &self._product_id); + params.push("skuId", &self._sku_id); + params.push("userId", &self._user_id); params.extend(self._additional_params.iter()); @@ -843,9 +843,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("skuId", self._sku_id); - params.push("userId", self._user_id); + params.push("productId", &self._product_id); + params.push("skuId", &self._sku_id); + params.push("userId", &self._user_id); params.extend(self._additional_params.iter()); @@ -1135,8 +1135,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("skuId", self._sku_id); + params.push("productId", &self._product_id); + params.push("skuId", &self._sku_id); params.extend(self._additional_params.iter()); @@ -1436,8 +1436,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("customerId", self._customer_id); + params.push("productId", &self._product_id); + params.push("customerId", &self._customer_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -1735,9 +1735,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("skuId", self._sku_id); - params.push("customerId", self._customer_id); + params.push("productId", &self._product_id); + params.push("skuId", &self._sku_id); + params.push("customerId", &self._customer_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2048,9 +2048,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("skuId", self._sku_id); - params.push("userId", self._user_id); + params.push("productId", &self._product_id); + params.push("skuId", &self._sku_id); + params.push("userId", &self._user_id); params.extend(self._additional_params.iter()); @@ -2364,9 +2364,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("productId", self._product_id); - params.push("skuId", self._sku_id); - params.push("userId", self._user_id); + params.push("productId", &self._product_id); + params.push("skuId", &self._sku_id); + params.push("userId", &self._user_id); params.extend(self._additional_params.iter()); diff --git a/gen/licensing1/src/api/mod.rs b/gen/licensing1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/licensing1/src/api/mod.rs +++ b/gen/licensing1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/lifesciences2_beta/src/api/call_builders.rs b/gen/lifesciences2_beta/src/api/call_builders.rs index 6b209c8bc1..b9348d6a3c 100644 --- a/gen/lifesciences2_beta/src/api/call_builders.rs +++ b/gen/lifesciences2_beta/src/api/call_builders.rs @@ -1006,7 +1006,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()); @@ -1291,7 +1291,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()); @@ -1559,7 +1559,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); } @@ -1858,7 +1858,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2143,7 +2143,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()); @@ -2411,7 +2411,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); } diff --git a/gen/lifesciences2_beta/src/api/mod.rs b/gen/lifesciences2_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/lifesciences2_beta/src/api/mod.rs +++ b/gen/lifesciences2_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/localservices1/src/api/mod.rs b/gen/localservices1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/localservices1/src/api/mod.rs +++ b/gen/localservices1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/localservices1/src/api/schemas.rs b/gen/localservices1/src/api/schemas.rs index c6d6744900..ab5dfe850d 100644 --- a/gen/localservices1/src/api/schemas.rs +++ b/gen/localservices1/src/api/schemas.rs @@ -162,7 +162,7 @@ pub struct GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport { /// Whether the lead has been charged. #[serde(rename="chargeStatus")] - pub charge_status: Option, + pub charge_status: Option, /// Currency code. #[serde(rename="currencyCode")] @@ -194,7 +194,7 @@ pub struct GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport { /// Lead type. #[serde(rename="leadType")] - pub lead_type: Option, + pub lead_type: Option, /// More information associated to only message leads. #[serde(rename="messageLead")] diff --git a/gen/logging2/src/api/mod.rs b/gen/logging2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/logging2/src/api/mod.rs +++ b/gen/logging2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/logging2/src/api/schemas.rs b/gen/logging2/src/api/schemas.rs index b47ff5bb02..0e9a9ab08d 100644 --- a/gen/logging2/src/api/schemas.rs +++ b/gen/logging2/src/api/schemas.rs @@ -303,7 +303,7 @@ pub struct IndexConfig { /// Required. The type of data in this index. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for IndexConfig {} @@ -325,7 +325,7 @@ pub struct LabelDescriptor { /// The type of data that can be assigned to the label. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for LabelDescriptor {} @@ -752,7 +752,7 @@ pub struct LogBucket { /// Output only. The bucket lifecycle state. #[serde(rename="lifecycleState")] - pub lifecycle_state: Option, + pub lifecycle_state: Option, /// Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. pub locked: Option, @@ -822,7 +822,7 @@ pub struct LogEntry { pub resource: Option, /// Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT. - pub severity: Option, + pub severity: Option, /// Optional. Source code location information associated with the log entry, if any. #[serde(rename="sourceLocation")] @@ -1005,7 +1005,7 @@ pub struct LogMetric { pub value_extractor: Option, /// Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed. - pub version: Option, + pub version: Option, } impl client::RequestValue for LogMetric {} @@ -1074,7 +1074,7 @@ pub struct LogSink { /// Deprecated. This field is unused. #[serde(rename="outputVersionFormat")] - pub output_version_format: Option, + pub output_version_format: Option, /// Output only. The last update timestamp of the sink.This field may not be present for older sinks. #[serde(rename="updateTime")] @@ -1179,14 +1179,14 @@ pub struct MetricDescriptor { /// Optional. The launch stage of the metric definition. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Optional. Metadata which can be used to guide usage of the metric. pub metadata: Option, /// Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported. #[serde(rename="metricKind")] - pub metric_kind: Option, + pub metric_kind: Option, /// Read-only. If present, then a time series, which is identified partially by a metric type and a MonitoredResourceDescriptor, that is associated with this metric type can only be associated with one of the monitored resource types listed here. #[serde(rename="monitoredResourceTypes")] @@ -1204,7 +1204,7 @@ pub struct MetricDescriptor { /// Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for MetricDescriptor {} @@ -1225,7 +1225,7 @@ pub struct MetricDescriptorMetadata { /// Deprecated. Must use the MetricDescriptor.launch_stage instead. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period. #[serde(rename="samplePeriod")] @@ -1279,7 +1279,7 @@ pub struct MonitoredResourceDescriptor { /// Optional. The launch stage of the monitored resource definition. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Optional. The resource name of the monitored resource descriptor: "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format "monitoredResourceDescriptors/{type}". pub name: Option, @@ -1421,7 +1421,7 @@ impl client::Part for Status {} pub struct SuppressionInfo { /// The reason that entries were omitted from the session. - pub reason: Option, + pub reason: Option, /// A lower bound on the count of entries omitted due to reason. #[serde(rename="suppressedCount")] diff --git a/gen/logging2_beta1/src/api/call_builders.rs b/gen/logging2_beta1/src/api/call_builders.rs index 8085f98643..16ac9f895f 100644 --- a/gen/logging2_beta1/src/api/call_builders.rs +++ b/gen/logging2_beta1/src/api/call_builders.rs @@ -2309,7 +2309,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2596,7 +2596,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("metricName", self._metric_name); + params.push("metricName", &self._metric_name); params.extend(self._additional_params.iter()); @@ -2860,7 +2860,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("metricName", self._metric_name); + params.push("metricName", &self._metric_name); params.extend(self._additional_params.iter()); @@ -3128,7 +3128,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3419,7 +3419,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("metricName", self._metric_name); + params.push("metricName", &self._metric_name); params.extend(self._additional_params.iter()); @@ -3715,7 +3715,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._unique_writer_identity.as_ref() { params.push("uniqueWriterIdentity", value.to_string()); } @@ -4015,7 +4015,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("sinkName", self._sink_name); + params.push("sinkName", &self._sink_name); params.extend(self._additional_params.iter()); @@ -4282,7 +4282,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("sinkName", self._sink_name); + params.push("sinkName", &self._sink_name); params.extend(self._additional_params.iter()); @@ -4553,7 +4553,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4851,7 +4851,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("sinkName", self._sink_name); + params.push("sinkName", &self._sink_name); if let Some(value) = self._update_mask.as_ref() { params.push("updateMask", value.to_string()); } diff --git a/gen/logging2_beta1/src/api/mod.rs b/gen/logging2_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/logging2_beta1/src/api/mod.rs +++ b/gen/logging2_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/logging2_beta1/src/api/schemas.rs b/gen/logging2_beta1/src/api/schemas.rs index 57f3d56daa..d08e3be122 100644 --- a/gen/logging2_beta1/src/api/schemas.rs +++ b/gen/logging2_beta1/src/api/schemas.rs @@ -170,7 +170,7 @@ pub struct LabelDescriptor { /// The type of data that can be assigned to the label. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for LabelDescriptor {} @@ -385,7 +385,7 @@ pub struct LogEntry { pub resource: Option, /// Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT. - pub severity: Option, + pub severity: Option, /// Optional. Source code location information associated with the log entry, if any. #[serde(rename="sourceLocation")] @@ -509,7 +509,7 @@ pub struct LogMetric { pub value_extractor: Option, /// Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed. - pub version: Option, + pub version: Option, } impl client::RequestValue for LogMetric {} @@ -558,7 +558,7 @@ pub struct LogSink { /// Deprecated. The log entry format to use for this sink's exported log entries. The v2 format is used by default and cannot be changed. #[serde(rename="outputVersionFormat")] - pub output_version_format: Option, + pub output_version_format: Option, /// Output only. The last update timestamp of the sink.This field may not be present for older sinks. #[serde(rename="updateTime")] @@ -596,7 +596,7 @@ pub struct MetricDescriptor { /// Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported. #[serde(rename="metricKind")] - pub metric_kind: Option, + pub metric_kind: Option, /// The resource name of the metric descriptor. pub name: Option, @@ -655,7 +655,7 @@ pub struct MetricDescriptor { /// Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for MetricDescriptor {} @@ -676,7 +676,7 @@ pub struct MetricDescriptorMetadata { /// The launch stage of the metric definition. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period. #[serde(rename="samplePeriod")] diff --git a/gen/managedidentities1/src/api/call_builders.rs b/gen/managedidentities1/src/api/call_builders.rs index b226e86bcd..442ac5f79e 100644 --- a/gen/managedidentities1/src/api/call_builders.rs +++ b/gen/managedidentities1/src/api/call_builders.rs @@ -2205,7 +2205,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._backup_id.as_ref() { params.push("backupId", value); } @@ -2500,7 +2500,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()); @@ -2762,7 +2762,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()); @@ -3026,7 +3026,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()); } @@ -3306,7 +3306,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); } @@ -3617,7 +3617,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3919,7 +3919,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()); @@ -4211,7 +4211,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()); @@ -4496,7 +4496,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()); @@ -4766,7 +4766,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); } @@ -5075,7 +5075,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()); @@ -5661,7 +5661,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._domain_name.as_ref() { params.push("domainName", value); } @@ -5956,7 +5956,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()); @@ -6225,7 +6225,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()); @@ -7393,7 +7393,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("domain", self._domain); + params.push("domain", &self._domain); params.extend(self._additional_params.iter()); @@ -7678,7 +7678,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()); @@ -7942,7 +7942,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()); } @@ -8214,7 +8214,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()); @@ -8484,7 +8484,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); } @@ -8795,7 +8795,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -9097,7 +9097,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()); @@ -9389,7 +9389,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()); @@ -9681,7 +9681,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()); @@ -9973,7 +9973,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()); @@ -10265,7 +10265,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()); @@ -10559,7 +10559,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10861,7 +10861,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()); @@ -11153,7 +11153,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()); @@ -11438,7 +11438,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()); @@ -11700,7 +11700,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()); @@ -11968,7 +11968,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); } @@ -12269,7 +12269,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._peering_id.as_ref() { params.push("peeringId", value); } @@ -12564,7 +12564,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()); @@ -12826,7 +12826,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()); @@ -13090,7 +13090,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()); } @@ -13370,7 +13370,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); } @@ -13681,7 +13681,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -13983,7 +13983,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()); @@ -14275,7 +14275,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()); @@ -14560,7 +14560,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()); @@ -14828,7 +14828,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); } diff --git a/gen/managedidentities1/src/api/mod.rs b/gen/managedidentities1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/managedidentities1/src/api/mod.rs +++ b/gen/managedidentities1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/managedidentities1/src/api/schemas.rs b/gen/managedidentities1/src/api/schemas.rs index c0b41a0f3c..f0c15c4afa 100644 --- a/gen/managedidentities1/src/api/schemas.rs +++ b/gen/managedidentities1/src/api/schemas.rs @@ -43,7 +43,7 @@ pub struct Backup { pub name: Option, /// Output only. The current state of the backup. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current status of this backup, if available. #[serde(rename="statusMessage")] @@ -51,7 +51,7 @@ pub struct Backup { /// Output only. Indicates whether it’s an on-demand backup or scheduled. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. Last update time. #[serde(rename="updateTime")] @@ -193,7 +193,7 @@ pub struct Domain { pub reserved_ip_range: Option, /// Output only. The current state of this domain. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current status of this domain, if available. #[serde(rename="statusMessage")] @@ -308,7 +308,7 @@ pub struct LDAPSSettings { pub name: Option, /// Output only. The current state of this LDAPS settings. - pub state: Option, + pub state: Option, /// Output only. Last update time. #[serde(rename="updateTime")] @@ -583,7 +583,7 @@ pub struct Peering { pub name: Option, /// Output only. The current state of this Peering. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current status of this peering, if available. #[serde(rename="statusMessage")] @@ -752,7 +752,7 @@ pub struct SqlIntegration { pub sql_instance: Option, /// Output only. The current state of the SQL integration. - pub state: Option, + pub state: Option, /// Output only. The time the SQL integration was updated. #[serde(rename="updateTime")] @@ -846,7 +846,7 @@ pub struct Trust { pub selective_authentication: Option, /// Output only. The current state of the trust. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current state of the trust, if available. #[serde(rename="stateDescription")] @@ -862,7 +862,7 @@ pub struct Trust { /// Required. The trust direction, which decides if the current domain is trusted, trusting, or both. #[serde(rename="trustDirection")] - pub trust_direction: Option, + pub trust_direction: Option, /// Required. The trust secret used for the handshake with the target domain. This will not be stored. #[serde(rename="trustHandshakeSecret")] @@ -870,7 +870,7 @@ pub struct Trust { /// Required. The type of trust represented by the trust resource. #[serde(rename="trustType")] - pub trust_type: Option, + pub trust_type: Option, /// Output only. The last update time. #[serde(rename="updateTime")] diff --git a/gen/manager1_beta2/src/api/call_builders.rs b/gen/manager1_beta2/src/api/call_builders.rs index 629bebf76d..4b9411e7b7 100644 --- a/gen/manager1_beta2/src/api/call_builders.rs +++ b/gen/manager1_beta2/src/api/call_builders.rs @@ -1418,9 +1418,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("region", self._region); - params.push("deploymentName", self._deployment_name); + params.push("projectId", &self._project_id); + params.push("region", &self._region); + params.push("deploymentName", &self._deployment_name); params.extend(self._additional_params.iter()); @@ -1686,9 +1686,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("region", self._region); - params.push("deploymentName", self._deployment_name); + params.push("projectId", &self._project_id); + params.push("region", &self._region); + params.push("deploymentName", &self._deployment_name); params.extend(self._additional_params.iter()); @@ -1971,8 +1971,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("region", self._region); + params.push("projectId", &self._project_id); + params.push("region", &self._region); params.extend(self._additional_params.iter()); @@ -2266,8 +2266,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("region", self._region); + params.push("projectId", &self._project_id); + params.push("region", &self._region); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2554,8 +2554,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("templateName", self._template_name); + params.push("projectId", &self._project_id); + params.push("templateName", &self._template_name); params.extend(self._additional_params.iter()); @@ -2811,8 +2811,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("templateName", self._template_name); + params.push("projectId", &self._project_id); + params.push("templateName", &self._template_name); params.extend(self._additional_params.iter()); @@ -3085,7 +3085,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -3369,7 +3369,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/manager1_beta2/src/api/mod.rs b/gen/manager1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/manager1_beta2/src/api/mod.rs +++ b/gen/manager1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/manufacturers1/src/api/mod.rs b/gen/manufacturers1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/manufacturers1/src/api/mod.rs +++ b/gen/manufacturers1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/manufacturers1/src/api/schemas.rs b/gen/manufacturers1/src/api/schemas.rs index a52382ca92..55fcbec232 100644 --- a/gen/manufacturers1/src/api/schemas.rs +++ b/gen/manufacturers1/src/api/schemas.rs @@ -203,7 +203,7 @@ pub struct DestinationStatus { pub destination: Option, /// The status of the destination. - pub status: Option, + pub status: Option, } impl client::Part for DestinationStatus {} @@ -321,11 +321,11 @@ pub struct Image { pub image_url: Option, /// The status of the image. @OutputOnly - pub status: Option, + pub status: Option, /// The type of the image, i.e., crawled or uploaded. @OutputOnly #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Image {} @@ -349,10 +349,10 @@ pub struct Issue { pub destination: Option, /// What needs to happen to resolve the issue. - pub resolution: Option, + pub resolution: Option, /// The severity of the issue. - pub severity: Option, + pub severity: Option, /// The timestamp when this issue appeared. pub timestamp: Option>, diff --git a/gen/memcache1/src/api/call_builders.rs b/gen/memcache1/src/api/call_builders.rs index 492118cf77..32da9ced2c 100644 --- a/gen/memcache1/src/api/call_builders.rs +++ b/gen/memcache1/src/api/call_builders.rs @@ -1145,7 +1145,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()); @@ -1439,7 +1439,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._instance_id.as_ref() { params.push("instanceId", value); } @@ -1734,7 +1734,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()); @@ -1996,7 +1996,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()); @@ -2266,7 +2266,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); } @@ -2577,7 +2577,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2879,7 +2879,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instance", self._instance); + params.push("instance", &self._instance); params.extend(self._additional_params.iter()); @@ -3171,7 +3171,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()); @@ -3755,7 +3755,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()); @@ -4040,7 +4040,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()); @@ -4302,7 +4302,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()); @@ -4570,7 +4570,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); } @@ -4862,7 +4862,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()); @@ -5130,7 +5130,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); } diff --git a/gen/memcache1/src/api/mod.rs b/gen/memcache1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/memcache1/src/api/mod.rs +++ b/gen/memcache1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/memcache1/src/api/schemas.rs b/gen/memcache1/src/api/schemas.rs index 37a6d318a7..84e5570716 100644 --- a/gen/memcache1/src/api/schemas.rs +++ b/gen/memcache1/src/api/schemas.rs @@ -136,7 +136,7 @@ pub struct Instance { /// The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version. #[serde(rename="memcacheVersion")] - pub memcache_version: Option, + pub memcache_version: Option, /// Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. pub name: Option, @@ -153,7 +153,7 @@ pub struct Instance { pub parameters: Option, /// Output only. The state of this Memcached instance. - pub state: Option, + pub state: Option, /// Output only. The time the instance was updated. #[serde(rename="updateTime")] @@ -176,7 +176,7 @@ impl client::ResponseResult for Instance {} pub struct InstanceMessage { /// A code that correspond to one type of user-facing message. - pub code: Option, + pub code: Option, /// Message on memcached instance which will be exposed to users. pub message: Option, @@ -354,7 +354,7 @@ pub struct Node { pub port: Option, /// Output only. Current state of the Memcached node. - pub state: Option, + pub state: Option, /// Output only. Location (GCP Zone) for the Memcached node. pub zone: Option, @@ -434,7 +434,7 @@ pub struct RescheduleMaintenanceRequest { /// Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. #[serde(rename="rescheduleType")] - pub reschedule_type: Option, + pub reschedule_type: Option, /// Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="scheduleTime")] @@ -521,7 +521,7 @@ impl client::RequestValue for UpdateParametersRequest {} pub struct WeeklyMaintenanceWindow { /// Required. Allows to define schedule that runs specified day of the week. - pub day: Option, + pub day: Option, /// Required. Duration of the time window. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] diff --git a/gen/memcache1_beta2/src/api/call_builders.rs b/gen/memcache1_beta2/src/api/call_builders.rs index b195637b21..c1f8733fc9 100644 --- a/gen/memcache1_beta2/src/api/call_builders.rs +++ b/gen/memcache1_beta2/src/api/call_builders.rs @@ -1197,7 +1197,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()); @@ -1489,7 +1489,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instance", self._instance); + params.push("instance", &self._instance); params.extend(self._additional_params.iter()); @@ -1783,7 +1783,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._instance_id.as_ref() { params.push("instanceId", value); } @@ -2078,7 +2078,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()); @@ -2340,7 +2340,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()); @@ -2610,7 +2610,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); } @@ -2921,7 +2921,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3223,7 +3223,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instance", self._instance); + params.push("instance", &self._instance); params.extend(self._additional_params.iter()); @@ -3515,7 +3515,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()); @@ -4099,7 +4099,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()); @@ -4384,7 +4384,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()); @@ -4646,7 +4646,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()); @@ -4914,7 +4914,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); } @@ -5206,7 +5206,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()); @@ -5474,7 +5474,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); } diff --git a/gen/memcache1_beta2/src/api/mod.rs b/gen/memcache1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/memcache1_beta2/src/api/mod.rs +++ b/gen/memcache1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/memcache1_beta2/src/api/schemas.rs b/gen/memcache1_beta2/src/api/schemas.rs index 2cdcc5f777..e876cc59c1 100644 --- a/gen/memcache1_beta2/src/api/schemas.rs +++ b/gen/memcache1_beta2/src/api/schemas.rs @@ -160,7 +160,7 @@ pub struct Instance { /// The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version. #[serde(rename="memcacheVersion")] - pub memcache_version: Option, + pub memcache_version: Option, /// Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. pub name: Option, @@ -177,7 +177,7 @@ pub struct Instance { pub parameters: Option, /// Output only. The state of this Memcached instance. - pub state: Option, + pub state: Option, /// Output only. Returns true if there is an update waiting to be applied #[serde(rename="updateAvailable")] @@ -204,7 +204,7 @@ impl client::ResponseResult for Instance {} pub struct InstanceMessage { /// A code that correspond to one type of user-facing message. - pub code: Option, + pub code: Option, /// Message on memcached instance which will be exposed to users. pub message: Option, @@ -382,7 +382,7 @@ pub struct Node { pub port: Option, /// Output only. Current state of the Memcached node. - pub state: Option, + pub state: Option, /// Output only. Returns true if there is an update waiting to be applied #[serde(rename="updateAvailable")] @@ -467,7 +467,7 @@ pub struct RescheduleMaintenanceRequest { /// Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. #[serde(rename="rescheduleType")] - pub reschedule_type: Option, + pub reschedule_type: Option, /// Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="scheduleTime")] @@ -554,7 +554,7 @@ impl client::RequestValue for UpdateParametersRequest {} pub struct WeeklyMaintenanceWindow { /// Required. Allows to define schedule that runs specified day of the week. - pub day: Option, + pub day: Option, /// Required. Duration of the time window. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] diff --git a/gen/metastore1_beta/src/api/call_builders.rs b/gen/metastore1_beta/src/api/call_builders.rs index 499bf001f4..9dd674c646 100644 --- a/gen/metastore1_beta/src/api/call_builders.rs +++ b/gen/metastore1_beta/src/api/call_builders.rs @@ -2582,7 +2582,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); } @@ -2889,7 +2889,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); } @@ -3161,7 +3161,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()); @@ -3425,7 +3425,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()); } @@ -3705,7 +3705,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); } @@ -4018,7 +4018,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()); } @@ -4330,7 +4330,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()); @@ -4622,7 +4622,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()); @@ -5199,7 +5199,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()); @@ -5461,7 +5461,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()); @@ -5729,7 +5729,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); } @@ -6032,7 +6032,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); } @@ -6339,7 +6339,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); } @@ -6611,7 +6611,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()); @@ -6875,7 +6875,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()); } @@ -7155,7 +7155,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); } @@ -7464,7 +7464,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()); @@ -7756,7 +7756,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()); @@ -8043,7 +8043,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()); } @@ -8322,7 +8322,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()); @@ -8614,7 +8614,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()); @@ -8901,7 +8901,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()); } @@ -9180,7 +9180,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()); @@ -9472,7 +9472,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()); @@ -9768,7 +9768,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); } @@ -10073,7 +10073,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()); @@ -10343,7 +10343,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); } @@ -10656,7 +10656,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()); } @@ -11242,7 +11242,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("service", self._service); + params.push("service", &self._service); params.extend(self._additional_params.iter()); @@ -11830,7 +11830,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._service_id.as_ref() { params.push("serviceId", value); } @@ -12137,7 +12137,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); } @@ -12416,7 +12416,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("service", self._service); + params.push("service", &self._service); params.extend(self._additional_params.iter()); @@ -12701,7 +12701,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()); @@ -12965,7 +12965,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()); } @@ -13245,7 +13245,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); } @@ -13554,7 +13554,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("service", self._service); + params.push("service", &self._service); params.extend(self._additional_params.iter()); @@ -13850,7 +13850,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()); } @@ -14162,7 +14162,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("service", self._service); + params.push("service", &self._service); params.extend(self._additional_params.iter()); @@ -14454,7 +14454,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()); @@ -14746,7 +14746,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("service", self._service); + params.push("service", &self._service); params.extend(self._additional_params.iter()); @@ -15038,7 +15038,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()); @@ -15330,7 +15330,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()); @@ -15615,7 +15615,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()); @@ -15883,7 +15883,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); } diff --git a/gen/metastore1_beta/src/api/mod.rs b/gen/metastore1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/metastore1_beta/src/api/mod.rs +++ b/gen/metastore1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/metastore1_beta/src/api/schemas.rs b/gen/metastore1_beta/src/api/schemas.rs index 3a7ba3388d..5cd9e7df8d 100644 --- a/gen/metastore1_beta/src/api/schemas.rs +++ b/gen/metastore1_beta/src/api/schemas.rs @@ -56,7 +56,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -95,7 +95,7 @@ pub struct BackendMetastore { /// The type of the backend metastore. #[serde(rename="metastoreType")] - pub metastore_type: Option, + pub metastore_type: Option, /// The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} pub name: Option, @@ -140,7 +140,7 @@ pub struct Backup { pub service_revision: Option, /// Output only. The current state of the backup. - pub state: Option, + pub state: Option, } impl client::RequestValue for Backup {} @@ -212,7 +212,7 @@ pub struct DatabaseDump { /// The type of the database. #[serde(rename="databaseType")] - pub database_type: Option, + pub database_type: Option, /// A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://. #[serde(rename="gcsUri")] @@ -224,7 +224,7 @@ pub struct DatabaseDump { /// Optional. The type of the database dump. If unspecified, defaults to MYSQL. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DatabaseDump {} @@ -291,7 +291,7 @@ pub struct ExportMetadataRequest { /// Optional. The type of the database dump. If unspecified, defaults to MYSQL. #[serde(rename="databaseDumpType")] - pub database_dump_type: Option, + pub database_dump_type: Option, /// A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing exported files will be created below it. #[serde(rename="destinationGcsFolder")] @@ -362,7 +362,7 @@ pub struct Federation { pub name: Option, /// Output only. The current state of the federation. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current state of the metastore federation, if available. #[serde(rename="stateMessage")] @@ -401,7 +401,7 @@ pub struct HiveMetastoreConfig { /// The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT. #[serde(rename="endpointProtocol")] - pub endpoint_protocol: Option, + pub endpoint_protocol: Option, /// Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field's path (hive_metastore_config.kerberos_config) in the request's update_mask while omitting this field from the request's service. #[serde(rename="kerberosConfig")] @@ -645,7 +645,7 @@ pub struct MaintenanceWindow { /// The day of week, when the window starts. #[serde(rename="dayOfWeek")] - pub day_of_week: Option, + pub day_of_week: Option, /// The hour of day (0-23) when the window starts. #[serde(rename="hourOfDay")] @@ -665,7 +665,7 @@ pub struct MetadataExport { /// Output only. The type of the database dump. #[serde(rename="databaseDumpType")] - pub database_dump_type: Option, + pub database_dump_type: Option, /// Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated. #[serde(rename="destinationGcsUri")] @@ -680,7 +680,7 @@ pub struct MetadataExport { pub start_time: Option>, /// Output only. The current state of the export. - pub state: Option, + pub state: Option, } impl client::Part for MetadataExport {} @@ -719,7 +719,7 @@ pub struct MetadataImport { pub name: Option, /// Output only. The current state of the metadata import. - pub state: Option, + pub state: Option, /// Output only. The time when the metadata import was last updated. #[serde(rename="updateTime")] @@ -977,11 +977,11 @@ pub struct Restore { pub start_time: Option>, /// Output only. The current state of the restore. - pub state: Option, + pub state: Option, /// Output only. The type of restore. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Restore {} @@ -1008,7 +1008,7 @@ pub struct RestoreServiceRequest { /// Optional. The type of restore. If unspecified, defaults to METADATA_ONLY. #[serde(rename="restoreType")] - pub restore_type: Option, + pub restore_type: Option, } impl client::RequestValue for RestoreServiceRequest {} @@ -1054,7 +1054,7 @@ pub struct Service { /// Immutable. The database type that the Metastore service stores its data. #[serde(rename="databaseType")] - pub database_type: Option, + pub database_type: Option, /// Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated. #[serde(rename="encryptionConfig")] @@ -1098,10 +1098,10 @@ pub struct Service { /// Immutable. The release channel of the service. If unspecified, defaults to STABLE. #[serde(rename="releaseChannel")] - pub release_channel: Option, + pub release_channel: Option, /// Output only. The current state of the metastore service. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current state of the metastore service, if available. #[serde(rename="stateMessage")] @@ -1112,7 +1112,7 @@ pub struct Service { pub telemetry_config: Option, /// The tier of the service. - pub tier: Option, + pub tier: Option, /// Output only. The globally unique resource identifier of the metastore service. pub uid: Option, @@ -1184,7 +1184,7 @@ pub struct TelemetryConfig { /// The output format of the Dataproc Metastore service's logs. #[serde(rename="logFormat")] - pub log_format: Option, + pub log_format: Option, } impl client::Part for TelemetryConfig {} diff --git a/gen/mirror1/src/api/mod.rs b/gen/mirror1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mirror1/src/api/mod.rs +++ b/gen/mirror1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ml1/src/api/call_builders.rs b/gen/ml1/src/api/call_builders.rs index 240ee8b6ef..bdc0c41a05 100644 --- a/gen/ml1/src/api/call_builders.rs +++ b/gen/ml1/src/api/call_builders.rs @@ -3313,7 +3313,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()); @@ -3605,7 +3605,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3890,7 +3890,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()); @@ -4154,7 +4154,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()); } @@ -4432,7 +4432,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4733,7 +4733,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5035,7 +5035,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()); @@ -5327,7 +5327,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()); @@ -5612,7 +5612,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()); @@ -5874,7 +5874,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()); @@ -6143,7 +6143,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()); @@ -6435,7 +6435,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()); @@ -6727,7 +6727,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()); @@ -7019,7 +7019,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7304,7 +7304,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()); @@ -7566,7 +7566,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()); @@ -7828,7 +7828,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8097,7 +8097,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8389,7 +8389,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()); @@ -8681,7 +8681,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8975,7 +8975,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._study_id.as_ref() { params.push("studyId", value); } @@ -9270,7 +9270,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()); @@ -9532,7 +9532,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()); @@ -9794,7 +9794,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10056,7 +10056,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()); @@ -10322,7 +10322,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -10611,7 +10611,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10896,7 +10896,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()); @@ -11158,7 +11158,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()); @@ -11426,7 +11426,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._page_token.as_ref() { params.push("pageToken", value); } @@ -11727,7 +11727,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12029,7 +12029,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()); @@ -12321,7 +12321,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -12606,7 +12606,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()); @@ -12868,7 +12868,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()); @@ -13132,7 +13132,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()); } @@ -13410,7 +13410,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._page_token.as_ref() { params.push("pageToken", value); } @@ -13711,7 +13711,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -14013,7 +14013,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()); @@ -14305,7 +14305,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()); @@ -14590,7 +14590,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()); @@ -14852,7 +14852,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()); @@ -15120,7 +15120,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); } @@ -15419,7 +15419,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()); @@ -15704,7 +15704,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()); @@ -15973,7 +15973,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()); diff --git a/gen/ml1/src/api/mod.rs b/gen/ml1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/ml1/src/api/mod.rs +++ b/gen/ml1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ml1/src/api/schemas.rs b/gen/ml1/src/api/schemas.rs index 698a233308..fdc0d6855b 100644 --- a/gen/ml1/src/api/schemas.rs +++ b/gen/ml1/src/api/schemas.rs @@ -225,7 +225,7 @@ impl client::Part for GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentInt pub struct GoogleCloudMlV1_StudyConfig_MetricSpec { /// Required. The optimization goal of the metric. - pub goal: Option, + pub goal: Option, /// Required. The name of the metric. pub metric: Option, @@ -279,11 +279,11 @@ pub struct GoogleCloudMlV1_StudyConfig_ParameterSpec { /// How the parameter should be scaled. Leave unset for categorical parameters. #[serde(rename="scaleType")] - pub scale_type: Option, + pub scale_type: Option, /// Required. The type of the parameter. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudMlV1_StudyConfig_ParameterSpec {} @@ -330,7 +330,7 @@ pub struct GoogleCloudMlV1__AcceleratorConfig { /// The type of accelerator to use. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudMlV1__AcceleratorConfig {} @@ -450,11 +450,11 @@ pub struct GoogleCloudMlV1__Capability { /// Available accelerators for the capability. #[serde(rename="availableAccelerators")] - pub available_accelerators: Option>, + pub available_accelerators: Option>, /// no description provided #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudMlV1__Capability {} @@ -723,7 +723,7 @@ pub struct GoogleCloudMlV1__HyperparameterOutput { pub start_time: Option>, /// Output only. The detailed state of the trial. - pub state: Option, + pub state: Option, /// The trial id for these results. #[serde(rename="trialId")] @@ -746,14 +746,14 @@ impl client::Part for GoogleCloudMlV1__HyperparameterOutput {} pub struct GoogleCloudMlV1__HyperparameterSpec { /// Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified. - pub algorithm: Option, + pub algorithm: Option, /// Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping. #[serde(rename="enableTrialEarlyStopping")] pub enable_trial_early_stopping: Option, /// Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`. - pub goal: Option, + pub goal: Option, /// Optional. The TensorFlow summary tag name to use for optimizing trials. For current versions of TensorFlow, this tag name should exactly match what is shown in TensorBoard, including all scopes. For versions of TensorFlow prior to 0.12, this should be only the tag passed to tf.Summary. By default, "training/hptuning/metric" will be used. #[serde(rename="hyperparameterMetricTag")] @@ -853,7 +853,7 @@ pub struct GoogleCloudMlV1__Job { pub start_time: Option>, /// Output only. The detailed state of a job. - pub state: Option, + pub state: Option, /// Input parameters to create a training job. #[serde(rename="trainingInput")] @@ -1103,7 +1103,7 @@ impl client::Part for GoogleCloudMlV1__Measurement {} pub struct GoogleCloudMlV1__MetricSpec { /// metric name. - pub name: Option, + pub name: Option, /// Target specifies the target value for the given metric; once real metric deviates from the threshold by a certain percentage, the node count changes. pub target: Option, @@ -1189,11 +1189,11 @@ pub struct GoogleCloudMlV1__ParameterSpec { /// Optional. How the parameter should be scaled to the hypercube. Leave unset for categorical parameters. Some kind of scaling is strongly recommended for real or integral parameters (e.g., `UNIT_LINEAR_SCALE`). #[serde(rename="scaleType")] - pub scale_type: Option, + pub scale_type: Option, /// Required. The type of the parameter. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudMlV1__ParameterSpec {} @@ -1234,7 +1234,7 @@ pub struct GoogleCloudMlV1__PredictionInput { /// Required. The format of the input data files. #[serde(rename="dataFormat")] - pub data_format: Option, + pub data_format: Option, /// Required. The Cloud Storage location of the input data files. May contain wildcards. #[serde(rename="inputPaths")] @@ -1251,7 +1251,7 @@ pub struct GoogleCloudMlV1__PredictionInput { /// Optional. Format of the output data files, defaults to JSON. #[serde(rename="outputDataFormat")] - pub output_data_format: Option, + pub output_data_format: Option, /// Required. The output Google Cloud Storage location. #[serde(rename="outputPath")] @@ -1477,7 +1477,7 @@ pub struct GoogleCloudMlV1__Study { pub name: Option, /// Output only. The detailed state of a study. - pub state: Option, + pub state: Option, /// Required. Configuration of the study. #[serde(rename="studyConfig")] @@ -1497,7 +1497,7 @@ impl client::ResponseResult for GoogleCloudMlV1__Study {} pub struct GoogleCloudMlV1__StudyConfig { /// The search algorithm specified for the study. - pub algorithm: Option, + pub algorithm: Option, /// Configuration for automated stopping of unpromising Trials. #[serde(rename="automatedStoppingConfig")] @@ -1620,7 +1620,7 @@ pub struct GoogleCloudMlV1__TrainingInput { /// Required. Specifies the machine types, the number of replicas for workers and parameter servers. #[serde(rename="scaleTier")] - pub scale_tier: Option, + pub scale_tier: Option, /// Optional. Scheduling options for a training job. pub scheduling: Option, @@ -1740,7 +1740,7 @@ pub struct GoogleCloudMlV1__Trial { pub start_time: Option>, /// The detailed state of a trial. - pub state: Option, + pub state: Option, /// Output only. If true, the parameters in this trial are not attempted again. #[serde(rename="trialInfeasible")] @@ -1801,7 +1801,7 @@ pub struct GoogleCloudMlV1__Version { pub explanation_config: Option, /// Optional. The machine learning framework AI Platform uses to train this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, `XGBOOST`. If you do not specify a framework, AI Platform will analyze files in the deployment_uri to determine a framework. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the model to 1.4 or greater. Do **not** specify a framework if you’re deploying a [custom prediction routine](https://cloud.google.com/ai-platform/prediction/docs/custom-prediction-routines) or if you’re using a [custom container](https://cloud.google.com/ai-platform/prediction/docs/use-custom-container). - pub framework: Option, + pub framework: Option, /// Output only. If true, this version will be used to handle prediction requests that do not specify a version. You can change the default version by calling projects.methods.versions.setDefault. #[serde(rename="isDefault")] @@ -1861,7 +1861,7 @@ pub struct GoogleCloudMlV1__Version { pub service_account: Option, /// Output only. The state of a version. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudMlV1__Version {} @@ -1917,7 +1917,7 @@ pub struct GoogleIamV1__AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1__AuditLogConfig {} diff --git a/gen/monitoring3/README.md b/gen/monitoring3/README.md index 6054ace2c8..c9395efaf3 100644 --- a/gen/monitoring3/README.md +++ b/gen/monitoring3/README.md @@ -112,10 +112,10 @@ let mut hub = Monitoring::new(hyper::Client::builder().build(hyper_rustls::Https // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.services().service_level_objectives_list("parent") - .view("magna") - .page_token("no") - .page_size(-55) - .filter("voluptua.") + .view(&Default::default()) + .page_token("magna") + .page_size(-11) + .filter("ipsum") .doit().await; match result { diff --git a/gen/monitoring3/src/api/hub.rs b/gen/monitoring3/src/api/hub.rs index 05a0b918c5..82b090d6f3 100644 --- a/gen/monitoring3/src/api/hub.rs +++ b/gen/monitoring3/src/api/hub.rs @@ -32,10 +32,10 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.services().service_level_objectives_list("parent") -/// .view("duo") -/// .page_token("ipsum") -/// .page_size(-62) -/// .filter("Lorem") +/// .view(&Default::default()) +/// .page_token("takimata") +/// .page_size(-52) +/// .filter("duo") /// .doit().await; /// /// match result { diff --git a/gen/monitoring3/src/api/mod.rs b/gen/monitoring3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/monitoring3/src/api/mod.rs +++ b/gen/monitoring3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/monitoring3/src/api/schemas.rs b/gen/monitoring3/src/api/schemas.rs index 7d12a14c61..117f0ebb48 100644 --- a/gen/monitoring3/src/api/schemas.rs +++ b/gen/monitoring3/src/api/schemas.rs @@ -14,7 +14,7 @@ pub struct Aggregation { /// The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned. #[serde(rename="crossSeriesReducer")] - pub cross_series_reducer: Option, + pub cross_series_reducer: Option, /// The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored. #[serde(rename="groupByFields")] @@ -22,7 +22,7 @@ pub struct Aggregation { /// An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned. #[serde(rename="perSeriesAligner")] - pub per_series_aligner: Option, + pub per_series_aligner: Option, } impl client::Part for Aggregation {} @@ -47,7 +47,7 @@ pub struct AlertPolicy { pub alert_strategy: Option, /// How to combine the results of multiple conditions to determine if an incident should be opened. If condition_time_series_query_language is present, this must be COMBINE_UNSPECIFIED. - pub combiner: Option, + pub combiner: Option, /// A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If condition_time_series_query_language is present, it must be the only condition. pub conditions: Option>, @@ -364,7 +364,7 @@ pub struct CollectdValue { /// The type of measurement. #[serde(rename="dataSourceType")] - pub data_source_type: Option, + pub data_source_type: Option, /// The measurement value. pub value: Option, @@ -442,7 +442,7 @@ pub struct ContentMatcher { pub json_path_matcher: Option, /// The type of content matcher that will be applied to the server output, compared to the content string when the check is run. - pub matcher: Option, + pub matcher: Option, } impl client::Part for ContentMatcher {} @@ -976,7 +976,7 @@ pub struct HttpCheck { /// The content type header to use for the check. The following configurations result in errors: 1. Content type is specified in both the headers field and the content_type field. 2. Request method is GET and content_type is not TYPE_UNSPECIFIED 3. Request method is POST and content_type is TYPE_UNSPECIFIED. 4. Request method is POST and a "Content-Type" header is provided via headers field. The content_type field should be used instead. #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// The list of headers to send as part of the Uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100. pub headers: Option>, @@ -997,7 +997,7 @@ pub struct HttpCheck { /// The HTTP request method to use for the check. If set to METHOD_UNSPECIFIED then request_method defaults to GET. #[serde(rename="requestMethod")] - pub request_method: Option, + pub request_method: Option, /// If true, use HTTPS instead of HTTP to run the check. #[serde(rename="useSsl")] @@ -1038,7 +1038,7 @@ pub struct InternalChecker { pub peer_project_id: Option, /// The current operational state of the internal checker. - pub state: Option, + pub state: Option, } impl client::Part for InternalChecker {} @@ -1078,7 +1078,7 @@ pub struct JsonPathMatcher { /// The type of JSONPath match that will be applied to the JSON output (ContentMatcher.content) #[serde(rename="jsonMatcher")] - pub json_matcher: Option, + pub json_matcher: Option, /// JSONPath within the response output pointing to the expected ContentMatcher::content to match against. #[serde(rename="jsonPath")] @@ -1104,7 +1104,7 @@ pub struct LabelDescriptor { /// The type of data that can be assigned to the label. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for LabelDescriptor {} @@ -1618,14 +1618,14 @@ pub struct MetricDescriptor { /// Optional. The launch stage of the metric definition. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Optional. Metadata which can be used to guide usage of the metric. pub metadata: Option, /// Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported. #[serde(rename="metricKind")] - pub metric_kind: Option, + pub metric_kind: Option, /// Read-only. If present, then a time series, which is identified partially by a metric type and a MonitoredResourceDescriptor, that is associated with this metric type can only be associated with one of the monitored resource types listed here. #[serde(rename="monitoredResourceTypes")] @@ -1643,7 +1643,7 @@ pub struct MetricDescriptor { /// Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::RequestValue for MetricDescriptor {} @@ -1665,7 +1665,7 @@ pub struct MetricDescriptorMetadata { /// Deprecated. Must use the MetricDescriptor.launch_stage instead. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period. #[serde(rename="samplePeriod")] @@ -1707,7 +1707,7 @@ pub struct MetricThreshold { pub aggregations: Option>, /// The comparison to apply between the time series (indicated by filter and aggregation) and the threshold (indicated by threshold_value). The comparison is applied on each time series, with the time series on the left-hand side and the threshold on the right-hand side.Only COMPARISON_LT and COMPARISON_GT are supported currently. - pub comparison: Option, + pub comparison: Option, /// Specifies the alignment of data points in individual time series selected by denominatorFilter as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources).When computing ratios, the aggregations and denominator_aggregations fields must use the same alignment period and produce time series that have the same periodicity and labels. #[serde(rename="denominatorAggregations")] @@ -1723,7 +1723,7 @@ pub struct MetricThreshold { /// A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. #[serde(rename="evaluationMissingData")] - pub evaluation_missing_data: Option, + pub evaluation_missing_data: Option, /// Required. A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies which time series should be compared with the threshold.The filter is similar to the one that is specified in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call is useful to verify the time series that will be retrieved / processed). The filter must specify the metric type and the resource type. Optionally, it can specify resource labels and metric labels. This field must not exceed 2048 Unicode characters in length. pub filter: Option, @@ -1786,7 +1786,7 @@ pub struct MonitoredResourceDescriptor { /// Optional. The launch stage of the monitored resource definition. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Optional. The resource name of the monitored resource descriptor: "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format "monitoredResourceDescriptors/{type}". pub name: Option, @@ -1833,7 +1833,7 @@ pub struct MonitoringQueryLanguageCondition { /// A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. #[serde(rename="evaluationMissingData")] - pub evaluation_missing_data: Option, + pub evaluation_missing_data: Option, /// Monitoring Query Language (https://cloud.google.com/monitoring/mql) query that outputs a boolean stream. pub query: Option, @@ -1914,7 +1914,7 @@ pub struct NotificationChannel { /// Indicates whether this channel has been verified or not. On a ListNotificationChannels or GetNotificationChannel operation, this field is expected to be populated.If the value is UNVERIFIED, then it indicates that the channel is non-functioning (it both requires verification and lacks verification); otherwise, it is assumed that the channel works.If the channel is neither VERIFIED nor UNVERIFIED, it implies that the channel is of a type that does not require verification or that this specific channel has been exempted from verification because it was created prior to verification being required for channels of this type.This field cannot be modified using a standard UpdateNotificationChannel operation. To change the value of this field, you must call VerifyNotificationChannel. #[serde(rename="verificationStatus")] - pub verification_status: Option, + pub verification_status: Option, } impl client::RequestValue for NotificationChannel {} @@ -1945,14 +1945,14 @@ pub struct NotificationChannelDescriptor { /// The product launch stage for channels of this type. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The full REST resource name for this descriptor. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE] In the above, [TYPE] is the value of the type field. pub name: Option, /// The tiers that support this notification channel; the project service tier must be one of the supported_tiers. #[serde(rename="supportedTiers")] - pub supported_tiers: Option>, + pub supported_tiers: Option>, /// The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors (https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique. #[serde(rename="type")] @@ -2164,7 +2164,7 @@ pub struct ResourceGroup { /// The resource type of the group members. #[serde(rename="resourceType")] - pub resource_type: Option, + pub resource_type: Option, } impl client::Part for ResourceGroup {} @@ -2180,7 +2180,7 @@ pub struct ResponseStatusCode { /// A class of status codes to accept. #[serde(rename="statusClass")] - pub status_class: Option, + pub status_class: Option, /// A status code to accept. #[serde(rename="statusValue")] @@ -2329,7 +2329,7 @@ pub struct ServiceLevelObjective { /// A calendar period, semantically "since the start of the current ". At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported. #[serde(rename="calendarPeriod")] - pub calendar_period: Option, + pub calendar_period: Option, /// Name used for UI elements listing this SLO. #[serde(rename="displayName")] @@ -2483,7 +2483,7 @@ pub struct TimeSeries { /// The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either GAUGE (the default) or CUMULATIVE. #[serde(rename="metricKind")] - pub metric_kind: Option, + pub metric_kind: Option, /// The data points of this time series. When listing time series, points are returned in reverse time order.When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION. pub points: Option>, @@ -2496,7 +2496,7 @@ pub struct TimeSeries { /// The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the type of the data in the points field. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for TimeSeries {} @@ -2633,7 +2633,7 @@ pub struct UptimeCheckConfig { /// The type of checkers to use to execute the Uptime check. #[serde(rename="checkerType")] - pub checker_type: Option, + pub checker_type: Option, /// The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check. #[serde(rename="contentMatchers")] @@ -2672,7 +2672,7 @@ pub struct UptimeCheckConfig { /// The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions. #[serde(rename="selectedRegions")] - pub selected_regions: Option>, + pub selected_regions: Option>, /// Contains information needed to make a TCP check. #[serde(rename="tcpCheck")] @@ -2711,7 +2711,7 @@ pub struct UptimeCheckIp { pub location: Option, /// A broad region category in which the IP address is located. - pub region: Option, + pub region: Option, } impl client::Resource for UptimeCheckIp {} @@ -2730,14 +2730,14 @@ pub struct ValueDescriptor { /// The value stream kind. #[serde(rename="metricKind")] - pub metric_kind: Option, + pub metric_kind: Option, /// The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION. pub unit: Option, /// The value type. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for ValueDescriptor {} diff --git a/gen/monitoring3/src/lib.rs b/gen/monitoring3/src/lib.rs index 23a1d987fb..ae6cbbade5 100644 --- a/gen/monitoring3/src/lib.rs +++ b/gen/monitoring3/src/lib.rs @@ -113,10 +113,10 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.services().service_level_objectives_list("parent") -//! .view("sanctus") -//! .page_token("sed") -//! .page_size(-2) -//! .filter("takimata") +//! .view(&Default::default()) +//! .page_token("At") +//! .page_size(-8) +//! .filter("sed") //! .doit().await; //! //! match result { diff --git a/gen/mybusiness4/src/api/mod.rs b/gen/mybusiness4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusiness4/src/api/mod.rs +++ b/gen/mybusiness4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusiness4/src/api/schemas.rs b/gen/mybusiness4/src/api/schemas.rs index b4b4fa453a..5ccb20b990 100644 --- a/gen/mybusiness4/src/api/schemas.rs +++ b/gen/mybusiness4/src/api/schemas.rs @@ -112,11 +112,11 @@ pub struct Account { /// Output only. Specifies the PermissionLevel the caller has for this account. #[serde(rename="permissionLevel")] - pub permission_level: Option, + pub permission_level: Option, /// Output only. Specifies the AccountRole /// the caller has for this account. - pub role: Option, + pub role: Option, /// Output only. Indicates the AccountState of this account. pub state: Option, @@ -124,7 +124,7 @@ pub struct Account { /// of this account. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Account {} @@ -144,12 +144,12 @@ pub struct AccountState { /// connected to Google Maps, and have Google+ pages created, without requiring /// moderation. - pub status: Option, + pub status: Option, /// Indicates whether the account is vetted by Google. A vetted account is able /// to verify locations via the VETTED_PARTNER method. #[serde(rename="vettedStatus")] - pub vetted_status: Option, + pub vetted_status: Option, } impl client::Part for AccountState {} @@ -245,7 +245,7 @@ pub struct Admin { /// admin uses with the specified Account /// or Location resource. - pub role: Option, + pub role: Option, } impl client::RequestValue for Admin {} @@ -343,7 +343,7 @@ pub struct Attribute { /// used to determine how to interpret the value. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, /// The values for this attribute. The type of the values supplied must match /// that expected for that attribute; see /// [AttributeValueType](https://developers.google.com/my-business/reference/rest/v4/AttributeValueType). @@ -402,7 +402,7 @@ pub struct AttributeMetadata { /// expected to be of this type. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for AttributeMetadata {} @@ -480,7 +480,7 @@ pub struct Author { /// The type of user the author is. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Author {} @@ -645,7 +645,7 @@ pub struct CallToAction { /// The type of action that will be performed. #[serde(rename="actionType")] - pub action_type: Option, + pub action_type: Option, /// The URL the user will be directed to upon clicking. This field should be /// left unset for Call CTA. @@ -861,7 +861,7 @@ pub struct DimensionalMetricValue { /// The option that requested this dimensional value. #[serde(rename="metricOption")] - pub metric_option: Option, + pub metric_option: Option, /// The dimension for the value. #[serde(rename="timeDimension")] @@ -912,7 +912,7 @@ pub struct DrivingDirectionMetricsRequest { /// Valid values are 7, 30, and 90. #[serde(rename="numDays")] - pub num_days: Option, + pub num_days: Option, } impl client::Part for DrivingDirectionMetricsRequest {} @@ -927,7 +927,7 @@ impl client::Part for DrivingDirectionMetricsRequest {} pub struct Duplicate { /// Indicates whether the user has access to the location it duplicates. - pub access: Option, + pub access: Option, /// The resource name of the location that this duplicates. Only populated /// if the authenticated user has access rights to that location and that /// location is not deleted. @@ -1276,7 +1276,7 @@ pub struct Invitation { pub name: Option, /// The invited role on the account. - pub role: Option, + pub role: Option, /// The sparsely populated account this invitation is for. #[serde(rename="targetAccount")] @@ -1801,7 +1801,7 @@ pub struct LocalPost { /// for posts of topic_type Alert, and behaves as a sub-type of Alerts. #[serde(rename="alertType")] - pub alert_type: Option, + pub alert_type: Option, /// The URL that users are sent to when clicking through the promotion. Ignored /// for topic type `OFFER`. #[serde(rename="callToAction")] @@ -1838,14 +1838,14 @@ pub struct LocalPost { /// Output only. The state of the post, indicating what part of its lifecycle /// it is in. - pub state: Option, + pub state: Option, /// Description/body of the local post. pub summary: Option, /// Required. The topic type of the post: standard, event, offer, or alert. #[serde(rename="topicType")] - pub topic_type: Option, + pub topic_type: Option, /// Output only. Time of the last modification of the post made by the user. #[serde(rename="updateTime")] @@ -2086,7 +2086,7 @@ impl client::ResponseResult for Location {} pub struct LocationAssociation { /// The category that this location photo belongs to. - pub category: Option, + pub category: Option, /// The ID of a price list item that this location photo is associated /// with. #[serde(rename="priceListItemId")] @@ -2393,7 +2393,7 @@ pub struct MediaItem { /// and is read-only on all other requests. Cannot be updated. #[serde(rename="mediaFormat")] - pub media_format: Option, + pub media_format: Option, /// The resource name for this media item. /// `accounts/{account_id}/locations/{location_id}/media/{media_key}` @@ -2491,10 +2491,10 @@ impl client::Part for Metadata {} pub struct MetricRequest { /// The requested metric. - pub metric: Option, + pub metric: Option, /// How the values should appear when returned. - pub options: Option>, + pub options: Option>, } impl client::Part for MetricRequest {} @@ -2513,7 +2513,7 @@ pub struct MetricValue { pub dimensional_values: Option>, /// The metric for which the value applies. - pub metric: Option, + pub metric: Option, /// The total aggregated value for this metric. /// Set for the AGGREGATED_TOTAL option. #[serde(rename="totalValue")] @@ -2575,7 +2575,7 @@ pub struct Notifications { /// use DeleteNotifications. #[serde(rename="notificationTypes")] - pub notification_types: Option>, + pub notification_types: Option>, /// The Google Cloud Pub/Sub topic that will receive notifications when /// locations managed by this account are updated. If unset, no notifications /// will be posted. @@ -2611,7 +2611,7 @@ pub struct OpenInfo { /// Indicates whether or not the Location is currently open for business. /// All locations are open by default, unless updated to be closed. - pub status: Option, + pub status: Option, } impl client::Part for OpenInfo {} @@ -3037,13 +3037,13 @@ pub struct ReportGoogleLocationRequest { /// is with the location itself. #[serde(rename="reportReasonBadLocation")] - pub report_reason_bad_location: Option, + pub report_reason_bad_location: Option, /// The reason for which the user is reporting this location when the issue /// is with the recommendation. This report is useful if the location has /// been recommended to the GMB account. #[serde(rename="reportReasonBadRecommendation")] - pub report_reason_bad_recommendation: Option, + pub report_reason_bad_recommendation: Option, /// Optional. A text entry for elaborating on the reason for which the user is /// reporting this location. The maximum length is 512 characters. #[serde(rename="reportReasonElaboration")] @@ -3200,7 +3200,7 @@ pub struct Review { /// The star rating of the review. #[serde(rename="starRating")] - pub star_rating: Option, + pub star_rating: Option, /// The timestamp for when the review was last modified. #[serde(rename="updateTime")] @@ -3357,7 +3357,7 @@ pub struct Section { /// Optional. Type of the current price list section. Default value is FOOD. #[serde(rename="sectionType")] - pub section_type: Option, + pub section_type: Option, } impl client::Part for Section {} @@ -3375,7 +3375,7 @@ pub struct ServiceAreaBusiness { /// business. #[serde(rename="businessType")] - pub business_type: Option, + pub business_type: Option, /// The area that this business serves defined through a set of places. pub places: Option, @@ -3530,7 +3530,7 @@ pub struct TimeDimension { /// Set for BREAKDOWN_DAY_OF_WEEK option. #[serde(rename="dayOfWeek")] - pub day_of_week: Option, + pub day_of_week: Option, /// The hour of the day (0 to 23) this value corresponds to. /// Set for BREAKDOWN_HOUR_OF_DAY option. #[serde(rename="timeOfDay")] @@ -3617,7 +3617,7 @@ pub struct TimePeriod { /// on. #[serde(rename="closeDay")] - pub close_day: Option, + pub close_day: Option, /// Time in 24hr ISO 8601 extended format (hh:mm). Valid values are /// 00:00-24:00, where 24:00 represents midnight at the end of the specified /// day field. @@ -3628,7 +3628,7 @@ pub struct TimePeriod { /// on. #[serde(rename="openDay")] - pub open_day: Option, + pub open_day: Option, /// Time in 24hr ISO 8601 extended format (hh:mm). Valid values are /// 00:00-24:00, where 24:00 represents midnight at the end of the specified /// day field. @@ -3749,13 +3749,13 @@ pub struct Verification { pub create_time: Option>, /// The method of the verification. - pub method: Option, + pub method: Option, /// Resource name of the verification. pub name: Option, /// The state of the verification. - pub state: Option, + pub state: Option, } impl client::Part for Verification {} @@ -3785,7 +3785,7 @@ pub struct VerificationOption { /// Method to verify the location. #[serde(rename="verificationMethod")] - pub verification_method: Option, + pub verification_method: Option, } impl client::Part for VerificationOption {} @@ -3846,7 +3846,7 @@ pub struct VerifyLocationRequest { pub language_code: Option, /// Verification method. - pub method: Option, + pub method: Option, /// The input for PHONE_CALL/SMS method #[serde(rename="phoneInput")] diff --git a/gen/mybusinessaccountmanagement1/src/api/call_builders.rs b/gen/mybusinessaccountmanagement1/src/api/call_builders.rs index f789916ad1..0f2edfa703 100644 --- a/gen/mybusinessaccountmanagement1/src/api/call_builders.rs +++ b/gen/mybusinessaccountmanagement1/src/api/call_builders.rs @@ -964,7 +964,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1204,7 +1204,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()); @@ -1421,7 +1421,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1647,7 +1647,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -1904,7 +1904,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()); @@ -2151,7 +2151,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()); @@ -2393,7 +2393,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._filter.as_ref() { params.push("filter", value); } @@ -2848,7 +2848,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()); @@ -3322,7 +3322,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -3589,7 +3589,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3829,7 +3829,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()); @@ -4046,7 +4046,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4272,7 +4272,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4529,7 +4529,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()); diff --git a/gen/mybusinessaccountmanagement1/src/api/mod.rs b/gen/mybusinessaccountmanagement1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinessaccountmanagement1/src/api/mod.rs +++ b/gen/mybusinessaccountmanagement1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessaccountmanagement1/src/api/schemas.rs b/gen/mybusinessaccountmanagement1/src/api/schemas.rs index 85fbb135bc..6c9bb062fd 100644 --- a/gen/mybusinessaccountmanagement1/src/api/schemas.rs +++ b/gen/mybusinessaccountmanagement1/src/api/schemas.rs @@ -53,26 +53,26 @@ pub struct Account { /// Output only. Specifies the permission level the user has for this account. #[serde(rename="permissionLevel")] - pub permission_level: Option, + pub permission_level: Option, /// Required. Input only. The resource name of the account which will be the primary owner of the account being created. It should be of the form `accounts/{account_id}`. #[serde(rename="primaryOwner")] pub primary_owner: Option, /// Output only. Specifies the AccountRole of this account. - pub role: Option, + pub role: Option, /// Required. Contains the type of account. Accounts of type PERSONAL and ORGANIZATION cannot be created using this API. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. If verified, future locations that are created are automatically connected to Google Maps, and have Google+ pages created, without requiring moderation. #[serde(rename="verificationState")] - pub verification_state: Option, + pub verification_state: Option, /// Output only. Indicates whether the account is vetted by Google. A vetted account is able to verify locations via the VETTED_PARTNER method. #[serde(rename="vettedState")] - pub vetted_state: Option, + pub vetted_state: Option, } impl client::RequestValue for Account {} @@ -109,7 +109,7 @@ pub struct Admin { pub pending_invitation: Option, /// Required. Specifies the role that this admin uses with the specified Account or Location. - pub role: Option, + pub role: Option, } impl client::RequestValue for Admin {} @@ -162,7 +162,7 @@ pub struct Invitation { pub name: Option, /// Output only. The invited role on the account. - pub role: Option, + pub role: Option, /// The sparsely populated account this invitation is for. #[serde(rename="targetAccount")] @@ -174,7 +174,7 @@ pub struct Invitation { /// Output only. Specifies which target types should appear in the response. #[serde(rename="targetType")] - pub target_type: Option, + pub target_type: Option, } impl client::Part for Invitation {} diff --git a/gen/mybusinessbusinesscalls1/src/api/call_builders.rs b/gen/mybusinessbusinesscalls1/src/api/call_builders.rs index 6e4ceddbcb..ef1c6cf476 100644 --- a/gen/mybusinessbusinesscalls1/src/api/call_builders.rs +++ b/gen/mybusinessbusinesscalls1/src/api/call_builders.rs @@ -496,7 +496,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._page_token.as_ref() { params.push("pageToken", value); } @@ -743,7 +743,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()); @@ -969,7 +969,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/mybusinessbusinesscalls1/src/api/mod.rs b/gen/mybusinessbusinesscalls1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinessbusinesscalls1/src/api/mod.rs +++ b/gen/mybusinessbusinesscalls1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessbusinesscalls1/src/api/schemas.rs b/gen/mybusinessbusinesscalls1/src/api/schemas.rs index 68ea902728..a06222cef5 100644 --- a/gen/mybusinessbusinesscalls1/src/api/schemas.rs +++ b/gen/mybusinessbusinesscalls1/src/api/schemas.rs @@ -49,7 +49,7 @@ pub struct BusinessCallsInsights { /// The metric for which the value applies. #[serde(rename="metricType")] - pub metric_type: Option, + pub metric_type: Option, /// Required. The resource name of the calls insights. Format: locations/{location}/businesscallsinsights pub name: Option, @@ -73,7 +73,7 @@ pub struct BusinessCallsSettings { /// Required. The state of this location's enrollment in Business calls. #[serde(rename="callsState")] - pub calls_state: Option, + pub calls_state: Option, /// Input only. Time when the end user provided consent to the API user to enable business calls. #[serde(rename="consentTime")] @@ -160,7 +160,7 @@ impl client::ResponseResult for ListBusinessCallsInsightsResponse {} pub struct WeekDayMetrics { /// Day of the week. Allowed values are Sunday - Saturday. - pub day: Option, + pub day: Option, /// Total count of missed calls for this hour. #[serde(rename="missedCallsCount")] diff --git a/gen/mybusinessbusinessinformation1/src/api/mod.rs b/gen/mybusinessbusinessinformation1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinessbusinessinformation1/src/api/mod.rs +++ b/gen/mybusinessbusinessinformation1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessbusinessinformation1/src/api/schemas.rs b/gen/mybusinessbusinessinformation1/src/api/schemas.rs index 59f69bcfcc..6499143f10 100644 --- a/gen/mybusinessbusinessinformation1/src/api/schemas.rs +++ b/gen/mybusinessbusinessinformation1/src/api/schemas.rs @@ -60,7 +60,7 @@ pub struct Attribute { /// Output only. The type of value that this attribute contains. This should be used to determine how to interpret the value. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, /// The values for this attribute. The type of the values supplied must match that expected for that attribute. This is a repeated field where multiple attribute values may be provided. Attribute types only support one value. pub values: Option>, @@ -100,7 +100,7 @@ pub struct AttributeMetadata { /// The value type for the attribute. Values set and retrieved should be expected to be of this type. #[serde(rename="valueType")] - pub value_type: Option, + pub value_type: Option, } impl client::Part for AttributeMetadata {} @@ -788,7 +788,7 @@ pub struct OpenInfo { pub opening_date: Option, /// Required. Indicates whether or not the Location is currently open for business. All locations are open by default, unless updated to be closed. - pub status: Option, + pub status: Option, } impl client::Part for OpenInfo {} @@ -954,7 +954,7 @@ pub struct RelevantLocation { /// Required. The type of the relationship. #[serde(rename="relationType")] - pub relation_type: Option, + pub relation_type: Option, } impl client::Part for RelevantLocation {} @@ -1055,7 +1055,7 @@ pub struct ServiceAreaBusiness { /// Required. Indicates the type of the service area business. #[serde(rename="businessType")] - pub business_type: Option, + pub business_type: Option, /// The area that this business serves defined through a set of places. pub places: Option, @@ -1211,7 +1211,7 @@ pub struct TimePeriod { /// Required. Indicates the day of the week this period ends on. #[serde(rename="closeDay")] - pub close_day: Option, + pub close_day: Option, /// Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the specified day field. #[serde(rename="closeTime")] @@ -1219,7 +1219,7 @@ pub struct TimePeriod { /// Required. Indicates the day of the week this period starts on. #[serde(rename="openDay")] - pub open_day: Option, + pub open_day: Option, /// Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the specified day field. #[serde(rename="openTime")] diff --git a/gen/mybusinesslodging1/src/api/call_builders.rs b/gen/mybusinesslodging1/src/api/call_builders.rs index c1498b9f00..ad922cd1fc 100644 --- a/gen/mybusinesslodging1/src/api/call_builders.rs +++ b/gen/mybusinesslodging1/src/api/call_builders.rs @@ -71,7 +71,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._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -300,7 +300,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._read_mask.as_ref() { params.push("readMask", value.to_string()); } @@ -536,7 +536,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/mybusinesslodging1/src/api/mod.rs b/gen/mybusinesslodging1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinesslodging1/src/api/mod.rs +++ b/gen/mybusinesslodging1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessnotifications1/src/api/call_builders.rs b/gen/mybusinessnotifications1/src/api/call_builders.rs index ff1488150e..885859ffdf 100644 --- a/gen/mybusinessnotifications1/src/api/call_builders.rs +++ b/gen/mybusinessnotifications1/src/api/call_builders.rs @@ -329,7 +329,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()); @@ -555,7 +555,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/mybusinessnotifications1/src/api/mod.rs b/gen/mybusinessnotifications1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinessnotifications1/src/api/mod.rs +++ b/gen/mybusinessnotifications1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessnotifications1/src/api/schemas.rs b/gen/mybusinessnotifications1/src/api/schemas.rs index 7543b1630a..63c98c09db 100644 --- a/gen/mybusinessnotifications1/src/api/schemas.rs +++ b/gen/mybusinessnotifications1/src/api/schemas.rs @@ -17,7 +17,7 @@ pub struct NotificationSetting { /// The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notification_types or set the pubsub_topic to an empty string. #[serde(rename="notificationTypes")] - pub notification_types: Option>, + pub notification_types: Option>, /// Optional. The Google Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account mybusiness-api-pubsub@system.gserviceaccount.com must have at least Publish permissions on the Pub/Sub topic. #[serde(rename="pubsubTopic")] diff --git a/gen/mybusinessplaceactions1/src/api/call_builders.rs b/gen/mybusinessplaceactions1/src/api/call_builders.rs index 4dd9105127..ba003bab63 100644 --- a/gen/mybusinessplaceactions1/src/api/call_builders.rs +++ b/gen/mybusinessplaceactions1/src/api/call_builders.rs @@ -551,7 +551,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -791,7 +791,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()); @@ -1008,7 +1008,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()); @@ -1231,7 +1231,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._page_token.as_ref() { params.push("pageToken", value); } @@ -1487,7 +1487,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/mybusinessplaceactions1/src/api/mod.rs b/gen/mybusinessplaceactions1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinessplaceactions1/src/api/mod.rs +++ b/gen/mybusinessplaceactions1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessplaceactions1/src/api/schemas.rs b/gen/mybusinessplaceactions1/src/api/schemas.rs index b74ff4b1a7..2ec1567928 100644 --- a/gen/mybusinessplaceactions1/src/api/schemas.rs +++ b/gen/mybusinessplaceactions1/src/api/schemas.rs @@ -93,11 +93,11 @@ pub struct PlaceActionLink { /// Required. The type of place action that can be performed using this link. #[serde(rename="placeActionType")] - pub place_action_type: Option, + pub place_action_type: Option, /// Output only. Specifies the provider type. #[serde(rename="providerType")] - pub provider_type: Option, + pub provider_type: Option, /// Output only. The time when the place action link was last modified. #[serde(rename="updateTime")] @@ -125,7 +125,7 @@ pub struct PlaceActionTypeMetadata { /// The place action type. #[serde(rename="placeActionType")] - pub place_action_type: Option, + pub place_action_type: Option, } impl client::Part for PlaceActionTypeMetadata {} diff --git a/gen/mybusinessverifications1/src/api/call_builders.rs b/gen/mybusinessverifications1/src/api/call_builders.rs index 31a2a960a6..3c94d01af9 100644 --- a/gen/mybusinessverifications1/src/api/call_builders.rs +++ b/gen/mybusinessverifications1/src/api/call_builders.rs @@ -800,7 +800,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()); @@ -1044,7 +1044,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1288,7 +1288,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("location", self._location); + params.push("location", &self._location); params.extend(self._additional_params.iter()); @@ -1528,7 +1528,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()); @@ -1752,7 +1752,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()); diff --git a/gen/mybusinessverifications1/src/api/mod.rs b/gen/mybusinessverifications1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/mybusinessverifications1/src/api/mod.rs +++ b/gen/mybusinessverifications1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/mybusinessverifications1/src/api/schemas.rs b/gen/mybusinessverifications1/src/api/schemas.rs index 600e1a1b9c..012217b74f 100644 --- a/gen/mybusinessverifications1/src/api/schemas.rs +++ b/gen/mybusinessverifications1/src/api/schemas.rs @@ -69,7 +69,7 @@ pub struct ComplyWithGuidelines { /// The reason why the location is being recommended to comply with guidelines. #[serde(rename="recommendationReason")] - pub recommendation_reason: Option, + pub recommendation_reason: Option, } impl client::Part for ComplyWithGuidelines {} @@ -328,13 +328,13 @@ pub struct Verification { pub create_time: Option>, /// The method of the verification. - pub method: Option, + pub method: Option, /// Resource name of the verification. pub name: Option, /// The state of the verification. - pub state: Option, + pub state: Option, } impl client::Part for Verification {} @@ -362,7 +362,7 @@ pub struct VerificationOption { /// Method to verify the location. #[serde(rename="verificationMethod")] - pub verification_method: Option, + pub verification_method: Option, } impl client::Part for VerificationOption {} @@ -432,7 +432,7 @@ pub struct VerifyLocationRequest { pub mailer_contact: Option, /// Required. Verification method. - pub method: Option, + pub method: Option, /// Optional. The input for PHONE_CALL/SMS method The phone number that should be called or be sent SMS to. It must be one of the phone numbers in the eligible options. #[serde(rename="phoneNumber")] diff --git a/gen/networkconnectivity1/src/api/call_builders.rs b/gen/networkconnectivity1/src/api/call_builders.rs index c538efcd42..3c845f7e14 100644 --- a/gen/networkconnectivity1/src/api/call_builders.rs +++ b/gen/networkconnectivity1/src/api/call_builders.rs @@ -6449,7 +6449,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); } @@ -6756,7 +6756,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); } @@ -7028,7 +7028,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()); @@ -7292,7 +7292,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()); } @@ -7572,7 +7572,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); } @@ -8222,7 +8222,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()); } @@ -8826,7 +8826,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()); @@ -9118,7 +9118,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()); @@ -10257,7 +10257,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()); } @@ -10846,7 +10846,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()); @@ -11138,7 +11138,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()); @@ -11434,7 +11434,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); } @@ -11741,7 +11741,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); } @@ -12013,7 +12013,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()); @@ -12283,7 +12283,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); } @@ -12596,7 +12596,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()); } @@ -12908,7 +12908,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()); @@ -13193,7 +13193,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()); @@ -13455,7 +13455,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()); @@ -13723,7 +13723,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); } @@ -14565,7 +14565,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()); } @@ -15470,7 +15470,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()); @@ -15762,7 +15762,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()); @@ -16913,7 +16913,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()); } @@ -17818,7 +17818,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()); @@ -18110,7 +18110,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()); @@ -19261,7 +19261,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()); } @@ -20166,7 +20166,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()); @@ -20458,7 +20458,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()); @@ -21928,7 +21928,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._spoke_id.as_ref() { params.push("spokeId", value); } @@ -22235,7 +22235,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); } @@ -22507,7 +22507,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()); @@ -22771,7 +22771,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()); } @@ -23051,7 +23051,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); } @@ -23364,7 +23364,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()); } @@ -23676,7 +23676,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()); @@ -23968,7 +23968,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()); @@ -24253,7 +24253,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()); @@ -24521,7 +24521,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); } diff --git a/gen/networkconnectivity1/src/api/mod.rs b/gen/networkconnectivity1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/networkconnectivity1/src/api/mod.rs +++ b/gen/networkconnectivity1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/networkconnectivity1/src/api/schemas.rs b/gen/networkconnectivity1/src/api/schemas.rs index b15a4da686..cae0e0cc4a 100644 --- a/gen/networkconnectivity1/src/api/schemas.rs +++ b/gen/networkconnectivity1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -230,7 +230,7 @@ pub struct Hub { pub routing_vpcs: Option>, /// Output only. The current lifecycle state of this hub. - pub state: Option, + pub state: Option, /// Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id. #[serde(rename="uniqueId")] @@ -280,10 +280,10 @@ pub struct InternalRange { pub network: Option, /// Optional. Types of resources that are allowed to overlap with the current internal range. - pub overlaps: Option>, + pub overlaps: Option>, /// The type of peering set for this internal range. - pub peering: Option, + pub peering: Option, /// An alternate to ip_cidr_range. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. #[serde(rename="prefixLength")] @@ -298,7 +298,7 @@ pub struct InternalRange { pub update_time: Option>, /// The type of usage set for this InternalRange. - pub usage: Option, + pub usage: Option, /// Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty. pub users: Option>, @@ -663,7 +663,7 @@ pub struct Spoke { pub name: Option, /// Output only. The current lifecycle state of this spoke. - pub state: Option, + pub state: Option, /// Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id. #[serde(rename="uniqueId")] diff --git a/gen/networkconnectivity1_alpha1/src/api/call_builders.rs b/gen/networkconnectivity1_alpha1/src/api/call_builders.rs index 6f90881192..699fdf29d5 100644 --- a/gen/networkconnectivity1_alpha1/src/api/call_builders.rs +++ b/gen/networkconnectivity1_alpha1/src/api/call_builders.rs @@ -1499,7 +1499,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); } @@ -1806,7 +1806,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); } @@ -2078,7 +2078,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()); @@ -2342,7 +2342,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()); } @@ -2622,7 +2622,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); } @@ -2935,7 +2935,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()); } @@ -3247,7 +3247,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()); @@ -3539,7 +3539,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()); @@ -3835,7 +3835,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); } @@ -4142,7 +4142,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); } @@ -4414,7 +4414,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()); @@ -4678,7 +4678,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()); } @@ -4958,7 +4958,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); } @@ -5271,7 +5271,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()); } @@ -5583,7 +5583,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()); @@ -5875,7 +5875,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()); @@ -6167,7 +6167,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()); @@ -6452,7 +6452,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()); @@ -6714,7 +6714,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()); @@ -6982,7 +6982,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); } @@ -7285,7 +7285,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._spoke_id.as_ref() { params.push("spokeId", value); } @@ -7592,7 +7592,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); } @@ -7864,7 +7864,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()); @@ -8128,7 +8128,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()); } @@ -8408,7 +8408,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); } @@ -8721,7 +8721,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()); } @@ -9033,7 +9033,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()); @@ -9325,7 +9325,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()); @@ -9610,7 +9610,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()); @@ -9878,7 +9878,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); } diff --git a/gen/networkconnectivity1_alpha1/src/api/mod.rs b/gen/networkconnectivity1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/networkconnectivity1_alpha1/src/api/mod.rs +++ b/gen/networkconnectivity1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/networkconnectivity1_alpha1/src/api/schemas.rs b/gen/networkconnectivity1_alpha1/src/api/schemas.rs index 5b53b1f0c3..4670079da8 100644 --- a/gen/networkconnectivity1_alpha1/src/api/schemas.rs +++ b/gen/networkconnectivity1_alpha1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -229,7 +229,7 @@ pub struct Hub { pub spokes: Option>, /// Output only. The current lifecycle state of this Hub. - pub state: Option, + pub state: Option, /// Output only. Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id. #[serde(rename="uniqueId")] @@ -279,10 +279,10 @@ pub struct InternalRange { pub network: Option, /// Optional. Types of resources that are allowed to overlap with the current internal range. - pub overlaps: Option>, + pub overlaps: Option>, /// The type of peering set for this internal range. - pub peering: Option, + pub peering: Option, /// An alternative to ip_cidr_range. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. #[serde(rename="prefixLength")] @@ -297,7 +297,7 @@ pub struct InternalRange { pub update_time: Option>, /// The type of usage set for this internal range. - pub usage: Option, + pub usage: Option, /// Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range that is referred to. Can be empty. pub users: Option>, @@ -569,7 +569,7 @@ pub struct Spoke { pub name: Option, /// Output only. The current lifecycle state of this Hub. - pub state: Option, + pub state: Option, /// Output only. Google-generated UUID for this resource. This is unique across all Spoke resources. If a Spoke resource is deleted and another with the same name is created, it gets a different unique_id. #[serde(rename="uniqueId")] diff --git a/gen/networkmanagement1/src/api/call_builders.rs b/gen/networkmanagement1/src/api/call_builders.rs index 603531e32a..d19c6b12a1 100644 --- a/gen/networkmanagement1/src/api/call_builders.rs +++ b/gen/networkmanagement1/src/api/call_builders.rs @@ -79,7 +79,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._test_id.as_ref() { params.push("testId", value); } @@ -374,7 +374,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()); @@ -636,7 +636,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()); @@ -900,7 +900,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()); } @@ -1180,7 +1180,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); } @@ -1491,7 +1491,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -1793,7 +1793,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()); @@ -2085,7 +2085,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()); @@ -2377,7 +2377,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()); @@ -2669,7 +2669,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()); @@ -2954,7 +2954,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()); @@ -3216,7 +3216,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()); @@ -3484,7 +3484,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); } @@ -3776,7 +3776,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()); @@ -4044,7 +4044,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); } diff --git a/gen/networkmanagement1/src/api/mod.rs b/gen/networkmanagement1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/networkmanagement1/src/api/mod.rs +++ b/gen/networkmanagement1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/networkmanagement1/src/api/schemas.rs b/gen/networkmanagement1/src/api/schemas.rs index 349f88e3e2..2c27bd617a 100644 --- a/gen/networkmanagement1/src/api/schemas.rs +++ b/gen/networkmanagement1/src/api/schemas.rs @@ -8,7 +8,7 @@ use super::*; pub struct AbortInfo { /// Causes that the analysis is aborted. - pub cause: Option, + pub cause: Option, /// List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause. #[serde(rename="projectsMissingPermission")] @@ -95,7 +95,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -324,7 +324,7 @@ pub struct DeliverInfo { pub resource_uri: Option, /// Target type where the packet is delivered to. - pub target: Option, + pub target: Option, } impl client::Part for DeliverInfo {} @@ -339,7 +339,7 @@ impl client::Part for DeliverInfo {} pub struct DropInfo { /// Cause that the packet is dropped. - pub cause: Option, + pub cause: Option, /// URI of the resource that caused the drop. #[serde(rename="resourceUri")] @@ -405,7 +405,7 @@ pub struct Endpoint { /// Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source. #[serde(rename="networkType")] - pub network_type: Option, + pub network_type: Option, /// The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP. pub port: Option, @@ -501,7 +501,7 @@ pub struct FirewallInfo { /// The firewall rule's type. #[serde(rename="firewallRuleType")] - pub firewall_rule_type: Option, + pub firewall_rule_type: Option, /// The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules. #[serde(rename="networkUri")] @@ -541,7 +541,7 @@ pub struct ForwardInfo { pub resource_uri: Option, /// Target type where this packet is forwarded to. - pub target: Option, + pub target: Option, } impl client::Part for ForwardInfo {} @@ -748,7 +748,7 @@ pub struct LoadBalancerBackend { /// State of the health check firewall configuration. #[serde(rename="healthCheckFirewallState")] - pub health_check_firewall_state: Option, + pub health_check_firewall_state: Option, /// URI of a Compute Engine instance or network endpoint. pub uri: Option, @@ -767,7 +767,7 @@ pub struct LoadBalancerInfo { /// Type of load balancer's backend configuration. #[serde(rename="backendType")] - pub backend_type: Option, + pub backend_type: Option, /// Backend configuration URI. #[serde(rename="backendUri")] @@ -782,7 +782,7 @@ pub struct LoadBalancerInfo { /// Type of the load balancer. #[serde(rename="loadBalancerType")] - pub load_balancer_type: Option, + pub load_balancer_type: Option, } impl client::Part for LoadBalancerInfo {} @@ -922,7 +922,7 @@ pub struct ReachabilityDetails { pub error: Option, /// The overall result of the test's configuration analysis. - pub result: Option, + pub result: Option, /// Result may contain a list of traces if a test has multiple possible paths in the network, such as when destination endpoint is a load balancer with multiple backends. pub traces: Option>, @@ -984,7 +984,7 @@ pub struct RouteInfo { /// Type of next hop. #[serde(rename="nextHopType")] - pub next_hop_type: Option, + pub next_hop_type: Option, /// Priority of the route. pub priority: Option, @@ -994,7 +994,7 @@ pub struct RouteInfo { /// Type of route. #[serde(rename="routeType")] - pub route_type: Option, + pub route_type: Option, /// Source IP address range of the route. Policy based routes only. #[serde(rename="srcIpRange")] @@ -1130,7 +1130,7 @@ pub struct Step { pub route: Option, /// Each step is in one of the pre-defined states. - pub state: Option, + pub state: Option, /// Display information of a VPC connector. #[serde(rename="vpcConnector")] @@ -1290,7 +1290,7 @@ pub struct VpnTunnelInfo { /// Type of the routing policy. #[serde(rename="routingType")] - pub routing_type: Option, + pub routing_type: Option, /// URI of the VPN gateway at local end of the tunnel. #[serde(rename="sourceGateway")] diff --git a/gen/networksecurity1/src/api/call_builders.rs b/gen/networksecurity1/src/api/call_builders.rs index 4474012e38..4cc21c432c 100644 --- a/gen/networksecurity1/src/api/call_builders.rs +++ b/gen/networksecurity1/src/api/call_builders.rs @@ -10220,7 +10220,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._authorization_policy_id.as_ref() { params.push("authorizationPolicyId", value); } @@ -10515,7 +10515,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()); @@ -10777,7 +10777,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()); @@ -11041,7 +11041,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()); } @@ -11317,7 +11317,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -11608,7 +11608,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -11910,7 +11910,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()); @@ -12202,7 +12202,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()); @@ -12496,7 +12496,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._client_tls_policy_id.as_ref() { params.push("clientTlsPolicyId", value); } @@ -12791,7 +12791,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()); @@ -13053,7 +13053,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()); @@ -13317,7 +13317,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()); } @@ -13593,7 +13593,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -13884,7 +13884,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -14186,7 +14186,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()); @@ -14478,7 +14478,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()); @@ -17606,7 +17606,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()); @@ -17891,7 +17891,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()); @@ -18153,7 +18153,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()); @@ -18421,7 +18421,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); } @@ -18722,7 +18722,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._server_tls_policy_id.as_ref() { params.push("serverTlsPolicyId", value); } @@ -19017,7 +19017,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()); @@ -19279,7 +19279,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()); @@ -19543,7 +19543,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()); } @@ -19819,7 +19819,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -20110,7 +20110,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -20412,7 +20412,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()); @@ -20704,7 +20704,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()); @@ -23837,7 +23837,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()); @@ -24105,7 +24105,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); } diff --git a/gen/networksecurity1/src/api/mod.rs b/gen/networksecurity1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/networksecurity1/src/api/mod.rs +++ b/gen/networksecurity1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/networksecurity1/src/api/schemas.rs b/gen/networksecurity1/src/api/schemas.rs index 4117366acd..48afabd6bb 100644 --- a/gen/networksecurity1/src/api/schemas.rs +++ b/gen/networksecurity1/src/api/schemas.rs @@ -14,7 +14,7 @@ use super::*; pub struct AuthorizationPolicy { /// Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY". - pub action: Option, + pub action: Option, /// Output only. The timestamp when the resource was created. #[serde(rename="createTime")] @@ -253,7 +253,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/networkservices1/src/api/call_builders.rs b/gen/networkservices1/src/api/call_builders.rs index 2718a232c6..448c35396a 100644 --- a/gen/networkservices1/src/api/call_builders.rs +++ b/gen/networkservices1/src/api/call_builders.rs @@ -4178,7 +4178,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()); } @@ -4457,7 +4457,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()); @@ -4749,7 +4749,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()); @@ -5036,7 +5036,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()); } @@ -5315,7 +5315,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()); @@ -5607,7 +5607,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()); @@ -5894,7 +5894,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()); } @@ -6173,7 +6173,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()); @@ -6465,7 +6465,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()); @@ -6759,7 +6759,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._endpoint_policy_id.as_ref() { params.push("endpointPolicyId", value); } @@ -7054,7 +7054,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()); @@ -7316,7 +7316,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()); @@ -7580,7 +7580,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()); } @@ -7856,7 +7856,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8147,7 +8147,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8449,7 +8449,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()); @@ -8741,7 +8741,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()); @@ -9035,7 +9035,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._gateway_id.as_ref() { params.push("gatewayId", value); } @@ -9330,7 +9330,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()); @@ -9592,7 +9592,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()); @@ -9856,7 +9856,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()); } @@ -10132,7 +10132,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -10423,7 +10423,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10725,7 +10725,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()); @@ -11017,7 +11017,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()); @@ -11311,7 +11311,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._grpc_route_id.as_ref() { params.push("grpcRouteId", value); } @@ -11606,7 +11606,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()); @@ -11868,7 +11868,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()); @@ -12134,7 +12134,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -12425,7 +12425,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12729,7 +12729,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._http_route_id.as_ref() { params.push("httpRouteId", value); } @@ -13024,7 +13024,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()); @@ -13286,7 +13286,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()); @@ -13552,7 +13552,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -13843,7 +13843,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -17103,7 +17103,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._mesh_id.as_ref() { params.push("meshId", value); } @@ -17398,7 +17398,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()); @@ -17660,7 +17660,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()); @@ -17924,7 +17924,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()); } @@ -18200,7 +18200,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -18491,7 +18491,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -18793,7 +18793,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()); @@ -19085,7 +19085,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()); @@ -19377,7 +19377,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()); @@ -19662,7 +19662,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()); @@ -19924,7 +19924,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()); @@ -20192,7 +20192,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); } @@ -20493,7 +20493,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._service_binding_id.as_ref() { params.push("serviceBindingId", value); } @@ -20788,7 +20788,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()); @@ -21050,7 +21050,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()); @@ -21314,7 +21314,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()); } @@ -21590,7 +21590,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -21879,7 +21879,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()); @@ -22171,7 +22171,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()); @@ -24741,7 +24741,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tcp_route_id.as_ref() { params.push("tcpRouteId", value); } @@ -25036,7 +25036,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()); @@ -25298,7 +25298,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()); @@ -25564,7 +25564,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -25855,7 +25855,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -26159,7 +26159,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._tls_route_id.as_ref() { params.push("tlsRouteId", value); } @@ -26454,7 +26454,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()); @@ -26716,7 +26716,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()); @@ -26982,7 +26982,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -27273,7 +27273,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -27568,7 +27568,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()); @@ -27836,7 +27836,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); } diff --git a/gen/networkservices1/src/api/mod.rs b/gen/networkservices1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/networkservices1/src/api/mod.rs +++ b/gen/networkservices1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/networkservices1/src/api/schemas.rs b/gen/networkservices1/src/api/schemas.rs index 6e0e0d6af8..85cba56587 100644 --- a/gen/networkservices1/src/api/schemas.rs +++ b/gen/networkservices1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -116,7 +116,7 @@ pub struct EndpointMatcherMetadataLabelMatcher { /// Specifies how matching should be done. Supported values are: MATCH_ANY: At least one of the Labels specified in the matcher should match the metadata presented by xDS client. MATCH_ALL: The metadata presented by the xDS client should contain all of the labels specified here. The selection is determined based on the best match. For example, suppose there are three EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client with label connects, the config from P1 will be selected. If a client with label connects, the config from P2 will be selected. If a client with label connects, the config from P3 will be selected. If there is more than one best match, (for example, if a config P4 with selector exists and if a client with label connects), an error will be thrown. #[serde(rename="metadataLabelMatchCriteria")] - pub metadata_label_match_criteria: Option, + pub metadata_label_match_criteria: Option, /// The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list can have at most 64 entries. The list can be empty if the match criteria is MATCH_ANY, to specify a wildcard match (i.e this matches any client). #[serde(rename="metadataLabels")] @@ -195,7 +195,7 @@ pub struct EndpointPolicy { /// Required. The type of endpoint policy. This is primarily used to validate the configuration. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The timestamp when the resource was updated. #[serde(rename="updateTime")] @@ -273,7 +273,7 @@ pub struct Gateway { /// Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The timestamp when the resource was updated. #[serde(rename="updateTime")] @@ -425,7 +425,7 @@ pub struct GrpcRouteHeaderMatch { /// Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Required. The value of the header. pub value: Option, @@ -456,7 +456,7 @@ pub struct GrpcRouteMethodMatch { /// Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GrpcRouteMethodMatch {} @@ -856,7 +856,7 @@ pub struct HttpRouteRedirect { /// The HTTP Status code to use for the redirect. #[serde(rename="responseCode")] - pub response_code: Option, + pub response_code: Option, /// if set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. #[serde(rename="stripQuery")] diff --git a/gen/notebooks1/src/api/mod.rs b/gen/notebooks1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/notebooks1/src/api/mod.rs +++ b/gen/notebooks1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/notebooks1/src/api/schemas.rs b/gen/notebooks1/src/api/schemas.rs index 6e5f177679..f1a6347844 100644 --- a/gen/notebooks1/src/api/schemas.rs +++ b/gen/notebooks1/src/api/schemas.rs @@ -13,7 +13,7 @@ pub struct AcceleratorConfig { /// Type of this accelerator. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AcceleratorConfig {} @@ -319,7 +319,7 @@ pub struct Event { /// Event type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Event {} @@ -365,7 +365,7 @@ pub struct Execution { pub output_notebook_file: Option, /// Output only. State of the underlying AI Platform job. - pub state: Option, + pub state: Option, /// Output only. Time the Execution was last updated. #[serde(rename="updateTime")] @@ -402,7 +402,7 @@ pub struct ExecutionTemplate { /// The type of Job to be used on this execution. #[serde(rename="jobType")] - pub job_type: Option, + pub job_type: Option, /// Name of the kernel spec to use. This must be specified if the kernel spec name on the execution target does not match the name in the input notebook file. #[serde(rename="kernelSpec")] @@ -428,7 +428,7 @@ pub struct ExecutionTemplate { /// Required. Scale tier of the hardware used for notebook execution. DEPRECATED Will be discontinued. As right now only CUSTOM is supported. #[serde(rename="scaleTier")] - pub scale_tier: Option, + pub scale_tier: Option, /// The email address of a service account to use when running the execution. You must have the `iam.serviceAccounts.actAs` permission for the specified service account. #[serde(rename="serviceAccount")] @@ -487,7 +487,7 @@ pub struct GetInstanceHealthResponse { /// Output only. Runtime health_state. #[serde(rename="healthState")] - pub health_state: Option, + pub health_state: Option, } impl client::ResponseResult for GetInstanceHealthResponse {} @@ -533,7 +533,7 @@ pub struct Instance { /// Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`). #[serde(rename="bootDiskType")] - pub boot_disk_type: Option, + pub boot_disk_type: Option, /// Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward #[serde(rename="canIpForward")] @@ -561,11 +561,11 @@ pub struct Instance { /// Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`). #[serde(rename="dataDiskType")] - pub data_disk_type: Option, + pub data_disk_type: Option, /// Input only. Disk encryption method used on the boot and data disks, defaults to GMEK. #[serde(rename="diskEncryption")] - pub disk_encryption: Option, + pub disk_encryption: Option, /// Output only. Attached disks to notebook instance. pub disks: Option>, @@ -600,7 +600,7 @@ pub struct Instance { /// Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. #[serde(rename="nicType")] - pub nic_type: Option, + pub nic_type: Option, /// If true, the notebook instance will not register with the proxy. #[serde(rename="noProxyAccess")] @@ -639,7 +639,7 @@ pub struct Instance { pub shielded_instance_config: Option, /// Output only. The state of this instance. - pub state: Option, + pub state: Option, /// The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}` pub subnet: Option, @@ -966,7 +966,7 @@ pub struct LocalDiskInitializeParams { /// Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`). #[serde(rename="diskType")] - pub disk_type: Option, + pub disk_type: Option, /// Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. pub labels: Option>, @@ -1221,7 +1221,7 @@ pub struct ReservationAffinity { /// Optional. Type of reservation to consume #[serde(rename="consumeReservationType")] - pub consume_reservation_type: Option, + pub consume_reservation_type: Option, /// Optional. Corresponds to the label key of reservation resource. pub key: Option, @@ -1312,7 +1312,7 @@ pub struct Runtime { /// Output only. Runtime health_state. #[serde(rename="healthState")] - pub health_state: Option, + pub health_state: Option, /// Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats. pub metrics: Option, @@ -1325,7 +1325,7 @@ pub struct Runtime { pub software_config: Option, /// Output only. Runtime state. - pub state: Option, + pub state: Option, /// Output only. Runtime update time. #[serde(rename="updateTime")] @@ -1355,7 +1355,7 @@ pub struct RuntimeAcceleratorConfig { /// Accelerator model. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for RuntimeAcceleratorConfig {} @@ -1371,7 +1371,7 @@ pub struct RuntimeAccessConfig { /// The type of access mode this instance. #[serde(rename="accessType")] - pub access_type: Option, + pub access_type: Option, /// Output only. The proxy endpoint that is used to access the runtime. #[serde(rename="proxyUri")] @@ -1486,7 +1486,7 @@ pub struct RuntimeSoftwareConfig { /// Behavior for the post startup script. #[serde(rename="postStartupScriptBehavior")] - pub post_startup_script_behavior: Option, + pub post_startup_script_behavior: Option, /// Output only. Bool indicating whether an newer image is available in an image family. pub upgradeable: Option, @@ -1538,7 +1538,7 @@ pub struct Schedule { pub recent_executions: Option>, /// no description provided - pub state: Option, + pub state: Option, /// Timezone on which the cron_schedule. The value of this field must be a time zone name from the tz database. TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT). #[serde(rename="timeZone")] @@ -1568,7 +1568,7 @@ pub struct SchedulerAcceleratorConfig { /// Type of this accelerator. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SchedulerAcceleratorConfig {} @@ -1613,7 +1613,7 @@ pub struct SetInstanceAcceleratorRequest { /// Required. Type of this accelerator. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for SetInstanceAcceleratorRequest {} @@ -1942,7 +1942,7 @@ impl client::RequestValue for UpdateShieldedInstanceConfigRequest {} pub struct UpgradeHistoryEntry { /// Action. Rolloback or Upgrade. - pub action: Option, + pub action: Option, /// The container image before this instance upgrade. #[serde(rename="containerImage")] @@ -1959,7 +1959,7 @@ pub struct UpgradeHistoryEntry { pub snapshot: Option, /// The state of this instance upgrade history entry. - pub state: Option, + pub state: Option, /// Target VM Image. Format: ainotebooks-vm/project/image-name/name. #[serde(rename="targetImage")] @@ -1994,7 +1994,7 @@ pub struct UpgradeInstanceInternalRequest { /// Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity #[serde(rename="vmId")] @@ -2018,7 +2018,7 @@ pub struct UpgradeInstanceRequest { /// Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for UpgradeInstanceRequest {} @@ -2137,7 +2137,7 @@ pub struct VirtualMachineConfig { /// Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. #[serde(rename="nicType")] - pub nic_type: Option, + pub nic_type: Option, /// Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it's assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c` #[serde(rename="reservedIpRange")] diff --git a/gen/ondemandscanning1/src/api/call_builders.rs b/gen/ondemandscanning1/src/api/call_builders.rs index 74db95ba31..17f0b57cde 100644 --- a/gen/ondemandscanning1/src/api/call_builders.rs +++ b/gen/ondemandscanning1/src/api/call_builders.rs @@ -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()); @@ -332,7 +332,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()); @@ -594,7 +594,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()); @@ -862,7 +862,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); } @@ -1156,7 +1156,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._timeout.as_ref() { params.push("timeout", ::client::serde::duration::to_string(&value)); } @@ -1432,7 +1432,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1721,7 +1721,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); diff --git a/gen/ondemandscanning1/src/api/mod.rs b/gen/ondemandscanning1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/ondemandscanning1/src/api/mod.rs +++ b/gen/ondemandscanning1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/ondemandscanning1/src/api/schemas.rs b/gen/ondemandscanning1/src/api/schemas.rs index 196a10a510..2ec382112f 100644 --- a/gen/ondemandscanning1/src/api/schemas.rs +++ b/gen/ondemandscanning1/src/api/schemas.rs @@ -8,7 +8,7 @@ use super::*; pub struct AliasContext { /// The alias kind. - pub kind: Option, + pub kind: Option, /// The alias name. pub name: Option, @@ -217,18 +217,18 @@ pub struct CVSS { /// no description provided #[serde(rename="attackComplexity")] - pub attack_complexity: Option, + pub attack_complexity: Option, /// Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. #[serde(rename="attackVector")] - pub attack_vector: Option, + pub attack_vector: Option, /// no description provided - pub authentication: Option, + pub authentication: Option, /// no description provided #[serde(rename="availabilityImpact")] - pub availability_impact: Option, + pub availability_impact: Option, /// The base score is a function of the base metric scores. #[serde(rename="baseScore")] @@ -236,7 +236,7 @@ pub struct CVSS { /// no description provided #[serde(rename="confidentialityImpact")] - pub confidentiality_impact: Option, + pub confidentiality_impact: Option, /// no description provided #[serde(rename="exploitabilityScore")] @@ -248,18 +248,18 @@ pub struct CVSS { /// no description provided #[serde(rename="integrityImpact")] - pub integrity_impact: Option, + pub integrity_impact: Option, /// no description provided #[serde(rename="privilegesRequired")] - pub privileges_required: Option, + pub privileges_required: Option, /// no description provided - pub scope: Option, + pub scope: Option, /// no description provided #[serde(rename="userInteraction")] - pub user_interaction: Option, + pub user_interaction: Option, } impl client::Part for CVSS {} @@ -417,7 +417,7 @@ pub struct DeploymentOccurrence { pub deploy_time: Option>, /// Platform hosting this deployment. - pub platform: Option, + pub platform: Option, /// Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. #[serde(rename="resourceUri")] @@ -453,7 +453,7 @@ pub struct DiscoveryOccurrence { /// The status of discovery for the resource. #[serde(rename="analysisStatus")] - pub analysis_status: Option, + pub analysis_status: Option, /// When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. #[serde(rename="analysisStatusError")] @@ -465,7 +465,7 @@ pub struct DiscoveryOccurrence { /// Whether the resource is continuously analyzed. #[serde(rename="continuousAnalysis")] - pub continuous_analysis: Option, + pub continuous_analysis: Option, /// The CPE of the resource being scanned. pub cpe: Option, @@ -1152,7 +1152,7 @@ pub struct Occurrence { pub image: Option, /// Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. - pub kind: Option, + pub kind: Option, /// Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. pub name: Option, @@ -1254,7 +1254,7 @@ pub struct PackageData { /// The type of package: os, maven, go, etc. #[serde(rename="packageType")] - pub package_type: Option, + pub package_type: Option, /// CVEs that this package is no longer vulnerable to go/drydock-dd-custom-binary-scanning #[serde(rename="patchedCve")] @@ -1292,7 +1292,7 @@ pub struct PackageIssue { /// Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. #[serde(rename="effectiveSeverity")] - pub effective_severity: Option, + pub effective_severity: Option, /// The location at which this package was found. #[serde(rename="fileLocation")] @@ -1331,7 +1331,7 @@ impl client::Part for PackageIssue {} pub struct PackageOccurrence { /// Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. - pub architecture: Option, + pub architecture: Option, /// Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. #[serde(rename="cpeUri")] @@ -1779,7 +1779,7 @@ pub struct Version { pub inclusive: Option, /// Required. Distinguishes between sentinel MIN/MAX versions and normal versions. - pub kind: Option, + pub kind: Option, /// Required only when version kind is NORMAL. The main part of the version name. pub name: Option, @@ -1805,14 +1805,14 @@ pub struct VulnerabilityOccurrence { /// Output only. CVSS version used to populate cvss_score and severity. #[serde(rename="cvssVersion")] - pub cvss_version: Option, + pub cvss_version: Option, /// The cvss v3 score for the vulnerability. pub cvssv3: Option, /// The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. #[serde(rename="effectiveSeverity")] - pub effective_severity: Option, + pub effective_severity: Option, /// Output only. Whether at least one of the affected packages has a fix available. #[serde(rename="fixAvailable")] @@ -1831,7 +1831,7 @@ pub struct VulnerabilityOccurrence { pub related_urls: Option>, /// Output only. The note provider assigned severity of this vulnerability. - pub severity: Option, + pub severity: Option, /// Output only. A one sentence description of this vulnerability. #[serde(rename="shortDescription")] diff --git a/gen/orgpolicy2/src/api/mod.rs b/gen/orgpolicy2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/orgpolicy2/src/api/mod.rs +++ b/gen/orgpolicy2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/orgpolicy2/src/api/schemas.rs b/gen/orgpolicy2/src/api/schemas.rs index 55347b73b5..7c0c1bb675 100644 --- a/gen/orgpolicy2/src/api/schemas.rs +++ b/gen/orgpolicy2/src/api/schemas.rs @@ -31,7 +31,7 @@ pub struct GoogleCloudOrgpolicyV2Constraint { /// The evaluation behavior of this constraint in the absence of 'Policy'. #[serde(rename="constraintDefault")] - pub constraint_default: Option, + pub constraint_default: Option, /// Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable. pub description: Option, @@ -98,7 +98,7 @@ pub struct GoogleCloudOrgpolicyV2CustomConstraint { /// Allow or deny type. #[serde(rename="actionType")] - pub action_type: Option, + pub action_type: Option, /// Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters. pub condition: Option, @@ -112,7 +112,7 @@ pub struct GoogleCloudOrgpolicyV2CustomConstraint { /// All the operations being applied for this constraint. #[serde(rename="methodTypes")] - pub method_types: Option>, + pub method_types: Option>, /// Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms" The max length is 70 characters and the min length is 1. Note that the prefix "organizations/{organization_id}/customConstraints/" is not counted. pub name: Option, diff --git a/gen/oslogin1/src/api/mod.rs b/gen/oslogin1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/oslogin1/src/api/mod.rs +++ b/gen/oslogin1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/oslogin1/src/api/schemas.rs b/gen/oslogin1/src/api/schemas.rs index ec327e4aa4..1a64b4269b 100644 --- a/gen/oslogin1/src/api/schemas.rs +++ b/gen/oslogin1/src/api/schemas.rs @@ -93,7 +93,7 @@ pub struct PosixAccount { /// The operating system type where this account applies. #[serde(rename="operatingSystemType")] - pub operating_system_type: Option, + pub operating_system_type: Option, /// Only one POSIX account can be marked as primary. pub primary: Option, diff --git a/gen/oslogin1_beta/src/api/hub.rs b/gen/oslogin1_beta/src/api/hub.rs index 3c7e36ed08..2517931365 100644 --- a/gen/oslogin1_beta/src/api/hub.rs +++ b/gen/oslogin1_beta/src/api/hub.rs @@ -38,8 +38,8 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.users().import_ssh_public_key(req, "parent") -/// .view("sed") -/// .project_id("amet.") +/// .view(&Default::default()) +/// .project_id("At") /// .doit().await; /// /// match result { diff --git a/gen/oslogin1_beta/src/api/mod.rs b/gen/oslogin1_beta/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/oslogin1_beta/src/api/mod.rs +++ b/gen/oslogin1_beta/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/oslogin1_beta/src/api/schemas.rs b/gen/oslogin1_beta/src/api/schemas.rs index 9fc847ff4d..3d1deec658 100644 --- a/gen/oslogin1_beta/src/api/schemas.rs +++ b/gen/oslogin1_beta/src/api/schemas.rs @@ -97,7 +97,7 @@ pub struct PosixAccount { /// The operating system type where this account applies. #[serde(rename="operatingSystemType")] - pub operating_system_type: Option, + pub operating_system_type: Option, /// Only one POSIX account can be marked as primary. pub primary: Option, diff --git a/gen/pagespeedonline2/README.md b/gen/pagespeedonline2/README.md index 16ff07f4a4..d587797eb9 100644 --- a/gen/pagespeedonline2/README.md +++ b/gen/pagespeedonline2/README.md @@ -95,7 +95,7 @@ let mut hub = Pagespeedonline::new(hyper::Client::builder().build(hyper_rustls:: // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.pagespeedapi().runpagespeed("url") - .strategy("magna") + .strategy(&Default::default()) .screenshot(true) .add_rule("voluptua.") .locale("At") diff --git a/gen/pagespeedonline2/src/api/call_builders.rs b/gen/pagespeedonline2/src/api/call_builders.rs index 3b9959bc2d..a366be5d46 100644 --- a/gen/pagespeedonline2/src/api/call_builders.rs +++ b/gen/pagespeedonline2/src/api/call_builders.rs @@ -26,11 +26,11 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.pagespeedapi().runpagespeed("url") -/// .strategy("amet") +/// .strategy(&Default::default()) /// .screenshot(true) -/// .add_rule("sed") -/// .locale("ut") -/// .filter_third_party_resources(true) +/// .add_rule("duo") +/// .locale("ipsum") +/// .filter_third_party_resources(false) /// .doit().await; /// # } /// ``` @@ -39,7 +39,7 @@ pub struct PagespeedapiRunpagespeedCall<'a, S> pub(super) hub: &'a Pagespeedonline, pub(super) _url: String, - pub(super) _strategy: Option, + pub(super) _strategy: Option, pub(super) _screenshot: Option, pub(super) _rule: Vec, pub(super) _locale: Option, @@ -79,7 +79,7 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("url", self._url); + params.push("url", &self._url); if let Some(value) = self._strategy.as_ref() { params.push("strategy", value); } @@ -197,8 +197,8 @@ where /// The analysis strategy to use /// /// Sets the *strategy* query property to the given value. - pub fn strategy(mut self, new_value: &str) -> PagespeedapiRunpagespeedCall<'a, S> { - self._strategy = Some(new_value.to_string()); + pub fn strategy(mut self, new_value: &PagespeedapiStrategyEnum) -> PagespeedapiRunpagespeedCall<'a, S> { + self._strategy = Some(new_value.clone()); self } /// Indicates if binary data containing a screenshot should be included diff --git a/gen/pagespeedonline2/src/api/hub.rs b/gen/pagespeedonline2/src/api/hub.rs index 5760e808c6..3c5701731c 100644 --- a/gen/pagespeedonline2/src/api/hub.rs +++ b/gen/pagespeedonline2/src/api/hub.rs @@ -32,10 +32,10 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.pagespeedapi().runpagespeed("url") -/// .strategy("gubergren") -/// .screenshot(false) -/// .add_rule("dolor") -/// .locale("ea") +/// .strategy(&Default::default()) +/// .screenshot(true) +/// .add_rule("gubergren") +/// .locale("eos") /// .filter_third_party_resources(true) /// .doit().await; /// diff --git a/gen/pagespeedonline2/src/api/mod.rs b/gen/pagespeedonline2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/pagespeedonline2/src/api/mod.rs +++ b/gen/pagespeedonline2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/pagespeedonline2/src/lib.rs b/gen/pagespeedonline2/src/lib.rs index 7e6dee10fa..511b37dabe 100644 --- a/gen/pagespeedonline2/src/lib.rs +++ b/gen/pagespeedonline2/src/lib.rs @@ -96,10 +96,10 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.pagespeedapi().runpagespeed("url") -//! .strategy("takimata") +//! .strategy(&Default::default()) //! .screenshot(true) -//! .add_rule("duo") -//! .locale("ipsum") +//! .add_rule("amet.") +//! .locale("duo") //! .filter_third_party_resources(true) //! .doit().await; //! diff --git a/gen/pagespeedonline4/README.md b/gen/pagespeedonline4/README.md index 4aab281ac6..08df61bd50 100644 --- a/gen/pagespeedonline4/README.md +++ b/gen/pagespeedonline4/README.md @@ -97,11 +97,11 @@ let mut hub = Pagespeedonline::new(hyper::Client::builder().build(hyper_rustls:: let result = hub.pagespeedapi().runpagespeed("url") .utm_source("magna") .utm_campaign("no") - .strategy("ipsum") - .snapshots(false) - .screenshot(true) + .strategy(&Default::default()) + .snapshots(true) + .screenshot(false) .add_rule("amet.") - .locale("duo") + .locale("takimata") .filter_third_party_resources(true) .doit().await; diff --git a/gen/pagespeedonline4/src/api/call_builders.rs b/gen/pagespeedonline4/src/api/call_builders.rs index 651716a712..206b42b94e 100644 --- a/gen/pagespeedonline4/src/api/call_builders.rs +++ b/gen/pagespeedonline4/src/api/call_builders.rs @@ -26,14 +26,14 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.pagespeedapi().runpagespeed("url") -/// .utm_source("dolor") -/// .utm_campaign("Lorem") -/// .strategy("eos") -/// .snapshots(false) -/// .screenshot(true) -/// .add_rule("duo") -/// .locale("sed") -/// .filter_third_party_resources(true) +/// .utm_source("ipsum") +/// .utm_campaign("est") +/// .strategy(&Default::default()) +/// .snapshots(true) +/// .screenshot(false) +/// .add_rule("Lorem") +/// .locale("eos") +/// .filter_third_party_resources(false) /// .doit().await; /// # } /// ``` @@ -44,7 +44,7 @@ pub struct PagespeedapiRunpagespeedCall<'a, S> pub(super) _url: String, pub(super) _utm_source: Option, pub(super) _utm_campaign: Option, - pub(super) _strategy: Option, + pub(super) _strategy: Option, pub(super) _snapshots: Option, pub(super) _screenshot: Option, pub(super) _rule: Vec, @@ -85,7 +85,7 @@ where } let mut params = Params::with_capacity(11 + self._additional_params.len()); - params.push("url", self._url); + params.push("url", &self._url); if let Some(value) = self._utm_source.as_ref() { params.push("utm_source", value); } @@ -226,8 +226,8 @@ where /// The analysis strategy (desktop or mobile) to use, and desktop is the default /// /// Sets the *strategy* query property to the given value. - pub fn strategy(mut self, new_value: &str) -> PagespeedapiRunpagespeedCall<'a, S> { - self._strategy = Some(new_value.to_string()); + pub fn strategy(mut self, new_value: &PagespeedapiStrategyEnum) -> PagespeedapiRunpagespeedCall<'a, S> { + self._strategy = Some(new_value.clone()); self } /// Indicates if binary data containing snapshot images should be included diff --git a/gen/pagespeedonline4/src/api/hub.rs b/gen/pagespeedonline4/src/api/hub.rs index 1d0d072c88..f1afeb621f 100644 --- a/gen/pagespeedonline4/src/api/hub.rs +++ b/gen/pagespeedonline4/src/api/hub.rs @@ -32,13 +32,13 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.pagespeedapi().runpagespeed("url") -/// .utm_source("ut") -/// .utm_campaign("gubergren") -/// .strategy("rebum.") +/// .utm_source("amet") +/// .utm_campaign("duo") +/// .strategy(&Default::default()) /// .snapshots(true) -/// .screenshot(true) -/// .add_rule("ipsum") -/// .locale("est") +/// .screenshot(false) +/// .add_rule("ut") +/// .locale("gubergren") /// .filter_third_party_resources(true) /// .doit().await; /// diff --git a/gen/pagespeedonline4/src/api/mod.rs b/gen/pagespeedonline4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/pagespeedonline4/src/api/mod.rs +++ b/gen/pagespeedonline4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/pagespeedonline4/src/lib.rs b/gen/pagespeedonline4/src/lib.rs index 02bbdbb6c7..96b8ac3d68 100644 --- a/gen/pagespeedonline4/src/lib.rs +++ b/gen/pagespeedonline4/src/lib.rs @@ -96,13 +96,13 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.pagespeedapi().runpagespeed("url") -//! .utm_source("Lorem") +//! .utm_source("ipsum") //! .utm_campaign("gubergren") -//! .strategy("eos") +//! .strategy(&Default::default()) //! .snapshots(true) //! .screenshot(false) -//! .add_rule("amet") -//! .locale("duo") +//! .add_rule("dolor") +//! .locale("ea") //! .filter_third_party_resources(true) //! .doit().await; //! diff --git a/gen/pagespeedonline5/README.md b/gen/pagespeedonline5/README.md index 0b212e41cd..c2980f52f3 100644 --- a/gen/pagespeedonline5/README.md +++ b/gen/pagespeedonline5/README.md @@ -97,10 +97,10 @@ let mut hub = PagespeedInsights::new(hyper::Client::builder().build(hyper_rustls let result = hub.pagespeedapi().runpagespeed("url") .utm_source("magna") .utm_campaign("no") - .strategy("ipsum") - .locale("voluptua.") - .add_category("At") - .captcha_token("sanctus") + .strategy(&Default::default()) + .locale("ipsum") + .add_category(&Default::default()) + .captcha_token("voluptua.") .doit().await; match result { diff --git a/gen/pagespeedonline5/src/api/call_builders.rs b/gen/pagespeedonline5/src/api/call_builders.rs index 2059b5f2bc..eeed33bf95 100644 --- a/gen/pagespeedonline5/src/api/call_builders.rs +++ b/gen/pagespeedonline5/src/api/call_builders.rs @@ -26,12 +26,12 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.pagespeedapi().runpagespeed("url") -/// .utm_source("duo") -/// .utm_campaign("ipsum") -/// .strategy("sed") -/// .locale("ut") -/// .add_category("gubergren") -/// .captcha_token("rebum.") +/// .utm_source("eos") +/// .utm_campaign("dolor") +/// .strategy(&Default::default()) +/// .locale("ea") +/// .add_category(&Default::default()) +/// .captcha_token("ipsum") /// .doit().await; /// # } /// ``` @@ -42,9 +42,9 @@ pub struct PagespeedapiRunpagespeedCall<'a, S> pub(super) _url: String, pub(super) _utm_source: Option, pub(super) _utm_campaign: Option, - pub(super) _strategy: Option, + pub(super) _strategy: Option, pub(super) _locale: Option, - pub(super) _category: Vec, + pub(super) _category: Option, pub(super) _captcha_token: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -82,7 +82,7 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("url", self._url); + params.push("url", &self._url); if let Some(value) = self._utm_source.as_ref() { params.push("utm_source", value); } @@ -227,8 +227,8 @@ where /// The analysis strategy (desktop or mobile) to use, and desktop is the default /// /// Sets the *strategy* query property to the given value. - pub fn strategy(mut self, new_value: &str) -> PagespeedapiRunpagespeedCall<'a, S> { - self._strategy = Some(new_value.to_string()); + pub fn strategy(mut self, new_value: &PagespeedapiStrategyEnum) -> PagespeedapiRunpagespeedCall<'a, S> { + self._strategy = Some(new_value.clone()); self } /// The locale used to localize formatted results @@ -242,8 +242,8 @@ where /// /// Append the given value to the *category* query property. /// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters. - pub fn add_category(mut self, new_value: &str) -> PagespeedapiRunpagespeedCall<'a, S> { - self._category.push(new_value.to_string()); + pub fn add_category(mut self, new_value: &PagespeedapiCategoryEnum) -> PagespeedapiRunpagespeedCall<'a, S> { + self._category.push(new_value.clone()); self } /// The captcha token passed when filling out a captcha. diff --git a/gen/pagespeedonline5/src/api/hub.rs b/gen/pagespeedonline5/src/api/hub.rs index fa4761f49e..516778850d 100644 --- a/gen/pagespeedonline5/src/api/hub.rs +++ b/gen/pagespeedonline5/src/api/hub.rs @@ -32,12 +32,12 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.pagespeedapi().runpagespeed("url") -/// .utm_source("gubergren") -/// .utm_campaign("eos") -/// .strategy("dolor") -/// .locale("ea") -/// .add_category("ipsum") -/// .captcha_token("invidunt") +/// .utm_source("duo") +/// .utm_campaign("ipsum") +/// .strategy(&Default::default()) +/// .locale("gubergren") +/// .add_category(&Default::default()) +/// .captcha_token("Lorem") /// .doit().await; /// /// match result { diff --git a/gen/pagespeedonline5/src/api/mod.rs b/gen/pagespeedonline5/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/pagespeedonline5/src/api/mod.rs +++ b/gen/pagespeedonline5/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/pagespeedonline5/src/lib.rs b/gen/pagespeedonline5/src/lib.rs index 8fb8648ffc..5a60ce2b6c 100644 --- a/gen/pagespeedonline5/src/lib.rs +++ b/gen/pagespeedonline5/src/lib.rs @@ -96,12 +96,12 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.pagespeedapi().runpagespeed("url") -//! .utm_source("amet.") -//! .utm_campaign("takimata") -//! .strategy("amet.") -//! .locale("duo") -//! .add_category("ipsum") -//! .captcha_token("gubergren") +//! .utm_source("sanctus") +//! .utm_campaign("sed") +//! .strategy(&Default::default()) +//! .locale("amet.") +//! .add_category(&Default::default()) +//! .captcha_token("takimata") //! .doit().await; //! //! match result { diff --git a/gen/partners2/src/api/mod.rs b/gen/partners2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/partners2/src/api/mod.rs +++ b/gen/partners2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/partners2/src/api/schemas.rs b/gen/partners2/src/api/schemas.rs index 4ba3ee8134..fda7b61030 100644 --- a/gen/partners2/src/api/schemas.rs +++ b/gen/partners2/src/api/schemas.rs @@ -117,7 +117,7 @@ impl client::RequestValue for CreateLeadRequest {} pub struct EventData { /// Data type. - pub key: Option, + pub key: Option, /// Data values. pub values: Option>, @@ -146,7 +146,7 @@ pub struct ExamStatus { /// The type of the exam. #[serde(rename="examType")] - pub exam_type: Option, + pub exam_type: Option, /// Whether this exam has been passed and not expired. pub passed: Option, @@ -176,7 +176,7 @@ pub struct ListOffersResponse { /// Reason why no Offers are available. #[serde(rename="noOfferReason")] - pub no_offer_reason: Option, + pub no_offer_reason: Option, /// Available Offers to be distributed. #[serde(rename="availableOffers")] @@ -204,7 +204,7 @@ pub struct CountryOfferInfo { /// Type of offer country is eligible for. #[serde(rename="offerType")] - pub offer_type: Option, + pub offer_type: Option, /// (localized) Get Y amount for that country's offer. #[serde(rename="getYAmount")] @@ -260,7 +260,7 @@ pub struct OfferCustomer { /// Type of the offer #[serde(rename="offerType")] - pub offer_type: Option, + pub offer_type: Option, /// External CID for the customer. #[serde(rename="externalCid")] @@ -304,7 +304,7 @@ pub struct CertificationStatus { /// The type of the certification. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Number of people who are certified, #[serde(rename="userCount")] @@ -442,11 +442,11 @@ pub struct SpecializationStatus { /// The specialization this status is for. #[serde(rename="badgeSpecialization")] - pub badge_specialization: Option, + pub badge_specialization: Option, /// State of agency specialization. #[serde(rename="badgeSpecializationState")] - pub badge_specialization_state: Option, + pub badge_specialization_state: Option, } impl client::Part for SpecializationStatus {} @@ -475,7 +475,7 @@ pub struct Certification { /// The type of certification, the area of expertise. #[serde(rename="certificationType")] - pub certification_type: Option, + pub certification_type: Option, } impl client::Part for Certification {} @@ -649,7 +649,7 @@ pub struct Company { /// The public viewability status of the company's profile. #[serde(rename="profileStatus")] - pub profile_status: Option, + pub profile_status: Option, /// The primary language code of the company, as defined by /// BCP 47 /// (IETF BCP 47, "Tags for Identifying Languages"). @@ -669,7 +669,7 @@ pub struct Company { pub converted_min_monthly_budget: Option, /// Industries the company can help with. - pub industries: Option>, + pub industries: Option>, /// URL of the company's website. #[serde(rename="websiteUrl")] @@ -714,7 +714,7 @@ pub struct Company { pub original_min_monthly_budget: Option, /// Services the company can help with. - pub services: Option>, + pub services: Option>, /// The primary location of the company. #[serde(rename="primaryLocation")] @@ -730,7 +730,7 @@ pub struct Company { /// Partner badge tier #[serde(rename="badgeTier")] - pub badge_tier: Option, + pub badge_tier: Option, /// Email domains that allow users with a matching email address to get /// auto-approved for associating with this company. #[serde(rename="autoApprovalEmailDomains")] @@ -739,7 +739,7 @@ pub struct Company { /// Company type labels listed on the company's profile. #[serde(rename="companyTypes")] - pub company_types: Option>, + pub company_types: Option>, } impl client::RequestValue for Company {} @@ -765,7 +765,7 @@ pub struct CreateLeadResponse { /// validation. #[serde(rename="recaptchaStatus")] - pub recaptcha_status: Option, + pub recaptcha_status: Option, /// Current response metadata. #[serde(rename="responseMetadata")] @@ -866,7 +866,7 @@ pub struct CertificationExamStatus { /// The type of certification exam. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for CertificationExamStatus {} @@ -919,7 +919,7 @@ pub struct Rank { /// The type of rank. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Rank {} @@ -1034,7 +1034,7 @@ pub struct HistoricalOffer { pub creation_time: Option>, /// Status of the offer. - pub status: Option, + pub status: Option, /// Email address for client. #[serde(rename="clientEmail")] @@ -1059,7 +1059,7 @@ pub struct HistoricalOffer { /// Type of offer. #[serde(rename="offerType")] - pub offer_type: Option, + pub offer_type: Option, /// Name (First + Last) of the partners user to whom the incentive is allocated. #[serde(rename="senderName")] @@ -1107,18 +1107,18 @@ pub struct LogUserEventRequest { /// The scope of the event. #[serde(rename="eventScope")] - pub event_scope: Option, + pub event_scope: Option, /// The category the action belongs to. #[serde(rename="eventCategory")] - pub event_category: Option, + pub event_category: Option, /// Advertiser lead information. pub lead: Option, /// The action that occurred. #[serde(rename="eventAction")] - pub event_action: Option, + pub event_action: Option, } impl client::RequestValue for LogUserEventRequest {} @@ -1291,7 +1291,7 @@ pub struct AvailableOffer { /// Level of this offer. #[serde(rename="offerLevel")] - pub offer_level: Option, + pub offer_level: Option, /// Name of the offer. pub name: Option, @@ -1310,7 +1310,7 @@ pub struct AvailableOffer { /// Type of offer. #[serde(rename="offerType")] - pub offer_type: Option, + pub offer_type: Option, /// The maximum age of an account [in days] to be eligible. #[serde(rename="maxAccountAge")] @@ -1436,7 +1436,7 @@ pub struct LogMessageRequest { pub request_metadata: Option, /// Message level of client message. - pub level: Option, + pub level: Option, /// Details about the client message. pub details: Option, @@ -1478,11 +1478,11 @@ pub struct Lead { pub website_url: Option, /// The lead's state in relation to the company. - pub state: Option, + pub state: Option, /// List of reasons for using Google Partner Search and creating a lead. #[serde(rename="gpsMotivations")] - pub gps_motivations: Option>, + pub gps_motivations: Option>, /// Email address of lead source. pub email: Option, @@ -1516,7 +1516,7 @@ pub struct Lead { /// Type of lead. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Lead {} @@ -1567,7 +1567,7 @@ pub struct ListUserStatesResponse { /// User's states. #[serde(rename="userStates")] - pub user_states: Option>, + pub user_states: Option>, } impl client::ResponseResult for ListUserStatesResponse {} @@ -1607,7 +1607,7 @@ pub struct CompanyRelation { pub primary_address: Option, /// The state of relationship, in terms of approvals. - pub state: Option, + pub state: Option, /// The name (in the company's primary language) for the company. pub name: Option, @@ -1618,7 +1618,7 @@ pub struct CompanyRelation { pub manager_account: Option, /// The segment the company is classified as. - pub segment: Option>, + pub segment: Option>, /// The internal company ID. /// Only available for a whitelisted set of api clients. #[serde(rename="internalCompanyId")] @@ -1627,7 +1627,7 @@ pub struct CompanyRelation { /// Whether the company is a Partner. #[serde(rename="badgeTier")] - pub badge_tier: Option, + pub badge_tier: Option, /// The list of Google Partners specialization statuses for the company. #[serde(rename="specializationStatus")] diff --git a/gen/paymentsresellersubscription1/src/api/call_builders.rs b/gen/paymentsresellersubscription1/src/api/call_builders.rs index 10d6272933..47b354eff1 100644 --- a/gen/paymentsresellersubscription1/src/api/call_builders.rs +++ b/gen/paymentsresellersubscription1/src/api/call_builders.rs @@ -1415,7 +1415,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._page_token.as_ref() { params.push("pageToken", value); } @@ -1714,7 +1714,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2005,7 +2005,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2304,7 +2304,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()); @@ -2598,7 +2598,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._subscription_id.as_ref() { params.push("subscriptionId", value); } @@ -2900,7 +2900,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()); @@ -3192,7 +3192,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()); @@ -3477,7 +3477,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()); @@ -3748,7 +3748,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._subscription_id.as_ref() { params.push("subscriptionId", value); } @@ -4050,7 +4050,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()); diff --git a/gen/paymentsresellersubscription1/src/api/mod.rs b/gen/paymentsresellersubscription1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/paymentsresellersubscription1/src/api/mod.rs +++ b/gen/paymentsresellersubscription1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/paymentsresellersubscription1/src/api/schemas.rs b/gen/paymentsresellersubscription1/src/api/schemas.rs index b2bd7fc844..e2dcc40b8d 100644 --- a/gen/paymentsresellersubscription1/src/api/schemas.rs +++ b/gen/paymentsresellersubscription1/src/api/schemas.rs @@ -38,7 +38,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest { /// Specifies the reason for the cancellation. #[serde(rename="cancellationReason")] - pub cancellation_reason: Option, + pub cancellation_reason: Option, } impl client::RequestValue for GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest {} @@ -75,7 +75,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1Duration { pub count: Option, /// The unit used for the duration - pub unit: Option, + pub unit: Option, } impl client::Part for GoogleCloudPaymentsResellerSubscriptionV1Duration {} @@ -247,11 +247,11 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload { pub campaigns: Option>, /// The type of offering the subscription was sold by the partner. e.g. VAS. - pub offering: Option, + pub offering: Option, /// The type of sales channel through which the subscription was sold. #[serde(rename="salesChannel")] - pub sales_channel: Option, + pub sales_channel: Option, /// The identifier for the partner store where the subscription was sold. #[serde(rename="storeId")] @@ -425,7 +425,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1Promotion { /// Output only. Output Only. Specifies the type of the promotion. #[serde(rename="promotionType")] - pub promotion_type: Option, + pub promotion_type: Option, /// Output only. 2-letter ISO region code where the promotion is available in. Ex. "US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1 #[serde(rename="regionCodes")] @@ -554,7 +554,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1Subscription { /// Output only. Describes the processing state of the subscription. See more details at [the lifecycle of a subscription](https://developers.google.com/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle). #[serde(rename="processingState")] - pub processing_state: Option, + pub processing_state: Option, /// Required. Deprecated: consider using `line_items` as the input. Required. Resource name that identifies the purchased products. The format will be 'partners/{partner_id}/products/{product_id}'. pub products: Option>, @@ -579,7 +579,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1Subscription { pub service_location: Option, /// Output only. Describes the state of the subscription. See more details at [the lifecycle of a subscription](https://developers.google.com/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle). - pub state: Option, + pub state: Option, /// Output only. System generated timestamp when the subscription is most recently updated. UTC timezone. #[serde(rename="updateTime")] @@ -603,7 +603,7 @@ impl client::ResponseResult for GoogleCloudPaymentsResellerSubscriptionV1Subscri pub struct GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails { /// The reason of the cancellation. - pub reason: Option, + pub reason: Option, } impl client::Part for GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails {} @@ -641,10 +641,10 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { /// Output only. The recurrence type of the line item. #[serde(rename="recurrenceType")] - pub recurrence_type: Option, + pub recurrence_type: Option, /// Output only. The state of the line item. - pub state: Option, + pub state: Option, } impl client::Part for GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem {} @@ -687,7 +687,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec { /// Output only. The type of the promotion for the spec. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec {} @@ -703,7 +703,7 @@ pub struct GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngrade /// Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription. #[serde(rename="billingCycleSpec")] - pub billing_cycle_spec: Option, + pub billing_cycle_spec: Option, /// Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only. #[serde(rename="previousSubscriptionId")] diff --git a/gen/people1/src/api/mod.rs b/gen/people1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/people1/src/api/mod.rs +++ b/gen/people1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/people1/src/api/schemas.rs b/gen/people1/src/api/schemas.rs index 4a1e76a424..c694a16d37 100644 --- a/gen/people1/src/api/schemas.rs +++ b/gen/people1/src/api/schemas.rs @@ -65,7 +65,7 @@ pub struct AgeRangeType { /// The age range. #[serde(rename="ageRange")] - pub age_range: Option, + pub age_range: Option, /// Metadata about the age range. pub metadata: Option, @@ -94,7 +94,7 @@ pub struct BatchCreateContactsRequest { pub read_mask: Option, /// Optional. A mask of what source types to return in the post mutate read. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. - pub sources: Option>, + pub sources: Option>, } impl client::RequestValue for BatchCreateContactsRequest {} @@ -179,7 +179,7 @@ pub struct BatchUpdateContactsRequest { pub read_mask: Option, /// Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. - pub sources: Option>, + pub sources: Option>, /// Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All specified fields will be replaced, or cleared if left empty for each person. Valid values are: * addresses * biographies * birthdays * calendarUrls * clientData * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * relations * sipAddresses * urls * userDefined #[serde(rename="updateMask")] @@ -219,7 +219,7 @@ pub struct Biography { /// The content type of the biography. #[serde(rename="contentType")] - pub content_type: Option, + pub content_type: Option, /// Metadata about the biography. pub metadata: Option, @@ -348,7 +348,7 @@ pub struct ContactGroup { /// Output only. The contact group type. #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, /// Output only. The total number of contacts in the group irrespective of max members in specified in the request. #[serde(rename="memberCount")] @@ -472,7 +472,7 @@ pub struct CopyOtherContactToMyContactsGroupRequest { pub read_mask: Option, /// Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. - pub sources: Option>, + pub sources: Option>, } impl client::RequestValue for CopyOtherContactToMyContactsGroupRequest {} @@ -1059,7 +1059,7 @@ pub struct MiscKeyword { /// The miscellaneous keyword type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value of the miscellaneous keyword. pub value: Option, @@ -1200,7 +1200,7 @@ pub struct Nickname { /// The type of the nickname. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The nickname. pub value: Option, @@ -1315,7 +1315,7 @@ pub struct Person { /// Output only. **DEPRECATED** (Please use `person.ageRanges` instead) The person's age range. #[serde(rename="ageRange")] - pub age_range: Option, + pub age_range: Option, /// Output only. The person's age ranges. #[serde(rename="ageRanges")] @@ -1463,7 +1463,7 @@ pub struct PersonMetadata { /// Output only. **DEPRECATED** (Please use `person.metadata.sources.profileMetadata.objectType` instead) The type of the person object. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, /// Output only. Any former resource names this person has had. Populated only for `people.connections.list` requests that include a sync token. The resource name may change when adding or removing fields that link a contact and profile such as a verified email, verified phone number, or profile URL. #[serde(rename="previousResourceNames")] @@ -1563,11 +1563,11 @@ pub struct ProfileMetadata { /// Output only. The profile object type. #[serde(rename="objectType")] - pub object_type: Option, + pub object_type: Option, /// Output only. The user types. #[serde(rename="userTypes")] - pub user_types: Option>, + pub user_types: Option>, } impl client::Part for ProfileMetadata {} @@ -1790,7 +1790,7 @@ pub struct Source { /// The source type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. **Only populated in `person.metadata.sources`.** Last update timestamp of this source. #[serde(rename="updateTime")] @@ -1889,7 +1889,7 @@ pub struct UpdateContactPhotoRequest { pub photo_bytes: Option>, /// Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. - pub sources: Option>, + pub sources: Option>, } impl client::RequestValue for UpdateContactPhotoRequest {} diff --git a/gen/photoslibrary1/src/api/call_builders.rs b/gen/photoslibrary1/src/api/call_builders.rs index 930bb6d308..1eb5d6a265 100644 --- a/gen/photoslibrary1/src/api/call_builders.rs +++ b/gen/photoslibrary1/src/api/call_builders.rs @@ -1877,7 +1877,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("albumId", self._album_id); + params.push("albumId", &self._album_id); params.extend(self._additional_params.iter()); @@ -2169,7 +2169,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("albumId", self._album_id); + params.push("albumId", &self._album_id); params.extend(self._additional_params.iter()); @@ -2461,7 +2461,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("albumId", self._album_id); + params.push("albumId", &self._album_id); params.extend(self._additional_params.iter()); @@ -3019,7 +3019,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("albumId", self._album_id); + params.push("albumId", &self._album_id); params.extend(self._additional_params.iter()); @@ -3569,7 +3569,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("id", self._id); + params.push("id", &self._id); if let Some(value) = self._update_mask.as_ref() { params.push("updateMask", value.to_string()); } @@ -3871,7 +3871,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("albumId", self._album_id); + params.push("albumId", &self._album_id); params.extend(self._additional_params.iter()); @@ -4163,7 +4163,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("albumId", self._album_id); + params.push("albumId", &self._album_id); params.extend(self._additional_params.iter()); @@ -4979,7 +4979,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("mediaItemId", self._media_item_id); + params.push("mediaItemId", &self._media_item_id); params.extend(self._additional_params.iter()); @@ -5517,7 +5517,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("id", self._id); + params.push("id", &self._id); if let Some(value) = self._update_mask.as_ref() { params.push("updateMask", value.to_string()); } @@ -6085,7 +6085,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("shareToken", self._share_token); + params.push("shareToken", &self._share_token); params.extend(self._additional_params.iter()); diff --git a/gen/photoslibrary1/src/api/mod.rs b/gen/photoslibrary1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/photoslibrary1/src/api/mod.rs +++ b/gen/photoslibrary1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/photoslibrary1/src/api/schemas.rs b/gen/photoslibrary1/src/api/schemas.rs index 4ef1895cf0..3d80542907 100644 --- a/gen/photoslibrary1/src/api/schemas.rs +++ b/gen/photoslibrary1/src/api/schemas.rs @@ -110,7 +110,7 @@ impl client::ResponseResult for Album {} pub struct AlbumPosition { /// Type of position, for a media or enrichment item. - pub position: Option, + pub position: Option, /// The enrichment item to which the position is relative to. Only used when position type is AFTER_ENRICHMENT_ITEM. #[serde(rename="relativeEnrichmentItemId")] @@ -272,11 +272,11 @@ pub struct ContentFilter { /// The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request. #[serde(rename="excludedContentCategories")] - pub excluded_content_categories: Option>, + pub excluded_content_categories: Option>, /// The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request. #[serde(rename="includedContentCategories")] - pub included_content_categories: Option>, + pub included_content_categories: Option>, } impl client::Part for ContentFilter {} @@ -405,7 +405,7 @@ pub struct FeatureFilter { /// The set of features to be included in the media item search results. The items in the set are ORed and may match any of the specified features. #[serde(rename="includedFeatures")] - pub included_features: Option>, + pub included_features: Option>, } impl client::Part for FeatureFilter {} @@ -773,7 +773,7 @@ pub struct MediaTypeFilter { /// The types of media items to be included. This field should be populated with only one media type. If you specify multiple media types, it results in an error. #[serde(rename="mediaTypes")] - pub media_types: Option>, + pub media_types: Option>, } impl client::Part for MediaTypeFilter {} @@ -1143,7 +1143,7 @@ pub struct Video { pub fps: Option, /// Processing status of the video. - pub status: Option, + pub status: Option, } impl client::Part for Video {} diff --git a/gen/playablelocations3/src/api/mod.rs b/gen/playablelocations3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/playablelocations3/src/api/mod.rs +++ b/gen/playablelocations3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/playablelocations3/src/api/schemas.rs b/gen/playablelocations3/src/api/schemas.rs index 550a614303..51f6408fab 100644 --- a/gen/playablelocations3/src/api/schemas.rs +++ b/gen/playablelocations3/src/api/schemas.rs @@ -22,7 +22,7 @@ pub struct GoogleMapsPlayablelocationsV3Impression { /// Required. The type of impression event. #[serde(rename="impressionType")] - pub impression_type: Option, + pub impression_type: Option, /// Required. The name of the playable location. #[serde(rename="locationName")] @@ -163,7 +163,7 @@ pub struct GoogleMapsPlayablelocationsV3PlayerReport { pub reason_details: Option, /// Required. One or more reasons why this playable location is considered bad. - pub reasons: Option>, + pub reasons: Option>, } impl client::Part for GoogleMapsPlayablelocationsV3PlayerReport {} @@ -471,7 +471,7 @@ pub struct GoogleMapsPlayablelocationsV3SampleSpacingOptions { /// Set this to the point type used in your game. #[serde(rename="pointType")] - pub point_type: Option, + pub point_type: Option, } impl client::Part for GoogleMapsPlayablelocationsV3SampleSpacingOptions {} @@ -523,7 +523,7 @@ pub struct GoogleMapsUnityClientInfo { pub operating_system_build: Option, /// Platform where the application is running. - pub platform: Option, + pub platform: Option, } impl client::Part for GoogleMapsUnityClientInfo {} diff --git a/gen/playcustomapp1/src/api/call_builders.rs b/gen/playcustomapp1/src/api/call_builders.rs index f50f7436c8..8674426b44 100644 --- a/gen/playcustomapp1/src/api/call_builders.rs +++ b/gen/playcustomapp1/src/api/call_builders.rs @@ -367,7 +367,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("account", self._account.to_string()); + params.push("account", &self._account.to_string()); params.extend(self._additional_params.iter()); diff --git a/gen/playcustomapp1/src/api/mod.rs b/gen/playcustomapp1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/playcustomapp1/src/api/mod.rs +++ b/gen/playcustomapp1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/playintegrity1/src/api/call_builders.rs b/gen/playintegrity1/src/api/call_builders.rs index 4ff462d591..390d2fac88 100644 --- a/gen/playintegrity1/src/api/call_builders.rs +++ b/gen/playintegrity1/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("packageName", self._package_name); + params.push("packageName", &self._package_name); params.extend(self._additional_params.iter()); diff --git a/gen/playintegrity1/src/api/mod.rs b/gen/playintegrity1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/playintegrity1/src/api/mod.rs +++ b/gen/playintegrity1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/playintegrity1/src/api/schemas.rs b/gen/playintegrity1/src/api/schemas.rs index 52f1f7cf7d..16f0e1025c 100644 --- a/gen/playintegrity1/src/api/schemas.rs +++ b/gen/playintegrity1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct AccountActivity { /// Required. Indicates the activity level of the account. #[serde(rename="activityLevel")] - pub activity_level: Option, + pub activity_level: Option, } impl client::Part for AccountActivity {} @@ -29,7 +29,7 @@ pub struct AccountDetails { /// Required. Details about the licensing status of the user for the app in the scope. #[serde(rename="appLicensingVerdict")] - pub app_licensing_verdict: Option, + pub app_licensing_verdict: Option, } impl client::Part for AccountDetails {} @@ -45,7 +45,7 @@ pub struct AppIntegrity { /// Required. Details about the app recognition verdict #[serde(rename="appRecognitionVerdict")] - pub app_recognition_verdict: Option, + pub app_recognition_verdict: Option, /// The SHA256 hash of the requesting app's signing certificates (base64 web-safe encoded). Set iff app_recognition_verdict != UNEVALUATED. #[serde(rename="certificateSha256Digest")] @@ -114,7 +114,7 @@ pub struct DeviceIntegrity { /// Details about the integrity of the device the app is running on #[serde(rename="deviceRecognitionVerdict")] - pub device_recognition_verdict: Option>, + pub device_recognition_verdict: Option>, } impl client::Part for DeviceIntegrity {} diff --git a/gen/playmoviespartner1/src/api/mod.rs b/gen/playmoviespartner1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/playmoviespartner1/src/api/mod.rs +++ b/gen/playmoviespartner1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/playmoviespartner1/src/api/schemas.rs b/gen/playmoviespartner1/src/api/schemas.rs index 7ef471e257..cefabab241 100644 --- a/gen/playmoviespartner1/src/api/schemas.rs +++ b/gen/playmoviespartner1/src/api/schemas.rs @@ -24,10 +24,10 @@ pub struct Order { /// Detailed status of the order #[serde(rename="statusDetail")] - pub status_detail: Option, + pub status_detail: Option, /// High-level status of the order. - pub status: Option, + pub status: Option, /// Timestamp of the earliest start date of the Avails /// linked to this Order. #[serde(rename="earliestAvailStartTime")] @@ -78,7 +78,7 @@ pub struct Order { /// A simpler representation of the priority. #[serde(rename="normalizedPriority")] - pub normalized_priority: Option, + pub normalized_priority: Option, /// ID internally generated by Google to uniquely identify an Order. /// Example: 'abcde12_x' #[serde(rename="orderId")] @@ -87,7 +87,7 @@ pub struct Order { /// Type of the Edit linked to the Order. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Field explaining why an Order has been rejected. /// Example: "Trailer audio is 2ch mono, please re-deliver in stereo". #[serde(rename="rejectionNote")] @@ -266,7 +266,7 @@ pub struct StoreInfo { /// Edit type, like Movie, Episode or Season. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Google-generated ID identifying the trailer linked to the Edit. /// Example: 'bhd_4e_cx' #[serde(rename="trailerId")] @@ -362,7 +362,7 @@ pub struct Avail { /// Indicates the format profile covered by the transaction. #[serde(rename="formatProfile")] - pub format_profile: Option, + pub format_profile: Option, /// Title Identifier. This should be the Title Level EIDR. /// Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". #[serde(rename="contentId")] @@ -432,7 +432,7 @@ pub struct Avail { /// Work type as enumerated in EMA. #[serde(rename="workType")] - pub work_type: Option, + pub work_type: Option, /// ID internally generated by Google to uniquely identify an Avail. /// Not part of EMA Specs. #[serde(rename="availId")] @@ -486,7 +486,7 @@ pub struct Avail { /// Type of transaction. #[serde(rename="licenseType")] - pub license_type: Option, + pub license_type: Option, /// The number assigned to the season within a series. /// Only available on TV Avails. /// Example: "1". diff --git a/gen/plus1/README.md b/gen/plus1/README.md index 9fd9da4861..15ab96617a 100644 --- a/gen/plus1/README.md +++ b/gen/plus1/README.md @@ -100,10 +100,10 @@ let mut hub = Plus::new(hyper::Client::builder().build(hyper_rustls::HttpsConnec // You can configure optional parameters by calling the respective setters at will, and // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! -let result = hub.people().list("userId", "collection") - .page_token("no") - .order_by("ipsum") - .max_results(73) +let result = hub.people().list("userId", &Default::default()) + .page_token("magna") + .order_by(&Default::default()) + .max_results(90) .doit().await; match result { diff --git a/gen/plus1/src/api/hub.rs b/gen/plus1/src/api/hub.rs index 6dea64fe49..60a6ff478d 100644 --- a/gen/plus1/src/api/hub.rs +++ b/gen/plus1/src/api/hub.rs @@ -31,10 +31,10 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.people().list("userId", "collection") -/// .page_token("ipsum") -/// .order_by("gubergren") -/// .max_results(50) +/// let result = hub.people().list("userId", &Default::default()) +/// .page_token("sed") +/// .order_by(&Default::default()) +/// .max_results(99) /// .doit().await; /// /// match result { diff --git a/gen/plus1/src/api/method_builders.rs b/gen/plus1/src/api/method_builders.rs index 4ac575cabe..0c21c562b3 100644 --- a/gen/plus1/src/api/method_builders.rs +++ b/gen/plus1/src/api/method_builders.rs @@ -62,11 +62,11 @@ impl<'a, S> ActivityMethods<'a, S> { /// /// * `userId` - The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user. /// * `collection` - The collection of activities to list. - pub fn list(&self, user_id: &str, collection: &str) -> ActivityListCall<'a, S> { + pub fn list(&self, user_id: &str, collection: &ActivityCollectionEnum) -> ActivityListCall<'a, S> { ActivityListCall { hub: self.hub, _user_id: user_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _max_results: Default::default(), _delegate: Default::default(), @@ -240,11 +240,11 @@ impl<'a, S> PersonMethods<'a, S> { /// /// * `userId` - Get the collection of people for the person identified. Use "me" to indicate the authenticated user. /// * `collection` - The collection of people to list. - pub fn list(&self, user_id: &str, collection: &str) -> PersonListCall<'a, S> { + pub fn list(&self, user_id: &str, collection: &PersonCollectionEnum) -> PersonListCall<'a, S> { PersonListCall { hub: self.hub, _user_id: user_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _order_by: Default::default(), _max_results: Default::default(), @@ -262,11 +262,11 @@ impl<'a, S> PersonMethods<'a, S> { /// /// * `activityId` - The ID of the activity to get the list of people for. /// * `collection` - The collection of people to list. - pub fn list_by_activity(&self, activity_id: &str, collection: &str) -> PersonListByActivityCall<'a, S> { + pub fn list_by_activity(&self, activity_id: &str, collection: &PersonCollectionEnum) -> PersonListByActivityCall<'a, S> { PersonListByActivityCall { hub: self.hub, _activity_id: activity_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _max_results: Default::default(), _delegate: Default::default(), diff --git a/gen/plus1/src/api/mod.rs b/gen/plus1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/plus1/src/api/mod.rs +++ b/gen/plus1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/plus1/src/lib.rs b/gen/plus1/src/lib.rs index bff95a3ae4..5d9516da67 100644 --- a/gen/plus1/src/lib.rs +++ b/gen/plus1/src/lib.rs @@ -101,10 +101,10 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.people().list("userId", "collection") -//! .page_token("sed") -//! .order_by("amet.") -//! .max_results(42) +//! let result = hub.people().list("userId", &Default::default()) +//! .page_token("voluptua.") +//! .order_by(&Default::default()) +//! .max_results(74) //! .doit().await; //! //! match result { diff --git a/gen/plusdomains1/README.md b/gen/plusdomains1/README.md index d8387db549..e7aa008d15 100644 --- a/gen/plusdomains1/README.md +++ b/gen/plusdomains1/README.md @@ -110,9 +110,9 @@ let mut hub = PlusDomains::new(hyper::Client::builder().build(hyper_rustls::Http // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.comments().list("activityId") - .sort_order("magna") - .page_token("no") - .max_results(46) + .sort_order(&Default::default()) + .page_token("magna") + .max_results(90) .doit().await; match result { diff --git a/gen/plusdomains1/src/api/hub.rs b/gen/plusdomains1/src/api/hub.rs index 3bab79f7c5..0dd68f102b 100644 --- a/gen/plusdomains1/src/api/hub.rs +++ b/gen/plusdomains1/src/api/hub.rs @@ -32,9 +32,9 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.comments().list("activityId") -/// .sort_order("takimata") -/// .page_token("amet.") -/// .max_results(81) +/// .sort_order(&Default::default()) +/// .page_token("sed") +/// .max_results(99) /// .doit().await; /// /// match result { diff --git a/gen/plusdomains1/src/api/method_builders.rs b/gen/plusdomains1/src/api/method_builders.rs index 5f09e3c0bd..1c94c9feae 100644 --- a/gen/plusdomains1/src/api/method_builders.rs +++ b/gen/plusdomains1/src/api/method_builders.rs @@ -62,11 +62,11 @@ impl<'a, S> ActivityMethods<'a, S> { /// /// * `userId` - The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user. /// * `collection` - The collection of activities to list. - pub fn list(&self, user_id: &str, collection: &str) -> ActivityListCall<'a, S> { + pub fn list(&self, user_id: &str, collection: &ActivityCollectionEnum) -> ActivityListCall<'a, S> { ActivityListCall { hub: self.hub, _user_id: user_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _max_results: Default::default(), _delegate: Default::default(), @@ -323,12 +323,12 @@ impl<'a, S> MediaMethods<'a, S> { /// * `request` - No description provided. /// * `userId` - The ID of the user to create the activity on behalf of. /// * `collection` - No description provided. - pub fn insert(&self, request: Media, user_id: &str, collection: &str) -> MediaInsertCall<'a, S> { + pub fn insert(&self, request: Media, user_id: &str, collection: &MediaCollectionEnum) -> MediaInsertCall<'a, S> { MediaInsertCall { hub: self.hub, _request: request, _user_id: user_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), @@ -401,11 +401,11 @@ impl<'a, S> PersonMethods<'a, S> { /// /// * `userId` - Get the collection of people for the person identified. Use "me" to indicate the authenticated user. /// * `collection` - The collection of people to list. - pub fn list(&self, user_id: &str, collection: &str) -> PersonListCall<'a, S> { + pub fn list(&self, user_id: &str, collection: &PersonCollectionEnum) -> PersonListCall<'a, S> { PersonListCall { hub: self.hub, _user_id: user_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _order_by: Default::default(), _max_results: Default::default(), @@ -423,11 +423,11 @@ impl<'a, S> PersonMethods<'a, S> { /// /// * `activityId` - The ID of the activity to get the list of people for. /// * `collection` - The collection of people to list. - pub fn list_by_activity(&self, activity_id: &str, collection: &str) -> PersonListByActivityCall<'a, S> { + pub fn list_by_activity(&self, activity_id: &str, collection: &PersonCollectionEnum) -> PersonListByActivityCall<'a, S> { PersonListByActivityCall { hub: self.hub, _activity_id: activity_id.to_string(), - _collection: collection.to_string(), + _collection: collection.clone(), _page_token: Default::default(), _max_results: Default::default(), _delegate: Default::default(), diff --git a/gen/plusdomains1/src/api/mod.rs b/gen/plusdomains1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/plusdomains1/src/api/mod.rs +++ b/gen/plusdomains1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/plusdomains1/src/lib.rs b/gen/plusdomains1/src/lib.rs index c93aa37618..07230ccb4c 100644 --- a/gen/plusdomains1/src/lib.rs +++ b/gen/plusdomains1/src/lib.rs @@ -111,9 +111,9 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.comments().list("activityId") -//! .sort_order("At") -//! .page_token("sanctus") -//! .max_results(21) +//! .sort_order(&Default::default()) +//! .page_token("voluptua.") +//! .max_results(74) //! .doit().await; //! //! match result { diff --git a/gen/policyanalyzer1/src/api/call_builders.rs b/gen/policyanalyzer1/src/api/call_builders.rs index 18460bbbd1..316c62c3fe 100644 --- a/gen/policyanalyzer1/src/api/call_builders.rs +++ b/gen/policyanalyzer1/src/api/call_builders.rs @@ -380,7 +380,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._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/policyanalyzer1/src/api/mod.rs b/gen/policyanalyzer1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/policyanalyzer1/src/api/mod.rs +++ b/gen/policyanalyzer1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/policysimulator1/src/api/call_builders.rs b/gen/policysimulator1/src/api/call_builders.rs index e3286f4617..038c7528b1 100644 --- a/gen/policysimulator1/src/api/call_builders.rs +++ b/gen/policysimulator1/src/api/call_builders.rs @@ -2041,7 +2041,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()); @@ -2309,7 +2309,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); } @@ -2605,7 +2605,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2894,7 +2894,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3179,7 +3179,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()); @@ -3441,7 +3441,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()); @@ -3709,7 +3709,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); } @@ -5401,7 +5401,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()); @@ -5669,7 +5669,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); } @@ -5965,7 +5965,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -6254,7 +6254,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6539,7 +6539,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()); @@ -7063,7 +7063,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()); @@ -7331,7 +7331,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); } @@ -7627,7 +7627,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7916,7 +7916,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8201,7 +8201,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()); diff --git a/gen/policysimulator1/src/api/mod.rs b/gen/policysimulator1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/policysimulator1/src/api/mod.rs +++ b/gen/policysimulator1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/policysimulator1/src/api/schemas.rs b/gen/policysimulator1/src/api/schemas.rs index 9a3dd9b880..62424838da 100644 --- a/gen/policysimulator1/src/api/schemas.rs +++ b/gen/policysimulator1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct GoogleCloudPolicysimulatorV1AccessStateDiff { /// How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies. #[serde(rename="accessChange")] - pub access_change: Option, + pub access_change: Option, /// The results of evaluating the access tuple under the current (baseline) policies. If the AccessState couldn't be fully evaluated, this field explains why. pub baseline: Option, @@ -52,7 +52,7 @@ impl client::Part for GoogleCloudPolicysimulatorV1AccessTuple {} pub struct GoogleCloudPolicysimulatorV1BindingExplanation { /// Required. Indicates whether _this binding_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the principal actually has the permission, use the `access` field in the TroubleshootIamPolicyResponse. - pub access: Option, + pub access: Option, /// A condition expression that prevents this binding from granting access unless the expression evaluates to `true`. To learn about IAM Conditions, see https://cloud.google.com/iam/docs/conditions-overview. pub condition: Option, @@ -61,18 +61,18 @@ pub struct GoogleCloudPolicysimulatorV1BindingExplanation { pub memberships: Option>, /// The relevance of this binding to the overall determination for the entire policy. - pub relevance: Option, + pub relevance: Option, /// The role that this binding grants. For example, `roles/compute.serviceAgent`. For a complete list of predefined IAM roles, as well as the permissions in each role, see https://cloud.google.com/iam/help/roles/reference. pub role: Option, /// Indicates whether the role granted by this binding contains the specified permission. #[serde(rename="rolePermission")] - pub role_permission: Option, + pub role_permission: Option, /// The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy. #[serde(rename="rolePermissionRelevance")] - pub role_permission_relevance: Option, + pub role_permission_relevance: Option, } impl client::Part for GoogleCloudPolicysimulatorV1BindingExplanation {} @@ -87,10 +87,10 @@ impl client::Part for GoogleCloudPolicysimulatorV1BindingExplanation {} pub struct GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership { /// Indicates whether the binding includes the principal. - pub membership: Option, + pub membership: Option, /// The relevance of the principal's status to the overall determination for the binding. - pub relevance: Option, + pub relevance: Option, } impl client::Part for GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership {} @@ -106,7 +106,7 @@ pub struct GoogleCloudPolicysimulatorV1ExplainedAccess { /// Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies. #[serde(rename="accessState")] - pub access_state: Option, + pub access_state: Option, /// If the AccessState is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is omitted. pub errors: Option>, @@ -127,7 +127,7 @@ impl client::Part for GoogleCloudPolicysimulatorV1ExplainedAccess {} pub struct GoogleCloudPolicysimulatorV1ExplainedPolicy { /// Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use the `access` field in the TroubleshootIamPolicyResponse. - pub access: Option, + pub access: Option, /// Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the Replay does not have access to the policy, this field is omitted. #[serde(rename="bindingExplanations")] @@ -141,7 +141,7 @@ pub struct GoogleCloudPolicysimulatorV1ExplainedPolicy { pub policy: Option, /// The relevance of this policy to the overall determination in the TroubleshootIamPolicyResponse. If the user who created the Replay does not have access to the policy, this field is omitted. - pub relevance: Option, + pub relevance: Option, } impl client::Part for GoogleCloudPolicysimulatorV1ExplainedPolicy {} @@ -201,7 +201,7 @@ pub struct GoogleCloudPolicysimulatorV1Replay { pub results_summary: Option, /// Output only. The current state of the `Replay`. - pub state: Option, + pub state: Option, } impl client::RequestValue for GoogleCloudPolicysimulatorV1Replay {} @@ -218,7 +218,7 @@ pub struct GoogleCloudPolicysimulatorV1ReplayConfig { /// The logs to use as input for the Replay. #[serde(rename="logSource")] - pub log_source: Option, + pub log_source: Option, /// A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay. #[serde(rename="policyOverlay")] @@ -345,7 +345,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/policytroubleshooter1/src/api/mod.rs b/gen/policytroubleshooter1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/policytroubleshooter1/src/api/mod.rs +++ b/gen/policytroubleshooter1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/policytroubleshooter1/src/api/schemas.rs b/gen/policytroubleshooter1/src/api/schemas.rs index 2b3edec1cd..37f7e2b832 100644 --- a/gen/policytroubleshooter1/src/api/schemas.rs +++ b/gen/policytroubleshooter1/src/api/schemas.rs @@ -195,7 +195,7 @@ impl client::Part for GoogleCloudPolicytroubleshooterV1AccessTuple {} pub struct GoogleCloudPolicytroubleshooterV1BindingExplanation { /// Required. Indicates whether _this binding_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the principal actually has the permission, use the `access` field in the TroubleshootIamPolicyResponse. - pub access: Option, + pub access: Option, /// A condition expression that prevents this binding from granting access unless the expression evaluates to `true`. To learn about IAM Conditions, see https://cloud.google.com/iam/help/conditions/overview. pub condition: Option, @@ -204,18 +204,18 @@ pub struct GoogleCloudPolicytroubleshooterV1BindingExplanation { pub memberships: Option>, /// The relevance of this binding to the overall determination for the entire policy. - pub relevance: Option, + pub relevance: Option, /// The role that this binding grants. For example, `roles/compute.serviceAgent`. For a complete list of predefined IAM roles, as well as the permissions in each role, see https://cloud.google.com/iam/help/roles/reference. pub role: Option, /// Indicates whether the role granted by this binding contains the specified permission. #[serde(rename="rolePermission")] - pub role_permission: Option, + pub role_permission: Option, /// The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy. #[serde(rename="rolePermissionRelevance")] - pub role_permission_relevance: Option, + pub role_permission_relevance: Option, } impl client::Part for GoogleCloudPolicytroubleshooterV1BindingExplanation {} @@ -230,10 +230,10 @@ impl client::Part for GoogleCloudPolicytroubleshooterV1BindingExplanation {} pub struct GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership { /// Indicates whether the binding includes the principal. - pub membership: Option, + pub membership: Option, /// The relevance of the principal's status to the overall determination for the binding. - pub relevance: Option, + pub relevance: Option, } impl client::Part for GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership {} @@ -248,7 +248,7 @@ impl client::Part for GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotat pub struct GoogleCloudPolicytroubleshooterV1ExplainedPolicy { /// Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use the `access` field in the TroubleshootIamPolicyResponse. - pub access: Option, + pub access: Option, /// Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the sender of the request does not have access to the policy, this field is omitted. #[serde(rename="bindingExplanations")] @@ -262,7 +262,7 @@ pub struct GoogleCloudPolicytroubleshooterV1ExplainedPolicy { pub policy: Option, /// The relevance of this policy to the overall determination in the TroubleshootIamPolicyResponse. If the sender of the request does not have access to the policy, this field is omitted. - pub relevance: Option, + pub relevance: Option, } impl client::Part for GoogleCloudPolicytroubleshooterV1ExplainedPolicy {} @@ -301,7 +301,7 @@ impl client::RequestValue for GoogleCloudPolicytroubleshooterV1TroubleshootIamPo pub struct GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse { /// Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies. - pub access: Option, + pub access: Option, /// The general errors contained in the troubleshooting response. pub errors: Option>, @@ -347,7 +347,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/prediction1d6/src/api/call_builders.rs b/gen/prediction1d6/src/api/call_builders.rs index 1b135245ce..a71b44e849 100644 --- a/gen/prediction1d6/src/api/call_builders.rs +++ b/gen/prediction1d6/src/api/call_builders.rs @@ -1074,8 +1074,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("hostedModelName", self._hosted_model_name); + params.push("project", &self._project); + params.push("hostedModelName", &self._hosted_model_name); params.extend(self._additional_params.iter()); @@ -1367,8 +1367,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("id", self._id); + params.push("project", &self._project); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -1637,8 +1637,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("project", self._project); - params.push("id", self._id); + params.push("project", &self._project); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -1896,8 +1896,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("id", self._id); + params.push("project", &self._project); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -2172,7 +2172,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -2457,7 +2457,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2743,8 +2743,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("id", self._id); + params.push("project", &self._project); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -3043,8 +3043,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("id", self._id); + params.push("project", &self._project); + params.push("id", &self._id); params.extend(self._additional_params.iter()); diff --git a/gen/prediction1d6/src/api/mod.rs b/gen/prediction1d6/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/prediction1d6/src/api/mod.rs +++ b/gen/prediction1d6/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/privateca1/src/api/mod.rs b/gen/privateca1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/privateca1/src/api/mod.rs +++ b/gen/privateca1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/privateca1/src/api/schemas.rs b/gen/privateca1/src/api/schemas.rs index 407d4ed272..d82174b834 100644 --- a/gen/privateca1/src/api/schemas.rs +++ b/gen/privateca1/src/api/schemas.rs @@ -99,7 +99,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -175,7 +175,7 @@ pub struct CaPool { pub publishing_options: Option, /// Required. Immutable. The Tier of this CaPool. - pub tier: Option, + pub tier: Option, } 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, + pub subject_mode: Option, /// 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>, /// Output only. The State for this CertificateAuthority. - pub state: Option, + pub state: Option, /// 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, /// Output only. The CaPool.Tier of the CaPool that includes this CertificateAuthority. - pub tier: Option, + pub tier: Option, /// Required. Immutable. The Type of this CertificateAuthority. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// 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>, + pub known_extensions: Option>, } impl client::Part for CertificateExtensionConstraints {} @@ -540,7 +540,7 @@ pub struct CertificateRevocationList { pub sequence_number: Option, /// Output only. The State for this CertificateRevocationList. - pub state: Option, + pub state: Option, /// 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, + pub signature_algorithm: Option, } 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, + pub algorithm: Option, /// 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, + pub format: Option, /// 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, + pub revocation_state: Option, /// 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, + pub reason: Option, /// 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, + pub revocation_reason: Option, } impl client::Part for RevokedCertificate {} diff --git a/gen/privateca1_beta1/src/api/mod.rs b/gen/privateca1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/privateca1_beta1/src/api/mod.rs +++ b/gen/privateca1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/privateca1_beta1/src/api/schemas.rs b/gen/privateca1_beta1/src/api/schemas.rs index 657a726a89..bcbe4a6fc9 100644 --- a/gen/privateca1_beta1/src/api/schemas.rs +++ b/gen/privateca1_beta1/src/api/schemas.rs @@ -132,7 +132,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -319,18 +319,18 @@ pub struct CertificateAuthority { pub pem_ca_certificates: Option>, /// Output only. The State for this CertificateAuthority. - pub state: Option, + pub state: Option, /// 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, /// Required. Immutable. The Tier of this CertificateAuthority. - pub tier: Option, + pub tier: Option, /// Required. Immutable. The Type of this CertificateAuthority. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Output only. The time at which this CertificateAuthority was updated. #[serde(rename="updateTime")] @@ -507,7 +507,7 @@ pub struct CertificateRevocationList { pub sequence_number: Option, /// Output only. The State for this CertificateRevocationList. - pub state: Option, + pub state: Option, /// Output only. The time at which this CertificateRevocationList was updated. #[serde(rename="updateTime")] @@ -791,7 +791,7 @@ impl client::Part for KeyUsageOptions {} pub struct KeyVersionSpec { /// Required. 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, + pub algorithm: Option, /// Required. 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")] @@ -1091,7 +1091,7 @@ pub struct PublicKey { /// Optional. The type of public key. If specified, it must match the public key used for the`key` field. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for PublicKey {} @@ -1215,7 +1215,7 @@ pub struct RevocationDetails { /// Indicates why a Certificate was revoked. #[serde(rename="revocationState")] - pub revocation_state: Option, + pub revocation_state: Option, /// The time at which this Certificate was revoked. #[serde(rename="revocationTime")] @@ -1238,7 +1238,7 @@ impl client::Part for RevocationDetails {} pub struct RevokeCertificateRequest { /// Required. The RevocationReason for revoking this certificate. - pub reason: Option, + pub reason: Option, /// 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")] @@ -1265,7 +1265,7 @@ pub struct RevokedCertificate { /// The reason the Certificate was revoked. #[serde(rename="revocationReason")] - pub revocation_reason: Option, + pub revocation_reason: Option, } impl client::Part for RevokedCertificate {} diff --git a/gen/prod_tt_sasportal1_alpha1/src/api/call_builders.rs b/gen/prod_tt_sasportal1_alpha1/src/api/call_builders.rs index 26efdd9f83..4c930ea31e 100644 --- a/gen/prod_tt_sasportal1_alpha1/src/api/call_builders.rs +++ b/gen/prod_tt_sasportal1_alpha1/src/api/call_builders.rs @@ -3195,7 +3195,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3487,7 +3487,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3778,7 +3778,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4077,7 +4077,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4362,7 +4362,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()); @@ -4624,7 +4624,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()); @@ -4892,7 +4892,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5191,7 +5191,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()); @@ -5485,7 +5485,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5787,7 +5787,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6079,7 +6079,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6364,7 +6364,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()); @@ -6626,7 +6626,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()); @@ -6894,7 +6894,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7193,7 +7193,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()); @@ -7487,7 +7487,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7789,7 +7789,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()); @@ -8081,7 +8081,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()); @@ -8373,7 +8373,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8664,7 +8664,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._page_token.as_ref() { params.push("pageToken", value); } @@ -8963,7 +8963,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9255,7 +9255,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9546,7 +9546,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._page_token.as_ref() { params.push("pageToken", value); } @@ -9845,7 +9845,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10136,7 +10136,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._page_token.as_ref() { params.push("pageToken", value); } @@ -10435,7 +10435,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10720,7 +10720,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()); @@ -10982,7 +10982,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()); @@ -11250,7 +11250,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._page_token.as_ref() { params.push("pageToken", value); } @@ -11549,7 +11549,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()); @@ -11843,7 +11843,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12138,7 +12138,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()); @@ -13435,7 +13435,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -14276,7 +14276,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()); @@ -14538,7 +14538,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()); @@ -14807,7 +14807,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()); @@ -15101,7 +15101,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -15403,7 +15403,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()); @@ -15695,7 +15695,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()); @@ -15980,7 +15980,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()); @@ -16795,7 +16795,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -17087,7 +17087,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -17378,7 +17378,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._page_token.as_ref() { params.push("pageToken", value); } @@ -17670,7 +17670,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()); @@ -17932,7 +17932,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()); @@ -18200,7 +18200,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._page_token.as_ref() { params.push("pageToken", value); } @@ -18499,7 +18499,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()); @@ -18793,7 +18793,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -19095,7 +19095,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -19387,7 +19387,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -19672,7 +19672,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()); @@ -19934,7 +19934,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()); @@ -20202,7 +20202,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._page_token.as_ref() { params.push("pageToken", value); } @@ -20501,7 +20501,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()); @@ -20795,7 +20795,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -21097,7 +21097,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()); @@ -21389,7 +21389,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()); @@ -21681,7 +21681,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -21972,7 +21972,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._page_token.as_ref() { params.push("pageToken", value); } @@ -22271,7 +22271,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -22563,7 +22563,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -22854,7 +22854,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._page_token.as_ref() { params.push("pageToken", value); } @@ -23153,7 +23153,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -23444,7 +23444,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._page_token.as_ref() { params.push("pageToken", value); } @@ -23743,7 +23743,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -24028,7 +24028,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()); @@ -24290,7 +24290,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()); @@ -24558,7 +24558,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._page_token.as_ref() { params.push("pageToken", value); } @@ -24857,7 +24857,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()); @@ -25151,7 +25151,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -25446,7 +25446,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()); diff --git a/gen/prod_tt_sasportal1_alpha1/src/api/mod.rs b/gen/prod_tt_sasportal1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/prod_tt_sasportal1_alpha1/src/api/mod.rs +++ b/gen/prod_tt_sasportal1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/prod_tt_sasportal1_alpha1/src/api/schemas.rs b/gen/prod_tt_sasportal1_alpha1/src/api/schemas.rs index 7aa272bca2..f951305e2a 100644 --- a/gen/prod_tt_sasportal1_alpha1/src/api/schemas.rs +++ b/gen/prod_tt_sasportal1_alpha1/src/api/schemas.rs @@ -204,7 +204,7 @@ pub struct SasPortalDevice { pub serial_number: Option, /// Output only. Device state. - pub state: Option, + pub state: Option, } impl client::RequestValue for SasPortalDevice {} @@ -221,7 +221,7 @@ pub struct SasPortalDeviceAirInterface { /// Conditional. This field specifies the radio access technology that is used for the CBSD. #[serde(rename="radioTechnology")] - pub radio_technology: Option, + pub radio_technology: Option, /// Optional. This field is related to the `radioTechnology` and provides the air interface specification that the CBSD is compliant with at the time of registration. #[serde(rename="supportedSpec")] @@ -248,7 +248,7 @@ pub struct SasPortalDeviceConfig { pub call_sign: Option, /// FCC category of the device. - pub category: Option, + pub category: Option, /// Installation parameters for the device. #[serde(rename="installationParams")] @@ -260,13 +260,13 @@ pub struct SasPortalDeviceConfig { /// Measurement reporting capabilities of the device. #[serde(rename="measurementCapabilities")] - pub measurement_capabilities: Option>, + pub measurement_capabilities: Option>, /// Information about this device model. pub model: Option, /// State of the configuration. - pub state: Option, + pub state: Option, /// Output only. The last time the device configuration was edited. #[serde(rename="updateTime")] @@ -290,7 +290,7 @@ pub struct SasPortalDeviceGrant { /// Type of channel used. #[serde(rename="channelType")] - pub channel_type: Option, + pub channel_type: Option, /// The expiration time of the grant. #[serde(rename="expireTime")] @@ -317,7 +317,7 @@ pub struct SasPortalDeviceGrant { pub move_list: Option>, /// State of the grant. - pub state: Option, + pub state: Option, /// If the grant is suspended, the reason(s) for suspension. #[serde(rename="suspensionReason")] @@ -555,7 +555,7 @@ pub struct SasPortalInstallationParams { /// Specifies how the height is measured. #[serde(rename="heightType")] - pub height_type: Option, + pub height_type: Option, /// A positive number in meters to indicate accuracy of the device antenna horizontal location. This optional parameter should only be present if its value is less than the FCC requirement of 50 meters. #[serde(rename="horizontalAccuracy")] @@ -802,7 +802,7 @@ pub struct SasPortalNrqzValidation { pub longitude: Option, /// State of the NRQZ validation info. - pub state: Option, + pub state: Option, } impl client::Part for SasPortalNrqzValidation {} diff --git a/gen/proximitybeacon1_beta1/README.md b/gen/proximitybeacon1_beta1/README.md index 0c2ab2281c..58d105627d 100644 --- a/gen/proximitybeacon1_beta1/README.md +++ b/gen/proximitybeacon1_beta1/README.md @@ -117,7 +117,7 @@ let result = hub.beacons().diagnostics_list("beaconName") .project_id("magna") .page_token("no") .page_size(-55) - .alert_filter("voluptua.") + .alert_filter(&Default::default()) .doit().await; match result { diff --git a/gen/proximitybeacon1_beta1/src/api/hub.rs b/gen/proximitybeacon1_beta1/src/api/hub.rs index b6d843a1a1..73bd68d4e5 100644 --- a/gen/proximitybeacon1_beta1/src/api/hub.rs +++ b/gen/proximitybeacon1_beta1/src/api/hub.rs @@ -32,10 +32,10 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.beacons().diagnostics_list("beaconName") -/// .project_id("duo") -/// .page_token("ipsum") -/// .page_size(-62) -/// .alert_filter("Lorem") +/// .project_id("takimata") +/// .page_token("amet.") +/// .page_size(-20) +/// .alert_filter(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/proximitybeacon1_beta1/src/api/mod.rs b/gen/proximitybeacon1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/proximitybeacon1_beta1/src/api/mod.rs +++ b/gen/proximitybeacon1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/proximitybeacon1_beta1/src/api/schemas.rs b/gen/proximitybeacon1_beta1/src/api/schemas.rs index ecdb8dec07..d3c0be7dc3 100644 --- a/gen/proximitybeacon1_beta1/src/api/schemas.rs +++ b/gen/proximitybeacon1_beta1/src/api/schemas.rs @@ -19,7 +19,7 @@ pub struct AdvertisedId { /// Required. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AdvertisedId {} @@ -129,7 +129,7 @@ pub struct Beacon { /// Optional. #[serde(rename="expectedStability")] - pub expected_stability: Option, + pub expected_stability: Option, /// The indoor level information for this beacon, if known. As returned by the /// Google Maps API. /// Optional. @@ -170,7 +170,7 @@ pub struct Beacon { /// Current status of the beacon. /// Required. - pub status: Option, + pub status: Option, } impl client::RequestValue for Beacon {} @@ -329,7 +329,7 @@ impl client::ResponseResult for DeleteAttachmentsResponse {} pub struct Diagnostics { /// An unordered list of Alerts that the beacon has. - pub alerts: Option>, + pub alerts: Option>, /// Resource name of the beacon. For Eddystone-EID beacons, this may /// be the beacon's current EID, or the beacon's "stable" Eddystone-UID. #[serde(rename="beaconName")] @@ -701,7 +701,7 @@ pub struct Namespace { /// via `beaconinfo.getforobserved`. #[serde(rename="servingVisibility")] - pub serving_visibility: Option, + pub serving_visibility: Option, } impl client::RequestValue for Namespace {} diff --git a/gen/proximitybeacon1_beta1/src/lib.rs b/gen/proximitybeacon1_beta1/src/lib.rs index 931a11b6c2..5d8f30ba84 100644 --- a/gen/proximitybeacon1_beta1/src/lib.rs +++ b/gen/proximitybeacon1_beta1/src/lib.rs @@ -115,10 +115,10 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.beacons().diagnostics_list("beaconName") -//! .project_id("sanctus") -//! .page_token("sed") -//! .page_size(-2) -//! .alert_filter("takimata") +//! .project_id("At") +//! .page_token("sanctus") +//! .page_size(-80) +//! .alert_filter(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/pubsub1/src/api/mod.rs b/gen/pubsub1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/pubsub1/src/api/mod.rs +++ b/gen/pubsub1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/pubsub1/src/api/schemas.rs b/gen/pubsub1/src/api/schemas.rs index dd1314b43e..d929dd35ee 100644 --- a/gen/pubsub1/src/api/schemas.rs +++ b/gen/pubsub1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct BigQueryConfig { pub drop_unknown_fields: Option, /// Output only. An output-only field that indicates whether or not the subscription can receive messages. - pub state: Option, + pub state: Option, /// The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId} pub table: Option, @@ -714,7 +714,7 @@ pub struct Schema { /// The type of the schema definition. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for Schema {} @@ -730,7 +730,7 @@ impl client::ResponseResult for Schema {} pub struct SchemaSettings { /// The encoding of messages validated against `schema`. - pub encoding: Option, + pub encoding: Option, /// The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before. #[serde(rename="firstRevisionId")] @@ -905,7 +905,7 @@ pub struct Subscription { pub retry_policy: Option, /// Output only. An output-only field indicating whether or not the subscription can receive messages. - pub state: Option, + pub state: Option, /// Required. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the topic has been deleted. pub topic: Option, @@ -1092,7 +1092,7 @@ impl client::RequestValue for UpdateTopicRequest {} pub struct ValidateMessageRequest { /// The encoding expected for messages - pub encoding: Option, + pub encoding: Option, /// Message to validate against the provided `schema_spec`. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] diff --git a/gen/pubsub1_beta2/src/api/call_builders.rs b/gen/pubsub1_beta2/src/api/call_builders.rs index 3ebe9cca6a..554c657f34 100644 --- a/gen/pubsub1_beta2/src/api/call_builders.rs +++ b/gen/pubsub1_beta2/src/api/call_builders.rs @@ -1182,7 +1182,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -1474,7 +1474,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()); @@ -1759,7 +1759,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -2021,7 +2021,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -2285,7 +2285,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()); } @@ -2561,7 +2561,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2850,7 +2850,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -3142,7 +3142,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -3434,7 +3434,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -3726,7 +3726,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()); @@ -4018,7 +4018,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()); @@ -4307,7 +4307,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -4596,7 +4596,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()); @@ -4881,7 +4881,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); params.extend(self._additional_params.iter()); @@ -5143,7 +5143,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); params.extend(self._additional_params.iter()); @@ -5407,7 +5407,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()); } @@ -5683,7 +5683,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -5972,7 +5972,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); params.extend(self._additional_params.iter()); @@ -6264,7 +6264,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()); @@ -6556,7 +6556,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()); diff --git a/gen/pubsub1_beta2/src/api/mod.rs b/gen/pubsub1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/pubsub1_beta2/src/api/mod.rs +++ b/gen/pubsub1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/pubsublite1/src/api/call_builders.rs b/gen/pubsublite1/src/api/call_builders.rs index ac299dffdb..5d7d3322d6 100644 --- a/gen/pubsublite1/src/api/call_builders.rs +++ b/gen/pubsublite1/src/api/call_builders.rs @@ -1667,7 +1667,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()); @@ -1952,7 +1952,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()); @@ -2214,7 +2214,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()); @@ -2482,7 +2482,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); } @@ -2778,7 +2778,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3069,7 +3069,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._reservation_id.as_ref() { params.push("reservationId", value); } @@ -3364,7 +3364,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()); @@ -3626,7 +3626,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()); @@ -3892,7 +3892,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4183,7 +4183,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4489,7 +4489,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._subscription_id.as_ref() { params.push("subscriptionId", value); } @@ -4794,7 +4794,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()); @@ -5056,7 +5056,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()); @@ -5322,7 +5322,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5613,7 +5613,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5915,7 +5915,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()); @@ -6204,7 +6204,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -6495,7 +6495,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._topic_id.as_ref() { params.push("topicId", value); } @@ -6790,7 +6790,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()); @@ -7052,7 +7052,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()); @@ -7314,7 +7314,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()); @@ -7580,7 +7580,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7871,7 +7871,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -8170,7 +8170,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8459,7 +8459,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("subscription", self._subscription); + params.push("subscription", &self._subscription); params.extend(self._additional_params.iter()); @@ -8751,7 +8751,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); params.extend(self._additional_params.iter()); @@ -9043,7 +9043,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); params.extend(self._additional_params.iter()); @@ -9335,7 +9335,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("topic", self._topic); + params.push("topic", &self._topic); params.extend(self._additional_params.iter()); diff --git a/gen/pubsublite1/src/api/mod.rs b/gen/pubsublite1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/pubsublite1/src/api/mod.rs +++ b/gen/pubsublite1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/pubsublite1/src/api/schemas.rs b/gen/pubsublite1/src/api/schemas.rs index cd18ae7b3a..d6764e28fc 100644 --- a/gen/pubsublite1/src/api/schemas.rs +++ b/gen/pubsublite1/src/api/schemas.rs @@ -242,7 +242,7 @@ pub struct DeliveryConfig { /// The DeliveryRequirement for this subscription. #[serde(rename="deliveryRequirement")] - pub delivery_requirement: Option, + pub delivery_requirement: Option, } impl client::Part for DeliveryConfig {} @@ -277,7 +277,7 @@ pub struct ExportConfig { /// Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only. #[serde(rename="currentState")] - pub current_state: Option, + pub current_state: Option, /// Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed. #[serde(rename="deadLetterTopic")] @@ -285,7 +285,7 @@ pub struct ExportConfig { /// The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error. #[serde(rename="desiredState")] - pub desired_state: Option, + pub desired_state: Option, /// Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic. #[serde(rename="pubsubConfig")] @@ -623,7 +623,7 @@ pub struct SeekSubscriptionRequest { /// Seek to a named position with respect to the message backlog. #[serde(rename="namedTarget")] - pub named_target: Option, + pub named_target: Option, /// Seek to the first message whose publish or event time is greater than or equal to the specified query time. If no such message can be located, will seek to the end of the message backlog. #[serde(rename="timeTarget")] diff --git a/gen/qpxexpress1/src/api/mod.rs b/gen/qpxexpress1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/qpxexpress1/src/api/mod.rs +++ b/gen/qpxexpress1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/realtimebidding1/README.md b/gen/realtimebidding1/README.md index ecfc23ad10..48e0755c7d 100644 --- a/gen/realtimebidding1/README.md +++ b/gen/realtimebidding1/README.md @@ -120,10 +120,10 @@ let mut hub = RealTimeBidding::new(hyper::Client::builder().build(hyper_rustls:: // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.bidders().creatives_list("parent") - .view("magna") - .page_token("no") - .page_size(-55) - .filter("voluptua.") + .view(&Default::default()) + .page_token("magna") + .page_size(-11) + .filter("ipsum") .doit().await; match result { diff --git a/gen/realtimebidding1/src/api/hub.rs b/gen/realtimebidding1/src/api/hub.rs index c44da9fca3..bf5d5e692a 100644 --- a/gen/realtimebidding1/src/api/hub.rs +++ b/gen/realtimebidding1/src/api/hub.rs @@ -32,10 +32,10 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.bidders().creatives_list("parent") -/// .view("duo") -/// .page_token("ipsum") -/// .page_size(-62) -/// .filter("Lorem") +/// .view(&Default::default()) +/// .page_token("takimata") +/// .page_size(-52) +/// .filter("duo") /// .doit().await; /// /// match result { diff --git a/gen/realtimebidding1/src/api/mod.rs b/gen/realtimebidding1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/realtimebidding1/src/api/mod.rs +++ b/gen/realtimebidding1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/realtimebidding1/src/api/schemas.rs b/gen/realtimebidding1/src/api/schemas.rs index 012184f217..3d3a06d047 100644 --- a/gen/realtimebidding1/src/api/schemas.rs +++ b/gen/realtimebidding1/src/api/schemas.rs @@ -58,7 +58,7 @@ pub struct AddTargetedAppsRequest { /// Required. The targeting mode that should be applied to the list of app IDs. If there are existing targeted app IDs, must be equal to the existing PretargetingConfig.appTargeting.mobileAppTargeting.targetingMode or a 400 bad request error will be returned. #[serde(rename="targetingMode")] - pub targeting_mode: Option, + pub targeting_mode: Option, } impl client::RequestValue for AddTargetedAppsRequest {} @@ -82,7 +82,7 @@ pub struct AddTargetedPublishersRequest { /// Required. The targeting mode that should be applied to the list of publisher IDs. If are existing publisher IDs, must be equal to the existing PretargetingConfig.publisherTargeting.targetingMode or a 400 bad request error will be returned. #[serde(rename="targetingMode")] - pub targeting_mode: Option, + pub targeting_mode: Option, } impl client::RequestValue for AddTargetedPublishersRequest {} @@ -105,7 +105,7 @@ pub struct AddTargetedSitesRequest { /// Required. The targeting mode that should be applied to the list of site URLs. If there are existing targeted sites, must be equal to the existing PretargetingConfig.webTargeting.targetingMode or a 400 bad request error will be returned. #[serde(rename="targetingMode")] - pub targeting_mode: Option, + pub targeting_mode: Option, } impl client::RequestValue for AddTargetedSitesRequest {} @@ -405,7 +405,7 @@ pub struct Creative { /// Output only. The format of this creative. Can be used to filter the response of the creatives.list method. #[serde(rename="creativeFormat")] - pub creative_format: Option, + pub creative_format: Option, /// Buyer-specific creative ID that references this creative in bid responses. This field is Ignored in update operations. Can be used to filter the response of the creatives.list method. The maximum length of the creative ID is 128 bytes. #[serde(rename="creativeId")] @@ -421,7 +421,7 @@ pub struct Creative { /// All declared attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. If the `excluded_attribute` field of a [bid request](https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto") contains one of the attributes that were declared or detected for a given creative, and a bid is submitted with that creative, the bid will be filtered before the auction. #[serde(rename="declaredAttributes")] - pub declared_attributes: Option>, + pub declared_attributes: Option>, /// The set of declared destination URLs for the creative. Can be used to filter the response of the creatives.list method. #[serde(rename="declaredClickThroughUrls")] @@ -429,7 +429,7 @@ pub struct Creative { /// All declared restricted categories for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. #[serde(rename="declaredRestrictedCategories")] - pub declared_restricted_categories: Option>, + pub declared_restricted_categories: Option>, /// IDs for the declared ad technology vendors that may be used by this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values. Can be used to filter the response of the creatives.list method. #[serde(rename="declaredVendorIds")] @@ -454,7 +454,7 @@ pub struct Creative { /// All restricted categories for the ads that may be shown from this creative. #[serde(rename="restrictedCategories")] - pub restricted_categories: Option>, + pub restricted_categories: Option>, /// Output only. The version of the creative. Version for a new creative is 1 and it increments during subsequent creative updates. pub version: Option, @@ -513,7 +513,7 @@ pub struct CreativeServingDecision { /// Publisher-excludable attributes that were detected for this creative. Can be used to filter the response of the creatives.list method. If the `excluded_attribute` field of a [bid request](https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto) contains one of the attributes that were declared or detected for a given creative, and a bid is submitted with that creative, the bid will be filtered before the auction. #[serde(rename="detectedAttributes")] - pub detected_attributes: Option>, + pub detected_attributes: Option>, /// The set of detected destination URLs for the creative. Can be used to filter the response of the creatives.list method. #[serde(rename="detectedClickThroughUrls")] @@ -597,7 +597,7 @@ pub struct DestinationNotCrawlableEvidence { pub crawled_url: Option, /// Reason of destination not crawlable. - pub reason: Option, + pub reason: Option, } impl client::Part for DestinationNotCrawlableEvidence {} @@ -613,7 +613,7 @@ pub struct DestinationNotWorkingEvidence { /// DNS lookup errors. #[serde(rename="dnsError")] - pub dns_error: Option, + pub dns_error: Option, /// The full non-working URL. #[serde(rename="expandedUrl")] @@ -625,22 +625,22 @@ pub struct DestinationNotWorkingEvidence { /// Page was crawled successfully, but was detected as either a page with no content or an error page. #[serde(rename="invalidPage")] - pub invalid_page: Option, + pub invalid_page: Option, /// Approximate time when the ad destination was last checked. #[serde(rename="lastCheckTime")] pub last_check_time: Option>, /// Platform of the non-working URL. - pub platform: Option, + pub platform: Option, /// HTTP redirect chain error. #[serde(rename="redirectionError")] - pub redirection_error: Option, + pub redirection_error: Option, /// Rejected because of malformed URLs or invalid requests. #[serde(rename="urlRejected")] - pub url_rejected: Option, + pub url_rejected: Option, } impl client::Part for DestinationNotWorkingEvidence {} @@ -751,7 +751,7 @@ pub struct Endpoint { /// The protocol that the bidder endpoint is using. #[serde(rename="bidProtocol")] - pub bid_protocol: Option, + pub bid_protocol: Option, /// The maximum number of queries per second allowed to be sent to this server. #[serde(rename="maximumQps")] @@ -763,7 +763,7 @@ pub struct Endpoint { /// The trading location that bid requests should be sent from. See https://developers.google.com/authorized-buyers/rtb/peer-guide#trading-locations for further information. #[serde(rename="tradingLocation")] - pub trading_location: Option, + pub trading_location: Option, /// Output only. The URL that bid requests should be sent to. pub url: Option, @@ -1049,7 +1049,7 @@ pub struct MediaFile { /// The MIME type of this media file. Can be used to filter the response of the creatives.list method. #[serde(rename="mimeType")] - pub mime_type: Option, + pub mime_type: Option, } impl client::Part for MediaFile {} @@ -1161,7 +1161,7 @@ impl client::RequestValue for OpenUserListRequest {} pub struct PolicyCompliance { /// Serving status for the given transaction type (for example, open auction, deals) or region (for example, China, Russia). Can be used to filter the response of the creatives.list method. - pub status: Option, + pub status: Option, /// Topics related to the policy compliance for this transaction type (for example, open auction, deals) or region (for example, China, Russia). Topics may be present only if status is DISAPPROVED. pub topics: Option>, @@ -1257,7 +1257,7 @@ pub struct PretargetingConfig { /// Targeting modes included by this configuration. A bid request must allow all the specified targeting modes. An unset value allows all bid requests to be sent, regardless of which targeting modes they allow. #[serde(rename="allowedUserTargetingModes")] - pub allowed_user_targeting_modes: Option>, + pub allowed_user_targeting_modes: Option>, /// Targeting on a subset of app inventory. If APP is listed in targeted_environments, the specified targeting is applied. A maximum of 30,000 app IDs can be targeted. An unset value for targeting allows all app-based bid requests to be sent. Apps can either be targeting positively (bid requests will be sent only if the destination app is listed in the targeting dimension) or negatively (bid requests will be sent only if the destination app is not listed in the targeting dimension). #[serde(rename="appTargeting")] @@ -1287,11 +1287,11 @@ pub struct PretargetingConfig { /// Environments that are being included. Bid requests will not be sent for a given environment if it is not included. Further restrictions can be applied to included environments to target only a subset of its inventory. An unset value includes all environments. #[serde(rename="includedEnvironments")] - pub included_environments: Option>, + pub included_environments: Option>, /// Creative formats included by this configuration. Only bid requests eligible for at least one of the specified creative formats will be sent. An unset value will allow all bid requests to be sent, regardless of format. #[serde(rename="includedFormats")] - pub included_formats: Option>, + pub included_formats: Option>, /// The languages included in this configuration, represented by their language code. See https://developers.google.com/adwords/api/docs/appendix/languagecodes. #[serde(rename="includedLanguages")] @@ -1304,15 +1304,15 @@ pub struct PretargetingConfig { /// The platforms included by this configration. Bid requests for devices with the specified platform types will be sent. An unset value allows all bid requests to be sent, regardless of platform. #[serde(rename="includedPlatforms")] - pub included_platforms: Option>, + pub included_platforms: Option>, /// User identifier types included in this configuration. At least one of the user identifier types specified in this list must be available for the bid request to be sent. #[serde(rename="includedUserIdTypes")] - pub included_user_id_types: Option>, + pub included_user_id_types: Option>, /// The interstitial targeting specified for this configuration. The unset value will allow bid requests to be sent regardless of whether they are for interstitials or not. #[serde(rename="interstitialTargeting")] - pub interstitial_targeting: Option, + pub interstitial_targeting: Option, /// Output only. Existing included or excluded geos that are invalid. Previously targeted geos may become invalid due to privacy restrictions. #[serde(rename="invalidGeoIds")] @@ -1336,7 +1336,7 @@ pub struct PretargetingConfig { pub publisher_targeting: Option, /// Output only. The state of this pretargeting configuration. - pub state: Option, + pub state: Option, /// The remarketing lists included or excluded in this configuration as defined in UserList. #[serde(rename="userListTargeting")] @@ -1369,7 +1369,7 @@ pub struct PublisherConnection { /// Whether the publisher has been approved by the bidder. #[serde(rename="biddingState")] - pub bidding_state: Option, + pub bidding_state: Option, /// Output only. The time at which the publisher initiated a connection with the bidder (irrespective of if or when the bidder approves it). This is subsequently updated if the publisher revokes and re-initiates the connection. #[serde(rename="createTime")] @@ -1384,7 +1384,7 @@ pub struct PublisherConnection { /// Output only. Whether the publisher is an Ad Manager or AdMob publisher. #[serde(rename="publisherPlatform")] - pub publisher_platform: Option, + pub publisher_platform: Option, } impl client::ResponseResult for PublisherConnection {} @@ -1459,7 +1459,7 @@ pub struct StringTargetingDimension { /// How the items in this list should be targeted. #[serde(rename="targetingMode")] - pub targeting_mode: Option, + pub targeting_mode: Option, /// The values specified. pub values: Option>, @@ -1517,7 +1517,7 @@ pub struct UrlRestriction { /// The restriction type for the specified URL. #[serde(rename="restrictionType")] - pub restriction_type: Option, + pub restriction_type: Option, /// Start date (if specified) of the URL restriction. #[serde(rename="startDate")] @@ -1562,7 +1562,7 @@ pub struct UserList { pub name: Option, /// Output only. The status of the user list. A new user list starts out as open. - pub status: Option, + pub status: Option, /// Required. The URL restriction for the user list. #[serde(rename="urlRestriction")] @@ -1628,7 +1628,7 @@ pub struct VideoMetadata { /// The maximum VAST version across all wrapped VAST documents. Can be used to filter the response of the creatives.list method. #[serde(rename="vastVersion")] - pub vast_version: Option, + pub vast_version: Option, } impl client::Part for VideoMetadata {} diff --git a/gen/realtimebidding1/src/lib.rs b/gen/realtimebidding1/src/lib.rs index 2f9c078314..395440b5dd 100644 --- a/gen/realtimebidding1/src/lib.rs +++ b/gen/realtimebidding1/src/lib.rs @@ -121,10 +121,10 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.bidders().creatives_list("parent") -//! .view("sanctus") -//! .page_token("sed") -//! .page_size(-2) -//! .filter("takimata") +//! .view(&Default::default()) +//! .page_token("At") +//! .page_size(-8) +//! .filter("sed") //! .doit().await; //! //! match result { diff --git a/gen/recaptchaenterprise1/src/api/call_builders.rs b/gen/recaptchaenterprise1/src/api/call_builders.rs index a5f0d5c7e1..fb6f7897b1 100644 --- a/gen/recaptchaenterprise1/src/api/call_builders.rs +++ b/gen/recaptchaenterprise1/src/api/call_builders.rs @@ -2121,7 +2121,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()); @@ -2413,7 +2413,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4403,7 +4403,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4688,7 +4688,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()); @@ -4950,7 +4950,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()); @@ -5212,7 +5212,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()); @@ -5478,7 +5478,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5767,7 +5767,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()); @@ -6061,7 +6061,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6356,7 +6356,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("key", self._key); + params.push("key", &self._key); params.extend(self._additional_params.iter()); @@ -6624,7 +6624,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -6913,7 +6913,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7199,7 +7199,7 @@ where } let mut params = Params::with_capacity(5 + 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); } diff --git a/gen/recaptchaenterprise1/src/api/mod.rs b/gen/recaptchaenterprise1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/recaptchaenterprise1/src/api/mod.rs +++ b/gen/recaptchaenterprise1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/recaptchaenterprise1/src/api/schemas.rs b/gen/recaptchaenterprise1/src/api/schemas.rs index 5a5bcb692e..94f9229005 100644 --- a/gen/recaptchaenterprise1/src/api/schemas.rs +++ b/gen/recaptchaenterprise1/src/api/schemas.rs @@ -8,7 +8,7 @@ use super::*; pub struct GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment { /// Labels for this request. - pub labels: Option>, + pub labels: Option>, } impl client::Part for GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment {} @@ -31,7 +31,7 @@ pub struct GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo { /// Output only. Result of the latest account verification challenge. #[serde(rename="latestVerificationResult")] - pub latest_verification_result: Option, + pub latest_verification_result: Option, /// Username of the account that is being verified. Deprecated. Customers should now provide the hashed account ID field in Event. pub username: Option, @@ -73,7 +73,7 @@ impl client::Part for GoogleCloudRecaptchaenterpriseV1AndroidKeySettings {} pub struct GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest { /// Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. - pub annotation: Option, + pub annotation: Option, /// Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the hashed_account_id in CreateAssessment, for example when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret. #[serde(rename="hashedAccountId")] @@ -81,7 +81,7 @@ pub struct GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest { pub hashed_account_id: Option>, /// Optional. Optional reasons for the annotation that will be assigned to the Event. - pub reasons: Option>, + pub reasons: Option>, } impl client::RequestValue for GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest {} @@ -533,7 +533,7 @@ impl client::ResponseResult for GoogleCloudRecaptchaenterpriseV1RetrieveLegacySe pub struct GoogleCloudRecaptchaenterpriseV1RiskAnalysis { /// Reasons contributing to the risk analysis verdict. - pub reasons: Option>, + pub reasons: Option>, /// Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic). pub score: Option, @@ -642,7 +642,7 @@ pub struct GoogleCloudRecaptchaenterpriseV1TestingOptions { /// For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE. #[serde(rename="testingChallenge")] - pub testing_challenge: Option, + pub testing_challenge: Option, /// All assessments for this Key will return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive. #[serde(rename="testingScore")] @@ -676,7 +676,7 @@ pub struct GoogleCloudRecaptchaenterpriseV1TokenProperties { /// Reason associated with the response when valid = false. #[serde(rename="invalidReason")] - pub invalid_reason: Option, + pub invalid_reason: Option, /// The ID of the iOS bundle with which the token was generated (iOS keys only). #[serde(rename="iosBundleId")] @@ -699,11 +699,11 @@ pub struct GoogleCloudRecaptchaenterpriseV1WafSettings { /// Required. The WAF feature for which this key is enabled. #[serde(rename="wafFeature")] - pub waf_feature: Option, + pub waf_feature: Option, /// Required. The WAF service that uses this key. #[serde(rename="wafService")] - pub waf_service: Option, + pub waf_service: Option, } impl client::Part for GoogleCloudRecaptchaenterpriseV1WafSettings {} @@ -731,11 +731,11 @@ pub struct GoogleCloudRecaptchaenterpriseV1WebKeySettings { /// Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE. #[serde(rename="challengeSecurityPreference")] - pub challenge_security_preference: Option, + pub challenge_security_preference: Option, /// Required. Describes how this key is integrated with the website. #[serde(rename="integrationType")] - pub integration_type: Option, + pub integration_type: Option, } impl client::Part for GoogleCloudRecaptchaenterpriseV1WebKeySettings {} diff --git a/gen/recommendationengine1_beta1/src/api/call_builders.rs b/gen/recommendationengine1_beta1/src/api/call_builders.rs index dfaae4d63b..74ee82d2fd 100644 --- a/gen/recommendationengine1_beta1/src/api/call_builders.rs +++ b/gen/recommendationengine1_beta1/src/api/call_builders.rs @@ -1780,7 +1780,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2065,7 +2065,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()); @@ -2327,7 +2327,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()); @@ -2596,7 +2596,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2887,7 +2887,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._page_token.as_ref() { params.push("pageToken", value); } @@ -3188,7 +3188,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3483,7 +3483,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()); @@ -3751,7 +3751,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); } @@ -4050,7 +4050,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()); @@ -4341,7 +4341,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4626,7 +4626,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()); @@ -4892,7 +4892,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5180,7 +5180,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._user_event.as_ref() { params.push("userEvent", value); } @@ -5479,7 +5479,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5770,7 +5770,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6069,7 +6069,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6361,7 +6361,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6653,7 +6653,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6938,7 +6938,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()); @@ -7206,7 +7206,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); } @@ -7502,7 +7502,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7793,7 +7793,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/recommendationengine1_beta1/src/api/mod.rs b/gen/recommendationengine1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/recommendationengine1_beta1/src/api/mod.rs +++ b/gen/recommendationengine1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/recommendationengine1_beta1/src/api/schemas.rs b/gen/recommendationengine1_beta1/src/api/schemas.rs index 1eeae68031..81726e6ffd 100644 --- a/gen/recommendationengine1_beta1/src/api/schemas.rs +++ b/gen/recommendationengine1_beta1/src/api/schemas.rs @@ -182,11 +182,11 @@ pub struct GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig { /// Optional. Level of the catalog at which events are uploaded. See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels for more details. #[serde(rename="eventItemLevel")] - pub event_item_level: Option, + pub event_item_level: Option, /// Optional. Level of the catalog at which predictions are made. See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels for more details. #[serde(rename="predictItemLevel")] - pub predict_item_level: Option, + pub predict_item_level: Option, } impl client::Part for GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig {} @@ -692,7 +692,7 @@ pub struct GoogleCloudRecommendationengineV1beta1ProductCatalogItem { /// Optional. Online stock state of the catalog item. Default is `IN_STOCK`. #[serde(rename="stockState")] - pub stock_state: Option, + pub stock_state: Option, } impl client::Part for GoogleCloudRecommendationengineV1beta1ProductCatalogItem {} @@ -772,7 +772,7 @@ pub struct GoogleCloudRecommendationengineV1beta1ProductDetail { /// Optional. Item stock state. If provided, this overrides the stock state in Catalog for items in this event. #[serde(rename="stockState")] - pub stock_state: Option, + pub stock_state: Option, } impl client::Part for GoogleCloudRecommendationengineV1beta1ProductDetail {} @@ -878,7 +878,7 @@ pub struct GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest { /// Required. The type of the catalog rejoin to define the scope and range of the user events to be rejoined with catalog items. #[serde(rename="userEventRejoinScope")] - pub user_event_rejoin_scope: Option, + pub user_event_rejoin_scope: Option, } impl client::RequestValue for GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest {} @@ -902,7 +902,7 @@ pub struct GoogleCloudRecommendationengineV1beta1UserEvent { /// Optional. This field should *not* be set when using JavaScript pixel or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`. #[serde(rename="eventSource")] - pub event_source: Option, + pub event_source: Option, /// Optional. Only required for ImportUserEvents method. Timestamp of user event created. #[serde(rename="eventTime")] diff --git a/gen/recommender1/src/api/call_builders.rs b/gen/recommender1/src/api/call_builders.rs index 2ae26d6003..5e18c2a73d 100644 --- a/gen/recommender1/src/api/call_builders.rs +++ b/gen/recommender1/src/api/call_builders.rs @@ -2069,7 +2069,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()); @@ -2337,7 +2337,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2636,7 +2636,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()); @@ -2921,7 +2921,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()); @@ -3194,7 +3194,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -3499,7 +3499,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()); @@ -3767,7 +3767,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4066,7 +4066,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()); @@ -4358,7 +4358,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()); @@ -4650,7 +4650,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()); @@ -4942,7 +4942,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()); @@ -5227,7 +5227,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()); @@ -5500,7 +5500,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -5805,7 +5805,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()); @@ -6073,7 +6073,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6372,7 +6372,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()); @@ -6657,7 +6657,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()); @@ -6925,7 +6925,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7224,7 +7224,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()); @@ -7516,7 +7516,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()); @@ -7808,7 +7808,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()); @@ -8100,7 +8100,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()); @@ -8385,7 +8385,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()); @@ -8653,7 +8653,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._page_token.as_ref() { params.push("pageToken", value); } @@ -8952,7 +8952,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()); @@ -9237,7 +9237,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()); @@ -9510,7 +9510,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -9815,7 +9815,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()); @@ -10083,7 +10083,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._page_token.as_ref() { params.push("pageToken", value); } @@ -10382,7 +10382,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()); @@ -10674,7 +10674,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()); @@ -10966,7 +10966,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()); @@ -11258,7 +11258,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()); @@ -11543,7 +11543,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()); @@ -11816,7 +11816,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -12121,7 +12121,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()); @@ -12389,7 +12389,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._page_token.as_ref() { params.push("pageToken", value); } @@ -12688,7 +12688,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()); @@ -12973,7 +12973,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()); @@ -13246,7 +13246,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -13551,7 +13551,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()); @@ -13819,7 +13819,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._page_token.as_ref() { params.push("pageToken", value); } @@ -14118,7 +14118,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()); @@ -14410,7 +14410,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()); @@ -14702,7 +14702,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()); @@ -14994,7 +14994,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()); @@ -15279,7 +15279,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()); @@ -15552,7 +15552,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } diff --git a/gen/recommender1/src/api/mod.rs b/gen/recommender1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/recommender1/src/api/mod.rs +++ b/gen/recommender1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/recommender1/src/api/schemas.rs b/gen/recommender1/src/api/schemas.rs index 9bdbd83b65..ace77395e3 100644 --- a/gen/recommender1/src/api/schemas.rs +++ b/gen/recommender1/src/api/schemas.rs @@ -27,7 +27,7 @@ impl client::Part for GoogleCloudRecommenderV1CostProjection {} pub struct GoogleCloudRecommenderV1Impact { /// Category that is being targeted. - pub category: Option, + pub category: Option, /// Use with CategoryType.COST #[serde(rename="costProjection")] @@ -73,7 +73,7 @@ pub struct GoogleCloudRecommenderV1Insight { pub associated_recommendations: Option>, /// Category being targeted by the insight. - pub category: Option, + pub category: Option, /// A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000" pub content: Option>, @@ -101,7 +101,7 @@ pub struct GoogleCloudRecommenderV1Insight { pub observation_period: Option, /// Insight's severity. - pub severity: Option, + pub severity: Option, /// Information state and metadata. #[serde(rename="stateInfo")] @@ -139,7 +139,7 @@ impl client::Part for GoogleCloudRecommenderV1InsightRecommendationReference {} pub struct GoogleCloudRecommenderV1InsightStateInfo { /// Insight state. - pub state: Option, + pub state: Option, /// A map of metadata for the state, provided by user or automations systems. #[serde(rename="stateMetadata")] @@ -512,7 +512,7 @@ pub struct GoogleCloudRecommenderV1Recommendation { pub primary_impact: Option, /// Recommendation's priority. - pub priority: Option, + pub priority: Option, /// Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to `content` or `primary_impact.category` are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE" #[serde(rename="recommenderSubtype")] @@ -573,7 +573,7 @@ impl client::Part for GoogleCloudRecommenderV1RecommendationInsightReference {} pub struct GoogleCloudRecommenderV1RecommendationStateInfo { /// The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED. - pub state: Option, + pub state: Option, /// A map of metadata for the state, provided by user or automations systems. #[serde(rename="stateMetadata")] @@ -657,7 +657,7 @@ pub struct GoogleCloudRecommenderV1ReliabilityProjection { pub details: Option>, /// Reliability risks mitigated by this recommendation. - pub risks: Option>, + pub risks: Option>, } impl client::Part for GoogleCloudRecommenderV1ReliabilityProjection {} diff --git a/gen/recommender1_beta1/src/api/call_builders.rs b/gen/recommender1_beta1/src/api/call_builders.rs index e6a320aec2..11119b8d8a 100644 --- a/gen/recommender1_beta1/src/api/call_builders.rs +++ b/gen/recommender1_beta1/src/api/call_builders.rs @@ -2401,7 +2401,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()); @@ -2669,7 +2669,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._page_token.as_ref() { params.push("pageToken", value); } @@ -2968,7 +2968,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()); @@ -3253,7 +3253,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()); @@ -3526,7 +3526,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -3831,7 +3831,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()); @@ -4099,7 +4099,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4398,7 +4398,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()); @@ -4690,7 +4690,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()); @@ -4982,7 +4982,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()); @@ -5274,7 +5274,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()); @@ -5559,7 +5559,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()); @@ -5832,7 +5832,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -6435,7 +6435,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()); @@ -6703,7 +6703,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7002,7 +7002,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()); @@ -7287,7 +7287,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()); @@ -7555,7 +7555,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7854,7 +7854,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()); @@ -8146,7 +8146,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()); @@ -8438,7 +8438,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()); @@ -8730,7 +8730,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()); @@ -9580,7 +9580,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()); @@ -9848,7 +9848,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._page_token.as_ref() { params.push("pageToken", value); } @@ -10147,7 +10147,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()); @@ -10432,7 +10432,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()); @@ -10705,7 +10705,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -11010,7 +11010,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()); @@ -11278,7 +11278,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._page_token.as_ref() { params.push("pageToken", value); } @@ -11577,7 +11577,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()); @@ -11869,7 +11869,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()); @@ -12161,7 +12161,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()); @@ -12453,7 +12453,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()); @@ -12738,7 +12738,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()); @@ -13011,7 +13011,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -13614,7 +13614,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()); @@ -13882,7 +13882,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._page_token.as_ref() { params.push("pageToken", value); } @@ -14181,7 +14181,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()); @@ -14466,7 +14466,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()); @@ -14739,7 +14739,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -15044,7 +15044,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()); @@ -15312,7 +15312,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._page_token.as_ref() { params.push("pageToken", value); } @@ -15611,7 +15611,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()); @@ -15903,7 +15903,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()); @@ -16195,7 +16195,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()); @@ -16487,7 +16487,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()); @@ -16772,7 +16772,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()); @@ -17045,7 +17045,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } diff --git a/gen/recommender1_beta1/src/api/mod.rs b/gen/recommender1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/recommender1_beta1/src/api/mod.rs +++ b/gen/recommender1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/recommender1_beta1/src/api/schemas.rs b/gen/recommender1_beta1/src/api/schemas.rs index 9b7606858a..e7460e6c60 100644 --- a/gen/recommender1_beta1/src/api/schemas.rs +++ b/gen/recommender1_beta1/src/api/schemas.rs @@ -27,7 +27,7 @@ impl client::Part for GoogleCloudRecommenderV1beta1CostProjection {} pub struct GoogleCloudRecommenderV1beta1Impact { /// Category that is being targeted. - pub category: Option, + pub category: Option, /// Use with CategoryType.COST #[serde(rename="costProjection")] @@ -73,7 +73,7 @@ pub struct GoogleCloudRecommenderV1beta1Insight { pub associated_recommendations: Option>, /// Category being targeted by the insight. - pub category: Option, + pub category: Option, /// A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000" pub content: Option>, @@ -101,7 +101,7 @@ pub struct GoogleCloudRecommenderV1beta1Insight { pub observation_period: Option, /// Insight's severity. - pub severity: Option, + pub severity: Option, /// Information state and metadata. #[serde(rename="stateInfo")] @@ -139,7 +139,7 @@ impl client::Part for GoogleCloudRecommenderV1beta1InsightRecommendationReferenc pub struct GoogleCloudRecommenderV1beta1InsightStateInfo { /// Insight state. - pub state: Option, + pub state: Option, /// A map of metadata for the state, provided by user or automations systems. #[serde(rename="stateMetadata")] @@ -512,7 +512,7 @@ pub struct GoogleCloudRecommenderV1beta1Recommendation { pub primary_impact: Option, /// Recommendation's priority. - pub priority: Option, + pub priority: Option, /// Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to `content` or `primary_impact.category` are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE" #[serde(rename="recommenderSubtype")] @@ -573,7 +573,7 @@ impl client::Part for GoogleCloudRecommenderV1beta1RecommendationInsightReferenc pub struct GoogleCloudRecommenderV1beta1RecommendationStateInfo { /// The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED. - pub state: Option, + pub state: Option, /// A map of metadata for the state, provided by user or automations systems. #[serde(rename="stateMetadata")] @@ -657,7 +657,7 @@ pub struct GoogleCloudRecommenderV1beta1ReliabilityProjection { pub details: Option>, /// Reliability risks mitigated by this recommendation. - pub risks: Option>, + pub risks: Option>, } impl client::Part for GoogleCloudRecommenderV1beta1ReliabilityProjection {} diff --git a/gen/redis1/src/api/call_builders.rs b/gen/redis1/src/api/call_builders.rs index 3d0328d89f..fc71adf2fd 100644 --- a/gen/redis1/src/api/call_builders.rs +++ b/gen/redis1/src/api/call_builders.rs @@ -3400,7 +3400,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._instance_id.as_ref() { params.push("instanceId", value); } @@ -3695,7 +3695,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()); @@ -3964,7 +3964,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()); @@ -4256,7 +4256,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()); @@ -4541,7 +4541,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()); @@ -4803,7 +4803,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()); @@ -5072,7 +5072,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()); @@ -5361,7 +5361,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5652,7 +5652,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5954,7 +5954,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()); @@ -6246,7 +6246,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()); @@ -6531,7 +6531,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()); @@ -6793,7 +6793,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()); @@ -7055,7 +7055,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()); @@ -7323,7 +7323,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); } @@ -7615,7 +7615,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()); @@ -7883,7 +7883,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); } diff --git a/gen/redis1/src/api/mod.rs b/gen/redis1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/redis1/src/api/mod.rs +++ b/gen/redis1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/redis1/src/api/schemas.rs b/gen/redis1/src/api/schemas.rs index 56a1ef95b4..0381cb2120 100644 --- a/gen/redis1/src/api/schemas.rs +++ b/gen/redis1/src/api/schemas.rs @@ -49,7 +49,7 @@ pub struct FailoverInstanceRequest { /// Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default. #[serde(rename="dataProtectionMode")] - pub data_protection_mode: Option, + pub data_protection_mode: Option, } impl client::RequestValue for FailoverInstanceRequest {} @@ -149,7 +149,7 @@ pub struct Instance { /// Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING. #[serde(rename="connectMode")] - pub connect_mode: Option, + pub connect_mode: Option, /// Output only. The time the instance was created. #[serde(rename="createTime")] @@ -216,7 +216,7 @@ pub struct Instance { /// Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED. #[serde(rename="readReplicasMode")] - pub read_replicas_mode: Option, + pub read_replicas_mode: Option, /// Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries #[serde(rename="redisConfigs")] @@ -243,7 +243,7 @@ pub struct Instance { pub server_ca_certs: Option>, /// Output only. The current state of this instance. - pub state: Option, + pub state: Option, /// Output only. Additional information about the current status of this instance, if available. #[serde(rename="statusMessage")] @@ -251,14 +251,14 @@ pub struct Instance { /// Optional. reasons that causes instance in "SUSPENDED" state. #[serde(rename="suspensionReasons")] - pub suspension_reasons: Option>, + pub suspension_reasons: Option>, /// Required. The service tier of the instance. - pub tier: Option, + pub tier: Option, /// Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance. #[serde(rename="transitEncryptionMode")] - pub transit_encryption_mode: Option, + pub transit_encryption_mode: Option, } impl client::RequestValue for Instance {} @@ -528,7 +528,7 @@ pub struct PersistenceConfig { /// Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used. #[serde(rename="persistenceMode")] - pub persistence_mode: Option, + pub persistence_mode: Option, /// Output only. The next time that a snapshot attempt is scheduled to occur. #[serde(rename="rdbNextSnapshotTime")] @@ -536,7 +536,7 @@ pub struct PersistenceConfig { /// Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default. #[serde(rename="rdbSnapshotPeriod")] - pub rdb_snapshot_period: Option, + pub rdb_snapshot_period: Option, /// Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. #[serde(rename="rdbSnapshotStartTime")] @@ -560,7 +560,7 @@ pub struct RescheduleMaintenanceRequest { /// Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. #[serde(rename="rescheduleType")] - pub reschedule_type: Option, + pub reschedule_type: Option, /// Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="scheduleTime")] @@ -675,7 +675,7 @@ impl client::RequestValue for UpgradeInstanceRequest {} pub struct WeeklyMaintenanceWindow { /// Required. The day of week that maintenance updates occur. - pub day: Option, + pub day: Option, /// Output only. Duration of the maintenance window. The current window is fixed at 1 hour. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] diff --git a/gen/remotebuildexecution2/src/api/call_builders.rs b/gen/remotebuildexecution2/src/api/call_builders.rs index dc9f6d0d9c..08798544b1 100644 --- a/gen/remotebuildexecution2/src/api/call_builders.rs +++ b/gen/remotebuildexecution2/src/api/call_builders.rs @@ -78,9 +78,9 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("instanceName", self._instance_name); - params.push("hash", self._hash); - params.push("sizeBytes", self._size_bytes.to_string()); + params.push("instanceName", &self._instance_name); + params.push("hash", &self._hash); + params.push("sizeBytes", &self._size_bytes.to_string()); if let Some(value) = self._inline_stdout.as_ref() { params.push("inlineStdout", value.to_string()); } @@ -406,9 +406,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("instanceName", self._instance_name); - params.push("hash", self._hash); - params.push("sizeBytes", self._size_bytes.to_string()); + params.push("instanceName", &self._instance_name); + params.push("hash", &self._hash); + params.push("sizeBytes", &self._size_bytes.to_string()); if let Some(value) = self._results_cache_policy_priority.as_ref() { params.push("resultsCachePolicy.priority", value.to_string()); } @@ -730,7 +730,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instanceName", self._instance_name); + params.push("instanceName", &self._instance_name); params.extend(self._additional_params.iter()); @@ -1022,7 +1022,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instanceName", self._instance_name); + params.push("instanceName", &self._instance_name); params.extend(self._additional_params.iter()); @@ -1314,7 +1314,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instanceName", self._instance_name); + params.push("instanceName", &self._instance_name); params.extend(self._additional_params.iter()); @@ -1606,7 +1606,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("instanceName", self._instance_name); + params.push("instanceName", &self._instance_name); params.extend(self._additional_params.iter()); @@ -1897,9 +1897,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("instanceName", self._instance_name); - params.push("hash", self._hash); - params.push("sizeBytes", self._size_bytes.to_string()); + params.push("instanceName", &self._instance_name); + params.push("hash", &self._hash); + params.push("sizeBytes", &self._size_bytes.to_string()); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2208,7 +2208,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()); @@ -2493,7 +2493,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("instanceName", self._instance_name); + params.push("instanceName", &self._instance_name); params.extend(self._additional_params.iter()); diff --git a/gen/remotebuildexecution2/src/api/mod.rs b/gen/remotebuildexecution2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/remotebuildexecution2/src/api/mod.rs +++ b/gen/remotebuildexecution2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/remotebuildexecution2/src/api/schemas.rs b/gen/remotebuildexecution2/src/api/schemas.rs index 863effa494..948fdb9578 100644 --- a/gen/remotebuildexecution2/src/api/schemas.rs +++ b/gen/remotebuildexecution2/src/api/schemas.rs @@ -232,7 +232,7 @@ pub struct BuildBazelRemoteExecutionV2CacheCapabilities { /// All the digest functions supported by the remote cache. Remote cache may support multiple digest functions simultaneously. #[serde(rename="digestFunction")] - pub digest_function: Option>, + pub digest_function: Option>, /// Maximum total size of blobs to be uploaded/downloaded using batch methods. A value of 0 means no limit is set, although in practice there will always be a message size limitation of the protocol in use, e.g. GRPC. #[serde(rename="maxBatchTotalSizeBytes")] @@ -241,11 +241,11 @@ pub struct BuildBazelRemoteExecutionV2CacheCapabilities { /// Compressors supported by the "compressed-blobs" bytestream resources. Servers MUST support identity/no-compression, even if it is not listed here. Note that this does not imply which if any compressors are supported by the server at the gRPC level. #[serde(rename="supportedCompressor")] - pub supported_compressor: Option>, + pub supported_compressor: Option>, /// Whether absolute symlink targets are supported. #[serde(rename="symlinkAbsolutePathStrategy")] - pub symlink_absolute_path_strategy: Option, + pub symlink_absolute_path_strategy: Option, } impl client::Part for BuildBazelRemoteExecutionV2CacheCapabilities {} @@ -411,7 +411,7 @@ pub struct BuildBazelRemoteExecutionV2ExecutionCapabilities { /// Remote execution may only support a single digest function. #[serde(rename="digestFunction")] - pub digest_function: Option, + pub digest_function: Option, /// Whether remote execution is enabled for the particular server/instance. #[serde(rename="execEnabled")] diff --git a/gen/replicapool1_beta2/src/api/call_builders.rs b/gen/replicapool1_beta2/src/api/call_builders.rs index 47b3508ba4..0760e293fe 100644 --- a/gen/replicapool1_beta2/src/api/call_builders.rs +++ b/gen/replicapool1_beta2/src/api/call_builders.rs @@ -1070,9 +1070,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -1375,9 +1375,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -1664,9 +1664,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -1969,9 +1969,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -2258,9 +2258,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("size", self._size.to_string()); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("size", &self._size.to_string()); params.extend(self._additional_params.iter()); @@ -2568,8 +2568,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2876,9 +2876,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -3182,10 +3182,10 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); - params.push("size", self._size.to_string()); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); + params.push("size", &self._size.to_string()); params.extend(self._additional_params.iter()); @@ -3482,9 +3482,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -3794,9 +3794,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("instanceGroupManager", self._instance_group_manager); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("instanceGroupManager", &self._instance_group_manager); params.extend(self._additional_params.iter()); @@ -4099,9 +4099,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -4386,8 +4386,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/replicapool1_beta2/src/api/mod.rs b/gen/replicapool1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/replicapool1_beta2/src/api/mod.rs +++ b/gen/replicapool1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/replicapool1_beta2/src/api/schemas.rs b/gen/replicapool1_beta2/src/api/schemas.rs index ed321fbcc7..fc020a316c 100644 --- a/gen/replicapool1_beta2/src/api/schemas.rs +++ b/gen/replicapool1_beta2/src/api/schemas.rs @@ -292,7 +292,7 @@ pub struct Operation { pub start_time: Option, /// [Output Only] Status of the operation. - pub status: Option, + pub status: Option, /// [Output Only] An optional textual description of the current status of the operation. #[serde(rename="statusMessage")] @@ -363,7 +363,7 @@ pub struct ReplicaPoolAutoHealingPolicy { /// The action to perform when an instance becomes unhealthy. Possible values are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new instance that is based on the instance template for this managed instance group. REBOOT performs a soft reboot on an instance. If the instance cannot reboot, the instance performs a hard restart. #[serde(rename="actionType")] - pub action_type: Option, + pub action_type: Option, /// The URL for the HealthCheck that signals autohealing. #[serde(rename="healthCheck")] @@ -420,7 +420,7 @@ impl client::Part for OperationErrorErrors {} pub struct OperationWarnings { /// [Output only] The warning type identifier for this warning. - pub code: Option, + pub code: Option, /// [Output only] Metadata for this warning in key:value format. pub data: Option>, diff --git a/gen/replicapoolupdater1_beta1/src/api/call_builders.rs b/gen/replicapoolupdater1_beta1/src/api/call_builders.rs index 7a44c21157..dbac0631a2 100644 --- a/gen/replicapoolupdater1_beta1/src/api/call_builders.rs +++ b/gen/replicapoolupdater1_beta1/src/api/call_builders.rs @@ -1054,9 +1054,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("rollingUpdate", self._rolling_update); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("rollingUpdate", &self._rolling_update); params.extend(self._additional_params.iter()); @@ -1336,9 +1336,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("rollingUpdate", self._rolling_update); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("rollingUpdate", &self._rolling_update); params.extend(self._additional_params.iter()); @@ -1624,8 +1624,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); params.extend(self._additional_params.iter()); @@ -1923,8 +1923,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2230,9 +2230,9 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("rollingUpdate", self._rolling_update); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("rollingUpdate", &self._rolling_update); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -2542,9 +2542,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("rollingUpdate", self._rolling_update); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("rollingUpdate", &self._rolling_update); params.extend(self._additional_params.iter()); @@ -2824,9 +2824,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("rollingUpdate", self._rolling_update); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("rollingUpdate", &self._rolling_update); params.extend(self._additional_params.iter()); @@ -3106,9 +3106,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("rollingUpdate", self._rolling_update); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("rollingUpdate", &self._rolling_update); params.extend(self._additional_params.iter()); @@ -3388,9 +3388,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("zone", &self._zone); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -3675,8 +3675,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("zone", self._zone); + params.push("project", &self._project); + params.push("zone", &self._zone); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/replicapoolupdater1_beta1/src/api/mod.rs b/gen/replicapoolupdater1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/replicapoolupdater1_beta1/src/api/mod.rs +++ b/gen/replicapoolupdater1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/reseller1_sandbox/src/api/method_builders.rs b/gen/reseller1_sandbox/src/api/method_builders.rs index 1744ff9cb2..4100fbe4bf 100644 --- a/gen/reseller1_sandbox/src/api/method_builders.rs +++ b/gen/reseller1_sandbox/src/api/method_builders.rs @@ -242,12 +242,12 @@ impl<'a, S> SubscriptionMethods<'a, S> { /// * `customerId` - Id of the Customer /// * `subscriptionId` - Id of the subscription, which is unique for a customer /// * `deletionType` - Whether the subscription is to be fully cancelled or downgraded - pub fn delete(&self, customer_id: &str, subscription_id: &str, deletion_type: &str) -> SubscriptionDeleteCall<'a, S> { + pub fn delete(&self, customer_id: &str, subscription_id: &str, deletion_type: &SubscriptionDeletionTypeEnum) -> SubscriptionDeleteCall<'a, S> { SubscriptionDeleteCall { hub: self.hub, _customer_id: customer_id.to_string(), _subscription_id: subscription_id.to_string(), - _deletion_type: deletion_type.to_string(), + _deletion_type: deletion_type.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/reseller1_sandbox/src/api/mod.rs b/gen/reseller1_sandbox/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/reseller1_sandbox/src/api/mod.rs +++ b/gen/reseller1_sandbox/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/resourcesettings1/README.md b/gen/resourcesettings1/README.md index ae19883712..b86380bf70 100644 --- a/gen/resourcesettings1/README.md +++ b/gen/resourcesettings1/README.md @@ -104,7 +104,7 @@ let mut hub = ResourceSettings::new(hyper::Client::builder().build(hyper_rustls: // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.folders().settings_get("name") - .view("magna") + .view(&Default::default()) .doit().await; match result { diff --git a/gen/resourcesettings1/src/api/hub.rs b/gen/resourcesettings1/src/api/hub.rs index 00fc9a7e23..f692fd45d7 100644 --- a/gen/resourcesettings1/src/api/hub.rs +++ b/gen/resourcesettings1/src/api/hub.rs @@ -32,7 +32,7 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.folders().settings_get("name") -/// .view("At") +/// .view(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/resourcesettings1/src/api/mod.rs b/gen/resourcesettings1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/resourcesettings1/src/api/mod.rs +++ b/gen/resourcesettings1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/resourcesettings1/src/api/schemas.rs b/gen/resourcesettings1/src/api/schemas.rs index 3e4404141a..a73f234888 100644 --- a/gen/resourcesettings1/src/api/schemas.rs +++ b/gen/resourcesettings1/src/api/schemas.rs @@ -73,7 +73,7 @@ pub struct GoogleCloudResourcesettingsV1SettingMetadata { /// The data type for this setting. #[serde(rename="dataType")] - pub data_type: Option, + pub data_type: Option, /// The value provided by Setting.effective_value if no setting value is explicitly set. Note: not all settings have a default value. #[serde(rename="defaultValue")] diff --git a/gen/resourcesettings1/src/lib.rs b/gen/resourcesettings1/src/lib.rs index 4e71e692da..09262ae346 100644 --- a/gen/resourcesettings1/src/lib.rs +++ b/gen/resourcesettings1/src/lib.rs @@ -105,7 +105,7 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.folders().settings_get("name") -//! .view("ipsum") +//! .view(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/resourceviews1_beta2/src/api/mod.rs b/gen/resourceviews1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/resourceviews1_beta2/src/api/mod.rs +++ b/gen/resourceviews1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/retail2/src/api/mod.rs b/gen/retail2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/retail2/src/api/mod.rs +++ b/gen/retail2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/retail2/src/api/schemas.rs b/gen/retail2/src/api/schemas.rs index b67a3d5581..a3faaa4417 100644 --- a/gen/retail2/src/api/schemas.rs +++ b/gen/retail2/src/api/schemas.rs @@ -148,7 +148,7 @@ pub struct GoogleCloudRetailV2AttributesConfig { /// Output only. The AttributeConfigLevel used for this catalog. #[serde(rename="attributeConfigLevel")] - pub attribute_config_level: Option, + pub attribute_config_level: Option, /// Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute. The key is catalog attribute's name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. The maximum number of catalog attributes allowed in a request is 1000. #[serde(rename="catalogAttributes")] @@ -255,11 +255,11 @@ pub struct GoogleCloudRetailV2CatalogAttribute { /// If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned. Must be specified, otherwise throws INVALID_FORMAT error. #[serde(rename="dynamicFacetableOption")] - pub dynamic_facetable_option: Option, + pub dynamic_facetable_option: Option, /// If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED. #[serde(rename="exactSearchableOption")] - pub exact_searchable_option: Option, + pub exact_searchable_option: Option, /// Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update. #[serde(rename="inUse")] @@ -267,22 +267,22 @@ pub struct GoogleCloudRetailV2CatalogAttribute { /// When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in SearchService.Search. Must be specified, otherwise throws INVALID_FORMAT error. #[serde(rename="indexableOption")] - pub indexable_option: Option, + pub indexable_option: Option, /// Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes. pub key: Option, /// If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED. #[serde(rename="retrievableOption")] - pub retrievable_option: Option, + pub retrievable_option: Option, /// When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical, attribute values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical attributes. Must be specified, otherwise throws INVALID_FORMAT error. #[serde(rename="searchableOption")] - pub searchable_option: Option, + pub searchable_option: Option, /// Output only. The type of this attribute. This is derived from the attribute in Product.attributes. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudRetailV2CatalogAttribute {} @@ -559,11 +559,11 @@ pub struct GoogleCloudRetailV2Control { /// Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one search_solution_use_case per control. #[serde(rename="searchSolutionUseCase")] - pub search_solution_use_case: Option>, + pub search_solution_use_case: Option>, /// Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to SOLUTION_TYPE_SEARCH. #[serde(rename="solutionTypes")] - pub solution_types: Option>, + pub solution_types: Option>, } impl client::RequestValue for GoogleCloudRetailV2Control {} @@ -747,7 +747,7 @@ pub struct GoogleCloudRetailV2ImportProductsRequest { /// The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL. #[serde(rename="reconciliationMode")] - pub reconciliation_mode: Option, + pub reconciliation_mode: Option, /// Deprecated. This field has no effect. #[serde(rename="requestId")] @@ -1101,7 +1101,7 @@ pub struct GoogleCloudRetailV2Product { pub audience: Option, /// The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). - pub availability: Option, + pub availability: Option, /// The available quantity of the item. #[serde(rename="availableQuantity")] @@ -1202,7 +1202,7 @@ pub struct GoogleCloudRetailV2Product { /// Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url). pub uri: Option, @@ -1396,7 +1396,7 @@ pub struct GoogleCloudRetailV2RejoinUserEventsRequest { /// The type of the user event rejoin to define the scope and range of the user events to be rejoined with the latest product catalog. Defaults to `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to an invalid integer value. #[serde(rename="userEventRejoinScope")] - pub user_event_rejoin_scope: Option, + pub user_event_rejoin_scope: Option, } impl client::RequestValue for GoogleCloudRetailV2RejoinUserEventsRequest {} @@ -1792,7 +1792,7 @@ pub struct GoogleCloudRetailV2SearchRequest { /// The search mode of the search request. If not specified, a single search request triggers both product search and faceted search. #[serde(rename="searchMode")] - pub search_mode: Option, + pub search_mode: Option, /// The spell correction specification that specifies the mode under which spell correction will take effect. #[serde(rename="spellCorrectionSpec")] @@ -1861,7 +1861,7 @@ impl client::Part for GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpe pub struct GoogleCloudRetailV2SearchRequestDynamicFacetSpec { /// Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset. - pub mode: Option, + pub mode: Option, } impl client::Part for GoogleCloudRetailV2SearchRequestDynamicFacetSpec {} @@ -1946,7 +1946,7 @@ impl client::Part for GoogleCloudRetailV2SearchRequestFacetSpecFacetKey {} pub struct GoogleCloudRetailV2SearchRequestPersonalizationSpec { /// Defaults to Mode.AUTO. - pub mode: Option, + pub mode: Option, } impl client::Part for GoogleCloudRetailV2SearchRequestPersonalizationSpec {} @@ -1961,7 +1961,7 @@ impl client::Part for GoogleCloudRetailV2SearchRequestPersonalizationSpec {} pub struct GoogleCloudRetailV2SearchRequestQueryExpansionSpec { /// The condition under which query expansion should occur. Default to Condition.DISABLED. - pub condition: Option, + pub condition: Option, /// Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. #[serde(rename="pinUnexpandedResults")] @@ -1980,7 +1980,7 @@ impl client::Part for GoogleCloudRetailV2SearchRequestQueryExpansionSpec {} pub struct GoogleCloudRetailV2SearchRequestSpellCorrectionSpec { /// The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO. - pub mode: Option, + pub mode: Option, } impl client::Part for GoogleCloudRetailV2SearchRequestSpellCorrectionSpec {} @@ -2178,7 +2178,7 @@ pub struct GoogleCloudRetailV2ServingConfig { /// What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY. #[serde(rename="diversityType")] - pub diversity_type: Option, + pub diversity_type: Option, /// Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. #[serde(rename="doNotAssociateControlIds")] @@ -2233,7 +2233,7 @@ pub struct GoogleCloudRetailV2ServingConfig { /// Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution. #[serde(rename="solutionTypes")] - pub solution_types: Option>, + pub solution_types: Option>, /// Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. #[serde(rename="twowaySynonymsControlIds")] diff --git a/gen/run1/src/api/call_builders.rs b/gen/run1/src/api/call_builders.rs index 93d2299fa8..66684277e7 100644 --- a/gen/run1/src/api/call_builders.rs +++ b/gen/run1/src/api/call_builders.rs @@ -3998,7 +3998,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4280,7 +4280,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()); @@ -4556,7 +4556,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -4897,7 +4897,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._dry_run.as_ref() { params.push("dryRun", value); } @@ -5200,7 +5200,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -5502,7 +5502,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()); @@ -5778,7 +5778,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -6117,7 +6117,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()); @@ -6408,7 +6408,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._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -6700,7 +6700,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()); @@ -6976,7 +6976,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -7315,7 +7315,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7606,7 +7606,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._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -7898,7 +7898,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()); @@ -8174,7 +8174,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -8513,7 +8513,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()); @@ -8805,7 +8805,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()); @@ -9098,7 +9098,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -9400,7 +9400,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()); @@ -9676,7 +9676,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -10008,7 +10008,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()); @@ -10284,7 +10284,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -10625,7 +10625,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._dry_run.as_ref() { params.push("dryRun", value); } @@ -10928,7 +10928,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -11230,7 +11230,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()); @@ -11506,7 +11506,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -11847,7 +11847,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._dry_run.as_ref() { params.push("dryRun", value); } @@ -12142,7 +12142,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()); @@ -12418,7 +12418,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -12754,7 +12754,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -13040,7 +13040,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -13322,7 +13322,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()); @@ -13598,7 +13598,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -13939,7 +13939,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._dry_run.as_ref() { params.push("dryRun", value); } @@ -14242,7 +14242,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -14544,7 +14544,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()); @@ -14820,7 +14820,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -15154,7 +15154,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()); } @@ -15433,7 +15433,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()); @@ -15725,7 +15725,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()); @@ -17132,7 +17132,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -17434,7 +17434,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()); @@ -17710,7 +17710,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -18042,7 +18042,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()); @@ -18318,7 +18318,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -18659,7 +18659,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._dry_run.as_ref() { params.push("dryRun", value); } @@ -18962,7 +18962,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._propagation_policy.as_ref() { params.push("propagationPolicy", value); } @@ -19264,7 +19264,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()); @@ -19528,7 +19528,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()); } @@ -19814,7 +19814,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._watch.as_ref() { params.push("watch", value.to_string()); } @@ -20155,7 +20155,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._dry_run.as_ref() { params.push("dryRun", value); } @@ -20457,7 +20457,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()); @@ -20749,7 +20749,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()); @@ -21040,7 +21040,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); } diff --git a/gen/run1/src/api/mod.rs b/gen/run1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/run1/src/api/mod.rs +++ b/gen/run1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/run1/src/api/schemas.rs b/gen/run1/src/api/schemas.rs index 5bdb374127..c9a6551741 100644 --- a/gen/run1/src/api/schemas.rs +++ b/gen/run1/src/api/schemas.rs @@ -47,7 +47,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -395,7 +395,7 @@ pub struct DomainMappingSpec { /// The mode of the certificate. #[serde(rename="certificateMode")] - pub certificate_mode: Option, + pub certificate_mode: Option, /// If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning. #[serde(rename="forceOverride")] @@ -1472,7 +1472,7 @@ pub struct ResourceRecord { /// Resource record type. Example: `AAAA`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ResourceRecord {} diff --git a/gen/run2/src/api/call_builders.rs b/gen/run2/src/api/call_builders.rs index a8323ad6e4..a8c4e65c48 100644 --- a/gen/run2/src/api/call_builders.rs +++ b/gen/run2/src/api/call_builders.rs @@ -2795,7 +2795,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()); @@ -3063,7 +3063,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -3651,7 +3651,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -3933,7 +3933,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()); @@ -4201,7 +4201,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -4504,7 +4504,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -4813,7 +4813,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -5095,7 +5095,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()); @@ -5359,7 +5359,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()); } @@ -5637,7 +5637,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -5940,7 +5940,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -6252,7 +6252,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()); @@ -6544,7 +6544,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()); @@ -6836,7 +6836,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()); @@ -7121,7 +7121,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()); @@ -7383,7 +7383,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()); @@ -7651,7 +7651,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); } @@ -7950,7 +7950,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()); @@ -8239,7 +8239,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -8521,7 +8521,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()); @@ -8789,7 +8789,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -9092,7 +9092,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -9401,7 +9401,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -9683,7 +9683,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()); @@ -9947,7 +9947,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()); } @@ -10225,7 +10225,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._show_deleted.as_ref() { params.push("showDeleted", value.to_string()); } @@ -10528,7 +10528,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._validate_only.as_ref() { params.push("validateOnly", value.to_string()); } @@ -10840,7 +10840,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()); @@ -11132,7 +11132,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()); diff --git a/gen/run2/src/api/mod.rs b/gen/run2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/run2/src/api/mod.rs +++ b/gen/run2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/run2/src/api/schemas.rs b/gen/run2/src/api/schemas.rs index 495e6ef5d9..68719336db 100644 --- a/gen/run2/src/api/schemas.rs +++ b/gen/run2/src/api/schemas.rs @@ -44,7 +44,7 @@ pub struct GoogleCloudRunV2Condition { /// A reason for the execution condition. #[serde(rename="executionReason")] - pub execution_reason: Option, + pub execution_reason: Option, /// Last time the condition transitioned from one status to another. #[serde(rename="lastTransitionTime")] @@ -54,17 +54,17 @@ pub struct GoogleCloudRunV2Condition { pub message: Option, /// A common (service-level) reason for this condition. - pub reason: Option, + pub reason: Option, /// A reason for the revision condition. #[serde(rename="revisionReason")] - pub revision_reason: Option, + pub revision_reason: Option, /// How to interpret failures of this condition, one of Error, Warning, Info - pub severity: Option, + pub severity: Option, /// State of the condition. - pub state: Option, + pub state: Option, /// type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready. #[serde(rename="type")] @@ -237,7 +237,7 @@ pub struct GoogleCloudRunV2Execution { /// Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Output only. URI where logs for this execution can be found in Cloud Console. #[serde(rename="logUri")] @@ -467,7 +467,7 @@ pub struct GoogleCloudRunV2Job { /// The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} pub name: Option, @@ -707,7 +707,7 @@ pub struct GoogleCloudRunV2Revision { /// The action to take if the encryption key is revoked. #[serde(rename="encryptionKeyRevocationAction")] - pub encryption_key_revocation_action: Option, + pub encryption_key_revocation_action: Option, /// If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. #[serde(rename="encryptionKeyShutdownDuration")] @@ -719,7 +719,7 @@ pub struct GoogleCloudRunV2Revision { /// The execution environment being used to host this Revision. #[serde(rename="executionEnvironment")] - pub execution_environment: Option, + pub execution_environment: Option, /// Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request. #[serde(rename="expireTime")] @@ -734,7 +734,7 @@ pub struct GoogleCloudRunV2Revision { /// Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// Output only. The Google Console URI to obtain logs for the Revision. #[serde(rename="logUri")] @@ -827,7 +827,7 @@ pub struct GoogleCloudRunV2RevisionTemplate { /// The sandbox environment to host this Revision. #[serde(rename="executionEnvironment")] - pub execution_environment: Option, + pub execution_environment: Option, /// KRM-style labels for the resource. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate. pub labels: Option>, @@ -981,7 +981,7 @@ pub struct GoogleCloudRunV2Service { pub generation: Option, /// Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. - pub ingress: Option, + pub ingress: Option, /// Map of string keys and values that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Service. pub labels: Option>, @@ -1000,7 +1000,7 @@ pub struct GoogleCloudRunV2Service { /// The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. #[serde(rename="launchStage")] - pub launch_stage: Option, + pub launch_stage: Option, /// The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id} pub name: Option, @@ -1102,7 +1102,7 @@ pub struct GoogleCloudRunV2Task { /// The execution environment being used to host this Task. #[serde(rename="executionEnvironment")] - pub execution_environment: Option, + pub execution_environment: Option, /// Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request. #[serde(rename="expireTime")] @@ -1213,7 +1213,7 @@ pub struct GoogleCloudRunV2TaskTemplate { /// The execution environment being used to host this Task. #[serde(rename="executionEnvironment")] - pub execution_environment: Option, + pub execution_environment: Option, /// Number of retries allowed per Task, before marking this Task failed. #[serde(rename="maxRetries")] @@ -1257,7 +1257,7 @@ pub struct GoogleCloudRunV2TrafficTarget { /// The allocation type for this traffic target. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for GoogleCloudRunV2TrafficTarget {} @@ -1282,7 +1282,7 @@ pub struct GoogleCloudRunV2TrafficTargetStatus { /// The allocation type for this traffic target. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Displays the target URI. pub uri: Option, @@ -1365,7 +1365,7 @@ pub struct GoogleCloudRunV2VpcAccess { pub connector: Option, /// Traffic VPC egress settings. - pub egress: Option, + pub egress: Option, } impl client::Part for GoogleCloudRunV2VpcAccess {} @@ -1404,7 +1404,7 @@ pub struct GoogleIamV1AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for GoogleIamV1AuditLogConfig {} diff --git a/gen/runtimeconfig1/src/api/call_builders.rs b/gen/runtimeconfig1/src/api/call_builders.rs index 95947b2b0a..272ea76e90 100644 --- a/gen/runtimeconfig1/src/api/call_builders.rs +++ b/gen/runtimeconfig1/src/api/call_builders.rs @@ -459,7 +459,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()); @@ -744,7 +744,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()); @@ -1012,7 +1012,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); } diff --git a/gen/runtimeconfig1/src/api/mod.rs b/gen/runtimeconfig1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/runtimeconfig1/src/api/mod.rs +++ b/gen/runtimeconfig1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/runtimeconfig1_beta1/src/api/call_builders.rs b/gen/runtimeconfig1_beta1/src/api/call_builders.rs index 4d470c2d5c..c226922b6c 100644 --- a/gen/runtimeconfig1_beta1/src/api/call_builders.rs +++ b/gen/runtimeconfig1_beta1/src/api/call_builders.rs @@ -1131,7 +1131,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()); @@ -1400,7 +1400,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()); @@ -1694,7 +1694,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1991,7 +1991,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._recursive.as_ref() { params.push("recursive", value.to_string()); } @@ -2263,7 +2263,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()); @@ -2533,7 +2533,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._return_values.as_ref() { params.push("returnValues", value.to_string()); } @@ -2842,7 +2842,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()); @@ -3134,7 +3134,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()); @@ -3426,7 +3426,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()); @@ -3720,7 +3720,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4015,7 +4015,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()); @@ -4277,7 +4277,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()); @@ -4543,7 +4543,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4832,7 +4832,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()); @@ -5126,7 +5126,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5421,7 +5421,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()); @@ -5683,7 +5683,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()); @@ -5947,7 +5947,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()); } @@ -6223,7 +6223,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -6512,7 +6512,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()); @@ -6804,7 +6804,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()); @@ -7096,7 +7096,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()); diff --git a/gen/runtimeconfig1_beta1/src/api/mod.rs b/gen/runtimeconfig1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/runtimeconfig1_beta1/src/api/mod.rs +++ b/gen/runtimeconfig1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/runtimeconfig1_beta1/src/api/schemas.rs b/gen/runtimeconfig1_beta1/src/api/schemas.rs index 4c7d7ede56..8e2c2e6176 100644 --- a/gen/runtimeconfig1_beta1/src/api/schemas.rs +++ b/gen/runtimeconfig1_beta1/src/api/schemas.rs @@ -350,7 +350,7 @@ pub struct Variable { pub name: Option, /// Output only. The current state of the variable. The variable state indicates the outcome of the `variables().watch` call and is visible through the `get` and `list` calls. - pub state: Option, + pub state: Option, /// The string value of the variable. The length of the value must be less than 4096 bytes. Empty values are also accepted. For example, `text: "my text value"`. The string must be valid UTF-8. pub text: Option, diff --git a/gen/safebrowsing4/src/api/mod.rs b/gen/safebrowsing4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/safebrowsing4/src/api/mod.rs +++ b/gen/safebrowsing4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/safebrowsing4/src/api/schemas.rs b/gen/safebrowsing4/src/api/schemas.rs index 85333e3832..442f5d89e1 100644 --- a/gen/safebrowsing4/src/api/schemas.rs +++ b/gen/safebrowsing4/src/api/schemas.rs @@ -86,7 +86,7 @@ pub struct GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRe /// The type of platform at risk by entries present in the list. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, /// The current state of the client for the requested list (the encrypted client state that was received from the last successful list update). #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -94,11 +94,11 @@ pub struct GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRe /// The types of entries present in the list. #[serde(rename="threatEntryType")] - pub threat_entry_type: Option, + pub threat_entry_type: Option, /// The type of threat posed by entries present in the list. #[serde(rename="threatType")] - pub threat_type: Option, + pub threat_type: Option, } impl client::Part for GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest {} @@ -132,7 +132,7 @@ pub struct GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRe /// The compression types supported by the client. #[serde(rename="supportedCompressions")] - pub supported_compressions: Option>, + pub supported_compressions: Option>, } impl client::Part for GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints {} @@ -185,22 +185,22 @@ pub struct GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateR /// The platform type for which data is returned. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, /// A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet. pub removals: Option>, /// The type of response. This may indicate that an action is required by the client when the response is received. #[serde(rename="responseType")] - pub response_type: Option, + pub response_type: Option, /// The format of the threats. #[serde(rename="threatEntryType")] - pub threat_entry_type: Option, + pub threat_entry_type: Option, /// The threat type for which data is returned. #[serde(rename="threatType")] - pub threat_type: Option, + pub threat_type: Option, } impl client::Part for GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse {} @@ -464,7 +464,7 @@ pub struct GoogleSecuritySafebrowsingV4ThreatEntrySet { /// The compression type for the entries in this set. #[serde(rename="compressionType")] - pub compression_type: Option, + pub compression_type: Option, /// The raw SHA256-formatted entries. #[serde(rename="rawHashes")] @@ -507,14 +507,14 @@ pub struct GoogleSecuritySafebrowsingV4ThreatHit { /// The platform type reported. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, /// The resources related to the threat hit. pub resources: Option>, /// The threat type reported. #[serde(rename="threatType")] - pub threat_type: Option, + pub threat_type: Option, /// Details about the user that encountered the threat. #[serde(rename="userInfo")] @@ -541,7 +541,7 @@ pub struct GoogleSecuritySafebrowsingV4ThreatHitThreatSource { /// The type of source reported. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The URL of the resource. pub url: Option, @@ -581,7 +581,7 @@ pub struct GoogleSecuritySafebrowsingV4ThreatInfo { /// The platform types to be checked. #[serde(rename="platformTypes")] - pub platform_types: Option>, + pub platform_types: Option>, /// The threat entries to be checked. #[serde(rename="threatEntries")] @@ -589,11 +589,11 @@ pub struct GoogleSecuritySafebrowsingV4ThreatInfo { /// The entry types to be checked. #[serde(rename="threatEntryTypes")] - pub threat_entry_types: Option>, + pub threat_entry_types: Option>, /// The threat types to be checked. #[serde(rename="threatTypes")] - pub threat_types: Option>, + pub threat_types: Option>, } impl client::Part for GoogleSecuritySafebrowsingV4ThreatInfo {} @@ -609,15 +609,15 @@ pub struct GoogleSecuritySafebrowsingV4ThreatListDescriptor { /// The platform type targeted by the list's entries. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, /// The entry types contained in the list. #[serde(rename="threatEntryType")] - pub threat_entry_type: Option, + pub threat_entry_type: Option, /// The threat type posed by the list's entries. #[serde(rename="threatType")] - pub threat_type: Option, + pub threat_type: Option, } impl client::Part for GoogleSecuritySafebrowsingV4ThreatListDescriptor {} @@ -638,7 +638,7 @@ pub struct GoogleSecuritySafebrowsingV4ThreatMatch { /// The platform type matching this threat. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, /// The threat matching this threat. pub threat: Option, @@ -649,11 +649,11 @@ pub struct GoogleSecuritySafebrowsingV4ThreatMatch { /// The threat entry type matching this threat. #[serde(rename="threatEntryType")] - pub threat_entry_type: Option, + pub threat_entry_type: Option, /// The threat type matching this threat. #[serde(rename="threatType")] - pub threat_type: Option, + pub threat_type: Option, } impl client::Part for GoogleSecuritySafebrowsingV4ThreatMatch {} diff --git a/gen/sasportal1_alpha1/src/api/call_builders.rs b/gen/sasportal1_alpha1/src/api/call_builders.rs index c6f9b84faf..a0cb196253 100644 --- a/gen/sasportal1_alpha1/src/api/call_builders.rs +++ b/gen/sasportal1_alpha1/src/api/call_builders.rs @@ -3195,7 +3195,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3487,7 +3487,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3778,7 +3778,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._page_token.as_ref() { params.push("pageToken", value); } @@ -4077,7 +4077,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -4362,7 +4362,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()); @@ -4624,7 +4624,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()); @@ -4892,7 +4892,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._page_token.as_ref() { params.push("pageToken", value); } @@ -5191,7 +5191,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()); @@ -5485,7 +5485,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5787,7 +5787,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6079,7 +6079,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6364,7 +6364,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()); @@ -6626,7 +6626,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()); @@ -6894,7 +6894,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._page_token.as_ref() { params.push("pageToken", value); } @@ -7193,7 +7193,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()); @@ -7487,7 +7487,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -7789,7 +7789,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()); @@ -8081,7 +8081,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()); @@ -8373,7 +8373,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8664,7 +8664,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._page_token.as_ref() { params.push("pageToken", value); } @@ -8963,7 +8963,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9255,7 +9255,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9546,7 +9546,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._page_token.as_ref() { params.push("pageToken", value); } @@ -9845,7 +9845,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10136,7 +10136,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._page_token.as_ref() { params.push("pageToken", value); } @@ -10435,7 +10435,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10720,7 +10720,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()); @@ -10982,7 +10982,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()); @@ -11250,7 +11250,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._page_token.as_ref() { params.push("pageToken", value); } @@ -11549,7 +11549,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()); @@ -11843,7 +11843,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12138,7 +12138,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()); @@ -13435,7 +13435,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -14276,7 +14276,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()); @@ -14538,7 +14538,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()); @@ -14807,7 +14807,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()); @@ -15101,7 +15101,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -15403,7 +15403,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()); @@ -15695,7 +15695,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()); @@ -15980,7 +15980,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()); @@ -16795,7 +16795,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -17087,7 +17087,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -17378,7 +17378,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._page_token.as_ref() { params.push("pageToken", value); } @@ -17670,7 +17670,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()); @@ -17932,7 +17932,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()); @@ -18200,7 +18200,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._page_token.as_ref() { params.push("pageToken", value); } @@ -18499,7 +18499,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()); @@ -18793,7 +18793,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -19095,7 +19095,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -19387,7 +19387,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -19672,7 +19672,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()); @@ -19934,7 +19934,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()); @@ -20202,7 +20202,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._page_token.as_ref() { params.push("pageToken", value); } @@ -20501,7 +20501,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()); @@ -20795,7 +20795,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -21097,7 +21097,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()); @@ -21389,7 +21389,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()); @@ -21681,7 +21681,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -21972,7 +21972,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._page_token.as_ref() { params.push("pageToken", value); } @@ -22271,7 +22271,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -22563,7 +22563,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -22854,7 +22854,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._page_token.as_ref() { params.push("pageToken", value); } @@ -23153,7 +23153,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -23444,7 +23444,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._page_token.as_ref() { params.push("pageToken", value); } @@ -23743,7 +23743,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -24028,7 +24028,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()); @@ -24290,7 +24290,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()); @@ -24558,7 +24558,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._page_token.as_ref() { params.push("pageToken", value); } @@ -24857,7 +24857,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()); @@ -25151,7 +25151,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -25446,7 +25446,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()); diff --git a/gen/sasportal1_alpha1/src/api/mod.rs b/gen/sasportal1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sasportal1_alpha1/src/api/mod.rs +++ b/gen/sasportal1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sasportal1_alpha1/src/api/schemas.rs b/gen/sasportal1_alpha1/src/api/schemas.rs index 7aa272bca2..f951305e2a 100644 --- a/gen/sasportal1_alpha1/src/api/schemas.rs +++ b/gen/sasportal1_alpha1/src/api/schemas.rs @@ -204,7 +204,7 @@ pub struct SasPortalDevice { pub serial_number: Option, /// Output only. Device state. - pub state: Option, + pub state: Option, } impl client::RequestValue for SasPortalDevice {} @@ -221,7 +221,7 @@ pub struct SasPortalDeviceAirInterface { /// Conditional. This field specifies the radio access technology that is used for the CBSD. #[serde(rename="radioTechnology")] - pub radio_technology: Option, + pub radio_technology: Option, /// Optional. This field is related to the `radioTechnology` and provides the air interface specification that the CBSD is compliant with at the time of registration. #[serde(rename="supportedSpec")] @@ -248,7 +248,7 @@ pub struct SasPortalDeviceConfig { pub call_sign: Option, /// FCC category of the device. - pub category: Option, + pub category: Option, /// Installation parameters for the device. #[serde(rename="installationParams")] @@ -260,13 +260,13 @@ pub struct SasPortalDeviceConfig { /// Measurement reporting capabilities of the device. #[serde(rename="measurementCapabilities")] - pub measurement_capabilities: Option>, + pub measurement_capabilities: Option>, /// Information about this device model. pub model: Option, /// State of the configuration. - pub state: Option, + pub state: Option, /// Output only. The last time the device configuration was edited. #[serde(rename="updateTime")] @@ -290,7 +290,7 @@ pub struct SasPortalDeviceGrant { /// Type of channel used. #[serde(rename="channelType")] - pub channel_type: Option, + pub channel_type: Option, /// The expiration time of the grant. #[serde(rename="expireTime")] @@ -317,7 +317,7 @@ pub struct SasPortalDeviceGrant { pub move_list: Option>, /// State of the grant. - pub state: Option, + pub state: Option, /// If the grant is suspended, the reason(s) for suspension. #[serde(rename="suspensionReason")] @@ -555,7 +555,7 @@ pub struct SasPortalInstallationParams { /// Specifies how the height is measured. #[serde(rename="heightType")] - pub height_type: Option, + pub height_type: Option, /// A positive number in meters to indicate accuracy of the device antenna horizontal location. This optional parameter should only be present if its value is less than the FCC requirement of 50 meters. #[serde(rename="horizontalAccuracy")] @@ -802,7 +802,7 @@ pub struct SasPortalNrqzValidation { pub longitude: Option, /// State of the NRQZ validation info. - pub state: Option, + pub state: Option, } impl client::Part for SasPortalNrqzValidation {} diff --git a/gen/searchconsole1/src/api/call_builders.rs b/gen/searchconsole1/src/api/call_builders.rs index 28e7561e12..1d9335980a 100644 --- a/gen/searchconsole1/src/api/call_builders.rs +++ b/gen/searchconsole1/src/api/call_builders.rs @@ -1398,7 +1398,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); @@ -1684,8 +1684,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("siteUrl", self._site_url); - params.push("feedpath", self._feedpath); + params.push("siteUrl", &self._site_url); + params.push("feedpath", &self._feedpath); params.extend(self._additional_params.iter()); @@ -1947,8 +1947,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("siteUrl", self._site_url); - params.push("feedpath", self._feedpath); + params.push("siteUrl", &self._site_url); + params.push("feedpath", &self._feedpath); params.extend(self._additional_params.iter()); @@ -2222,7 +2222,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); if let Some(value) = self._sitemap_index.as_ref() { params.push("sitemapIndex", value); } @@ -2495,8 +2495,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("siteUrl", self._site_url); - params.push("feedpath", self._feedpath); + params.push("siteUrl", &self._site_url); + params.push("feedpath", &self._feedpath); params.extend(self._additional_params.iter()); @@ -2757,7 +2757,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); @@ -3008,7 +3008,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); @@ -3259,7 +3259,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); diff --git a/gen/searchconsole1/src/api/mod.rs b/gen/searchconsole1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/searchconsole1/src/api/mod.rs +++ b/gen/searchconsole1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/searchconsole1/src/api/schemas.rs b/gen/searchconsole1/src/api/schemas.rs index 09f7c9a2a0..08c4f6b773 100644 --- a/gen/searchconsole1/src/api/schemas.rs +++ b/gen/searchconsole1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct AmpInspectionResult { /// Index status of the AMP URL. #[serde(rename="ampIndexStatusVerdict")] - pub amp_index_status_verdict: Option, + pub amp_index_status_verdict: Option, /// URL of the AMP that was inspected. If the submitted URL is a desktop page that refers to an AMP version, the AMP version will be inspected. #[serde(rename="ampUrl")] @@ -17,7 +17,7 @@ pub struct AmpInspectionResult { /// Whether or not the page blocks indexing through a noindex rule. #[serde(rename="indexingState")] - pub indexing_state: Option, + pub indexing_state: Option, /// A list of zero or more AMP issues found for the inspected URL. pub issues: Option>, @@ -28,14 +28,14 @@ pub struct AmpInspectionResult { /// Whether or not Google could fetch the AMP. #[serde(rename="pageFetchState")] - pub page_fetch_state: Option, + pub page_fetch_state: Option, /// Whether or not the page is blocked to Google by a robots.txt rule. #[serde(rename="robotsTxtState")] - pub robots_txt_state: Option, + pub robots_txt_state: Option, /// The status of the most severe error on the page. If a page has both warnings and errors, the page status is error. Error status means the page cannot be shown in Search results. - pub verdict: Option, + pub verdict: Option, } impl client::Part for AmpInspectionResult {} @@ -54,7 +54,7 @@ pub struct AmpIssue { pub issue_message: Option, /// Severity of this issue: WARNING or ERROR. - pub severity: Option, + pub severity: Option, } impl client::Part for AmpIssue {} @@ -96,13 +96,13 @@ impl client::Part for ApiDataRow {} pub struct ApiDimensionFilter { /// no description provided - pub dimension: Option, + pub dimension: Option, /// no description provided pub expression: Option, /// no description provided - pub operator: Option, + pub operator: Option, } impl client::Part for ApiDimensionFilter {} @@ -121,7 +121,7 @@ pub struct ApiDimensionFilterGroup { /// no description provided #[serde(rename="groupType")] - pub group_type: Option, + pub group_type: Option, } impl client::Part for ApiDimensionFilterGroup {} @@ -195,7 +195,7 @@ pub struct IndexStatusInspectionResult { /// Primary crawler that was used by Google to crawl your site. #[serde(rename="crawledAs")] - pub crawled_as: Option, + pub crawled_as: Option, /// The URL of the page that Google selected as canonical. If the page was not indexed, this field is absent. #[serde(rename="googleCanonical")] @@ -203,7 +203,7 @@ pub struct IndexStatusInspectionResult { /// Whether or not the page blocks indexing through a noindex rule. #[serde(rename="indexingState")] - pub indexing_state: Option, + pub indexing_state: Option, /// Last time this URL was crawled by Google using the [primary crawler](https://support.google.com/webmasters/answer/7440203#primary_crawler). Absent if the URL was never crawled successfully. #[serde(rename="lastCrawlTime")] @@ -211,7 +211,7 @@ pub struct IndexStatusInspectionResult { /// Whether or not Google could retrieve the page from your server. Equivalent to ["page fetch"](https://support.google.com/webmasters/answer/9012289#index_coverage) in the URL inspection report. #[serde(rename="pageFetchState")] - pub page_fetch_state: Option, + pub page_fetch_state: Option, /// URLs that link to the inspected URL, directly and indirectly. #[serde(rename="referringUrls")] @@ -219,7 +219,7 @@ pub struct IndexStatusInspectionResult { /// Whether or not the page is blocked to Google by a robots.txt rule. #[serde(rename="robotsTxtState")] - pub robots_txt_state: Option, + pub robots_txt_state: Option, /// Any sitemaps that this URL was listed in, as known by Google. Not guaranteed to be an exhaustive list, especially if Google did not discover this URL through a sitemap. Absent if no sitemaps were found. pub sitemap: Option>, @@ -229,7 +229,7 @@ pub struct IndexStatusInspectionResult { pub user_canonical: Option, /// High level verdict about whether the URL *is* indexed (indexed status), or *can be* indexed (live inspection). - pub verdict: Option, + pub verdict: Option, } impl client::Part for IndexStatusInspectionResult {} @@ -310,7 +310,7 @@ impl client::Part for Item {} pub struct MobileFriendlyIssue { /// Rule violated. - pub rule: Option, + pub rule: Option, } impl client::Part for MobileFriendlyIssue {} @@ -328,7 +328,7 @@ pub struct MobileUsabilityInspectionResult { pub issues: Option>, /// High-level mobile-usability inspection result for this URL. - pub verdict: Option, + pub verdict: Option, } impl client::Part for MobileUsabilityInspectionResult {} @@ -344,13 +344,13 @@ pub struct MobileUsabilityIssue { /// Mobile-usability issue type. #[serde(rename="issueType")] - pub issue_type: Option, + pub issue_type: Option, /// Additional information regarding the issue. pub message: Option, /// Not returned; reserved for future use. - pub severity: Option, + pub severity: Option, } impl client::Part for MobileUsabilityIssue {} @@ -385,7 +385,7 @@ pub struct RichResultsInspectionResult { pub detected_items: Option>, /// High-level rich results inspection result for this URL. - pub verdict: Option, + pub verdict: Option, } impl client::Part for RichResultsInspectionResult {} @@ -404,7 +404,7 @@ pub struct RichResultsIssue { pub issue_message: Option, /// Severity of this issue: WARNING, or ERROR. Items with an issue of status ERROR cannot appear with rich result features in Google Search results. - pub severity: Option, + pub severity: Option, } impl client::Part for RichResultsIssue {} @@ -447,7 +447,7 @@ pub struct RunMobileFriendlyTestResponse { /// Test verdict, whether the page is mobile friendly or not. #[serde(rename="mobileFriendliness")] - pub mobile_friendliness: Option, + pub mobile_friendliness: Option, /// List of mobile-usability issues. #[serde(rename="mobileFriendlyIssues")] @@ -482,18 +482,18 @@ pub struct SearchAnalyticsQueryRequest { /// [Optional; Default is \"auto\"] How data is aggregated. If aggregated by property, all data for the same property is aggregated; if aggregated by page, all data is aggregated by canonical URI. If you filter or group by page, choose AUTO; otherwise you can aggregate either by property or by page, depending on how you want your data calculated; see the help documentation to learn how data is calculated differently by site versus by page. **Note:** If you group or filter by page, you cannot aggregate by property. If you specify any value other than AUTO, the aggregation type in the result will match the requested type, or if you request an invalid type, you will get an error. The API will never change your aggregation type if the requested type is invalid. #[serde(rename="aggregationType")] - pub aggregation_type: Option, + pub aggregation_type: Option, /// The data state to be fetched, can be full or all, the latter including full and partial data. #[serde(rename="dataState")] - pub data_state: Option, + pub data_state: Option, /// [Optional] Zero or more filters to apply to the dimension grouping values; for example, 'query contains \"buy\"' to see only data where the query string contains the substring \"buy\" (not case-sensitive). You can filter by a dimension without grouping by it. #[serde(rename="dimensionFilterGroups")] pub dimension_filter_groups: Option>, /// [Optional] Zero or more dimensions to group results by. Dimensions are the group-by values in the Search Analytics page. Dimensions are combined to create a unique row key for each row. Results are grouped in the order that you supply these dimensions. - pub dimensions: Option>, + pub dimensions: Option>, /// [Required] End date of the requested date range, in YYYY-MM-DD format, in PST (UTC - 8:00). Must be greater than or equal to the start date. This value is included in the range. #[serde(rename="endDate")] @@ -505,7 +505,7 @@ pub struct SearchAnalyticsQueryRequest { /// [Optional; Default is \"web\"] The search type to filter for. #[serde(rename="searchType")] - pub search_type: Option, + pub search_type: Option, /// [Required] Start date of the requested date range, in YYYY-MM-DD format, in PST time (UTC - 8:00). Must be less than or equal to the end date. This value is included in the range. #[serde(rename="startDate")] @@ -517,7 +517,7 @@ pub struct SearchAnalyticsQueryRequest { /// Optional. [Optional; Default is \"web\"] Type of report: search type, or either Discover or Gnews. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for SearchAnalyticsQueryRequest {} @@ -537,7 +537,7 @@ pub struct SearchAnalyticsQueryResponse { /// How the results were aggregated. #[serde(rename="responseAggregationType")] - pub response_aggregation_type: Option, + pub response_aggregation_type: Option, /// A list of rows grouped by the key values in the order given in the query. pub rows: Option>, @@ -597,7 +597,7 @@ pub struct TestStatus { pub details: Option, /// Status of the test. - pub status: Option, + pub status: Option, } impl client::Part for TestStatus {} @@ -649,7 +649,7 @@ pub struct WmxSite { /// The user's permission level for the site. #[serde(rename="permissionLevel")] - pub permission_level: Option, + pub permission_level: Option, /// The URL of the site. #[serde(rename="siteUrl")] @@ -699,7 +699,7 @@ pub struct WmxSitemap { /// The type of the sitemap. For example: `rssFeed`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps. #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -727,7 +727,7 @@ pub struct WmxSitemapContent { /// The specific type of content in this sitemap. For example: `web`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for WmxSitemapContent {} diff --git a/gen/secretmanager1/src/api/call_builders.rs b/gen/secretmanager1/src/api/call_builders.rs index 1fdf57bd29..478570f23a 100644 --- a/gen/secretmanager1/src/api/call_builders.rs +++ b/gen/secretmanager1/src/api/call_builders.rs @@ -5925,7 +5925,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()); @@ -6193,7 +6193,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); } @@ -6485,7 +6485,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()); @@ -6754,7 +6754,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()); @@ -7046,7 +7046,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()); @@ -7338,7 +7338,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()); @@ -7623,7 +7623,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()); @@ -7891,7 +7891,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._page_token.as_ref() { params.push("pageToken", value); } @@ -8190,7 +8190,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8484,7 +8484,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._secret_id.as_ref() { params.push("secretId", value); } @@ -8781,7 +8781,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._etag.as_ref() { params.push("etag", value); } @@ -9053,7 +9053,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()); @@ -9317,7 +9317,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()); } @@ -9595,7 +9595,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._page_token.as_ref() { params.push("pageToken", value); } @@ -9896,7 +9896,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10198,7 +10198,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()); @@ -10490,7 +10490,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()); diff --git a/gen/secretmanager1/src/api/mod.rs b/gen/secretmanager1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/secretmanager1/src/api/mod.rs +++ b/gen/secretmanager1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/secretmanager1/src/api/schemas.rs b/gen/secretmanager1/src/api/schemas.rs index 035aea0e63..28b369149b 100644 --- a/gen/secretmanager1/src/api/schemas.rs +++ b/gen/secretmanager1/src/api/schemas.rs @@ -73,7 +73,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -615,7 +615,7 @@ pub struct SecretVersion { pub replication_status: Option, /// Output only. The current state of the SecretVersion. - pub state: Option, + pub state: Option, } impl client::ResponseResult for SecretVersion {} diff --git a/gen/secretmanager1_beta1/src/api/call_builders.rs b/gen/secretmanager1_beta1/src/api/call_builders.rs index 62978af152..d8b6c7f887 100644 --- a/gen/secretmanager1_beta1/src/api/call_builders.rs +++ b/gen/secretmanager1_beta1/src/api/call_builders.rs @@ -1131,7 +1131,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()); @@ -1399,7 +1399,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); } @@ -1691,7 +1691,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()); @@ -1960,7 +1960,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()); @@ -2252,7 +2252,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()); @@ -2544,7 +2544,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()); @@ -2829,7 +2829,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()); @@ -3095,7 +3095,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3384,7 +3384,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3678,7 +3678,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._secret_id.as_ref() { params.push("secretId", value); } @@ -3973,7 +3973,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()); @@ -4235,7 +4235,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()); @@ -4499,7 +4499,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()); } @@ -4775,7 +4775,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -5066,7 +5066,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -5368,7 +5368,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()); @@ -5660,7 +5660,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()); diff --git a/gen/secretmanager1_beta1/src/api/mod.rs b/gen/secretmanager1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/secretmanager1_beta1/src/api/mod.rs +++ b/gen/secretmanager1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/secretmanager1_beta1/src/api/schemas.rs b/gen/secretmanager1_beta1/src/api/schemas.rs index 006194e0ec..537ec7cd66 100644 --- a/gen/secretmanager1_beta1/src/api/schemas.rs +++ b/gen/secretmanager1_beta1/src/api/schemas.rs @@ -73,7 +73,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -446,7 +446,7 @@ pub struct SecretVersion { pub name: Option, /// Output only. The current state of the SecretVersion. - pub state: Option, + pub state: Option, } impl client::ResponseResult for SecretVersion {} diff --git a/gen/securitycenter1/src/api/call_builders.rs b/gen/securitycenter1/src/api/call_builders.rs index 7dc9d9f46a..8d9cf2c542 100644 --- a/gen/securitycenter1/src/api/call_builders.rs +++ b/gen/securitycenter1/src/api/call_builders.rs @@ -7527,7 +7527,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7826,7 +7826,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._read_time.as_ref() { params.push("readTime", ::client::serde::datetime_to_string(&value)); } @@ -8169,7 +8169,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()); } @@ -8483,7 +8483,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._big_query_export_id.as_ref() { params.push("bigQueryExportId", value); } @@ -8778,7 +8778,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()); @@ -9040,7 +9040,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()); @@ -9306,7 +9306,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -9597,7 +9597,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -12431,7 +12431,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -13553,7 +13553,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._mute_config_id.as_ref() { params.push("muteConfigId", value); } @@ -13848,7 +13848,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()); @@ -14110,7 +14110,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()); @@ -14376,7 +14376,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -14667,7 +14667,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -14971,7 +14971,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._config_id.as_ref() { params.push("configId", value); } @@ -15266,7 +15266,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()); @@ -15528,7 +15528,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()); @@ -15794,7 +15794,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -16085,7 +16085,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -18921,7 +18921,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -19223,7 +19223,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -19522,7 +19522,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._read_time.as_ref() { params.push("readTime", ::client::serde::datetime_to_string(&value)); } @@ -19863,7 +19863,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -20165,7 +20165,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()); @@ -20457,7 +20457,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()); @@ -20753,7 +20753,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()); } @@ -21062,7 +21062,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -21351,7 +21351,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -21650,7 +21650,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._read_time.as_ref() { params.push("readTime", ::client::serde::datetime_to_string(&value)); } @@ -21989,7 +21989,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -22285,7 +22285,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()); } @@ -22599,7 +22599,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._big_query_export_id.as_ref() { params.push("bigQueryExportId", value); } @@ -22894,7 +22894,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()); @@ -23156,7 +23156,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()); @@ -23422,7 +23422,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -23713,7 +23713,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -26547,7 +26547,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -27669,7 +27669,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._mute_config_id.as_ref() { params.push("muteConfigId", value); } @@ -27964,7 +27964,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()); @@ -28226,7 +28226,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()); @@ -28492,7 +28492,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -28783,7 +28783,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -29087,7 +29087,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._config_id.as_ref() { params.push("configId", value); } @@ -29382,7 +29382,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()); @@ -29644,7 +29644,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()); @@ -29910,7 +29910,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -30201,7 +30201,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -30496,7 +30496,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()); @@ -30758,7 +30758,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()); @@ -31020,7 +31020,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()); @@ -31288,7 +31288,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); } @@ -37565,7 +37565,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -37869,7 +37869,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._finding_id.as_ref() { params.push("findingId", value); } @@ -38171,7 +38171,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -38470,7 +38470,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._read_time.as_ref() { params.push("readTime", ::client::serde::datetime_to_string(&value)); } @@ -38811,7 +38811,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -39113,7 +39113,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()); @@ -39405,7 +39405,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()); @@ -39701,7 +39701,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()); } @@ -40013,7 +40013,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -40298,7 +40298,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()); @@ -40567,7 +40567,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()); @@ -40856,7 +40856,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -41147,7 +41147,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -41449,7 +41449,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()); @@ -41741,7 +41741,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()); @@ -42026,7 +42026,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()); @@ -42297,7 +42297,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -42599,7 +42599,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -42898,7 +42898,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._read_time.as_ref() { params.push("readTime", ::client::serde::datetime_to_string(&value)); } @@ -43241,7 +43241,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()); } @@ -43555,7 +43555,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._big_query_export_id.as_ref() { params.push("bigQueryExportId", value); } @@ -43850,7 +43850,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()); @@ -44112,7 +44112,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()); @@ -44378,7 +44378,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -44669,7 +44669,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -47503,7 +47503,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -48625,7 +48625,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._mute_config_id.as_ref() { params.push("muteConfigId", value); } @@ -48920,7 +48920,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()); @@ -49182,7 +49182,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()); @@ -49448,7 +49448,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -49739,7 +49739,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -50043,7 +50043,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._config_id.as_ref() { params.push("configId", value); } @@ -50338,7 +50338,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()); @@ -50600,7 +50600,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()); @@ -50866,7 +50866,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -51157,7 +51157,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -53993,7 +53993,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -54295,7 +54295,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -54594,7 +54594,7 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._read_time.as_ref() { params.push("readTime", ::client::serde::datetime_to_string(&value)); } @@ -54935,7 +54935,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -55237,7 +55237,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()); @@ -55529,7 +55529,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()); @@ -55825,7 +55825,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()); } @@ -56134,7 +56134,7 @@ where } let mut params = Params::with_capacity(5 + 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); } diff --git a/gen/securitycenter1/src/api/mod.rs b/gen/securitycenter1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/securitycenter1/src/api/mod.rs +++ b/gen/securitycenter1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/securitycenter1/src/api/schemas.rs b/gen/securitycenter1/src/api/schemas.rs index 18084443c6..c0ede483d2 100644 --- a/gen/securitycenter1/src/api/schemas.rs +++ b/gen/securitycenter1/src/api/schemas.rs @@ -141,7 +141,7 @@ pub struct AssetDiscoveryConfig { /// The mode to use for filtering asset discovery. #[serde(rename="inclusionMode")] - pub inclusion_mode: Option, + pub inclusion_mode: Option, /// The project ids to use for filtering asset discovery. #[serde(rename="projectIds")] @@ -184,7 +184,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -274,7 +274,7 @@ pub struct Connection { pub destination_port: Option, /// IANA Internet Protocol Number such as TCP(6) and UDP(17). - pub protocol: Option, + pub protocol: Option, /// Source IP address. #[serde(rename="sourceIp")] @@ -378,15 +378,15 @@ pub struct Cvssv3 { /// This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability. #[serde(rename="attackComplexity")] - pub attack_complexity: Option, + pub attack_complexity: Option, /// Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible. #[serde(rename="attackVector")] - pub attack_vector: Option, + pub attack_vector: Option, /// This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability. #[serde(rename="availabilityImpact")] - pub availability_impact: Option, + pub availability_impact: Option, /// The base score is a function of the base metric scores. #[serde(rename="baseScore")] @@ -394,22 +394,22 @@ pub struct Cvssv3 { /// This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability. #[serde(rename="confidentialityImpact")] - pub confidentiality_impact: Option, + pub confidentiality_impact: Option, /// This metric measures the impact to integrity of a successfully exploited vulnerability. #[serde(rename="integrityImpact")] - pub integrity_impact: Option, + pub integrity_impact: Option, /// This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. #[serde(rename="privilegesRequired")] - pub privileges_required: Option, + pub privileges_required: Option, /// The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope. - pub scope: Option, + pub scope: Option, /// This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component. #[serde(rename="userInteraction")] - pub user_interaction: Option, + pub user_interaction: Option, } impl client::Part for Cvssv3 {} @@ -673,7 +673,7 @@ pub struct Finding { /// The class of the finding. #[serde(rename="findingClass")] - pub finding_class: Option, + pub finding_class: Option, /// Represents IAM bindings associated with the Finding. #[serde(rename="iamBindings")] @@ -694,7 +694,7 @@ pub struct Finding { pub mitre_attack: Option, /// Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute. - pub mute: Option, + pub mute: Option, /// First known as mute_annotation. Records additional information about the mute operation e.g. mute config that muted the finding, user who muted the finding, etc. Unlike other attributes of a finding, a finding provider shouldn't set the value of mute. #[serde(rename="muteInitiator")] @@ -730,14 +730,14 @@ pub struct Finding { pub security_marks: Option, /// The severity of the finding. This field is managed by the source that writes the finding. - pub severity: Option, + pub severity: Option, /// Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only. #[serde(rename="sourceProperties")] pub source_properties: Option>, /// The state of the finding. - pub state: Option, + pub state: Option, /// Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/) pub vulnerability: Option, @@ -1190,7 +1190,7 @@ impl client::Part for GroupResult {} pub struct IamBinding { /// The action that was performed on a Binding. - pub action: Option, + pub action: Option, /// A single identity requesting access for a Cloud Platform resource, e.g. "foo@google.com". pub member: Option, @@ -1387,7 +1387,7 @@ pub struct ListAssetsResult { /// State change of the asset between the points in time. #[serde(rename="stateChange")] - pub state_change: Option, + pub state_change: Option, } impl client::Part for ListAssetsResult {} @@ -1469,7 +1469,7 @@ pub struct ListFindingsResult { /// State change of the finding between the points in time. #[serde(rename="stateChange")] - pub state_change: Option, + pub state_change: Option, } impl client::Part for ListFindingsResult {} @@ -1604,19 +1604,19 @@ pub struct MitreAttack { /// Additional MITRE ATT&CK tactics related to this finding, if any. #[serde(rename="additionalTactics")] - pub additional_tactics: Option>, + pub additional_tactics: Option>, /// Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques. #[serde(rename="additionalTechniques")] - pub additional_techniques: Option>, + pub additional_techniques: Option>, /// The MITRE ATT&CK tactic most closely represented by this finding, if any. #[serde(rename="primaryTactic")] - pub primary_tactic: Option, + pub primary_tactic: Option, /// The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`). #[serde(rename="primaryTechniques")] - pub primary_techniques: Option>, + pub primary_techniques: Option>, /// The MITRE ATT&CK version referenced by the above fields. E.g. "8". pub version: Option, @@ -1957,7 +1957,7 @@ impl client::Part for Resource {} pub struct Role { /// Role type. - pub kind: Option, + pub kind: Option, /// Role name. pub name: Option, @@ -2102,7 +2102,7 @@ pub struct SetFindingStateRequest { pub start_time: Option>, /// Required. The desired State of the finding. - pub state: Option, + pub state: Option, } impl client::RequestValue for SetFindingStateRequest {} @@ -2146,7 +2146,7 @@ impl client::RequestValue for SetIamPolicyRequest {} pub struct SetMuteRequest { /// Required. The desired state of the Mute. - pub mute: Option, + pub mute: Option, } impl client::RequestValue for SetMuteRequest {} @@ -2230,7 +2230,7 @@ impl client::Part for StreamingConfig {} pub struct Subject { /// Authentication type for subject. - pub kind: Option, + pub kind: Option, /// Name for subject. pub name: Option, diff --git a/gen/servicebroker1/src/api/call_builders.rs b/gen/servicebroker1/src/api/call_builders.rs index 8749913746..a6e26c4ed5 100644 --- a/gen/servicebroker1/src/api/call_builders.rs +++ b/gen/servicebroker1/src/api/call_builders.rs @@ -588,7 +588,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("resource", self._resource); + params.push("resource", &self._resource); params.extend(self._additional_params.iter()); @@ -859,7 +859,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()); @@ -1158,7 +1158,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()); diff --git a/gen/servicebroker1/src/api/mod.rs b/gen/servicebroker1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/servicebroker1/src/api/mod.rs +++ b/gen/servicebroker1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/servicecontrol1/src/api/call_builders.rs b/gen/servicecontrol1/src/api/call_builders.rs index 9595ab3192..1405bfc5ef 100644 --- a/gen/servicecontrol1/src/api/call_builders.rs +++ b/gen/servicecontrol1/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("serviceName", self._service_name); + params.push("serviceName", &self._service_name); params.extend(self._additional_params.iter()); @@ -369,7 +369,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("serviceName", self._service_name); + params.push("serviceName", &self._service_name); params.extend(self._additional_params.iter()); @@ -661,7 +661,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("serviceName", self._service_name); + params.push("serviceName", &self._service_name); params.extend(self._additional_params.iter()); diff --git a/gen/servicecontrol1/src/api/mod.rs b/gen/servicecontrol1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/servicecontrol1/src/api/mod.rs +++ b/gen/servicecontrol1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/servicecontrol1/src/api/schemas.rs b/gen/servicecontrol1/src/api/schemas.rs index 7ed5d47351..98eff9cb43 100644 --- a/gen/servicecontrol1/src/api/schemas.rs +++ b/gen/servicecontrol1/src/api/schemas.rs @@ -129,7 +129,7 @@ impl client::Part for Attributes {} pub struct CheckError { /// The error code. - pub code: Option, + pub code: Option, /// Free-form text providing details on the error cause of the error. pub detail: Option, @@ -255,7 +255,7 @@ pub struct ConsumerInfo { /// The type of the consumer which should have been defined in [Google Resource Manager](https://cloud.google.com/resource-manager/). #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ConsumerInfo {} @@ -493,7 +493,7 @@ pub struct LogEntry { pub proto_payload: Option>, /// The severity of the log entry. The default value is `LogSeverity.DEFAULT`. - pub severity: Option, + pub severity: Option, /// Optional. Source code location information associated with the log entry, if any. #[serde(rename="sourceLocation")] @@ -671,7 +671,7 @@ pub struct Operation { pub end_time: Option>, /// DO NOT USE. This is an experimental field. - pub importance: Option, + pub importance: Option, /// Labels describing the operation. Only the following labels are allowed: - Labels describing monitored resources as defined in the service configuration. - Default labels of metric values. When specified, labels defined in the metric value override these default. - The following labels defined by Google Cloud Platform: - `cloud.googleapis.com/location` describing the location where the operation happened, - `servicecontrol.googleapis.com/user_agent` describing the user agent of the API request, - `servicecontrol.googleapis.com/service_agent` describing the service used to handle the API request (e.g. ESP), - `servicecontrol.googleapis.com/platform` describing the platform where the API is served, such as App Engine, Compute Engine, or Kubernetes Engine. pub labels: Option>, @@ -724,7 +724,7 @@ impl client::Part for Operation {} pub struct QuotaError { /// Error code. - pub code: Option, + pub code: Option, /// Free-form text that provides details on the cause of the error. pub description: Option, @@ -792,7 +792,7 @@ pub struct QuotaOperation { /// Quota mode for this operation. #[serde(rename="quotaMode")] - pub quota_mode: Option, + pub quota_mode: Option, } impl client::Part for QuotaOperation {} @@ -808,7 +808,7 @@ pub struct QuotaProperties { /// Quota mode for this operation. #[serde(rename="quotaMode")] - pub quota_mode: Option, + pub quota_mode: Option, } impl client::Part for QuotaProperties {} @@ -972,7 +972,7 @@ pub struct TraceSpan { /// Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call. #[serde(rename="spanKind")] - pub span_kind: Option, + pub span_kind: Option, /// The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running. #[serde(rename="startTime")] diff --git a/gen/servicecontrol2/src/api/call_builders.rs b/gen/servicecontrol2/src/api/call_builders.rs index 5229dab39c..b2fffc2b20 100644 --- a/gen/servicecontrol2/src/api/call_builders.rs +++ b/gen/servicecontrol2/src/api/call_builders.rs @@ -77,7 +77,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("serviceName", self._service_name); + params.push("serviceName", &self._service_name); params.extend(self._additional_params.iter()); @@ -369,7 +369,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("serviceName", self._service_name); + params.push("serviceName", &self._service_name); params.extend(self._additional_params.iter()); diff --git a/gen/servicecontrol2/src/api/mod.rs b/gen/servicecontrol2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/servicecontrol2/src/api/mod.rs +++ b/gen/servicecontrol2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/servicedirectory1/src/api/call_builders.rs b/gen/servicedirectory1/src/api/call_builders.rs index 365b50710a..807cd3d61d 100644 --- a/gen/servicedirectory1/src/api/call_builders.rs +++ b/gen/servicedirectory1/src/api/call_builders.rs @@ -1202,7 +1202,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._endpoint_id.as_ref() { params.push("endpointId", value); } @@ -1497,7 +1497,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()); @@ -1759,7 +1759,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()); @@ -2029,7 +2029,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); } @@ -2340,7 +2340,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -2644,7 +2644,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._service_id.as_ref() { params.push("serviceId", value); } @@ -2939,7 +2939,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()); @@ -3201,7 +3201,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()); @@ -3470,7 +3470,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()); @@ -3763,7 +3763,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); } @@ -4074,7 +4074,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -4376,7 +4376,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()); @@ -4668,7 +4668,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()); @@ -4960,7 +4960,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()); @@ -5254,7 +5254,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._namespace_id.as_ref() { params.push("namespaceId", value); } @@ -5549,7 +5549,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()); @@ -5811,7 +5811,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()); @@ -6080,7 +6080,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()); @@ -6373,7 +6373,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); } @@ -6684,7 +6684,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -6986,7 +6986,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()); @@ -7278,7 +7278,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()); @@ -7563,7 +7563,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()); @@ -7831,7 +7831,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); } diff --git a/gen/servicedirectory1/src/api/mod.rs b/gen/servicedirectory1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/servicedirectory1/src/api/mod.rs +++ b/gen/servicedirectory1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/servicedirectory1_beta1/src/api/mod.rs b/gen/servicedirectory1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/servicedirectory1_beta1/src/api/mod.rs +++ b/gen/servicedirectory1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/serviceregistryalpha/src/api/call_builders.rs b/gen/serviceregistryalpha/src/api/call_builders.rs index 772637d77d..884df9de07 100644 --- a/gen/serviceregistryalpha/src/api/call_builders.rs +++ b/gen/serviceregistryalpha/src/api/call_builders.rs @@ -806,8 +806,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("endpoint", self._endpoint); + params.push("project", &self._project); + params.push("endpoint", &self._endpoint); params.extend(self._additional_params.iter()); @@ -1076,8 +1076,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("endpoint", self._endpoint); + params.push("project", &self._project); + params.push("endpoint", &self._endpoint); params.extend(self._additional_params.iter()); @@ -1352,7 +1352,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); params.extend(self._additional_params.iter()); @@ -1641,7 +1641,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -1959,8 +1959,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("endpoint", self._endpoint); + params.push("project", &self._project); + params.push("endpoint", &self._endpoint); params.extend(self._additional_params.iter()); @@ -2259,8 +2259,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("endpoint", self._endpoint); + params.push("project", &self._project); + params.push("endpoint", &self._endpoint); params.extend(self._additional_params.iter()); @@ -2552,8 +2552,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("operation", self._operation); + params.push("project", &self._project); + params.push("operation", &self._operation); params.extend(self._additional_params.iter()); @@ -2829,7 +2829,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); + params.push("project", &self._project); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } diff --git a/gen/serviceregistryalpha/src/api/mod.rs b/gen/serviceregistryalpha/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/serviceregistryalpha/src/api/mod.rs +++ b/gen/serviceregistryalpha/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sheets4/README.md b/gen/sheets4/README.md index 759458e350..a476b08d0d 100644 --- a/gen/sheets4/README.md +++ b/gen/sheets4/README.md @@ -117,11 +117,11 @@ let mut req = ValueRange::default(); // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.spreadsheets().values_append(req, "spreadsheetId", "range") - .value_input_option("no") - .response_value_render_option("ipsum") - .response_date_time_render_option("voluptua.") - .insert_data_option("At") - .include_values_in_response(false) + .value_input_option(&Default::default()) + .response_value_render_option(&Default::default()) + .response_date_time_render_option(&Default::default()) + .insert_data_option(&Default::default()) + .include_values_in_response(true) .doit().await; match result { diff --git a/gen/sheets4/src/api/call_builders.rs b/gen/sheets4/src/api/call_builders.rs index 7de0f98cda..2749e71aef 100644 --- a/gen/sheets4/src/api/call_builders.rs +++ b/gen/sheets4/src/api/call_builders.rs @@ -25,7 +25,7 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.spreadsheets().developer_metadata_get("spreadsheetId", -50) +/// let result = hub.spreadsheets().developer_metadata_get("spreadsheetId", -55) /// .doit().await; /// # } /// ``` @@ -71,8 +71,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); - params.push("metadataId", self._metadata_id.to_string()); + params.push("spreadsheetId", &self._spreadsheet_id); + params.push("metadataId", &self._metadata_id.to_string()); params.extend(self._additional_params.iter()); @@ -351,7 +351,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -644,8 +644,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); - params.push("sheetId", self._sheet_id.to_string()); + params.push("spreadsheetId", &self._spreadsheet_id); + params.push("sheetId", &self._sheet_id.to_string()); params.extend(self._additional_params.iter()); @@ -902,11 +902,11 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.spreadsheets().values_append(req, "spreadsheetId", "range") -/// .value_input_option("ipsum") -/// .response_value_render_option("ipsum") -/// .response_date_time_render_option("est") -/// .insert_data_option("gubergren") -/// .include_values_in_response(false) +/// .value_input_option(&Default::default()) +/// .response_value_render_option(&Default::default()) +/// .response_date_time_render_option(&Default::default()) +/// .insert_data_option(&Default::default()) +/// .include_values_in_response(true) /// .doit().await; /// # } /// ``` @@ -917,10 +917,10 @@ pub struct SpreadsheetValueAppendCall<'a, S> pub(super) _request: ValueRange, pub(super) _spreadsheet_id: String, pub(super) _range: String, - pub(super) _value_input_option: Option, - pub(super) _response_value_render_option: Option, - pub(super) _response_date_time_render_option: Option, - pub(super) _insert_data_option: Option, + pub(super) _value_input_option: Option, + pub(super) _response_value_render_option: Option, + pub(super) _response_date_time_render_option: Option, + pub(super) _insert_data_option: Option, pub(super) _include_values_in_response: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -958,8 +958,8 @@ where } let mut params = Params::with_capacity(10 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); - params.push("range", self._range); + params.push("spreadsheetId", &self._spreadsheet_id); + params.push("range", &self._range); if let Some(value) = self._value_input_option.as_ref() { params.push("valueInputOption", value); } @@ -1125,29 +1125,29 @@ where /// How the input data should be interpreted. /// /// Sets the *value input option* query property to the given value. - pub fn value_input_option(mut self, new_value: &str) -> SpreadsheetValueAppendCall<'a, S> { - self._value_input_option = Some(new_value.to_string()); + pub fn value_input_option(mut self, new_value: &SpreadsheetValueInputOptionEnum) -> SpreadsheetValueAppendCall<'a, S> { + self._value_input_option = Some(new_value.clone()); self } /// Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE. /// /// Sets the *response value render option* query property to the given value. - pub fn response_value_render_option(mut self, new_value: &str) -> SpreadsheetValueAppendCall<'a, S> { - self._response_value_render_option = Some(new_value.to_string()); + pub fn response_value_render_option(mut self, new_value: &SpreadsheetResponseValueRenderOptionEnum) -> SpreadsheetValueAppendCall<'a, S> { + self._response_value_render_option = Some(new_value.clone()); self } /// Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. /// /// Sets the *response date time render option* query property to the given value. - pub fn response_date_time_render_option(mut self, new_value: &str) -> SpreadsheetValueAppendCall<'a, S> { - self._response_date_time_render_option = Some(new_value.to_string()); + pub fn response_date_time_render_option(mut self, new_value: &SpreadsheetResponseDateTimeRenderOptionEnum) -> SpreadsheetValueAppendCall<'a, S> { + self._response_date_time_render_option = Some(new_value.clone()); self } /// How the input data should be inserted. /// /// Sets the *insert data option* query property to the given value. - pub fn insert_data_option(mut self, new_value: &str) -> SpreadsheetValueAppendCall<'a, S> { - self._insert_data_option = Some(new_value.to_string()); + pub fn insert_data_option(mut self, new_value: &SpreadsheetInsertDataOptionEnum) -> SpreadsheetValueAppendCall<'a, S> { + self._insert_data_option = Some(new_value.clone()); self } /// Determines if the update response should include the values of the cells that were appended. By default, responses do not include the updated values. @@ -1311,7 +1311,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -1603,7 +1603,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -1844,10 +1844,10 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.spreadsheets().values_batch_get("spreadsheetId") -/// .value_render_option("sed") -/// .add_ranges("duo") -/// .major_dimension("sed") -/// .date_time_render_option("no") +/// .value_render_option(&Default::default()) +/// .add_ranges("ipsum") +/// .major_dimension(&Default::default()) +/// .date_time_render_option(&Default::default()) /// .doit().await; /// # } /// ``` @@ -1856,10 +1856,10 @@ pub struct SpreadsheetValueBatchGetCall<'a, S> pub(super) hub: &'a Sheets, pub(super) _spreadsheet_id: String, - pub(super) _value_render_option: Option, + pub(super) _value_render_option: Option, pub(super) _ranges: Vec, - pub(super) _major_dimension: Option, - pub(super) _date_time_render_option: Option, + pub(super) _major_dimension: Option, + pub(super) _date_time_render_option: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, pub(super) _scopes: BTreeSet @@ -1896,7 +1896,7 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); if let Some(value) = self._value_render_option.as_ref() { params.push("valueRenderOption", value); } @@ -2028,8 +2028,8 @@ where /// How values should be represented in the output. The default render option is ValueRenderOption.FORMATTED_VALUE. /// /// Sets the *value render option* query property to the given value. - pub fn value_render_option(mut self, new_value: &str) -> SpreadsheetValueBatchGetCall<'a, S> { - self._value_render_option = Some(new_value.to_string()); + pub fn value_render_option(mut self, new_value: &SpreadsheetValueRenderOptionEnum) -> SpreadsheetValueBatchGetCall<'a, S> { + self._value_render_option = Some(new_value.clone()); self } /// The [A1 notation or R1C1 notation](https://developers.google.com/sheets/api/guides/concepts#cell) of the range to retrieve values from. @@ -2043,15 +2043,15 @@ where /// The major dimension that results should use. For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then requesting `ranges=["A1:B2"],majorDimension=ROWS` returns `[[1,2],[3,4]]`, whereas requesting `ranges=["A1:B2"],majorDimension=COLUMNS` returns `[[1,3],[2,4]]`. /// /// Sets the *major dimension* query property to the given value. - pub fn major_dimension(mut self, new_value: &str) -> SpreadsheetValueBatchGetCall<'a, S> { - self._major_dimension = Some(new_value.to_string()); + pub fn major_dimension(mut self, new_value: &SpreadsheetMajorDimensionEnum) -> SpreadsheetValueBatchGetCall<'a, S> { + self._major_dimension = Some(new_value.clone()); self } /// How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. /// /// Sets the *date time render option* query property to the given value. - pub fn date_time_render_option(mut self, new_value: &str) -> SpreadsheetValueBatchGetCall<'a, S> { - self._date_time_render_option = Some(new_value.to_string()); + pub fn date_time_render_option(mut self, new_value: &SpreadsheetDateTimeRenderOptionEnum) -> SpreadsheetValueBatchGetCall<'a, S> { + self._date_time_render_option = Some(new_value.clone()); self } /// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong @@ -2208,7 +2208,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -2500,7 +2500,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -2792,7 +2792,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -3085,8 +3085,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); - params.push("range", self._range); + params.push("spreadsheetId", &self._spreadsheet_id); + params.push("range", &self._range); params.extend(self._additional_params.iter()); @@ -3337,9 +3337,9 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.spreadsheets().values_get("spreadsheetId", "range") -/// .value_render_option("erat") -/// .major_dimension("sed") -/// .date_time_render_option("duo") +/// .value_render_option(&Default::default()) +/// .major_dimension(&Default::default()) +/// .date_time_render_option(&Default::default()) /// .doit().await; /// # } /// ``` @@ -3349,9 +3349,9 @@ pub struct SpreadsheetValueGetCall<'a, S> pub(super) hub: &'a Sheets, pub(super) _spreadsheet_id: String, pub(super) _range: String, - pub(super) _value_render_option: Option, - pub(super) _major_dimension: Option, - pub(super) _date_time_render_option: Option, + pub(super) _value_render_option: Option, + pub(super) _major_dimension: Option, + pub(super) _date_time_render_option: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, pub(super) _scopes: BTreeSet @@ -3388,8 +3388,8 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); - params.push("range", self._range); + params.push("spreadsheetId", &self._spreadsheet_id); + params.push("range", &self._range); if let Some(value) = self._value_render_option.as_ref() { params.push("valueRenderOption", value); } @@ -3526,22 +3526,22 @@ where /// How values should be represented in the output. The default render option is FORMATTED_VALUE. /// /// Sets the *value render option* query property to the given value. - pub fn value_render_option(mut self, new_value: &str) -> SpreadsheetValueGetCall<'a, S> { - self._value_render_option = Some(new_value.to_string()); + pub fn value_render_option(mut self, new_value: &SpreadsheetValueRenderOptionEnum) -> SpreadsheetValueGetCall<'a, S> { + self._value_render_option = Some(new_value.clone()); self } /// The major dimension that results should use. For example, if the spreadsheet data in Sheet1 is: `A1=1,B1=2,A2=3,B2=4`, then requesting `range=Sheet1!A1:B2?majorDimension=ROWS` returns `[[1,2],[3,4]]`, whereas requesting `range=Sheet1!A1:B2?majorDimension=COLUMNS` returns `[[1,3],[2,4]]`. /// /// Sets the *major dimension* query property to the given value. - pub fn major_dimension(mut self, new_value: &str) -> SpreadsheetValueGetCall<'a, S> { - self._major_dimension = Some(new_value.to_string()); + pub fn major_dimension(mut self, new_value: &SpreadsheetMajorDimensionEnum) -> SpreadsheetValueGetCall<'a, S> { + self._major_dimension = Some(new_value.clone()); self } /// How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. /// /// Sets the *date time render option* query property to the given value. - pub fn date_time_render_option(mut self, new_value: &str) -> SpreadsheetValueGetCall<'a, S> { - self._date_time_render_option = Some(new_value.to_string()); + pub fn date_time_render_option(mut self, new_value: &SpreadsheetDateTimeRenderOptionEnum) -> SpreadsheetValueGetCall<'a, S> { + self._date_time_render_option = Some(new_value.clone()); self } /// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong @@ -3653,9 +3653,9 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.spreadsheets().values_update(req, "spreadsheetId", "range") -/// .value_input_option("voluptua.") -/// .response_value_render_option("amet.") -/// .response_date_time_render_option("consetetur") +/// .value_input_option(&Default::default()) +/// .response_value_render_option(&Default::default()) +/// .response_date_time_render_option(&Default::default()) /// .include_values_in_response(false) /// .doit().await; /// # } @@ -3667,9 +3667,9 @@ pub struct SpreadsheetValueUpdateCall<'a, S> pub(super) _request: ValueRange, pub(super) _spreadsheet_id: String, pub(super) _range: String, - pub(super) _value_input_option: Option, - pub(super) _response_value_render_option: Option, - pub(super) _response_date_time_render_option: Option, + pub(super) _value_input_option: Option, + pub(super) _response_value_render_option: Option, + pub(super) _response_date_time_render_option: Option, pub(super) _include_values_in_response: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -3707,8 +3707,8 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); - params.push("range", self._range); + params.push("spreadsheetId", &self._spreadsheet_id); + params.push("range", &self._range); if let Some(value) = self._value_input_option.as_ref() { params.push("valueInputOption", value); } @@ -3871,22 +3871,22 @@ where /// How the input data should be interpreted. /// /// Sets the *value input option* query property to the given value. - pub fn value_input_option(mut self, new_value: &str) -> SpreadsheetValueUpdateCall<'a, S> { - self._value_input_option = Some(new_value.to_string()); + pub fn value_input_option(mut self, new_value: &SpreadsheetValueInputOptionEnum) -> SpreadsheetValueUpdateCall<'a, S> { + self._value_input_option = Some(new_value.clone()); self } /// Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE. /// /// Sets the *response value render option* query property to the given value. - pub fn response_value_render_option(mut self, new_value: &str) -> SpreadsheetValueUpdateCall<'a, S> { - self._response_value_render_option = Some(new_value.to_string()); + pub fn response_value_render_option(mut self, new_value: &SpreadsheetResponseValueRenderOptionEnum) -> SpreadsheetValueUpdateCall<'a, S> { + self._response_value_render_option = Some(new_value.clone()); self } /// Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. /// /// Sets the *response date time render option* query property to the given value. - pub fn response_date_time_render_option(mut self, new_value: &str) -> SpreadsheetValueUpdateCall<'a, S> { - self._response_date_time_render_option = Some(new_value.to_string()); + pub fn response_date_time_render_option(mut self, new_value: &SpreadsheetResponseDateTimeRenderOptionEnum) -> SpreadsheetValueUpdateCall<'a, S> { + self._response_date_time_render_option = Some(new_value.clone()); self } /// Determines if the update response should include the values of the cells that were updated. By default, responses do not include the updated values. If the range to write was larger than the range actually written, the response includes all values in the requested range (excluding trailing empty rows and columns). @@ -4050,7 +4050,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); @@ -4564,8 +4564,8 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.spreadsheets().get("spreadsheetId") -/// .add_ranges("et") -/// .include_grid_data(false) +/// .add_ranges("labore") +/// .include_grid_data(true) /// .doit().await; /// # } /// ``` @@ -4612,7 +4612,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); if self._ranges.len() > 0 { for f in self._ranges.iter() { params.push("ranges", f); @@ -4904,7 +4904,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("spreadsheetId", self._spreadsheet_id); + params.push("spreadsheetId", &self._spreadsheet_id); params.extend(self._additional_params.iter()); diff --git a/gen/sheets4/src/api/hub.rs b/gen/sheets4/src/api/hub.rs index 5ecb326ddc..c3f5200560 100644 --- a/gen/sheets4/src/api/hub.rs +++ b/gen/sheets4/src/api/hub.rs @@ -38,10 +38,10 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.spreadsheets().values_append(req, "spreadsheetId", "range") -/// .value_input_option("dolor") -/// .response_value_render_option("ea") -/// .response_date_time_render_option("ipsum") -/// .insert_data_option("invidunt") +/// .value_input_option(&Default::default()) +/// .response_value_render_option(&Default::default()) +/// .response_date_time_render_option(&Default::default()) +/// .insert_data_option(&Default::default()) /// .include_values_in_response(true) /// .doit().await; /// diff --git a/gen/sheets4/src/api/mod.rs b/gen/sheets4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sheets4/src/api/mod.rs +++ b/gen/sheets4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sheets4/src/api/schemas.rs b/gen/sheets4/src/api/schemas.rs index be666bf708..9db76b3352 100644 --- a/gen/sheets4/src/api/schemas.rs +++ b/gen/sheets4/src/api/schemas.rs @@ -517,7 +517,7 @@ impl client::Part for AppendCellsRequest {} pub struct AppendDimensionRequest { /// Whether rows or columns should be appended. - pub dimension: Option, + pub dimension: Option, /// The number of rows or columns to append. pub length: Option, @@ -680,7 +680,7 @@ pub struct BaselineValueFormat { /// The comparison type of key value with baseline value. #[serde(rename="comparisonType")] - pub comparison_type: Option, + pub comparison_type: Option, /// Description which is appended after the baseline value. This field is optional. pub description: Option, @@ -724,7 +724,7 @@ pub struct BasicChartAxis { pub format: Option, /// The position of this axis. - pub position: Option, + pub position: Option, /// The title of this axis. If set, this overrides any title inferred from headers of the data. pub title: Option, @@ -795,11 +795,11 @@ pub struct BasicChartSeries { /// The minor axis that will specify the range of values for this series. For example, if charting stocks over time, the "Volume" series may want to be pinned to the right with the prices pinned to the left, because the scale of trading volume is different than the scale of prices. It is an error to specify an axis that isn't a valid minor axis for the chart's type. #[serde(rename="targetAxis")] - pub target_axis: Option, + pub target_axis: Option, /// The type of this series. Valid only if the chartType is COMBO. Different types will change the way the series is visualized. Only LINE, AREA, and COLUMN are supported. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for BasicChartSeries {} @@ -818,11 +818,11 @@ pub struct BasicChartSpec { /// The type of the chart. #[serde(rename="chartType")] - pub chart_type: Option, + pub chart_type: Option, /// The behavior of tooltips and data highlighting when hovering on data and chart area. #[serde(rename="compareMode")] - pub compare_mode: Option, + pub compare_mode: Option, /// The domain of data this is charting. Only a single domain is supported. pub domains: Option>, @@ -837,7 +837,7 @@ pub struct BasicChartSpec { /// The position of the chart legend. #[serde(rename="legendPosition")] - pub legend_position: Option, + pub legend_position: Option, /// Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts. #[serde(rename="lineSmoothing")] @@ -848,7 +848,7 @@ pub struct BasicChartSpec { /// The stacked type for charts that support vertical stacking. Applies to Area, Bar, Column, Combo, and Stepped Area charts. #[serde(rename="stackedType")] - pub stacked_type: Option, + pub stacked_type: Option, /// True to make the chart 3D. Applies to Bar and Column charts. #[serde(rename="threeDimensional")] @@ -1019,15 +1019,15 @@ pub struct BatchGetValuesByDataFilterRequest { /// How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. #[serde(rename="dateTimeRenderOption")] - pub date_time_render_option: Option, + pub date_time_render_option: Option, /// The major dimension that results should use. For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then a request that selects that range and sets `majorDimension=ROWS` returns `[[1,2],[3,4]]`, whereas a request that sets `majorDimension=COLUMNS` returns `[[1,3],[2,4]]`. #[serde(rename="majorDimension")] - pub major_dimension: Option, + pub major_dimension: Option, /// How values should be represented in the output. The default render option is FORMATTED_VALUE. #[serde(rename="valueRenderOption")] - pub value_render_option: Option, + pub value_render_option: Option, } impl client::RequestValue for BatchGetValuesByDataFilterRequest {} @@ -1160,15 +1160,15 @@ pub struct BatchUpdateValuesByDataFilterRequest { /// Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. #[serde(rename="responseDateTimeRenderOption")] - pub response_date_time_render_option: Option, + pub response_date_time_render_option: Option, /// Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE. #[serde(rename="responseValueRenderOption")] - pub response_value_render_option: Option, + pub response_value_render_option: Option, /// How the input data should be interpreted. #[serde(rename="valueInputOption")] - pub value_input_option: Option, + pub value_input_option: Option, } impl client::RequestValue for BatchUpdateValuesByDataFilterRequest {} @@ -1234,15 +1234,15 @@ pub struct BatchUpdateValuesRequest { /// Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER. #[serde(rename="responseDateTimeRenderOption")] - pub response_date_time_render_option: Option, + pub response_date_time_render_option: Option, /// Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE. #[serde(rename="responseValueRenderOption")] - pub response_value_render_option: Option, + pub response_value_render_option: Option, /// How the input data should be interpreted. #[serde(rename="valueInputOption")] - pub value_input_option: Option, + pub value_input_option: Option, } impl client::RequestValue for BatchUpdateValuesRequest {} @@ -1361,7 +1361,7 @@ pub struct BooleanCondition { /// The type of condition. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The values of the condition. The number of supported values depends on the condition type. Some support zero values, others one or two values, and ConditionType.ONE_OF_LIST supports an arbitrary number of values. pub values: Option>, @@ -1404,7 +1404,7 @@ pub struct Border { pub color_style: Option, /// The style of the border. - pub style: Option, + pub style: Option, /// The width of the border, in pixels. Deprecated; the width is determined by the "style" field. pub width: Option, @@ -1486,7 +1486,7 @@ pub struct BubbleChartSpec { /// Where the legend of the chart should be drawn. #[serde(rename="legendPosition")] - pub legend_position: Option, + pub legend_position: Option, /// The data containing the bubble y-values. These values locate the bubbles in the chart vertically. pub series: Option, @@ -1653,11 +1653,11 @@ pub struct CellFormat { /// The horizontal alignment of the value in the cell. #[serde(rename="horizontalAlignment")] - pub horizontal_alignment: Option, + pub horizontal_alignment: Option, /// If one exists, how a hyperlink should be displayed in the cell. #[serde(rename="hyperlinkDisplayType")] - pub hyperlink_display_type: Option, + pub hyperlink_display_type: Option, /// A format describing how number values should be represented to the user. #[serde(rename="numberFormat")] @@ -1668,7 +1668,7 @@ pub struct CellFormat { /// The direction of the text in the cell. #[serde(rename="textDirection")] - pub text_direction: Option, + pub text_direction: Option, /// The format of the text in the cell (unless overridden by a format run). Setting a cell-level link here clears the cell's existing links. Setting the link field in a TextFormatRun takes precedence over the cell-level link. #[serde(rename="textFormat")] @@ -1680,11 +1680,11 @@ pub struct CellFormat { /// The vertical alignment of the value in the cell. #[serde(rename="verticalAlignment")] - pub vertical_alignment: Option, + pub vertical_alignment: Option, /// The wrap strategy for the value in the cell. #[serde(rename="wrapStrategy")] - pub wrap_strategy: Option, + pub wrap_strategy: Option, } impl client::Part for CellFormat {} @@ -1708,7 +1708,7 @@ pub struct ChartAxisViewWindowOptions { /// The view window's mode. #[serde(rename="viewWindowMode")] - pub view_window_mode: Option, + pub view_window_mode: Option, } impl client::Part for ChartAxisViewWindowOptions {} @@ -1742,7 +1742,7 @@ pub struct ChartData { /// The aggregation type for the series of a data source chart. Only supported for data source charts. #[serde(rename="aggregateType")] - pub aggregate_type: Option, + pub aggregate_type: Option, /// The reference to the data source column that the data reads from. #[serde(rename="columnReference")] @@ -1770,7 +1770,7 @@ pub struct ChartDateTimeRule { /// The type of date-time grouping to apply. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ChartDateTimeRule {} @@ -1881,7 +1881,7 @@ pub struct ChartSpec { /// Determines how the charts will use hidden rows or columns. #[serde(rename="hiddenDimensionStrategy")] - pub hidden_dimension_strategy: Option, + pub hidden_dimension_strategy: Option, /// A histogram chart specification. #[serde(rename="histogramChart")] @@ -2033,7 +2033,7 @@ pub struct ColorStyle { /// Theme color. #[serde(rename="themeColor")] - pub theme_color: Option, + pub theme_color: Option, } impl client::Part for ColorStyle {} @@ -2049,7 +2049,7 @@ pub struct ConditionValue { /// A relative date (based on the current date). Valid only if the type is DATE_BEFORE, DATE_AFTER, DATE_ON_OR_BEFORE or DATE_ON_OR_AFTER. Relative dates are not supported in data validation. They are supported only in conditional formatting and conditional filters. #[serde(rename="relativeDate")] - pub relative_date: Option, + pub relative_date: Option, /// A value the condition is based on. The value is parsed as if the user typed into a cell. Formulas are supported (and must begin with an `=` or a '+'). #[serde(rename="userEnteredValue")] @@ -2095,11 +2095,11 @@ pub struct CopyPasteRequest { /// How that data should be oriented when pasting. #[serde(rename="pasteOrientation")] - pub paste_orientation: Option, + pub paste_orientation: Option, /// What kind of data to paste. #[serde(rename="pasteType")] - pub paste_type: Option, + pub paste_type: Option, /// The source range to copy. pub source: Option, @@ -2173,7 +2173,7 @@ pub struct CutPasteRequest { /// What kind of data to paste. All the source data will be cut, regardless of what is pasted. #[serde(rename="pasteType")] - pub paste_type: Option, + pub paste_type: Option, /// The source data to cut. pub source: Option, @@ -2192,7 +2192,7 @@ pub struct DataExecutionStatus { /// The error code. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// The error message, which may be empty. #[serde(rename="errorMessage")] @@ -2203,7 +2203,7 @@ pub struct DataExecutionStatus { pub last_refresh_time: Option>, /// The state of the data execution. - pub state: Option, + pub state: Option, } impl client::Part for DataExecutionStatus {} @@ -2247,7 +2247,7 @@ pub struct DataFilterValueRange { /// The major dimension of the values. #[serde(rename="majorDimension")] - pub major_dimension: Option, + pub major_dimension: Option, /// The data to be written. If the provided values exceed any of the ranges matched by the data filter then the request fails. If the provided values are less than the matched ranges only the specified values are written, existing values in the matched ranges remain unaffected. pub values: Option>>, @@ -2269,7 +2269,7 @@ pub struct DataLabel { pub custom_label_data: Option, /// The placement of the data label relative to the labeled data. - pub placement: Option, + pub placement: Option, /// The text format used for the data label. The link field is not supported. #[serde(rename="textFormat")] @@ -2277,7 +2277,7 @@ pub struct DataLabel { /// The type of the data label. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DataLabel {} @@ -2513,7 +2513,7 @@ pub struct DataSourceRefreshSchedule { /// The scope of the refresh. Must be ALL_DATA_SOURCES. #[serde(rename="refreshScope")] - pub refresh_scope: Option, + pub refresh_scope: Option, /// Weekly refresh schedule. #[serde(rename="weeklySchedule")] @@ -2533,7 +2533,7 @@ pub struct DataSourceRefreshWeeklySchedule { /// Days of the week to refresh. At least one day must be specified. #[serde(rename="daysOfWeek")] - pub days_of_week: Option>, + pub days_of_week: Option>, /// The start time of a time interval in which a data source refresh is scheduled. Only `hours` part is used. The time interval size defaults to that in the Sheets editor. #[serde(rename="startTime")] @@ -2615,7 +2615,7 @@ pub struct DataSourceTable { /// The type to select columns for the data source table. Defaults to SELECTED. #[serde(rename="columnSelectionType")] - pub column_selection_type: Option, + pub column_selection_type: Option, /// Columns selected for the data source table. The column_selection_type must be SELECTED. pub columns: Option>, @@ -2680,7 +2680,7 @@ pub struct DateTimeRule { /// The type of date-time grouping to apply. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DateTimeRule {} @@ -2942,7 +2942,7 @@ pub struct DeleteRangeRequest { /// The dimension from which deleted cells will be replaced with. If ROWS, existing cells will be shifted upward to replace the deleted cells. If COLUMNS, existing cells will be shifted left to replace the deleted cells. #[serde(rename="shiftDimension")] - pub shift_dimension: Option, + pub shift_dimension: Option, } impl client::Part for DeleteRangeRequest {} @@ -2992,7 +2992,7 @@ pub struct DeveloperMetadata { pub metadata_value: Option, /// The metadata visibility. Developer metadata must always have a visibility specified. - pub visibility: Option, + pub visibility: Option, } impl client::ResponseResult for DeveloperMetadata {} @@ -3012,7 +3012,7 @@ pub struct DeveloperMetadataLocation { /// The type of location this object represents. This field is read-only. #[serde(rename="locationType")] - pub location_type: Option, + pub location_type: Option, /// The ID of the sheet when metadata is associated with an entire sheet. #[serde(rename="sheetId")] @@ -3035,11 +3035,11 @@ pub struct DeveloperMetadataLookup { /// Determines how this lookup matches the location. If this field is specified as EXACT, only developer metadata associated on the exact location specified is matched. If this field is specified to INTERSECTING, developer metadata associated on intersecting locations is also matched. If left unspecified, this field assumes a default value of INTERSECTING. If this field is specified, a metadataLocation must also be specified. #[serde(rename="locationMatchingStrategy")] - pub location_matching_strategy: Option, + pub location_matching_strategy: Option, /// Limits the selected developer metadata to those entries which are associated with locations of the specified type. For example, when this field is specified as ROW this lookup only considers developer metadata associated on rows. If the field is left unspecified, all location types are considered. This field cannot be specified as SPREADSHEET when the locationMatchingStrategy is specified as INTERSECTING or when the metadataLocation is specified as a non-spreadsheet location: spreadsheet metadata cannot intersect any other developer metadata location. This field also must be left unspecified when the locationMatchingStrategy is specified as EXACT. #[serde(rename="locationType")] - pub location_type: Option, + pub location_type: Option, /// Limits the selected developer metadata to that which has a matching DeveloperMetadata.metadata_id. #[serde(rename="metadataId")] @@ -3058,7 +3058,7 @@ pub struct DeveloperMetadataLookup { pub metadata_value: Option, /// Limits the selected developer metadata to that which has a matching DeveloperMetadata.visibility. If left unspecified, all developer metadata visibile to the requesting project is considered. - pub visibility: Option, + pub visibility: Option, } impl client::Part for DeveloperMetadataLookup {} @@ -3126,7 +3126,7 @@ impl client::Part for DimensionProperties {} pub struct DimensionRange { /// The dimension of the span. - pub dimension: Option, + pub dimension: Option, /// The end (exclusive) of the span, or not set if unbounded. #[serde(rename="endIndex")] @@ -3321,7 +3321,7 @@ pub struct ErrorValue { /// The type of error. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ErrorValue {} @@ -3719,7 +3719,7 @@ pub struct HistogramChartSpec { /// The position of the chart legend. #[serde(rename="legendPosition")] - pub legend_position: Option, + pub legend_position: Option, /// The outlier percentile is used to ensure that outliers do not adversely affect the calculation of bucket sizes. For example, setting an outlier percentile of 0.05 indicates that the top and bottom 5% of values when calculating buckets. The values are still included in the chart, they will be added to the first or last buckets instead of their own buckets. Must be between 0.0 and 0.5. #[serde(rename="outlierPercentile")] @@ -3812,7 +3812,7 @@ pub struct InsertRangeRequest { /// The dimension which will be shifted when inserting cells. If ROWS, existing cells will be shifted down. If COLUMNS, existing cells will be shifted right. #[serde(rename="shiftDimension")] - pub shift_dimension: Option, + pub shift_dimension: Option, } impl client::Part for InsertRangeRequest {} @@ -3835,7 +3835,7 @@ pub struct InterpolationPoint { /// How the value should be interpreted. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value this interpolation point uses. May be a formula. Unused if type is MIN or MAX. pub value: Option, @@ -3913,7 +3913,7 @@ pub struct LineStyle { /// The dash type of the line. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The thickness of the line, in px. pub width: Option, @@ -4021,7 +4021,7 @@ pub struct MergeCellsRequest { /// How the cells should be merged. #[serde(rename="mergeType")] - pub merge_type: Option, + pub merge_type: Option, /// The range of cells to merge. pub range: Option, @@ -4084,7 +4084,7 @@ pub struct NumberFormat { /// The type of the number format. When writing, this field must be set. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for NumberFormat {} @@ -4111,7 +4111,7 @@ pub struct OrgChartSpec { /// The size of the org chart nodes. #[serde(rename="nodeSize")] - pub node_size: Option, + pub node_size: Option, /// The data containing the label of the parent for the corresponding node. A blank value indicates that the node has no parent and is a top-level node. This field is optional. #[serde(rename="parentLabels")] @@ -4210,7 +4210,7 @@ pub struct PasteDataRequest { /// How the data should be pasted. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for PasteDataRequest {} @@ -4229,7 +4229,7 @@ pub struct PieChartSpec { /// Where the legend of the pie chart should be drawn. #[serde(rename="legendPosition")] - pub legend_position: Option, + pub legend_position: Option, /// The size of the hole in the pie chart. #[serde(rename="pieHole")] @@ -4326,7 +4326,7 @@ pub struct PivotGroup { /// The order the values in this group should be sorted. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, /// The column offset of the source range that this grouping is based on. For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0` means this group refers to column `C`, whereas the offset `1` would refer to column `D`. #[serde(rename="sourceColumnOffset")] @@ -4459,7 +4459,7 @@ pub struct PivotTable { /// Whether values should be listed horizontally (as columns) or vertically (as rows). #[serde(rename="valueLayout")] - pub value_layout: Option, + pub value_layout: Option, /// A list of values to include in the pivot table. pub values: Option>, @@ -4478,7 +4478,7 @@ pub struct PivotValue { /// If specified, indicates that pivot values should be displayed as the result of a calculation with another pivot value. For example, if calculated_display_type is specified as PERCENT_OF_GRAND_TOTAL, all the pivot values are displayed as the percentage of the grand total. In the Sheets editor, this is referred to as "Show As" in the value section of a pivot table. #[serde(rename="calculatedDisplayType")] - pub calculated_display_type: Option, + pub calculated_display_type: Option, /// The reference to the data source column that this value reads from. #[serde(rename="dataSourceColumnReference")] @@ -4496,7 +4496,7 @@ pub struct PivotValue { /// A function to summarize the value. If formula is set, the only supported values are SUM and CUSTOM. If sourceColumnOffset is set, then `CUSTOM` is not supported. #[serde(rename="summarizeFunction")] - pub summarize_function: Option, + pub summarize_function: Option, } impl client::Part for PivotValue {} @@ -4511,7 +4511,7 @@ impl client::Part for PivotValue {} pub struct PointStyle { /// The point shape. If empty or unspecified, a default shape is used. - pub shape: Option, + pub shape: Option, /// The point size. If empty, a default size is used. pub size: Option, @@ -5058,7 +5058,7 @@ pub struct ScorecardChartSpec { /// The aggregation type for key and baseline chart data in scorecard chart. This field is not supported for data source charts. Use the ChartData.aggregateType field of the key_value_data or baseline_value_data instead for data source charts. This field is optional. #[serde(rename="aggregateType")] - pub aggregate_type: Option, + pub aggregate_type: Option, /// The data for scorecard baseline value. This field is optional. #[serde(rename="baselineValueData")] @@ -5082,7 +5082,7 @@ pub struct ScorecardChartSpec { /// The number format source used in the scorecard chart. This field is optional. #[serde(rename="numberFormatSource")] - pub number_format_source: Option, + pub number_format_source: Option, /// Value to scale scorecard key and baseline value. For example, a factor of 10 can be used to divide all values in the chart by 10. This field is optional. #[serde(rename="scaleFactor")] @@ -5260,7 +5260,7 @@ pub struct SheetProperties { /// The type of sheet. Defaults to GRID. This field cannot be changed once set. #[serde(rename="sheetType")] - pub sheet_type: Option, + pub sheet_type: Option, /// The color of the tab in the UI. Deprecated: Use tab_color_style. #[serde(rename="tabColor")] @@ -5333,7 +5333,7 @@ pub struct SlicerSpec { /// The horizontal alignment of title in the slicer. If unspecified, defaults to `LEFT` #[serde(rename="horizontalAlignment")] - pub horizontal_alignment: Option, + pub horizontal_alignment: Option, /// The text format of title in the slicer. The link field is not supported. #[serde(rename="textFormat")] @@ -5399,7 +5399,7 @@ pub struct SortSpec { /// The order data should be sorted. #[serde(rename="sortOrder")] - pub sort_order: Option, + pub sort_order: Option, } impl client::Part for SortSpec {} @@ -5414,7 +5414,7 @@ impl client::Part for SortSpec {} pub struct SourceAndDestination { /// The dimension that data should be filled into. - pub dimension: Option, + pub dimension: Option, /// The number of rows or columns that data should be filled into. Positive numbers expand beyond the last row or last column of the source. Negative numbers expand before the first row or first column of the source. #[serde(rename="fillLength")] @@ -5501,7 +5501,7 @@ pub struct SpreadsheetProperties { /// The amount of time to wait before volatile functions are recalculated. #[serde(rename="autoRecalc")] - pub auto_recalc: Option, + pub auto_recalc: Option, /// The default format of all cells in the spreadsheet. CellData.effectiveFormat will not be set if the cell's format is equal to this default format. This field is read-only. #[serde(rename="defaultFormat")] @@ -5621,7 +5621,7 @@ pub struct TextPosition { /// Horizontal alignment setting for the piece of text. #[serde(rename="horizontalAlignment")] - pub horizontal_alignment: Option, + pub horizontal_alignment: Option, } impl client::Part for TextPosition {} @@ -5658,7 +5658,7 @@ pub struct TextToColumnsRequest { /// The delimiter type to use. #[serde(rename="delimiterType")] - pub delimiter_type: Option, + pub delimiter_type: Option, /// The source data range. This must span exactly one column. pub source: Option, @@ -5680,7 +5680,7 @@ pub struct ThemeColorPair { /// The type of the spreadsheet theme color. #[serde(rename="colorType")] - pub color_type: Option, + pub color_type: Option, } impl client::Part for ThemeColorPair {} @@ -6401,7 +6401,7 @@ pub struct ValueRange { /// The major dimension of the values. For output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then requesting `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`, whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return `[[1,3],[2,4]]`. For input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]` will set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS` then `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`. When writing, if this field is not set, it defaults to ROWS. #[serde(rename="majorDimension")] - pub major_dimension: Option, + pub major_dimension: Option, /// The range the values cover, in [A1 notation](https://developers.google.com/sheets/api/guides/concepts#cell). For output, this range indicates the entire requested range, even though the values will exclude trailing rows and columns. When appending values, this field represents the range to search for a table, after which values will be appended. pub range: Option, @@ -6544,7 +6544,7 @@ pub struct WaterfallChartSpec { /// The stacked type. #[serde(rename="stackedType")] - pub stacked_type: Option, + pub stacked_type: Option, /// Controls whether to display additional data labels on stacked charts which sum the total value of all stacked values at each value along the domain axis. stacked_type must be STACKED and neither CUSTOM nor placement can be set on the total_data_label. #[serde(rename="totalDataLabel")] diff --git a/gen/sheets4/src/lib.rs b/gen/sheets4/src/lib.rs index d69cabb418..0925628d14 100644 --- a/gen/sheets4/src/lib.rs +++ b/gen/sheets4/src/lib.rs @@ -118,11 +118,11 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.spreadsheets().values_append(req, "spreadsheetId", "range") -//! .value_input_option("amet.") -//! .response_value_render_option("duo") -//! .response_date_time_render_option("ipsum") -//! .insert_data_option("gubergren") -//! .include_values_in_response(true) +//! .value_input_option(&Default::default()) +//! .response_value_render_option(&Default::default()) +//! .response_date_time_render_option(&Default::default()) +//! .insert_data_option(&Default::default()) +//! .include_values_in_response(false) //! .doit().await; //! //! match result { diff --git a/gen/siteverification1/src/api/call_builders.rs b/gen/siteverification1/src/api/call_builders.rs index fb25b51b58..6e8ff09045 100644 --- a/gen/siteverification1/src/api/call_builders.rs +++ b/gen/siteverification1/src/api/call_builders.rs @@ -544,7 +544,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("id", self._id); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -791,7 +791,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("id", self._id); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -1325,7 +1325,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("verificationMethod", self._verification_method); + params.push("verificationMethod", &self._verification_method); params.extend(self._additional_params.iter()); @@ -1845,7 +1845,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("id", self._id); + params.push("id", &self._id); params.extend(self._additional_params.iter()); @@ -2133,7 +2133,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("id", self._id); + params.push("id", &self._id); params.extend(self._additional_params.iter()); diff --git a/gen/siteverification1/src/api/mod.rs b/gen/siteverification1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/siteverification1/src/api/mod.rs +++ b/gen/siteverification1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/smartdevicemanagement1/src/api/mod.rs b/gen/smartdevicemanagement1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/smartdevicemanagement1/src/api/mod.rs +++ b/gen/smartdevicemanagement1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sourcerepo1/src/api/call_builders.rs b/gen/sourcerepo1/src/api/call_builders.rs index aee29bb003..1b23272c58 100644 --- a/gen/sourcerepo1/src/api/call_builders.rs +++ b/gen/sourcerepo1/src/api/call_builders.rs @@ -947,7 +947,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1232,7 +1232,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()); @@ -1494,7 +1494,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()); @@ -1758,7 +1758,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()); } @@ -2034,7 +2034,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2323,7 +2323,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()); @@ -2615,7 +2615,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()); @@ -2907,7 +2907,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()); @@ -3199,7 +3199,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()); @@ -3484,7 +3484,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()); @@ -3753,7 +3753,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()); diff --git a/gen/sourcerepo1/src/api/mod.rs b/gen/sourcerepo1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sourcerepo1/src/api/mod.rs +++ b/gen/sourcerepo1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sourcerepo1/src/api/schemas.rs b/gen/sourcerepo1/src/api/schemas.rs index 8e3c0fae1e..53134d812a 100644 --- a/gen/sourcerepo1/src/api/schemas.rs +++ b/gen/sourcerepo1/src/api/schemas.rs @@ -32,7 +32,7 @@ pub struct AuditLogConfig { /// The log type that this config enables. #[serde(rename="logType")] - pub log_type: Option, + pub log_type: Option, } impl client::Part for AuditLogConfig {} @@ -244,7 +244,7 @@ pub struct PubsubConfig { /// The format of the Cloud Pub/Sub messages. #[serde(rename="messageFormat")] - pub message_format: Option, + pub message_format: Option, /// Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account. #[serde(rename="serviceAccountEmail")] diff --git a/gen/spectrum1_explorer/src/api/mod.rs b/gen/spectrum1_explorer/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/spectrum1_explorer/src/api/mod.rs +++ b/gen/spectrum1_explorer/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/speech1/src/api/call_builders.rs b/gen/speech1/src/api/call_builders.rs index 04be740e1c..f95b920f68 100644 --- a/gen/speech1/src/api/call_builders.rs +++ b/gen/speech1/src/api/call_builders.rs @@ -1461,7 +1461,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()); @@ -2021,7 +2021,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -2306,7 +2306,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()); @@ -2568,7 +2568,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()); @@ -2834,7 +2834,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -3125,7 +3125,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3427,7 +3427,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -3712,7 +3712,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()); @@ -3974,7 +3974,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()); @@ -4240,7 +4240,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -4531,7 +4531,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } diff --git a/gen/speech1/src/api/mod.rs b/gen/speech1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/speech1/src/api/mod.rs +++ b/gen/speech1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/speech1/src/api/schemas.rs b/gen/speech1/src/api/schemas.rs index 972d8da0f8..2ebcaae5d2 100644 --- a/gen/speech1/src/api/schemas.rs +++ b/gen/speech1/src/api/schemas.rs @@ -367,7 +367,7 @@ pub struct RecognitionConfig { pub enable_word_time_offsets: Option, /// Encoding of audio data sent in all `RecognitionAudio` messages. This field is optional for `FLAC` and `WAV` audio files and required for all other audio formats. For details, see AudioEncoding. - pub encoding: Option, + pub encoding: Option, /// Required. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of the currently supported language codes. #[serde(rename="languageCode")] @@ -421,15 +421,15 @@ pub struct RecognitionMetadata { /// The use case most closely describing the audio content to be recognized. #[serde(rename="interactionType")] - pub interaction_type: Option, + pub interaction_type: Option, /// The audio type that most closely describes the audio being recognized. #[serde(rename="microphoneDistance")] - pub microphone_distance: Option, + pub microphone_distance: Option, /// The original media the speech was recorded on. #[serde(rename="originalMediaType")] - pub original_media_type: Option, + pub original_media_type: Option, /// Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#audio #[serde(rename="originalMimeType")] @@ -441,7 +441,7 @@ pub struct RecognitionMetadata { /// The type of device the speech was recorded with. #[serde(rename="recordingDeviceType")] - pub recording_device_type: Option, + pub recording_device_type: Option, } impl client::Part for RecognitionMetadata {} diff --git a/gen/speech1_beta1/src/api/call_builders.rs b/gen/speech1_beta1/src/api/call_builders.rs index 42acfc7439..07a387f6f5 100644 --- a/gen/speech1_beta1/src/api/call_builders.rs +++ b/gen/speech1_beta1/src/api/call_builders.rs @@ -1071,7 +1071,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()); diff --git a/gen/speech1_beta1/src/api/mod.rs b/gen/speech1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/speech1_beta1/src/api/mod.rs +++ b/gen/speech1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/speech1_beta1/src/api/schemas.rs b/gen/speech1_beta1/src/api/schemas.rs index 4e439c7341..918f5ef566 100644 --- a/gen/speech1_beta1/src/api/schemas.rs +++ b/gen/speech1_beta1/src/api/schemas.rs @@ -178,7 +178,7 @@ pub struct RecognitionConfig { pub speech_context: Option, /// *Required* Encoding of audio data sent in all `RecognitionAudio` messages. - pub encoding: Option, + pub encoding: Option, } impl client::Part for RecognitionConfig {} diff --git a/gen/sql1_beta4/src/api/mod.rs b/gen/sql1_beta4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sql1_beta4/src/api/mod.rs +++ b/gen/sql1_beta4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sql1_beta4/src/api/schemas.rs b/gen/sql1_beta4/src/api/schemas.rs index 0ee8c7dd70..4e53f311f1 100644 --- a/gen/sql1_beta4/src/api/schemas.rs +++ b/gen/sql1_beta4/src/api/schemas.rs @@ -35,7 +35,7 @@ impl client::Part for AclEntry {} pub struct ApiWarning { /// Code to uniquely identify the warning type. - pub code: Option, + pub code: Option, /// The warning message. pub message: Option, @@ -152,11 +152,11 @@ pub struct BackupRun { pub start_time: Option>, /// The status of this run. - pub status: Option, + pub status: Option, /// The type of this run; can be either "AUTOMATED" or "ON_DEMAND". #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The start time of the backup window during which this the backup was /// attempted in RFC 3339 /// format, for example 2012-11-15T16:19:00.094Z. @@ -356,7 +356,7 @@ pub struct DatabaseInstance { /// the database type and Second or First Generation. #[serde(rename="backendType")] - pub backend_type: Option, + pub backend_type: Option, /// Connection name of the Cloud SQL instance used in connection strings. #[serde(rename="connectionName")] @@ -379,7 +379,7 @@ pub struct DatabaseInstance { /// instances: MYSQL_5_6 (default) or MYSQL_5_5 #[serde(rename="databaseVersion")] - pub database_version: Option, + pub database_version: Option, /// Disk encryption configuration specific to an instance. /// Applies only to Second Generation instances. #[serde(rename="diskEncryptionConfiguration")] @@ -413,7 +413,7 @@ pub struct DatabaseInstance { /// instance configured as a read-replica. #[serde(rename="instanceType")] - pub instance_type: Option, + pub instance_type: Option, /// The assigned IP addresses for the instance. #[serde(rename="ipAddresses")] @@ -496,11 +496,11 @@ pub struct DatabaseInstance { ///
FAILED: The instance creation failed. ///
UNKNOWN_STATE: The state of the instance is unknown. - pub state: Option, + pub state: Option, /// If the instance state is SUSPENDED, the reason for the suspension. #[serde(rename="suspensionReason")] - pub suspension_reason: Option>, + pub suspension_reason: Option>, } impl client::RequestValue for DatabaseInstance {} @@ -688,7 +688,7 @@ pub struct ExportContext { /// contains SQL statements.
CSV: The file contains CSV data. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// This is always sql#exportContext. pub kind: Option, @@ -757,7 +757,7 @@ pub struct Flag { /// is applicable only to Second Generation instances. #[serde(rename="appliesTo")] - pub applies_to: Option>, + pub applies_to: Option>, /// Whether or not the flag is considered in beta. #[serde(rename="inBeta")] @@ -790,7 +790,7 @@ pub struct Flag { /// skip_grant_tables. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for Flag {} @@ -844,7 +844,7 @@ pub struct ImportContext { /// contains SQL statements.
CSV: The file contains CSV data. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// The PostgreSQL user for this import operation. PostgreSQL instances only. #[serde(rename="importUser")] @@ -1140,7 +1140,7 @@ pub struct IpMapping { /// originating from the instance, if supported. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for IpMapping {} @@ -1197,7 +1197,7 @@ pub struct MaintenanceWindow { /// Learn more. #[serde(rename="updateTrack")] - pub update_track: Option, + pub update_track: Option, } impl client::Part for MaintenanceWindow {} @@ -1390,7 +1390,7 @@ pub struct Operation { /// DELETE_DATABASE . #[serde(rename="operationType")] - pub operation_type: Option, + pub operation_type: Option, /// The URI of this resource. #[serde(rename="selfLink")] @@ -1405,7 +1405,7 @@ pub struct Operation { /// RUNNING, DONE, /// SQL_OPERATION_STATUS_UNSPECIFIED. - pub status: Option, + pub status: Option, /// Name of the database instance related to this operation. #[serde(rename="targetId")] @@ -1536,7 +1536,7 @@ pub struct Reschedule { /// Required. The type of the reschedule. #[serde(rename="rescheduleType")] - pub reschedule_type: Option, + pub reschedule_type: Option, /// Optional. Timestamp when the maintenance shall be rescheduled to if /// reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for @@ -1616,7 +1616,7 @@ pub struct Settings { /// 12 hours of inactivity. #[serde(rename="activationPolicy")] - pub activation_policy: Option, + pub activation_policy: Option, /// The App Engine app IDs that can access this instance. First Generation /// instances only. #[serde(rename="authorizedGaeApplications")] @@ -1631,7 +1631,7 @@ pub struct Settings { /// of the High Availability Configuration. #[serde(rename="availabilityType")] - pub availability_type: Option, + pub availability_type: Option, /// The daily backup configuration for the instance. #[serde(rename="backupConfiguration")] @@ -1652,7 +1652,7 @@ pub struct Settings { /// PD_HDD. Not used for First Generation instances. #[serde(rename="dataDiskType")] - pub data_disk_type: Option, + pub data_disk_type: Option, /// The database flags passed to the instance at startup. #[serde(rename="databaseFlags")] @@ -1689,13 +1689,13 @@ pub struct Settings { /// Generation instances. #[serde(rename="pricingPlan")] - pub pricing_plan: Option, + pub pricing_plan: Option, /// The type of replication this instance uses. This can be either /// ASYNCHRONOUS or SYNCHRONOUS. This property is /// only applicable to First Generation instances. #[serde(rename="replicationType")] - pub replication_type: Option, + pub replication_type: Option, /// The version of instance settings. This is a required field for update /// method to make sure concurrent updates are handled properly. During update, /// use the most recent settingsVersion value for this instance and do not try @@ -1750,7 +1750,7 @@ pub struct SqlExternalSyncSettingError { /// Identifies the specific error that occurred. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SqlExternalSyncSettingError {} diff --git a/gen/sqladmin1/src/api/mod.rs b/gen/sqladmin1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sqladmin1/src/api/mod.rs +++ b/gen/sqladmin1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sqladmin1/src/api/schemas.rs b/gen/sqladmin1/src/api/schemas.rs index 4f1ba49b45..232cb09f68 100644 --- a/gen/sqladmin1/src/api/schemas.rs +++ b/gen/sqladmin1/src/api/schemas.rs @@ -33,7 +33,7 @@ impl client::Part for AclEntry {} pub struct ApiWarning { /// Code to uniquely identify the warning type. - pub code: Option, + pub code: Option, /// The warning message. pub message: Option, @@ -124,7 +124,7 @@ pub struct BackupRetentionSettings { /// The unit that 'retained_backups' represents. #[serde(rename="retentionUnit")] - pub retention_unit: Option, + pub retention_unit: Option, } impl client::Part for BackupRetentionSettings {} @@ -147,7 +147,7 @@ pub struct BackupRun { /// Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. #[serde(rename="backupKind")] - pub backup_kind: Option, + pub backup_kind: Option, /// The description of this run, only applicable to on-demand backups. pub description: Option, @@ -193,7 +193,7 @@ pub struct BackupRun { pub start_time: Option>, /// The status of this run. - pub status: Option, + pub status: Option, /// Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server. #[serde(rename="timeZone")] @@ -201,7 +201,7 @@ pub struct BackupRun { /// The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="windowStartTime")] @@ -317,11 +317,11 @@ pub struct ConnectSettings { /// `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. #[serde(rename="backendType")] - pub backend_type: Option, + pub backend_type: Option, /// The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. #[serde(rename="databaseVersion")] - pub database_version: Option, + pub database_version: Option, /// The assigned IP addresses for the instance. #[serde(rename="ipAddresses")] @@ -432,7 +432,7 @@ pub struct DatabaseInstance { /// The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. #[serde(rename="backendType")] - pub backend_type: Option, + pub backend_type: Option, /// Connection name of the Cloud SQL instance used in connection strings. #[serde(rename="connectionName")] @@ -453,7 +453,7 @@ pub struct DatabaseInstance { /// The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. #[serde(rename="databaseVersion")] - pub database_version: Option, + pub database_version: Option, /// Disk encryption configuration specific to an instance. #[serde(rename="diskEncryptionConfiguration")] @@ -476,7 +476,7 @@ pub struct DatabaseInstance { /// The instance type. #[serde(rename="instanceType")] - pub instance_type: Option, + pub instance_type: Option, /// The assigned IP addresses for the instance. #[serde(rename="ipAddresses")] @@ -559,11 +559,11 @@ pub struct DatabaseInstance { pub settings: Option, /// The current serving state of the Cloud SQL instance. - pub state: Option, + pub state: Option, /// If the instance state is SUSPENDED, the reason for the suspension. #[serde(rename="suspensionReason")] - pub suspension_reason: Option>, + pub suspension_reason: Option>, } impl client::RequestValue for DatabaseInstance {} @@ -757,7 +757,7 @@ pub struct ExportContext { /// The file type for the specified uri. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// This is always `sql#exportContext`. pub kind: Option, @@ -819,7 +819,7 @@ pub struct Flag { /// The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](https://developers.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). #[serde(rename="appliesTo")] - pub applies_to: Option>, + pub applies_to: Option>, /// Whether or not the flag is considered in beta. #[serde(rename="inBeta")] @@ -847,7 +847,7 @@ pub struct Flag { /// The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE` is used for flags that do not take a value, such as `skip_grant_tables`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for Flag {} @@ -947,7 +947,7 @@ pub struct ImportContext { /// The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// The PostgreSQL user for this import operation. PostgreSQL instances only. #[serde(rename="importUser")] @@ -1285,7 +1285,7 @@ pub struct IpMapping { /// The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for IpMapping {} @@ -1336,7 +1336,7 @@ pub struct MaintenanceWindow { /// Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen). #[serde(rename="updateTrack")] - pub update_track: Option, + pub update_track: Option, } impl client::Part for MaintenanceWindow {} @@ -1531,7 +1531,7 @@ pub struct Operation { /// The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE` #[serde(rename="operationType")] - pub operation_type: Option, + pub operation_type: Option, /// The URI of this resource. #[serde(rename="selfLink")] @@ -1542,7 +1542,7 @@ pub struct Operation { pub start_time: Option>, /// The status of an operation. - pub status: Option, + pub status: Option, /// Name of the database instance related to this operation. #[serde(rename="targetId")] @@ -1657,7 +1657,7 @@ impl client::Part for PasswordStatus {} pub struct PasswordValidationPolicy { /// The complexity of the password. - pub complexity: Option, + pub complexity: Option, /// Disallow username as a part of the password. #[serde(rename="disallowUsernameSubstring")] @@ -1717,7 +1717,7 @@ pub struct Reschedule { /// Required. The type of the reschedule. #[serde(rename="rescheduleType")] - pub reschedule_type: Option, + pub reschedule_type: Option, /// Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="scheduleTime")] @@ -1783,7 +1783,7 @@ pub struct Settings { /// The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. #[serde(rename="activationPolicy")] - pub activation_policy: Option, + pub activation_policy: Option, /// Active Directory configuration, relevant only for Cloud SQL for SQL Server. #[serde(rename="activeDirectoryConfig")] @@ -1795,7 +1795,7 @@ pub struct Settings { /// Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). #[serde(rename="availabilityType")] - pub availability_type: Option, + pub availability_type: Option, /// The daily backup configuration for the instance. #[serde(rename="backupConfiguration")] @@ -1806,7 +1806,7 @@ pub struct Settings { /// Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. #[serde(rename="connectorEnforcement")] - pub connector_enforcement: Option, + pub connector_enforcement: Option, /// Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. #[serde(rename="crashSafeReplicationEnabled")] @@ -1819,7 +1819,7 @@ pub struct Settings { /// The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances. #[serde(rename="dataDiskType")] - pub data_disk_type: Option, + pub data_disk_type: Option, /// The database flags passed to the instance at startup. #[serde(rename="databaseFlags")] @@ -1862,11 +1862,11 @@ pub struct Settings { /// The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. #[serde(rename="pricingPlan")] - pub pricing_plan: Option, + pub pricing_plan: Option, /// The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances. #[serde(rename="replicationType")] - pub replication_type: Option, + pub replication_type: Option, /// The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. #[serde(rename="settingsVersion")] @@ -1935,7 +1935,7 @@ pub struct SqlExternalSyncSettingError { /// Identifies the specific error that occurred. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SqlExternalSyncSettingError {} @@ -1982,7 +1982,7 @@ pub struct SqlInstancesStartExternalSyncRequest { /// External sync mode. #[serde(rename="syncMode")] - pub sync_mode: Option, + pub sync_mode: Option, } impl client::RequestValue for SqlInstancesStartExternalSyncRequest {} @@ -2006,7 +2006,7 @@ pub struct SqlInstancesVerifyExternalSyncSettingsRequest { /// External sync mode #[serde(rename="syncMode")] - pub sync_mode: Option, + pub sync_mode: Option, /// Flag to enable verifying connection only #[serde(rename="verifyConnectionOnly")] @@ -2059,7 +2059,7 @@ pub struct SqlOutOfDiskReport { /// This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job #[serde(rename="sqlOutOfDiskState")] - pub sql_out_of_disk_state: Option, + pub sql_out_of_disk_state: Option, } impl client::Part for SqlOutOfDiskReport {} @@ -2440,7 +2440,7 @@ pub struct User { /// Dual password status for the user. #[serde(rename="dualPasswordType")] - pub dual_password_type: Option, + pub dual_password_type: Option, /// This field is deprecated and will be removed from a future version of the API. pub etag: Option, @@ -2473,7 +2473,7 @@ pub struct User { /// The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for User {} diff --git a/gen/sqladmin1_beta4/src/api/mod.rs b/gen/sqladmin1_beta4/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sqladmin1_beta4/src/api/mod.rs +++ b/gen/sqladmin1_beta4/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/sqladmin1_beta4/src/api/schemas.rs b/gen/sqladmin1_beta4/src/api/schemas.rs index f063ea8f86..0f7526a407 100644 --- a/gen/sqladmin1_beta4/src/api/schemas.rs +++ b/gen/sqladmin1_beta4/src/api/schemas.rs @@ -33,7 +33,7 @@ impl client::Part for AclEntry {} pub struct ApiWarning { /// Code to uniquely identify the warning type. - pub code: Option, + pub code: Option, /// The warning message. pub message: Option, @@ -124,7 +124,7 @@ pub struct BackupRetentionSettings { /// The unit that 'retained_backups' represents. #[serde(rename="retentionUnit")] - pub retention_unit: Option, + pub retention_unit: Option, } impl client::Part for BackupRetentionSettings {} @@ -147,7 +147,7 @@ pub struct BackupRun { /// Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. #[serde(rename="backupKind")] - pub backup_kind: Option, + pub backup_kind: Option, /// The description of this run, only applicable to on-demand backups. pub description: Option, @@ -193,7 +193,7 @@ pub struct BackupRun { pub start_time: Option>, /// The status of this run. - pub status: Option, + pub status: Option, /// Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server. #[serde(rename="timeZone")] @@ -201,7 +201,7 @@ pub struct BackupRun { /// The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="windowStartTime")] @@ -317,11 +317,11 @@ pub struct ConnectSettings { /// `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. #[serde(rename="backendType")] - pub backend_type: Option, + pub backend_type: Option, /// The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. #[serde(rename="databaseVersion")] - pub database_version: Option, + pub database_version: Option, /// The assigned IP addresses for the instance. #[serde(rename="ipAddresses")] @@ -432,7 +432,7 @@ pub struct DatabaseInstance { /// The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. #[serde(rename="backendType")] - pub backend_type: Option, + pub backend_type: Option, /// Connection name of the Cloud SQL instance used in connection strings. #[serde(rename="connectionName")] @@ -453,7 +453,7 @@ pub struct DatabaseInstance { /// The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. #[serde(rename="databaseVersion")] - pub database_version: Option, + pub database_version: Option, /// Disk encryption configuration specific to an instance. #[serde(rename="diskEncryptionConfiguration")] @@ -476,7 +476,7 @@ pub struct DatabaseInstance { /// The instance type. #[serde(rename="instanceType")] - pub instance_type: Option, + pub instance_type: Option, /// The assigned IP addresses for the instance. #[serde(rename="ipAddresses")] @@ -559,11 +559,11 @@ pub struct DatabaseInstance { pub settings: Option, /// The current serving state of the Cloud SQL instance. - pub state: Option, + pub state: Option, /// If the instance state is SUSPENDED, the reason for the suspension. #[serde(rename="suspensionReason")] - pub suspension_reason: Option>, + pub suspension_reason: Option>, } impl client::RequestValue for DatabaseInstance {} @@ -757,7 +757,7 @@ pub struct ExportContext { /// The file type for the specified uri. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// This is always `sql#exportContext`. pub kind: Option, @@ -819,7 +819,7 @@ pub struct Flag { /// The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](https://developers.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). #[serde(rename="appliesTo")] - pub applies_to: Option>, + pub applies_to: Option>, /// Whether or not the flag is considered in beta. #[serde(rename="inBeta")] @@ -847,7 +847,7 @@ pub struct Flag { /// The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE` is used for flags which do not take a value, such as `skip_grant_tables`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Resource for Flag {} @@ -947,7 +947,7 @@ pub struct ImportContext { /// The file type for the specified uri. * `SQL`: The file contains SQL statements. * `CSV`: The file contains CSV data. * `BAK`: The file contains backup data for a SQL Server instance. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// The PostgreSQL user for this import operation. PostgreSQL instances only. #[serde(rename="importUser")] @@ -1285,7 +1285,7 @@ pub struct IpMapping { /// The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for IpMapping {} @@ -1336,7 +1336,7 @@ pub struct MaintenanceWindow { /// Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen). #[serde(rename="updateTrack")] - pub update_track: Option, + pub update_track: Option, } impl client::Part for MaintenanceWindow {} @@ -1531,7 +1531,7 @@ pub struct Operation { /// The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE` #[serde(rename="operationType")] - pub operation_type: Option, + pub operation_type: Option, /// The URI of this resource. #[serde(rename="selfLink")] @@ -1542,7 +1542,7 @@ pub struct Operation { pub start_time: Option>, /// The status of an operation. - pub status: Option, + pub status: Option, /// Name of the database instance related to this operation. #[serde(rename="targetId")] @@ -1657,7 +1657,7 @@ impl client::Part for PasswordStatus {} pub struct PasswordValidationPolicy { /// The complexity of the password. - pub complexity: Option, + pub complexity: Option, /// Disallow username as a part of the password. #[serde(rename="disallowUsernameSubstring")] @@ -1717,7 +1717,7 @@ pub struct Reschedule { /// Required. The type of the reschedule. #[serde(rename="rescheduleType")] - pub reschedule_type: Option, + pub reschedule_type: Option, /// Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. #[serde(rename="scheduleTime")] @@ -1783,7 +1783,7 @@ pub struct Settings { /// The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. #[serde(rename="activationPolicy")] - pub activation_policy: Option, + pub activation_policy: Option, /// Active Directory configuration, relevant only for Cloud SQL for SQL Server. #[serde(rename="activeDirectoryConfig")] @@ -1795,7 +1795,7 @@ pub struct Settings { /// Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). #[serde(rename="availabilityType")] - pub availability_type: Option, + pub availability_type: Option, /// The daily backup configuration for the instance. #[serde(rename="backupConfiguration")] @@ -1806,7 +1806,7 @@ pub struct Settings { /// Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors) Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. #[serde(rename="connectorEnforcement")] - pub connector_enforcement: Option, + pub connector_enforcement: Option, /// Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. #[serde(rename="crashSafeReplicationEnabled")] @@ -1819,7 +1819,7 @@ pub struct Settings { /// The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances. #[serde(rename="dataDiskType")] - pub data_disk_type: Option, + pub data_disk_type: Option, /// The database flags passed to the instance at startup. #[serde(rename="databaseFlags")] @@ -1862,11 +1862,11 @@ pub struct Settings { /// The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. #[serde(rename="pricingPlan")] - pub pricing_plan: Option, + pub pricing_plan: Option, /// The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances. #[serde(rename="replicationType")] - pub replication_type: Option, + pub replication_type: Option, /// The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. #[serde(rename="settingsVersion")] @@ -1935,7 +1935,7 @@ pub struct SqlExternalSyncSettingError { /// Identifies the specific error that occurred. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for SqlExternalSyncSettingError {} @@ -1982,7 +1982,7 @@ pub struct SqlInstancesStartExternalSyncRequest { /// External sync mode. #[serde(rename="syncMode")] - pub sync_mode: Option, + pub sync_mode: Option, } impl client::RequestValue for SqlInstancesStartExternalSyncRequest {} @@ -2006,7 +2006,7 @@ pub struct SqlInstancesVerifyExternalSyncSettingsRequest { /// External sync mode #[serde(rename="syncMode")] - pub sync_mode: Option, + pub sync_mode: Option, /// Flag to enable verifying connection only #[serde(rename="verifyConnectionOnly")] @@ -2059,7 +2059,7 @@ pub struct SqlOutOfDiskReport { /// This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job #[serde(rename="sqlOutOfDiskState")] - pub sql_out_of_disk_state: Option, + pub sql_out_of_disk_state: Option, } impl client::Part for SqlOutOfDiskReport {} @@ -2440,7 +2440,7 @@ pub struct User { /// Dual password status for the user. #[serde(rename="dualPasswordType")] - pub dual_password_type: Option, + pub dual_password_type: Option, /// This field is deprecated and will be removed from a future version of the API. pub etag: Option, @@ -2473,7 +2473,7 @@ pub struct User { /// The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::RequestValue for User {} diff --git a/gen/storage1/README.md b/gen/storage1/README.md index 9863291b1d..df18408a48 100644 --- a/gen/storage1/README.md +++ b/gen/storage1/README.md @@ -151,18 +151,18 @@ let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destina .user_project("voluptua.") .source_generation(-27) .rewrite_token("sanctus") - .projection("sed") - .max_bytes_rewritten_per_call(-2) - .if_source_metageneration_not_match(-59) - .if_source_metageneration_match(-52) - .if_source_generation_not_match(-20) - .if_source_generation_match(-55) - .if_metageneration_not_match(-62) - .if_metageneration_match(-51) - .if_generation_not_match(-12) - .if_generation_match(-75) - .destination_predefined_acl("dolor") - .destination_kms_key_name("ea") + .projection(&Default::default()) + .max_bytes_rewritten_per_call(-80) + .if_source_metageneration_not_match(-2) + .if_source_metageneration_match(-59) + .if_source_generation_not_match(-52) + .if_source_generation_match(-20) + .if_metageneration_not_match(-55) + .if_metageneration_match(-62) + .if_generation_not_match(-51) + .if_generation_match(-12) + .destination_predefined_acl(&Default::default()) + .destination_kms_key_name("eos") .doit().await; match result { diff --git a/gen/storage1/src/api/hub.rs b/gen/storage1/src/api/hub.rs index 80f1707c2e..ab90a90d91 100644 --- a/gen/storage1/src/api/hub.rs +++ b/gen/storage1/src/api/hub.rs @@ -38,21 +38,21 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destinationBucket", "destinationObject") -/// .user_project("Stet") -/// .source_generation(-13) -/// .rewrite_token("et") -/// .projection("sed") -/// .max_bytes_rewritten_per_call(-24) -/// .if_source_metageneration_not_match(-68) -/// .if_source_metageneration_match(-76) -/// .if_source_generation_not_match(-31) -/// .if_source_generation_match(-93) -/// .if_metageneration_not_match(-20) -/// .if_metageneration_match(-34) -/// .if_generation_not_match(-22) -/// .if_generation_match(-28) -/// .destination_predefined_acl("amet.") -/// .destination_kms_key_name("consetetur") +/// .user_project("sed") +/// .source_generation(-70) +/// .rewrite_token("sed") +/// .projection(&Default::default()) +/// .max_bytes_rewritten_per_call(-61) +/// .if_source_metageneration_not_match(-15) +/// .if_source_metageneration_match(-13) +/// .if_source_generation_not_match(-24) +/// .if_source_generation_match(-43) +/// .if_metageneration_not_match(-24) +/// .if_metageneration_match(-68) +/// .if_generation_not_match(-76) +/// .if_generation_match(-31) +/// .destination_predefined_acl(&Default::default()) +/// .destination_kms_key_name("sed") /// .doit().await; /// /// match result { diff --git a/gen/storage1/src/api/mod.rs b/gen/storage1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/storage1/src/api/mod.rs +++ b/gen/storage1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/storage1/src/lib.rs b/gen/storage1/src/lib.rs index 0b93223f8b..68ae5f6523 100644 --- a/gen/storage1/src/lib.rs +++ b/gen/storage1/src/lib.rs @@ -149,21 +149,21 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destinationBucket", "destinationObject") -//! .user_project("ipsum") -//! .source_generation(-93) -//! .rewrite_token("ut") -//! .projection("gubergren") -//! .max_bytes_rewritten_per_call(-16) -//! .if_source_metageneration_not_match(-57) -//! .if_source_metageneration_match(-50) -//! .if_source_generation_not_match(-50) -//! .if_source_generation_match(-7) -//! .if_metageneration_not_match(-62) -//! .if_metageneration_match(-17) -//! .if_generation_not_match(-99) -//! .if_generation_match(-56) -//! .destination_predefined_acl("eos") -//! .destination_kms_key_name("labore") +//! .user_project("amet") +//! .source_generation(-20) +//! .rewrite_token("ipsum") +//! .projection(&Default::default()) +//! .max_bytes_rewritten_per_call(-93) +//! .if_source_metageneration_not_match(-37) +//! .if_source_metageneration_match(-12) +//! .if_source_generation_not_match(-16) +//! .if_source_generation_match(-57) +//! .if_metageneration_not_match(-50) +//! .if_metageneration_match(-50) +//! .if_generation_not_match(-7) +//! .if_generation_match(-62) +//! .destination_predefined_acl(&Default::default()) +//! .destination_kms_key_name("ea") //! .doit().await; //! //! match result { diff --git a/gen/storagetransfer1/src/api/call_builders.rs b/gen/storagetransfer1/src/api/call_builders.rs index f3c6f75296..49b0b2298e 100644 --- a/gen/storagetransfer1/src/api/call_builders.rs +++ b/gen/storagetransfer1/src/api/call_builders.rs @@ -1910,7 +1910,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -2181,7 +2181,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if let Some(value) = self._agent_pool_id.as_ref() { params.push("agentPoolId", value); } @@ -2476,7 +2476,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()); @@ -2738,7 +2738,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()); @@ -3006,7 +3006,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -3307,7 +3307,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -3876,8 +3876,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("jobName", self._job_name); - params.push("projectId", self._project_id); + params.push("jobName", &self._job_name); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -4150,8 +4150,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("jobName", self._job_name); - params.push("projectId", self._project_id); + params.push("jobName", &self._job_name); + params.push("projectId", &self._project_id); params.extend(self._additional_params.iter()); @@ -4427,7 +4427,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("filter", self._filter); + params.push("filter", &self._filter); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -4709,7 +4709,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("jobName", self._job_name); + params.push("jobName", &self._job_name); params.extend(self._additional_params.iter()); @@ -5001,7 +5001,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("jobName", self._job_name); + params.push("jobName", &self._job_name); params.extend(self._additional_params.iter()); @@ -5293,7 +5293,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()); @@ -5578,7 +5578,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()); @@ -5845,8 +5845,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("name", self._name); - params.push("filter", self._filter); + params.push("name", &self._name); + params.push("filter", &self._filter); if let Some(value) = self._page_token.as_ref() { params.push("pageToken", value); } @@ -6145,7 +6145,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()); @@ -6437,7 +6437,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()); diff --git a/gen/storagetransfer1/src/api/mod.rs b/gen/storagetransfer1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/storagetransfer1/src/api/mod.rs +++ b/gen/storagetransfer1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/storagetransfer1/src/api/schemas.rs b/gen/storagetransfer1/src/api/schemas.rs index e0826bf8e0..d030e9e575 100644 --- a/gen/storagetransfer1/src/api/schemas.rs +++ b/gen/storagetransfer1/src/api/schemas.rs @@ -25,7 +25,7 @@ pub struct AgentPool { pub name: Option, /// Output only. Specifies the state of the AgentPool. - pub state: Option, + pub state: Option, } impl client::RequestValue for AgentPool {} @@ -249,7 +249,7 @@ pub struct ErrorSummary { /// Required. #[serde(rename="errorCode")] - pub error_code: Option, + pub error_code: Option, /// Required. Count of this type of error. #[serde(rename="errorCount")] @@ -431,11 +431,11 @@ pub struct LoggingConfig { /// States in which `log_actions` are logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead. #[serde(rename="logActionStates")] - pub log_action_states: Option>, + pub log_action_states: Option>, /// Specifies the actions to be logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead. #[serde(rename="logActions")] - pub log_actions: Option>, + pub log_actions: Option>, } impl client::Part for LoggingConfig {} @@ -450,35 +450,35 @@ impl client::Part for LoggingConfig {} pub struct MetadataOptions { /// Specifies how each object's ACLs should be preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as ACL_DESTINATION_BUCKET_DEFAULT. - pub acl: Option, + pub acl: Option, /// Specifies how each file's POSIX group ID (GID) attribute should be handled by the transfer. By default, GID is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers. - pub gid: Option, + pub gid: Option, /// Specifies how each object's Cloud KMS customer-managed encryption key (CMEK) is preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as KMS_KEY_DESTINATION_BUCKET_DEFAULT. #[serde(rename="kmsKey")] - pub kms_key: Option, + pub kms_key: Option, /// Specifies how each file's mode attribute should be handled by the transfer. By default, mode is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers. - pub mode: Option, + pub mode: Option, /// Specifies the storage class to set on objects being transferred to Google Cloud Storage buckets. If unspecified, the default behavior is the same as STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT. #[serde(rename="storageClass")] - pub storage_class: Option, + pub storage_class: Option, /// Specifies how symlinks should be handled by the transfer. By default, symlinks are not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers. - pub symlink: Option, + pub symlink: Option, /// Specifies how each object's temporary hold status should be preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as TEMPORARY_HOLD_PRESERVE. #[serde(rename="temporaryHold")] - pub temporary_hold: Option, + pub temporary_hold: Option, /// Specifies how each object's `timeCreated` metadata is preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as TIME_CREATED_SKIP. #[serde(rename="timeCreated")] - pub time_created: Option, + pub time_created: Option, /// Specifies how each file's POSIX user ID (UID) attribute should be handled by the transfer. By default, UID is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers. - pub uid: Option, + pub uid: Option, } impl client::Part for MetadataOptions {} @@ -494,11 +494,11 @@ pub struct NotificationConfig { /// Event types for which a notification is desired. If empty, send notifications for all event types. #[serde(rename="eventTypes")] - pub event_types: Option>, + pub event_types: Option>, /// Required. The desired format of the notification message payloads. #[serde(rename="payloadFormat")] - pub payload_format: Option, + pub payload_format: Option, /// Required. The `Topic.name` of the Pub/Sub topic to which to publish notifications. Must be of the format: `projects/{project}/topics/{topic}`. Not matching this format results in an INVALID_ARGUMENT error. #[serde(rename="pubsubTopic")] @@ -654,18 +654,18 @@ pub struct S3CompatibleMetadata { /// Specifies the authentication and authorization method used by the storage service. When not specified, Transfer Service will attempt to determine right auth method to use. #[serde(rename="authMethod")] - pub auth_method: Option, + pub auth_method: Option, /// The Listing API to use for discovering objects. When not specified, Transfer Service will attempt to determine the right API to use. #[serde(rename="listApi")] - pub list_api: Option, + pub list_api: Option, /// Specifies the network protocol of the agent. When not specified, the default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. - pub protocol: Option, + pub protocol: Option, /// Specifies the API request model used to call the storage service. When not specified, the default value of RequestModel REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. #[serde(rename="requestModel")] - pub request_model: Option, + pub request_model: Option, } impl client::Part for S3CompatibleMetadata {} @@ -925,7 +925,7 @@ pub struct TransferJob { pub schedule: Option, /// Status of the job. This value MUST be specified for `CreateTransferJobRequests`. **Note:** The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation. - pub status: Option, + pub status: Option, /// Transfer specification. #[serde(rename="transferSpec")] @@ -995,7 +995,7 @@ pub struct TransferOperation { pub start_time: Option>, /// Status of the transfer operation. - pub status: Option, + pub status: Option, /// The name of the transfer job that triggers this transfer operation. #[serde(rename="transferJobName")] @@ -1035,7 +1035,7 @@ pub struct TransferOptions { /// When to overwrite objects that already exist in the sink. If not set, overwrite behavior is determined by overwrite_objects_already_existing_in_sink. #[serde(rename="overwriteWhen")] - pub overwrite_when: Option, + pub overwrite_when: Option, } impl client::Part for TransferOptions {} diff --git a/gen/sts1/src/api/mod.rs b/gen/sts1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/sts1/src/api/mod.rs +++ b/gen/sts1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/surveys2/src/api/call_builders.rs b/gen/surveys2/src/api/call_builders.rs index 96ff8046dc..94858c2b07 100644 --- a/gen/surveys2/src/api/call_builders.rs +++ b/gen/surveys2/src/api/call_builders.rs @@ -970,7 +970,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); @@ -1260,7 +1260,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); @@ -1518,7 +1518,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); @@ -2324,7 +2324,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("resourceId", self._resource_id); + params.push("resourceId", &self._resource_id); params.extend(self._additional_params.iter()); @@ -2604,7 +2604,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("resourceId", self._resource_id); + params.push("resourceId", &self._resource_id); params.extend(self._additional_params.iter()); @@ -2868,7 +2868,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("surveyUrlId", self._survey_url_id); + params.push("surveyUrlId", &self._survey_url_id); params.extend(self._additional_params.iter()); diff --git a/gen/surveys2/src/api/mod.rs b/gen/surveys2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/surveys2/src/api/mod.rs +++ b/gen/surveys2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/tagmanager1/src/api/call_builders.rs b/gen/tagmanager1/src/api/call_builders.rs index 1d273a11bd..6f35414c06 100644 --- a/gen/tagmanager1/src/api/call_builders.rs +++ b/gen/tagmanager1/src/api/call_builders.rs @@ -2519,8 +2519,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -2817,9 +2817,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("environmentId", self._environment_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("environmentId", &self._environment_id); params.extend(self._additional_params.iter()); @@ -3092,9 +3092,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("environmentId", self._environment_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("environmentId", &self._environment_id); params.extend(self._additional_params.iter()); @@ -3377,8 +3377,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -3661,9 +3661,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("environmentId", self._environment_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("environmentId", &self._environment_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -3980,9 +3980,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("folderId", self._folder_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("folderId", &self._folder_id); params.extend(self._additional_params.iter()); @@ -4272,8 +4272,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -4570,9 +4570,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("folderId", self._folder_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("folderId", &self._folder_id); params.extend(self._additional_params.iter()); @@ -4845,9 +4845,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("folderId", self._folder_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("folderId", &self._folder_id); params.extend(self._additional_params.iter()); @@ -5130,8 +5130,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -5414,9 +5414,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("folderId", self._folder_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("folderId", &self._folder_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -5746,9 +5746,9 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("folderId", self._folder_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("folderId", &self._folder_id); if self._variable_id.len() > 0 { for f in self._variable_id.iter() { params.push("variableId", f); @@ -6090,9 +6090,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("environmentId", self._environment_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("environmentId", &self._environment_id); params.extend(self._additional_params.iter()); @@ -6405,8 +6405,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -6703,9 +6703,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("tagId", self._tag_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("tagId", &self._tag_id); params.extend(self._additional_params.iter()); @@ -6978,9 +6978,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("tagId", self._tag_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("tagId", &self._tag_id); params.extend(self._additional_params.iter()); @@ -7263,8 +7263,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -7547,9 +7547,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("tagId", self._tag_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("tagId", &self._tag_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -7872,8 +7872,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -8170,9 +8170,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("triggerId", self._trigger_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("triggerId", &self._trigger_id); params.extend(self._additional_params.iter()); @@ -8445,9 +8445,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("triggerId", self._trigger_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("triggerId", &self._trigger_id); params.extend(self._additional_params.iter()); @@ -8730,8 +8730,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -9014,9 +9014,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("triggerId", self._trigger_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("triggerId", &self._trigger_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -9339,8 +9339,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -9637,9 +9637,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("variableId", self._variable_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("variableId", &self._variable_id); params.extend(self._additional_params.iter()); @@ -9912,9 +9912,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("variableId", self._variable_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("variableId", &self._variable_id); params.extend(self._additional_params.iter()); @@ -10197,8 +10197,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -10481,9 +10481,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("variableId", self._variable_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("variableId", &self._variable_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -10806,8 +10806,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -11104,9 +11104,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("containerVersionId", self._container_version_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("containerVersionId", &self._container_version_id); params.extend(self._additional_params.iter()); @@ -11379,9 +11379,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("containerVersionId", self._container_version_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("containerVersionId", &self._container_version_id); params.extend(self._additional_params.iter()); @@ -11668,8 +11668,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); if let Some(value) = self._include_deleted.as_ref() { params.push("includeDeleted", value.to_string()); } @@ -11965,9 +11965,9 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("containerVersionId", self._container_version_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("containerVersionId", &self._container_version_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -12261,9 +12261,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("containerVersionId", self._container_version_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("containerVersionId", &self._container_version_id); params.extend(self._additional_params.iter()); @@ -12547,9 +12547,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("containerVersionId", self._container_version_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("containerVersionId", &self._container_version_id); params.extend(self._additional_params.iter()); @@ -12842,9 +12842,9 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); - params.push("containerVersionId", self._container_version_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); + params.push("containerVersionId", &self._container_version_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -13166,7 +13166,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -13452,8 +13452,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -13715,8 +13715,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); params.extend(self._additional_params.iter()); @@ -13988,7 +13988,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -14260,8 +14260,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("containerId", self._container_id); + params.push("accountId", &self._account_id); + params.push("containerId", &self._container_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } @@ -14573,7 +14573,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -14859,8 +14859,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("permissionId", self._permission_id); + params.push("accountId", &self._account_id); + params.push("permissionId", &self._permission_id); params.extend(self._additional_params.iter()); @@ -15122,8 +15122,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("permissionId", self._permission_id); + params.push("accountId", &self._account_id); + params.push("permissionId", &self._permission_id); params.extend(self._additional_params.iter()); @@ -15395,7 +15395,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -15665,8 +15665,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); - params.push("permissionId", self._permission_id); + params.push("accountId", &self._account_id); + params.push("permissionId", &self._permission_id); params.extend(self._additional_params.iter()); @@ -15961,7 +15961,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); params.extend(self._additional_params.iter()); @@ -16475,7 +16475,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("accountId", self._account_id); + params.push("accountId", &self._account_id); if let Some(value) = self._fingerprint.as_ref() { params.push("fingerprint", value); } diff --git a/gen/tagmanager1/src/api/mod.rs b/gen/tagmanager1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/tagmanager1/src/api/mod.rs +++ b/gen/tagmanager1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/tagmanager1/src/api/schemas.rs b/gen/tagmanager1/src/api/schemas.rs index 2e755d57eb..c8b0624a98 100644 --- a/gen/tagmanager1/src/api/schemas.rs +++ b/gen/tagmanager1/src/api/schemas.rs @@ -88,7 +88,7 @@ impl client::ResponseResult for Account {} pub struct AccountAccess { /// List of Account permissions. Valid account permissions are read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update - pub permission: Option>, + pub permission: Option>, } impl client::Part for AccountAccess {} @@ -107,7 +107,7 @@ pub struct Condition { /// The type of operator for this condition. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Condition {} @@ -141,7 +141,7 @@ pub struct Container { /// List of enabled built-in variables. Valid values include: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, clickText, formElement, formClasses, formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState, historySource, containerVersion, debugMode, randomNumber, containerId. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update #[serde(rename="enabledBuiltInVariable")] - pub enabled_built_in_variable: Option>, + pub enabled_built_in_variable: Option>, /// The fingerprint of the GTM Container as computed at storage time. This value is recomputed whenever the account is modified. pub fingerprint: Option, @@ -166,7 +166,7 @@ pub struct Container { /// List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update #[serde(rename="usageContext")] - pub usage_context: Option>, + pub usage_context: Option>, } impl client::RequestValue for Container {} @@ -186,7 +186,7 @@ pub struct ContainerAccess { pub container_id: Option, /// List of Container permissions. Valid container permissions are: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update - pub permission: Option>, + pub permission: Option>, } impl client::Part for ContainerAccess {} @@ -413,7 +413,7 @@ pub struct Environment { /// The type of this environment. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update pub url: Option, @@ -744,7 +744,7 @@ pub struct Parameter { /// The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A parameter's value (may contain variable references such as "{{myVariable}}") as appropriate to the specified type. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update pub value: Option, @@ -913,7 +913,7 @@ pub struct Tag { /// Option to fire this tag. #[serde(rename="tagFiringOption")] - pub tag_firing_option: Option, + pub tag_firing_option: Option, /// The Tag ID uniquely identifies the GTM Tag. #[serde(rename="tagId")] @@ -1041,7 +1041,7 @@ pub struct Trigger { /// Defines the data layer event that causes this trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Globally unique id of the trigger that auto-generates this (a Form Submit, Link Click or Timer listener) if any. Used to make incompatible auto-events work together with trigger filtering based on trigger ids. This value is populated during output generation since the tags implied by triggers don't exist until then. Only valid for Form Submit, Link Click and Timer triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update #[serde(rename="uniqueTriggerId")] diff --git a/gen/tagmanager2/src/api/mod.rs b/gen/tagmanager2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/tagmanager2/src/api/mod.rs +++ b/gen/tagmanager2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/tagmanager2/src/api/schemas.rs b/gen/tagmanager2/src/api/schemas.rs index 8edeca734c..1e229610cf 100644 --- a/gen/tagmanager2/src/api/schemas.rs +++ b/gen/tagmanager2/src/api/schemas.rs @@ -147,7 +147,7 @@ impl client::ResponseResult for Account {} pub struct AccountAccess { /// Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update - pub permission: Option, + pub permission: Option, } impl client::Part for AccountAccess {} @@ -197,7 +197,7 @@ pub struct BuiltInVariable { /// Type of built-in variable. @required.tagmanager.accounts.containers.workspaces.built_in_variable.update @mutable tagmanager.accounts.containers.workspaces.built_in_variable.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// GTM Workspace ID. #[serde(rename="workspaceId")] @@ -285,7 +285,7 @@ pub struct Condition { /// The type of operator for this condition. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Condition {} @@ -353,7 +353,7 @@ pub struct Container { /// List of Usage Contexts for the Container. Valid values include: web, android, or ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update #[serde(rename="usageContext")] - pub usage_context: Option>, + pub usage_context: Option>, } impl client::RequestValue for Container {} @@ -373,7 +373,7 @@ pub struct ContainerAccess { pub container_id: Option, /// List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update - pub permission: Option, + pub permission: Option, } impl client::Part for ContainerAccess {} @@ -791,7 +791,7 @@ pub struct Entity { /// Represents how the entity has been changed in the workspace. #[serde(rename="changeStatus")] - pub change_status: Option, + pub change_status: Option, /// The client being represented by the entity. pub client: Option, @@ -873,7 +873,7 @@ pub struct Environment { /// The type of this environment. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update pub url: Option, @@ -1505,7 +1505,7 @@ pub struct Parameter { /// The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// A parameter's value (may contain variable references such as "{{myVariable}}") as appropriate to the specified type. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update pub value: Option, @@ -1877,7 +1877,7 @@ pub struct Tag { /// Option to fire this tag. #[serde(rename="tagFiringOption")] - pub tag_firing_option: Option, + pub tag_firing_option: Option, /// The Tag ID uniquely identifies the GTM Tag. #[serde(rename="tagId")] @@ -1914,7 +1914,7 @@ pub struct TagConsentSetting { /// The tag's consent status. If set to NEEDED, the runtime will check that the consent types specified by the consent_type field have been granted. #[serde(rename="consentStatus")] - pub consent_status: Option, + pub consent_status: Option, /// The type of consents to check for during tag firing if in the consent NEEDED state. This parameter must be of type LIST where each list item is of type STRING. #[serde(rename="consentType")] @@ -2043,7 +2043,7 @@ pub struct Trigger { /// Defines the data layer event that causes this trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// Globally unique id of the trigger that auto-generates this (a Form Submit, Link Click or Timer listener) if any. Used to make incompatible auto-events work together with trigger filtering based on trigger ids. This value is populated during output generation since the tags implied by triggers don't exist until then. Only valid for Form Submit, Link Click and Timer triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update #[serde(rename="uniqueTriggerId")] @@ -2214,7 +2214,7 @@ pub struct VariableFormatValue { /// The option to convert a string-type variable value to either lowercase or uppercase. #[serde(rename="caseConversionType")] - pub case_conversion_type: Option, + pub case_conversion_type: Option, /// The value to convert if a variable value is false. #[serde(rename="convertFalseToValue")] diff --git a/gen/taskqueue1_beta2/src/api/call_builders.rs b/gen/taskqueue1_beta2/src/api/call_builders.rs index 9edb2138dc..a57a896e63 100644 --- a/gen/taskqueue1_beta2/src/api/call_builders.rs +++ b/gen/taskqueue1_beta2/src/api/call_builders.rs @@ -699,8 +699,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); if let Some(value) = self._get_stats.as_ref() { params.push("getStats", value.to_string()); } @@ -980,9 +980,9 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); - params.push("task", self._task); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); + params.push("task", &self._task); params.extend(self._additional_params.iter()); @@ -1251,9 +1251,9 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); - params.push("task", self._task); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); + params.push("task", &self._task); params.extend(self._additional_params.iter()); @@ -1539,8 +1539,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); params.extend(self._additional_params.iter()); @@ -1838,10 +1838,10 @@ where } let mut params = Params::with_capacity(8 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); - params.push("numTasks", self._num_tasks.to_string()); - params.push("leaseSecs", self._lease_secs.to_string()); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); + params.push("numTasks", &self._num_tasks.to_string()); + params.push("leaseSecs", &self._lease_secs.to_string()); if let Some(value) = self._tag.as_ref() { params.push("tag", value); } @@ -2150,8 +2150,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); params.extend(self._additional_params.iter()); @@ -2429,10 +2429,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); - params.push("task", self._task); - params.push("newLeaseSeconds", self._new_lease_seconds.to_string()); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); + params.push("task", &self._task); + params.push("newLeaseSeconds", &self._new_lease_seconds.to_string()); params.extend(self._additional_params.iter()); @@ -2751,10 +2751,10 @@ where } let mut params = Params::with_capacity(7 + self._additional_params.len()); - params.push("project", self._project); - params.push("taskqueue", self._taskqueue); - params.push("task", self._task); - params.push("newLeaseSeconds", self._new_lease_seconds.to_string()); + params.push("project", &self._project); + params.push("taskqueue", &self._taskqueue); + params.push("task", &self._task); + params.push("newLeaseSeconds", &self._new_lease_seconds.to_string()); params.extend(self._additional_params.iter()); diff --git a/gen/taskqueue1_beta2/src/api/mod.rs b/gen/taskqueue1_beta2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/taskqueue1_beta2/src/api/mod.rs +++ b/gen/taskqueue1_beta2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/tasks1/src/api/call_builders.rs b/gen/tasks1/src/api/call_builders.rs index 8c12926e65..10a5fc28ca 100644 --- a/gen/tasks1/src/api/call_builders.rs +++ b/gen/tasks1/src/api/call_builders.rs @@ -800,7 +800,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); params.extend(self._additional_params.iter()); @@ -1051,7 +1051,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); params.extend(self._additional_params.iter()); @@ -1860,7 +1860,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); params.extend(self._additional_params.iter()); @@ -2152,7 +2152,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); params.extend(self._additional_params.iter()); @@ -2437,7 +2437,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); params.extend(self._additional_params.iter()); @@ -2689,8 +2689,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("tasklist", self._tasklist); - params.push("task", self._task); + params.push("tasklist", &self._tasklist); + params.push("task", &self._task); params.extend(self._additional_params.iter()); @@ -2952,8 +2952,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("tasklist", self._tasklist); - params.push("task", self._task); + params.push("tasklist", &self._tasklist); + params.push("task", &self._task); params.extend(self._additional_params.iter()); @@ -3236,7 +3236,7 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); if let Some(value) = self._previous.as_ref() { params.push("previous", value); } @@ -3561,7 +3561,7 @@ where } let mut params = Params::with_capacity(13 + self._additional_params.len()); - params.push("tasklist", self._tasklist); + params.push("tasklist", &self._tasklist); if let Some(value) = self._updated_min.as_ref() { params.push("updatedMin", value); } @@ -3928,8 +3928,8 @@ where } let mut params = Params::with_capacity(6 + self._additional_params.len()); - params.push("tasklist", self._tasklist); - params.push("task", self._task); + params.push("tasklist", &self._tasklist); + params.push("task", &self._task); if let Some(value) = self._previous.as_ref() { params.push("previous", value); } @@ -4229,8 +4229,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tasklist", self._tasklist); - params.push("task", self._task); + params.push("tasklist", &self._tasklist); + params.push("task", &self._task); params.extend(self._additional_params.iter()); @@ -4533,8 +4533,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("tasklist", self._tasklist); - params.push("task", self._task); + params.push("tasklist", &self._tasklist); + params.push("task", &self._task); params.extend(self._additional_params.iter()); diff --git a/gen/tasks1/src/api/mod.rs b/gen/tasks1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/tasks1/src/api/mod.rs +++ b/gen/tasks1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/testing1/src/api/call_builders.rs b/gen/testing1/src/api/call_builders.rs index 726f7b7881..8ceb49a87f 100644 --- a/gen/testing1/src/api/call_builders.rs +++ b/gen/testing1/src/api/call_builders.rs @@ -344,8 +344,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("testMatrixId", self._test_matrix_id); + params.push("projectId", &self._project_id); + params.push("testMatrixId", &self._test_matrix_id); params.extend(self._additional_params.iter()); @@ -626,7 +626,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("projectId", self._project_id); + params.push("projectId", &self._project_id); if let Some(value) = self._request_id.as_ref() { params.push("requestId", value); } @@ -922,8 +922,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("projectId", self._project_id); - params.push("testMatrixId", self._test_matrix_id); + params.push("projectId", &self._project_id); + params.push("testMatrixId", &self._test_matrix_id); params.extend(self._additional_params.iter()); @@ -1150,8 +1150,8 @@ where /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.test_environment_catalog().get("environmentType") -/// .project_id("gubergren") +/// let result = hub.test_environment_catalog().get(&Default::default()) +/// .project_id("ipsum") /// .doit().await; /// # } /// ``` @@ -1159,7 +1159,7 @@ pub struct TestEnvironmentCatalogGetCall<'a, S> where S: 'a { pub(super) hub: &'a Testing, - pub(super) _environment_type: String, + pub(super) _environment_type: TestEnvironmentCatalogEnvironmentTypeEnum, pub(super) _project_id: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, @@ -1197,7 +1197,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("environmentType", self._environment_type); + params.push("environmentType", &self._environment_type); if let Some(value) = self._project_id.as_ref() { params.push("projectId", value); } @@ -1311,8 +1311,8 @@ where /// /// Even though the property as already been set when instantiating this call, /// we provide this method for API completeness. - pub fn environment_type(mut self, new_value: &str) -> TestEnvironmentCatalogGetCall<'a, S> { - self._environment_type = new_value.to_string(); + pub fn environment_type(mut self, new_value: &TestEnvironmentCatalogEnvironmentTypeEnum) -> TestEnvironmentCatalogGetCall<'a, S> { + self._environment_type = new_value.clone(); self } /// For authorization, the cloud project requesting the TestEnvironmentCatalog. diff --git a/gen/testing1/src/api/method_builders.rs b/gen/testing1/src/api/method_builders.rs index bbd838ce7d..8c37c6cabe 100644 --- a/gen/testing1/src/api/method_builders.rs +++ b/gen/testing1/src/api/method_builders.rs @@ -201,10 +201,10 @@ impl<'a, S> TestEnvironmentCatalogMethods<'a, S> { /// # Arguments /// /// * `environmentType` - Required. The type of environment that should be listed. - pub fn get(&self, environment_type: &str) -> TestEnvironmentCatalogGetCall<'a, S> { + pub fn get(&self, environment_type: &TestEnvironmentCatalogEnvironmentTypeEnum) -> TestEnvironmentCatalogGetCall<'a, S> { TestEnvironmentCatalogGetCall { hub: self.hub, - _environment_type: environment_type.to_string(), + _environment_type: environment_type.clone(), _project_id: Default::default(), _delegate: Default::default(), _additional_params: Default::default(), diff --git a/gen/testing1/src/api/mod.rs b/gen/testing1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/testing1/src/api/mod.rs +++ b/gen/testing1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/testing1/src/api/schemas.rs b/gen/testing1/src/api/schemas.rs index ce67dedcf4..ce5b016531 100644 --- a/gen/testing1/src/api/schemas.rs +++ b/gen/testing1/src/api/schemas.rs @@ -101,7 +101,7 @@ pub struct AndroidInstrumentationTest { /// The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.1 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator. #[serde(rename="orchestratorOption")] - pub orchestrator_option: Option, + pub orchestrator_option: Option, /// The option to run tests in multiple shards in parallel. #[serde(rename="shardingOption")] @@ -168,11 +168,11 @@ pub struct AndroidModel { pub codename: Option, /// Whether this device is virtual or physical. - pub form: Option, + pub form: Option, /// Whether this device is a phone, tablet, wearable, etc. #[serde(rename="formFactor")] - pub form_factor: Option, + pub form_factor: Option, /// The unique opaque id for this model. Use this for invoking the TestExecutionService. pub id: Option, @@ -256,7 +256,7 @@ pub struct AndroidRoboTest { /// The mode in which Robo should run. Most clients should allow the server to populate this field automatically. #[serde(rename="roboMode")] - pub robo_mode: Option, + pub robo_mode: Option, /// A JSON file with a sequence of actions Robo should perform as a prologue for the crawl. #[serde(rename="roboScript")] @@ -477,7 +477,7 @@ pub struct CancelTestMatrixResponse { /// The current rolled-up state of the test matrix. If this state is already final, then the cancelation request will have no effect. #[serde(rename="testState")] - pub test_state: Option, + pub test_state: Option, } impl client::ResponseResult for CancelTestMatrixResponse {} @@ -577,7 +577,7 @@ pub struct DeviceIpBlock { pub block: Option, /// Whether this block is used by physical or virtual devices - pub form: Option, + pub form: Option, } impl client::Part for DeviceIpBlock {} @@ -877,7 +877,7 @@ pub struct IosModel { /// Whether this device is a phone, tablet, wearable, etc. #[serde(rename="formFactor")] - pub form_factor: Option, + pub form_factor: Option, /// The unique opaque id for this model. Use this for invoking the TestExecutionService. pub id: Option, @@ -1262,7 +1262,7 @@ pub struct RoboDirective { /// Required. The type of action that Robo should perform on the specified element. #[serde(rename="actionType")] - pub action_type: Option, + pub action_type: Option, /// The text that Robo is directed to set. If left empty, the directive will be treated as a CLICK on the element matching the resource_name. #[serde(rename="inputText")] @@ -1463,7 +1463,7 @@ pub struct TestExecution { pub shard: Option, /// Output only. Indicates the current progress of the test execution (e.g., FINISHED). - pub state: Option, + pub state: Option, /// Output only. Additional details about the running test. #[serde(rename="testDetails")] @@ -1515,11 +1515,11 @@ pub struct TestMatrix { /// Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. #[serde(rename="invalidMatrixDetails")] - pub invalid_matrix_details: Option, + pub invalid_matrix_details: Option, /// Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED. #[serde(rename="outcomeSummary")] - pub outcome_summary: Option, + pub outcome_summary: Option, /// The cloud project that owns the test matrix. #[serde(rename="projectId")] @@ -1530,7 +1530,7 @@ pub struct TestMatrix { pub result_storage: Option, /// Output only. Indicates the current progress of the test matrix. - pub state: Option, + pub state: Option, /// Output only. The list of test executions that the service creates for this matrix. #[serde(rename="testExecutions")] diff --git a/gen/texttospeech1/src/api/call_builders.rs b/gen/texttospeech1/src/api/call_builders.rs index cef7f6e88c..0e2ce00e2d 100644 --- a/gen/texttospeech1/src/api/call_builders.rs +++ b/gen/texttospeech1/src/api/call_builders.rs @@ -884,7 +884,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()); @@ -1169,7 +1169,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()); @@ -1431,7 +1431,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()); @@ -1699,7 +1699,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); } @@ -1998,7 +1998,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); diff --git a/gen/texttospeech1/src/api/mod.rs b/gen/texttospeech1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/texttospeech1/src/api/mod.rs +++ b/gen/texttospeech1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/texttospeech1/src/api/schemas.rs b/gen/texttospeech1/src/api/schemas.rs index b2857ac28e..dc7cd25f2a 100644 --- a/gen/texttospeech1/src/api/schemas.rs +++ b/gen/texttospeech1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct AudioConfig { /// Required. The format of the audio byte stream. #[serde(rename="audioEncoding")] - pub audio_encoding: Option, + pub audio_encoding: Option, /// Optional. Input only. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids. #[serde(rename="effectsProfileId")] @@ -62,7 +62,7 @@ pub struct CustomVoiceParams { /// Optional. The usage of the synthesized audio to be reported. #[serde(rename="reportedUsage")] - pub reported_usage: Option, + pub reported_usage: Option, } impl client::Part for CustomVoiceParams {} @@ -302,7 +302,7 @@ pub struct Voice { /// The gender of this voice. #[serde(rename="ssmlGender")] - pub ssml_gender: Option, + pub ssml_gender: Option, } impl client::Resource for Voice {} @@ -329,7 +329,7 @@ pub struct VoiceSelectionParams { /// The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement; if a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request. #[serde(rename="ssmlGender")] - pub ssml_gender: Option, + pub ssml_gender: Option, } impl client::Part for VoiceSelectionParams {} diff --git a/gen/tpu1/src/api/call_builders.rs b/gen/tpu1/src/api/call_builders.rs index 812395cf04..9bd6ba11df 100644 --- a/gen/tpu1/src/api/call_builders.rs +++ b/gen/tpu1/src/api/call_builders.rs @@ -1079,7 +1079,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()); @@ -1349,7 +1349,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); } @@ -1660,7 +1660,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._node_id.as_ref() { params.push("nodeId", value); } @@ -1955,7 +1955,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()); @@ -2217,7 +2217,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()); @@ -2483,7 +2483,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2772,7 +2772,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()); @@ -3064,7 +3064,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()); @@ -3356,7 +3356,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()); @@ -3641,7 +3641,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()); @@ -3903,7 +3903,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()); @@ -4165,7 +4165,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()); @@ -4433,7 +4433,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); } @@ -4725,7 +4725,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()); @@ -4995,7 +4995,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); } @@ -5297,7 +5297,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()); @@ -5565,7 +5565,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); } diff --git a/gen/tpu1/src/api/mod.rs b/gen/tpu1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/tpu1/src/api/mod.rs +++ b/gen/tpu1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/tpu1/src/api/schemas.rs b/gen/tpu1/src/api/schemas.rs index 8d020f5f03..f5d230bf4f 100644 --- a/gen/tpu1/src/api/schemas.rs +++ b/gen/tpu1/src/api/schemas.rs @@ -235,7 +235,7 @@ pub struct Node { /// Output only. The API version that created this Node. #[serde(rename="apiVersion")] - pub api_version: Option, + pub api_version: Option, /// The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block. #[serde(rename="cidrBlock")] @@ -249,7 +249,7 @@ pub struct Node { pub description: Option, /// The health status of the TPU node. - pub health: Option, + pub health: Option, /// Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. #[serde(rename="healthDescription")] @@ -284,7 +284,7 @@ pub struct Node { pub service_account: Option, /// Output only. The current state for the TPU Node. - pub state: Option, + pub state: Option, /// Output only. The Symptoms that have occurred to the TPU Node. pub symptoms: Option>, @@ -444,7 +444,7 @@ pub struct Symptom { /// Type of the Symptom. #[serde(rename="symptomType")] - pub symptom_type: Option, + pub symptom_type: Option, /// A string used to uniquely distinguish a worker within a TPU node. #[serde(rename="workerId")] diff --git a/gen/tpu1_alpha1/src/api/call_builders.rs b/gen/tpu1_alpha1/src/api/call_builders.rs index 791c6f5b99..9bf91b2c6f 100644 --- a/gen/tpu1_alpha1/src/api/call_builders.rs +++ b/gen/tpu1_alpha1/src/api/call_builders.rs @@ -1082,7 +1082,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()); @@ -1352,7 +1352,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); } @@ -1665,7 +1665,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); } @@ -1972,7 +1972,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); } @@ -2244,7 +2244,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()); @@ -2510,7 +2510,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -2799,7 +2799,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()); @@ -3091,7 +3091,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()); @@ -3383,7 +3383,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()); @@ -3668,7 +3668,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()); @@ -3930,7 +3930,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()); @@ -4192,7 +4192,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()); @@ -4460,7 +4460,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); } @@ -4752,7 +4752,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()); @@ -5022,7 +5022,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); } @@ -5324,7 +5324,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()); @@ -5592,7 +5592,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); } diff --git a/gen/tpu1_alpha1/src/api/mod.rs b/gen/tpu1_alpha1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/tpu1_alpha1/src/api/mod.rs +++ b/gen/tpu1_alpha1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/tpu1_alpha1/src/api/schemas.rs b/gen/tpu1_alpha1/src/api/schemas.rs index 8d020f5f03..f5d230bf4f 100644 --- a/gen/tpu1_alpha1/src/api/schemas.rs +++ b/gen/tpu1_alpha1/src/api/schemas.rs @@ -235,7 +235,7 @@ pub struct Node { /// Output only. The API version that created this Node. #[serde(rename="apiVersion")] - pub api_version: Option, + pub api_version: Option, /// The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block. #[serde(rename="cidrBlock")] @@ -249,7 +249,7 @@ pub struct Node { pub description: Option, /// The health status of the TPU node. - pub health: Option, + pub health: Option, /// Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. #[serde(rename="healthDescription")] @@ -284,7 +284,7 @@ pub struct Node { pub service_account: Option, /// Output only. The current state for the TPU Node. - pub state: Option, + pub state: Option, /// Output only. The Symptoms that have occurred to the TPU Node. pub symptoms: Option>, @@ -444,7 +444,7 @@ pub struct Symptom { /// Type of the Symptom. #[serde(rename="symptomType")] - pub symptom_type: Option, + pub symptom_type: Option, /// A string used to uniquely distinguish a worker within a TPU node. #[serde(rename="workerId")] diff --git a/gen/transcoder1/src/api/call_builders.rs b/gen/transcoder1/src/api/call_builders.rs index 6d35c7a444..67baeab065 100644 --- a/gen/transcoder1/src/api/call_builders.rs +++ b/gen/transcoder1/src/api/call_builders.rs @@ -79,7 +79,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._job_template_id.as_ref() { params.push("jobTemplateId", value); } @@ -376,7 +376,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._allow_missing.as_ref() { params.push("allowMissing", value.to_string()); } @@ -648,7 +648,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()); @@ -918,7 +918,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); } @@ -1227,7 +1227,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1514,7 +1514,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._allow_missing.as_ref() { params.push("allowMissing", value.to_string()); } @@ -1786,7 +1786,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()); @@ -2056,7 +2056,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); } diff --git a/gen/transcoder1/src/api/mod.rs b/gen/transcoder1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/transcoder1/src/api/mod.rs +++ b/gen/transcoder1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/transcoder1/src/api/schemas.rs b/gen/transcoder1/src/api/schemas.rs index 7549c618ae..6923c3b04c 100644 --- a/gen/transcoder1/src/api/schemas.rs +++ b/gen/transcoder1/src/api/schemas.rs @@ -72,7 +72,7 @@ pub struct AnimationFade { /// Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. #[serde(rename="fadeType")] - pub fade_type: Option, + pub fade_type: Option, /// The time to start the fade animation, in seconds. Default: 0 #[serde(rename="startTimeOffset")] @@ -660,7 +660,7 @@ pub struct Job { pub start_time: Option>, /// Output only. The current state of the job. - pub state: Option, + pub state: Option, /// Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - `preset/{preset_id}` - User defined JobTemplate: `{job_template_id}` #[serde(rename="templateId")] @@ -821,7 +821,7 @@ pub struct Manifest { /// Required. Type of the manifest, can be `HLS` or `DASH`. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Manifest {} diff --git a/gen/transcoder1_beta1/src/api/call_builders.rs b/gen/transcoder1_beta1/src/api/call_builders.rs index 1935b36769..963cf94fab 100644 --- a/gen/transcoder1_beta1/src/api/call_builders.rs +++ b/gen/transcoder1_beta1/src/api/call_builders.rs @@ -79,7 +79,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._job_template_id.as_ref() { params.push("jobTemplateId", value); } @@ -374,7 +374,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()); @@ -636,7 +636,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()); @@ -902,7 +902,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1191,7 +1191,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -1476,7 +1476,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()); @@ -1738,7 +1738,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()); @@ -2004,7 +2004,7 @@ where } let mut params = Params::with_capacity(5 + 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); } diff --git a/gen/transcoder1_beta1/src/api/mod.rs b/gen/transcoder1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/transcoder1_beta1/src/api/mod.rs +++ b/gen/transcoder1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/transcoder1_beta1/src/api/schemas.rs b/gen/transcoder1_beta1/src/api/schemas.rs index 5fbd0b2c9c..8e21dfcb4d 100644 --- a/gen/transcoder1_beta1/src/api/schemas.rs +++ b/gen/transcoder1_beta1/src/api/schemas.rs @@ -88,7 +88,7 @@ pub struct AnimationFade { /// Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. #[serde(rename="fadeType")] - pub fade_type: Option, + pub fade_type: Option, /// The time to start the fade animation, in seconds. Default: 0 #[serde(rename="startTimeOffset")] @@ -538,7 +538,7 @@ pub struct Job { pub start_time: Option>, /// Output only. The current state of the job. - pub state: Option, + pub state: Option, /// Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - `preset/{preset_id}` - User defined JobTemplate: `{job_template_id}` #[serde(rename="templateId")] @@ -690,7 +690,7 @@ pub struct Manifest { /// Required. Type of the manifest, can be "HLS" or "DASH". #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Manifest {} diff --git a/gen/translate2/src/api/mod.rs b/gen/translate2/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/translate2/src/api/mod.rs +++ b/gen/translate2/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/translate3/src/api/call_builders.rs b/gen/translate3/src/api/call_builders.rs index b517bcc287..2f5f9fb49a 100644 --- a/gen/translate3/src/api/call_builders.rs +++ b/gen/translate3/src/api/call_builders.rs @@ -5754,7 +5754,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._page_token.as_ref() { params.push("pageToken", value); } @@ -6053,7 +6053,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6338,7 +6338,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()); @@ -6607,7 +6607,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("dataset", self._dataset); + params.push("dataset", &self._dataset); params.extend(self._additional_params.iter()); @@ -6892,7 +6892,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()); @@ -7161,7 +7161,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("dataset", self._dataset); + params.push("dataset", &self._dataset); params.extend(self._additional_params.iter()); @@ -7450,7 +7450,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -7739,7 +7739,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -8024,7 +8024,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()); @@ -8286,7 +8286,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()); @@ -8552,7 +8552,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8841,7 +8841,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()); @@ -9133,7 +9133,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9418,7 +9418,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()); @@ -9680,7 +9680,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()); @@ -9948,7 +9948,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._page_token.as_ref() { params.push("pageToken", value); } @@ -10249,7 +10249,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10551,7 +10551,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -10836,7 +10836,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()); @@ -11098,7 +11098,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()); @@ -11366,7 +11366,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._page_token.as_ref() { params.push("pageToken", value); } @@ -11665,7 +11665,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()); @@ -11950,7 +11950,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()); @@ -12212,7 +12212,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()); @@ -12480,7 +12480,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); } @@ -12779,7 +12779,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()); @@ -13363,7 +13363,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -13655,7 +13655,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -13947,7 +13947,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -14232,7 +14232,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()); @@ -14498,7 +14498,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._model.as_ref() { params.push("model", value); } @@ -14786,7 +14786,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); } @@ -15377,7 +15377,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -15669,7 +15669,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -15961,7 +15961,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -16250,7 +16250,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._model.as_ref() { params.push("model", value); } @@ -16831,7 +16831,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); diff --git a/gen/translate3/src/api/mod.rs b/gen/translate3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/translate3/src/api/mod.rs +++ b/gen/translate3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/urlshortener1/README.md b/gen/urlshortener1/README.md index b34df29ef0..f309248a2f 100644 --- a/gen/urlshortener1/README.md +++ b/gen/urlshortener1/README.md @@ -96,7 +96,7 @@ let mut hub = Urlshortener::new(hyper::Client::builder().build(hyper_rustls::Htt // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.url().get("shortUrl") - .projection("magna") + .projection(&Default::default()) .doit().await; match result { diff --git a/gen/urlshortener1/src/api/hub.rs b/gen/urlshortener1/src/api/hub.rs index 319f485a41..e385c18059 100644 --- a/gen/urlshortener1/src/api/hub.rs +++ b/gen/urlshortener1/src/api/hub.rs @@ -32,7 +32,7 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.url().get("shortUrl") -/// .projection("At") +/// .projection(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/urlshortener1/src/api/mod.rs b/gen/urlshortener1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/urlshortener1/src/api/mod.rs +++ b/gen/urlshortener1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/urlshortener1/src/lib.rs b/gen/urlshortener1/src/lib.rs index 12a1b4d8d8..c9513842e6 100644 --- a/gen/urlshortener1/src/lib.rs +++ b/gen/urlshortener1/src/lib.rs @@ -97,7 +97,7 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.url().get("shortUrl") -//! .projection("ipsum") +//! .projection(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/vault1/README.md b/gen/vault1/README.md index 720479eef9..06e1a38e25 100644 --- a/gen/vault1/README.md +++ b/gen/vault1/README.md @@ -125,9 +125,9 @@ let mut hub = Vault::new(hyper::Client::builder().build(hyper_rustls::HttpsConne // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.matters().holds_list("matterId") - .view("magna") - .page_token("no") - .page_size(-55) + .view(&Default::default()) + .page_token("magna") + .page_size(-11) .doit().await; match result { diff --git a/gen/vault1/src/api/hub.rs b/gen/vault1/src/api/hub.rs index 5902b5237b..1639f81a2f 100644 --- a/gen/vault1/src/api/hub.rs +++ b/gen/vault1/src/api/hub.rs @@ -32,9 +32,9 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.matters().holds_list("matterId") -/// .view("takimata") -/// .page_token("amet.") -/// .page_size(-20) +/// .view(&Default::default()) +/// .page_token("sed") +/// .page_size(-2) /// .doit().await; /// /// match result { diff --git a/gen/vault1/src/api/mod.rs b/gen/vault1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/vault1/src/api/mod.rs +++ b/gen/vault1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/vault1/src/api/schemas.rs b/gen/vault1/src/api/schemas.rs index 910892306b..3296fc5b5d 100644 --- a/gen/vault1/src/api/schemas.rs +++ b/gen/vault1/src/api/schemas.rs @@ -242,7 +242,7 @@ pub struct CountArtifactsRequest { pub query: Option, /// Sets the granularity of the count results. - pub view: Option, + pub view: Option, } impl client::RequestValue for CountArtifactsRequest {} @@ -274,7 +274,7 @@ pub struct DriveOptions { /// Set whether the results include only content encrypted with [Google Workspace Client-side encryption](https://support.google.com/a?p=cse_ov) content, only unencrypted content, or both. Defaults to both. Currently supported for Drive. #[serde(rename="clientSideEncryptedOption")] - pub client_side_encrypted_option: Option, + pub client_side_encrypted_option: Option, /// Set to **true** to include shared drives. #[serde(rename="includeSharedDrives")] @@ -358,7 +358,7 @@ pub struct Export { pub stats: Option, /// Output only. The status of the export. - pub status: Option, + pub status: Option, } impl client::RequestValue for Export {} @@ -390,7 +390,7 @@ pub struct ExportOptions { pub mail_options: Option, /// The requested data region for the export. - pub region: Option, + pub region: Option, /// Options for Voice exports. #[serde(rename="voiceOptions")] @@ -437,7 +437,7 @@ pub struct GroupsExportOptions { /// The file format for exported messages. #[serde(rename="exportFormat")] - pub export_format: Option, + pub export_format: Option, } impl client::Part for GroupsExportOptions {} @@ -453,7 +453,7 @@ pub struct HangoutsChatExportOptions { /// The file format for exported messages. #[serde(rename="exportFormat")] - pub export_format: Option, + pub export_format: Option, } impl client::Part for HangoutsChatExportOptions {} @@ -639,7 +639,7 @@ pub struct HeldVoiceQuery { /// A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored. #[serde(rename="coveredData")] - pub covered_data: Option>, + pub covered_data: Option>, } impl client::Part for HeldVoiceQuery {} @@ -663,7 +663,7 @@ pub struct Hold { pub accounts: Option>, /// The service to be searched. - pub corpus: Option, + pub corpus: Option, /// The unique immutable ID of the hold. Assigned during creation. #[serde(rename="holdId")] @@ -833,7 +833,7 @@ pub struct MailExportOptions { /// The file format for exported messages. #[serde(rename="exportFormat")] - pub export_format: Option, + pub export_format: Option, /// To export confidential mode content, set to **true**. #[serde(rename="showConfidentialModeContent")] @@ -918,7 +918,7 @@ pub struct Matter { pub name: Option, /// The state of the matter. - pub state: Option, + pub state: Option, } impl client::RequestValue for Matter {} @@ -943,7 +943,7 @@ pub struct MatterPermission { pub account_id: Option, /// The user's role for the matter. - pub role: Option, + pub role: Option, } impl client::ResponseResult for MatterPermission {} @@ -1014,11 +1014,11 @@ pub struct Query { pub account_info: Option, /// The Google Workspace service to search. - pub corpus: Option, + pub corpus: Option, /// The data source to search. #[serde(rename="dataScope")] - pub data_scope: Option, + pub data_scope: Option, /// Set Drive search-specific options. #[serde(rename="driveOptions")] @@ -1041,7 +1041,7 @@ pub struct Query { pub mail_options: Option, /// The entity to search. This field replaces **searchMethod** to support shared drives. When **searchMethod** is **TEAM_DRIVE**, the response of this field is **SHARED_DRIVE**. - pub method: Option, + pub method: Option, /// Required when **SearchMethod** is **ORG_UNIT**. #[serde(rename="orgUnitInfo")] @@ -1049,7 +1049,7 @@ pub struct Query { /// The search method to use. #[serde(rename="searchMethod")] - pub search_method: Option, + pub search_method: Option, /// Required when **SearchMethod** is **SHARED_DRIVE**. #[serde(rename="sharedDriveInfo")] @@ -1324,7 +1324,7 @@ pub struct VoiceExportOptions { /// The file format for exported text messages. #[serde(rename="exportFormat")] - pub export_format: Option, + pub export_format: Option, } impl client::Part for VoiceExportOptions {} @@ -1340,7 +1340,7 @@ pub struct VoiceOptions { /// Datatypes to search #[serde(rename="coveredData")] - pub covered_data: Option>, + pub covered_data: Option>, } impl client::Part for VoiceOptions {} diff --git a/gen/vault1/src/lib.rs b/gen/vault1/src/lib.rs index f652d51cbd..9141a81466 100644 --- a/gen/vault1/src/lib.rs +++ b/gen/vault1/src/lib.rs @@ -126,9 +126,9 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.matters().holds_list("matterId") -//! .view("At") -//! .page_token("sanctus") -//! .page_size(-80) +//! .view(&Default::default()) +//! .page_token("voluptua.") +//! .page_size(-27) //! .doit().await; //! //! match result { diff --git a/gen/vectortile1/README.md b/gen/vectortile1/README.md index cfcfc59dac..0799c21141 100644 --- a/gen/vectortile1/README.md +++ b/gen/vectortile1/README.md @@ -107,12 +107,12 @@ let result = hub.featuretiles().get("name") .enable_detailed_highway_types(true) .client_tile_version_id("Lorem") .client_info_user_id("gubergren") - .client_info_platform("eos") - .client_info_operating_system("dolor") - .client_info_device_model("ea") - .client_info_application_version("ipsum") - .client_info_application_id("invidunt") - .client_info_api_client("amet") + .client_info_platform(&Default::default()) + .client_info_operating_system("eos") + .client_info_device_model("dolor") + .client_info_application_version("ea") + .client_info_application_id("ipsum") + .client_info_api_client("invidunt") .always_include_building_footprints(true) .doit().await; diff --git a/gen/vectortile1/src/api/call_builders.rs b/gen/vectortile1/src/api/call_builders.rs index 7f8c088908..e9ee764452 100644 --- a/gen/vectortile1/src/api/call_builders.rs +++ b/gen/vectortile1/src/api/call_builders.rs @@ -36,12 +36,12 @@ use super::*; /// .enable_detailed_highway_types(false) /// .client_tile_version_id("dolore") /// .client_info_user_id("dolore") -/// .client_info_platform("dolore") -/// .client_info_operating_system("voluptua.") -/// .client_info_device_model("amet.") -/// .client_info_application_version("ea") -/// .client_info_application_id("sadipscing") -/// .client_info_api_client("Lorem") +/// .client_info_platform(&Default::default()) +/// .client_info_operating_system("dolore") +/// .client_info_device_model("voluptua.") +/// .client_info_application_version("amet.") +/// .client_info_application_id("ea") +/// .client_info_api_client("sadipscing") /// .always_include_building_footprints(true) /// .doit().await; /// # } @@ -61,7 +61,7 @@ pub struct FeaturetileGetCall<'a, S> pub(super) _enable_detailed_highway_types: Option, pub(super) _client_tile_version_id: Option, pub(super) _client_info_user_id: Option, - pub(super) _client_info_platform: Option, + pub(super) _client_info_platform: Option, pub(super) _client_info_operating_system: Option, pub(super) _client_info_device_model: Option, pub(super) _client_info_application_version: Option, @@ -103,7 +103,7 @@ where } let mut params = Params::with_capacity(20 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if let Some(value) = self._region_code.as_ref() { params.push("regionCode", value); } @@ -332,8 +332,8 @@ where /// Platform where the application is running. /// /// Sets the *client info.platform* query property to the given value. - pub fn client_info_platform(mut self, new_value: &str) -> FeaturetileGetCall<'a, S> { - self._client_info_platform = Some(new_value.to_string()); + pub fn client_info_platform(mut self, new_value: &FeaturetileClientInfoPlatformEnum) -> FeaturetileGetCall<'a, S> { + self._client_info_platform = Some(new_value.clone()); self } /// Operating system name and version as reported by the OS. For example, "Mac OS X 10.10.4". The exact format is platform-dependent. @@ -447,17 +447,17 @@ where /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.terraintiles().get("name") -/// .add_terrain_formats("est") -/// .min_elevation_resolution_cells(-27) -/// .max_elevation_resolution_cells(-43) -/// .client_info_user_id("sit") -/// .client_info_platform("et") -/// .client_info_operating_system("tempor") -/// .client_info_device_model("aliquyam") -/// .client_info_application_version("ipsum") -/// .client_info_application_id("et") -/// .client_info_api_client("sanctus") -/// .altitude_precision_centimeters(-56) +/// .add_terrain_formats(&Default::default()) +/// .min_elevation_resolution_cells(-7) +/// .max_elevation_resolution_cells(-27) +/// .client_info_user_id("sed") +/// .client_info_platform(&Default::default()) +/// .client_info_operating_system("sit") +/// .client_info_device_model("et") +/// .client_info_application_version("tempor") +/// .client_info_application_id("aliquyam") +/// .client_info_api_client("ipsum") +/// .altitude_precision_centimeters(-18) /// .doit().await; /// # } /// ``` @@ -466,11 +466,11 @@ pub struct TerraintileGetCall<'a, S> pub(super) hub: &'a SemanticTile, pub(super) _name: String, - pub(super) _terrain_formats: Vec, + pub(super) _terrain_formats: Option, pub(super) _min_elevation_resolution_cells: Option, pub(super) _max_elevation_resolution_cells: Option, pub(super) _client_info_user_id: Option, - pub(super) _client_info_platform: Option, + pub(super) _client_info_platform: Option, pub(super) _client_info_operating_system: Option, pub(super) _client_info_device_model: Option, pub(super) _client_info_application_version: Option, @@ -512,7 +512,7 @@ where } let mut params = Params::with_capacity(14 + self._additional_params.len()); - params.push("name", self._name); + params.push("name", &self._name); if self._terrain_formats.len() > 0 { for f in self._terrain_formats.iter() { params.push("terrainFormats", f); @@ -656,8 +656,8 @@ where /// /// Append the given value to the *terrain formats* query property. /// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters. - pub fn add_terrain_formats(mut self, new_value: &str) -> TerraintileGetCall<'a, S> { - self._terrain_formats.push(new_value.to_string()); + pub fn add_terrain_formats(mut self, new_value: &TerraintileTerrainFormatsEnum) -> TerraintileGetCall<'a, S> { + self._terrain_formats.push(new_value.clone()); self } /// The minimum allowed resolution for the returned elevation heightmap. Possible values: between 0 and 1024 (and not more than max_elevation_resolution_cells). Zero is supported for backward compatibility. Under-sized heightmaps will be non-uniformly up-sampled such that each edge is no shorter than this value. Non-uniformity is chosen to maximise the amount of preserved data. For example: Original resolution: 30px (width) * 10px (height) min_elevation_resolution: 30 New resolution: 30px (width) * 30px (height) @@ -684,8 +684,8 @@ where /// Platform where the application is running. /// /// Sets the *client info.platform* query property to the given value. - pub fn client_info_platform(mut self, new_value: &str) -> TerraintileGetCall<'a, S> { - self._client_info_platform = Some(new_value.to_string()); + pub fn client_info_platform(mut self, new_value: &TerraintileClientInfoPlatformEnum) -> TerraintileGetCall<'a, S> { + self._client_info_platform = Some(new_value.clone()); self } /// Operating system name and version as reported by the OS. For example, "Mac OS X 10.10.4". The exact format is platform-dependent. diff --git a/gen/vectortile1/src/api/hub.rs b/gen/vectortile1/src/api/hub.rs index 36e80bcae5..c8e3fa9a3d 100644 --- a/gen/vectortile1/src/api/hub.rs +++ b/gen/vectortile1/src/api/hub.rs @@ -42,12 +42,12 @@ use super::*; /// .enable_detailed_highway_types(false) /// .client_tile_version_id("duo") /// .client_info_user_id("vero") -/// .client_info_platform("vero") -/// .client_info_operating_system("invidunt") -/// .client_info_device_model("Stet") -/// .client_info_application_version("vero") -/// .client_info_application_id("elitr") -/// .client_info_api_client("Lorem") +/// .client_info_platform(&Default::default()) +/// .client_info_operating_system("vero") +/// .client_info_device_model("invidunt") +/// .client_info_application_version("Stet") +/// .client_info_application_id("vero") +/// .client_info_api_client("elitr") /// .always_include_building_footprints(true) /// .doit().await; /// diff --git a/gen/vectortile1/src/api/mod.rs b/gen/vectortile1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/vectortile1/src/api/mod.rs +++ b/gen/vectortile1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/vectortile1/src/api/schemas.rs b/gen/vectortile1/src/api/schemas.rs index 6c6ba43f57..16b5189028 100644 --- a/gen/vectortile1/src/api/schemas.rs +++ b/gen/vectortile1/src/api/schemas.rs @@ -29,7 +29,7 @@ pub struct Area { /// The polygon encoding type used for this area. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The vertices present in the polygon defining the area. #[serde(rename="vertexOffsets")] @@ -118,7 +118,7 @@ pub struct Feature { /// The type of this feature. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Feature {} @@ -149,7 +149,7 @@ pub struct FeatureTile { pub providers: Option>, /// Tile response status code to support tile caching. - pub status: Option, + pub status: Option, /// An opaque value, usually less than 30 characters, that contains version info about this tile and the data that was used to generate it. The client should store this value in its tile cache and pass it back to the API in the client_tile_version_id field of subsequent tile requests in order to enable the API to detect when the new tile would be the same as the one the client already has in its cache. Also see STATUS_OK_DATA_UNCHANGED. #[serde(rename="versionId")] @@ -277,7 +277,7 @@ pub struct Relation { /// Relation type between the origin feature to the related feature. #[serde(rename="relationType")] - pub relation_type: Option, + pub relation_type: Option, } impl client::Part for Relation {} diff --git a/gen/vectortile1/src/lib.rs b/gen/vectortile1/src/lib.rs index caf518a7bb..8f1dc047d3 100644 --- a/gen/vectortile1/src/lib.rs +++ b/gen/vectortile1/src/lib.rs @@ -98,8 +98,8 @@ //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! //! let result = hub.featuretiles().get("name") -//! .region_code("ut") -//! .language_code("gubergren") +//! .region_code("ipsum") +//! .language_code("sed") //! .enable_unclipped_buildings(true) //! .enable_private_roads(true) //! .enable_political_features(true) @@ -108,12 +108,12 @@ //! .enable_detailed_highway_types(true) //! .client_tile_version_id("eos") //! .client_info_user_id("labore") -//! .client_info_platform("sed") -//! .client_info_operating_system("duo") -//! .client_info_device_model("sed") -//! .client_info_application_version("no") -//! .client_info_application_id("Stet") -//! .client_info_api_client("kasd") +//! .client_info_platform(&Default::default()) +//! .client_info_operating_system("sed") +//! .client_info_device_model("duo") +//! .client_info_application_version("sed") +//! .client_info_application_id("no") +//! .client_info_api_client("Stet") //! .always_include_building_footprints(true) //! .doit().await; //! diff --git a/gen/verifiedaccess1/src/api/mod.rs b/gen/verifiedaccess1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/verifiedaccess1/src/api/mod.rs +++ b/gen/verifiedaccess1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/versionhistory1/src/api/call_builders.rs b/gen/versionhistory1/src/api/call_builders.rs index 19fe179fd1..890681a3a7 100644 --- a/gen/versionhistory1/src/api/call_builders.rs +++ b/gen/versionhistory1/src/api/call_builders.rs @@ -550,7 +550,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); } @@ -815,7 +815,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); } @@ -1076,7 +1076,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -1317,7 +1317,7 @@ where } let mut params = Params::with_capacity(5 + 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); } diff --git a/gen/versionhistory1/src/api/mod.rs b/gen/versionhistory1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/versionhistory1/src/api/mod.rs +++ b/gen/versionhistory1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/versionhistory1/src/api/schemas.rs b/gen/versionhistory1/src/api/schemas.rs index 4c55e06656..94797799ff 100644 --- a/gen/versionhistory1/src/api/schemas.rs +++ b/gen/versionhistory1/src/api/schemas.rs @@ -9,7 +9,7 @@ pub struct Channel { /// Type of channel. #[serde(rename="channelType")] - pub channel_type: Option, + pub channel_type: Option, /// Channel name. Format is "{product}/platforms/{platform}/channels/{channel}" pub name: Option, @@ -150,7 +150,7 @@ pub struct Platform { /// Type of platform. #[serde(rename="platformType")] - pub platform_type: Option, + pub platform_type: Option, } impl client::Resource for Platform {} diff --git a/gen/videointelligence1/src/api/call_builders.rs b/gen/videointelligence1/src/api/call_builders.rs index 8a57a1cba8..7b8496fe58 100644 --- a/gen/videointelligence1/src/api/call_builders.rs +++ b/gen/videointelligence1/src/api/call_builders.rs @@ -940,7 +940,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()); @@ -1202,7 +1202,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()); @@ -1464,7 +1464,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()); @@ -1733,7 +1733,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()); @@ -2018,7 +2018,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()); @@ -2280,7 +2280,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()); @@ -2548,7 +2548,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); } diff --git a/gen/videointelligence1/src/api/mod.rs b/gen/videointelligence1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/videointelligence1/src/api/mod.rs +++ b/gen/videointelligence1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/videointelligence1/src/api/schemas.rs b/gen/videointelligence1/src/api/schemas.rs index 7cc44134ad..1648b6febb 100644 --- a/gen/videointelligence1/src/api/schemas.rs +++ b/gen/videointelligence1/src/api/schemas.rs @@ -12,7 +12,7 @@ use super::*; pub struct GoogleCloudVideointelligenceV1_AnnotateVideoRequest { /// Required. Requested video annotation features. - pub features: Option>, + pub features: Option>, /// The video data bytes. If unset, the input video(s) should be specified via the `input_uri`. If set, `input_uri` must be unset. #[serde(rename="inputContent")] @@ -91,7 +91,7 @@ pub struct GoogleCloudVideointelligenceV1_LabelDetectionConfig { /// What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`. #[serde(rename="labelDetectionMode")] - pub label_detection_mode: Option, + pub label_detection_mode: Option, /// Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". pub model: Option, diff --git a/gen/videointelligence1_beta1/src/api/mod.rs b/gen/videointelligence1_beta1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/videointelligence1_beta1/src/api/mod.rs +++ b/gen/videointelligence1_beta1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/videointelligence1_beta1/src/api/schemas.rs b/gen/videointelligence1_beta1/src/api/schemas.rs index 711063cc81..12f33d8882 100644 --- a/gen/videointelligence1_beta1/src/api/schemas.rs +++ b/gen/videointelligence1_beta1/src/api/schemas.rs @@ -67,7 +67,7 @@ pub struct GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest { pub output_uri: Option, /// Requested video annotation features. - pub features: Option>, + pub features: Option>, /// Additional video context and/or feature-specific parameters. #[serde(rename="videoContext")] @@ -155,7 +155,7 @@ pub struct GoogleCloudVideointelligenceV1beta1_VideoContext { /// defaults to `SHOT_MODE`. #[serde(rename="labelDetectionMode")] - pub label_detection_mode: Option, + pub label_detection_mode: Option, /// Whether the video has been shot from a stationary (i.e. non-moving) camera. /// When set to true, might improve detection accuracy for moving objects. #[serde(rename="stationaryCamera")] diff --git a/gen/vision1/src/api/call_builders.rs b/gen/vision1/src/api/call_builders.rs index 4f0a272c35..d1d57f0024 100644 --- a/gen/vision1/src/api/call_builders.rs +++ b/gen/vision1/src/api/call_builders.rs @@ -4204,7 +4204,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()); @@ -4473,7 +4473,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()); @@ -4758,7 +4758,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()); @@ -5020,7 +5020,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()); @@ -5288,7 +5288,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); } @@ -5587,7 +5587,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -5879,7 +5879,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6171,7 +6171,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6463,7 +6463,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -6755,7 +6755,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7047,7 +7047,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7339,7 +7339,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7631,7 +7631,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -7916,7 +7916,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()); @@ -8182,7 +8182,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -8471,7 +8471,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()); @@ -8765,7 +8765,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._product_set_id.as_ref() { params.push("productSetId", value); } @@ -9060,7 +9060,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()); @@ -9322,7 +9322,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()); @@ -9591,7 +9591,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -9880,7 +9880,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -10171,7 +10171,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -10473,7 +10473,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()); @@ -10767,7 +10767,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._reference_image_id.as_ref() { params.push("referenceImageId", value); } @@ -11062,7 +11062,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()); @@ -11324,7 +11324,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()); @@ -11590,7 +11590,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -11881,7 +11881,7 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); if let Some(value) = self._product_id.as_ref() { params.push("productId", value); } @@ -12176,7 +12176,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()); @@ -12438,7 +12438,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()); @@ -12704,7 +12704,7 @@ where } let mut params = Params::with_capacity(5 + 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); } @@ -12995,7 +12995,7 @@ where } let mut params = Params::with_capacity(5 + 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()); } @@ -13297,7 +13297,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("parent", self._parent); + params.push("parent", &self._parent); params.extend(self._additional_params.iter()); @@ -13582,7 +13582,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()); diff --git a/gen/vision1/src/api/mod.rs b/gen/vision1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/vision1/src/api/mod.rs +++ b/gen/vision1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/vision1/src/api/schemas.rs b/gen/vision1/src/api/schemas.rs index 53e30cc609..7ca7df2ea1 100644 --- a/gen/vision1/src/api/schemas.rs +++ b/gen/vision1/src/api/schemas.rs @@ -337,7 +337,7 @@ pub struct Block { /// Detected block type (text, image etc) for this block. #[serde(rename="blockType")] - pub block_type: Option, + pub block_type: Option, /// The bounding box for the block. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3). #[serde(rename="boundingBox")] @@ -505,7 +505,7 @@ pub struct DetectedBreak { /// Detected break type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for DetectedBreak {} @@ -616,11 +616,11 @@ pub struct FaceAnnotation { /// Anger likelihood. #[serde(rename="angerLikelihood")] - pub anger_likelihood: Option, + pub anger_likelihood: Option, /// Blurred likelihood. #[serde(rename="blurredLikelihood")] - pub blurred_likelihood: Option, + pub blurred_likelihood: Option, /// The bounding polygon around the face. The coordinates of the bounding box are in the original image's scale. The bounding box is computed to "frame" the face in accordance with human expectations. It is based on the landmarker results. Note that one or more x and/or y coordinates may not be generated in the `BoundingPoly` (the polygon will be unbounded) if only a partial face appears in the image to be annotated. #[serde(rename="boundingPoly")] @@ -636,11 +636,11 @@ pub struct FaceAnnotation { /// Headwear likelihood. #[serde(rename="headwearLikelihood")] - pub headwear_likelihood: Option, + pub headwear_likelihood: Option, /// Joy likelihood. #[serde(rename="joyLikelihood")] - pub joy_likelihood: Option, + pub joy_likelihood: Option, /// Face landmarking confidence. Range [0, 1]. #[serde(rename="landmarkingConfidence")] @@ -659,11 +659,11 @@ pub struct FaceAnnotation { /// Sorrow likelihood. #[serde(rename="sorrowLikelihood")] - pub sorrow_likelihood: Option, + pub sorrow_likelihood: Option, /// Surprise likelihood. #[serde(rename="surpriseLikelihood")] - pub surprise_likelihood: Option, + pub surprise_likelihood: Option, /// Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane. Range [-180,180]. #[serde(rename="tiltAngle")] @@ -671,7 +671,7 @@ pub struct FaceAnnotation { /// Under-exposed likelihood. #[serde(rename="underExposedLikelihood")] - pub under_exposed_likelihood: Option, + pub under_exposed_likelihood: Option, } impl client::Part for FaceAnnotation {} @@ -694,7 +694,7 @@ pub struct Feature { /// The feature type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Feature {} @@ -975,7 +975,7 @@ pub struct Landmark { /// Face landmark type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for Landmark {} @@ -1631,19 +1631,19 @@ impl client::Part for Result {} pub struct SafeSearchAnnotation { /// Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities. - pub adult: Option, + pub adult: Option, /// Likelihood that this is a medical image. - pub medical: Option, + pub medical: Option, /// Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas. - pub racy: Option, + pub racy: Option, /// Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive. - pub spoof: Option, + pub spoof: Option, /// Likelihood that this image contains violent content. - pub violence: Option, + pub violence: Option, } impl client::Part for SafeSearchAnnotation {} diff --git a/gen/vmmigration1/src/api/mod.rs b/gen/vmmigration1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/vmmigration1/src/api/mod.rs +++ b/gen/vmmigration1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/vmmigration1/src/api/schemas.rs b/gen/vmmigration1/src/api/schemas.rs index fda6c6e766..561982584b 100644 --- a/gen/vmmigration1/src/api/schemas.rs +++ b/gen/vmmigration1/src/api/schemas.rs @@ -89,7 +89,7 @@ pub struct AppliedLicense { /// The license type that was used in OS adaptation. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for AppliedLicense {} @@ -169,7 +169,7 @@ pub struct AwsSourceDetails { pub public_ip: Option, /// Output only. State of the source as determined by the health check. - pub state: Option, + pub state: Option, } impl client::Part for AwsSourceDetails {} @@ -189,7 +189,7 @@ pub struct AwsSourceVmDetails { pub committed_storage_bytes: Option, /// The firmware type of the source VM. - pub firmware: Option, + pub firmware: Option, } impl client::Part for AwsSourceVmDetails {} @@ -204,11 +204,11 @@ impl client::Part for AwsSourceVmDetails {} pub struct AwsVmDetails { /// The CPU architecture. - pub architecture: Option, + pub architecture: Option, /// The VM Boot Option. #[serde(rename="bootOption")] - pub boot_option: Option, + pub boot_option: Option, /// The total size of the storage allocated to the VM in MB. #[serde(rename="committedStorageMb")] @@ -241,7 +241,7 @@ pub struct AwsVmDetails { /// Output only. The power state of the VM at the moment list was taken. #[serde(rename="powerState")] - pub power_state: Option, + pub power_state: Option, /// The security groups the VM belongs to. #[serde(rename="securityGroups")] @@ -260,7 +260,7 @@ pub struct AwsVmDetails { /// The virtualization type. #[serde(rename="virtualizationType")] - pub virtualization_type: Option, + pub virtualization_type: Option, /// The VM ID in AWS. #[serde(rename="vmId")] @@ -369,7 +369,7 @@ pub struct CloneJob { pub name: Option, /// Output only. State of the clone job. - pub state: Option, + pub state: Option, /// Output only. The time the state was last updated. #[serde(rename="stateTime")] @@ -433,7 +433,7 @@ pub struct ComputeEngineTargetDefaults { /// Output only. The VM Boot Option, as set in the source vm. #[serde(rename="bootOption")] - pub boot_option: Option, + pub boot_option: Option, /// Compute instance scheduling information (if empty default is used). #[serde(rename="computeScheduling")] @@ -441,7 +441,7 @@ pub struct ComputeEngineTargetDefaults { /// The disk type to use in the VM. #[serde(rename="diskType")] - pub disk_type: Option, + pub disk_type: Option, /// The hostname to assign to the VM. pub hostname: Option, @@ -451,7 +451,7 @@ pub struct ComputeEngineTargetDefaults { /// The license type to use in OS adaptation. #[serde(rename="licenseType")] - pub license_type: Option, + pub license_type: Option, /// The machine type to create the VM with. #[serde(rename="machineType")] @@ -513,7 +513,7 @@ pub struct ComputeEngineTargetDetails { /// The VM Boot Option, as set in the source vm. #[serde(rename="bootOption")] - pub boot_option: Option, + pub boot_option: Option, /// Compute instance scheduling information (if empty default is used). #[serde(rename="computeScheduling")] @@ -521,7 +521,7 @@ pub struct ComputeEngineTargetDetails { /// The disk type to use in the VM. #[serde(rename="diskType")] - pub disk_type: Option, + pub disk_type: Option, /// The hostname to assign to the VM. pub hostname: Option, @@ -531,7 +531,7 @@ pub struct ComputeEngineTargetDetails { /// The license type to use in OS adaptation. #[serde(rename="licenseType")] - pub license_type: Option, + pub license_type: Option, /// The machine type to create the VM with. #[serde(rename="machineType")] @@ -592,11 +592,11 @@ pub struct ComputeScheduling { /// How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance. #[serde(rename="onHostMaintenance")] - pub on_host_maintenance: Option, + pub on_host_maintenance: Option, /// Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart. #[serde(rename="restartType")] - pub restart_type: Option, + pub restart_type: Option, } impl client::Part for ComputeScheduling {} @@ -638,7 +638,7 @@ pub struct CutoverJob { pub progress_percent: Option, /// Output only. State of the cutover job. - pub state: Option, + pub state: Option, /// Output only. A message providing possible extra details about the current state. #[serde(rename="stateMessage")] @@ -774,7 +774,7 @@ pub struct DatacenterConnector { pub service_account: Option, /// Output only. State of the DatacenterConnector, as determined by the health checks. - pub state: Option, + pub state: Option, /// Output only. The time the state was last set. #[serde(rename="stateTime")] @@ -1307,7 +1307,7 @@ pub struct MigratingVm { pub source_vm_id: Option, /// Output only. State of the MigratingVm. - pub state: Option, + pub state: Option, /// Output only. The last time the migrating VM state was updated. #[serde(rename="stateTime")] @@ -1530,7 +1530,7 @@ pub struct ReplicationCycle { pub start_time: Option>, /// State of the ReplicationCycle. - pub state: Option, + pub state: Option, /// The cycle's steps list representing its progress. pub steps: Option>, @@ -1608,7 +1608,7 @@ pub struct SchedulingNodeAffinity { pub key: Option, /// The operator to use for the node resources specified in the `values` parameter. - pub operator: Option, + pub operator: Option, /// Corresponds to the label values of Node resource. pub values: Option>, @@ -1800,7 +1800,7 @@ pub struct UpgradeStatus { pub start_time: Option>, /// The state of the upgradeAppliance operation. - pub state: Option, + pub state: Option, /// The version to upgrade to. pub version: Option, @@ -1841,7 +1841,7 @@ pub struct UtilizationReport { pub name: Option, /// Output only. Current state of the report. - pub state: Option, + pub state: Option, /// Output only. The time the state was last set. #[serde(rename="stateTime")] @@ -1849,7 +1849,7 @@ pub struct UtilizationReport { /// Time frame of the report. #[serde(rename="timeFrame")] - pub time_frame: Option, + pub time_frame: Option, /// Output only. Total number of VMs included in the report. #[serde(rename="vmCount")] @@ -1969,7 +1969,7 @@ pub struct VmwareVmDetails { /// Output only. The VM Boot Option. #[serde(rename="bootOption")] - pub boot_option: Option, + pub boot_option: Option, /// The total size of the storage allocated to the VM in MB. #[serde(rename="committedStorageMb")] @@ -2006,7 +2006,7 @@ pub struct VmwareVmDetails { /// The power state of the VM at the moment list was taken. #[serde(rename="powerState")] - pub power_state: Option, + pub power_state: Option, /// The unique identifier of the VM in vCenter. pub uuid: Option, diff --git a/gen/walletobjects1/src/api/mod.rs b/gen/walletobjects1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/walletobjects1/src/api/mod.rs +++ b/gen/walletobjects1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/walletobjects1/src/api/schemas.rs b/gen/walletobjects1/src/api/schemas.rs index 8303dcdf84..6e7ecd332b 100644 --- a/gen/walletobjects1/src/api/schemas.rs +++ b/gen/walletobjects1/src/api/schemas.rs @@ -28,7 +28,7 @@ impl client::Part for ActivationOptions {} pub struct ActivationStatus { /// no description provided - pub state: Option, + pub state: Option, } impl client::Part for ActivationStatus {} @@ -195,7 +195,7 @@ pub struct Barcode { /// The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google. #[serde(rename="renderEncoding")] - pub render_encoding: Option, + pub render_encoding: Option, /// Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google. #[serde(rename="showCodeText")] @@ -203,7 +203,7 @@ pub struct Barcode { /// The type of barcode. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// The value encoded in the barcode. pub value: Option, @@ -273,7 +273,7 @@ pub struct BoardingAndSeatingInfo { /// Set this field only if this flight boards through more than one door or bridge and you want to explicitly print the door location on the boarding pass. Most airlines route their passengers to the right door or bridge by refering to doors/bridges by the `seatClass`. In those cases `boardingDoor` should not be set. #[serde(rename="boardingDoor")] - pub boarding_door: Option, + pub boarding_door: Option, /// The value of boarding group (or zone) this passenger shall board with. eg: "B" The label for this value will be determined by the `boardingPolicy` field in the `flightClass` referenced by this object. #[serde(rename="boardingGroup")] @@ -320,14 +320,14 @@ pub struct BoardingAndSeatingPolicy { /// Indicates the policy the airline uses for boarding. If unset, Google will default to `zoneBased`. #[serde(rename="boardingPolicy")] - pub boarding_policy: Option, + pub boarding_policy: Option, /// Identifies what kind of resource this is. Value: the fixed string `"walletobjects#boardingAndSeatingPolicy"`. pub kind: Option, /// Seating policy which dictates how we display the seat class. If unset, Google will default to `cabinBased`. #[serde(rename="seatClassPolicy")] - pub seat_class_policy: Option, + pub seat_class_policy: Option, } impl client::Part for BoardingAndSeatingPolicy {} @@ -551,7 +551,7 @@ pub struct CompositeMedia { /// Describes what the field reference contains. #[serde(rename="referenceType")] - pub reference_type: Option, + pub reference_type: Option, /// SHA-1 hash for the payload. #[serde(rename="sha1Hash")] @@ -788,7 +788,7 @@ pub struct DiscoverableProgram { pub merchant_signup_info: Option, /// Visibility state of the discoverable program. - pub state: Option, + pub state: Option, } impl client::Part for DiscoverableProgram {} @@ -820,7 +820,7 @@ pub struct DiscoverableProgramMerchantSignupInfo { /// User data that is sent in a POST request to the signup website URL. This information is encoded and then shared so that the merchant's website can prefill fields used to enroll the user for the discoverable program. #[serde(rename="signupSharedDatas")] - pub signup_shared_datas: Option>, + pub signup_shared_datas: Option>, /// The URL to direct the user to for the merchant's signup site. #[serde(rename="signupWebsite")] @@ -868,7 +868,7 @@ pub struct EventDateTime { /// The label to use for the doors open value (`doorsOpen`) on the card detail view. Each available option maps to a set of localized strings, so that translations are shown to the user based on their locale. Both `doorsOpenLabel` and `customDoorsOpenLabel` may not be set. If neither is set, the label will default to "Doors Open", localized. If the doors open field is unset, this label will not be used. #[serde(rename="doorsOpenLabel")] - pub doors_open_label: Option, + pub doors_open_label: Option, /// The date/time when the event ends. If the event spans multiple days, it should be the end date/time on the last day. This is an ISO 8601 extended format date/time, with or without an offset. Time may be specified up to nanosecond precision. Offsets may be specified with seconds precision (even though offset seconds is not part of ISO 8601). For example: `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the event were in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. The portion of the date/time without the offset is considered the "local date/time". This should be the local date/time at the venue. For example, if the event occurs at the 20th hour of June 5th, 2018 at the venue, the local date/time portion should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4 hours before UTC, an offset of `-04:00` may be appended. Without offset information, some rich features may not be available. pub end: Option, @@ -958,7 +958,7 @@ pub struct EventTicketClass { /// The label to use for the confirmation code value (`eventTicketObject.reservationInfo.confirmationCode`) on the card detail view. Each available option maps to a set of localized strings, so that translations are shown to the user based on their locale. Both `confirmationCodeLabel` and `customConfirmationCodeLabel` may not be set. If neither is set, the label will default to "Confirmation Code", localized. If the confirmation code field is unset, this label will not be used. #[serde(rename="confirmationCodeLabel")] - pub confirmation_code_label: Option, + pub confirmation_code_label: Option, /// Country code used to display the card's country (when the user is not in that country), as well as to display localized content when content is not available in the user's locale. #[serde(rename="countryCode")] @@ -1006,7 +1006,7 @@ pub struct EventTicketClass { /// The label to use for the gate value (`eventTicketObject.seatInfo.gate`) on the card detail view. Each available option maps to a set of localized strings, so that translations are shown to the user based on their locale. Both `gateLabel` and `customGateLabel` may not be set. If neither is set, the label will default to "Gate", localized. If the gate field is unset, this label will not be used. #[serde(rename="gateLabel")] - pub gate_label: Option, + pub gate_label: Option, /// Optional banner image displayed on the front of the card. If none is present, nothing will be displayed. The image will display at 100% width. #[serde(rename="heroImage")] @@ -1057,7 +1057,7 @@ pub struct EventTicketClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap. #[serde(rename="redemptionIssuers")] @@ -1069,19 +1069,19 @@ pub struct EventTicketClass { /// Required. The status of the class. This field can be set to `draft` or `underReview` using the insert, patch, or update API calls. Once the review state is changed from `draft` it may not be changed back to `draft`. You should keep this field to `draft` when the class is under development. A `draft` class cannot be used to create any object. You should set this field to `underReview` when you believe the class is ready for use. The platform will automatically set this field to `approved` and it can be immediately used to create or migrate objects. When updating an already `approved` class you should keep setting this field to `underReview`. #[serde(rename="reviewStatus")] - pub review_status: Option, + pub review_status: Option, /// The label to use for the row value (`eventTicketObject.seatInfo.row`) on the card detail view. Each available option maps to a set of localized strings, so that translations are shown to the user based on their locale. Both `rowLabel` and `customRowLabel` may not be set. If neither is set, the label will default to "Row", localized. If the row field is unset, this label will not be used. #[serde(rename="rowLabel")] - pub row_label: Option, + pub row_label: Option, /// The label to use for the seat value (`eventTicketObject.seatInfo.seat`) on the card detail view. Each available option maps to a set of localized strings, so that translations are shown to the user based on their locale. Both `seatLabel` and `customSeatLabel` may not be set. If neither is set, the label will default to "Seat", localized. If the seat field is unset, this label will not be used. #[serde(rename="seatLabel")] - pub seat_label: Option, + pub seat_label: Option, /// The label to use for the section value (`eventTicketObject.seatInfo.section`) on the card detail view. Each available option maps to a set of localized strings, so that translations are shown to the user based on their locale. Both `sectionLabel` and `customSectionLabel` may not be set. If neither is set, the label will default to "Section", localized. If the section field is unset, this label will not be used. #[serde(rename="sectionLabel")] - pub section_label: Option, + pub section_label: Option, /// Optional information about the security animation. If this is set a security animation will be rendered on pass details. #[serde(rename="securityAnimation")] @@ -1100,7 +1100,7 @@ pub struct EventTicketClass { /// View Unlock Requirement options for the event ticket. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, /// Deprecated. #[serde(rename="wordMark")] @@ -1256,7 +1256,7 @@ pub struct EventTicketObject { pub smart_tap_redemption_value: Option, /// Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. - pub state: Option, + pub state: Option, /// Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. #[serde(rename="textModulesData")] @@ -1375,7 +1375,7 @@ pub struct FieldReference { /// Only valid if the `fieldPath` references a date field. Chooses how the date field will be formatted and displayed in the UI. #[serde(rename="dateFormat")] - pub date_format: Option, + pub date_format: Option, /// Path to the field being referenced, prefixed with "object" or "class" and separated with dots. For example, it may be the string "object.purchaseDetails.purchasePrice". #[serde(rename="fieldPath")] @@ -1414,7 +1414,7 @@ pub struct FirstRowOption { /// no description provided #[serde(rename="transitOption")] - pub transit_option: Option, + pub transit_option: Option, } impl client::Part for FirstRowOption {} @@ -1503,7 +1503,7 @@ pub struct FlightClass { /// Status of this flight. If unset, Google will compute status based on data from other sources, such as FlightStats, etc. Note: Google-computed status will not be returned in API responses. #[serde(rename="flightStatus")] - pub flight_status: Option, + pub flight_status: Option, /// Optional banner image displayed on the front of the card. If none is present, nothing will be displayed. The image will display at 100% width. #[serde(rename="heroImage")] @@ -1579,7 +1579,7 @@ pub struct FlightClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// Required. Origin airport. pub origin: Option, @@ -1594,7 +1594,7 @@ pub struct FlightClass { /// Required. The status of the class. This field can be set to `draft` or `underReview` using the insert, patch, or update API calls. Once the review state is changed from `draft` it may not be changed back to `draft`. You should keep this field to `draft` when the class is under development. A `draft` class cannot be used to create any object. You should set this field to `underReview` when you believe the class is ready for use. The platform will automatically set this field to `approved` and it can be immediately used to create or migrate objects. When updating an already `approved` class you should keep setting this field to `underReview`. #[serde(rename="reviewStatus")] - pub review_status: Option, + pub review_status: Option, /// Optional information about the security animation. If this is set a security animation will be rendered on pass details. #[serde(rename="securityAnimation")] @@ -1610,7 +1610,7 @@ pub struct FlightClass { /// View Unlock Requirement options for the boarding pass. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, /// Deprecated. #[serde(rename="wordMark")] @@ -1799,7 +1799,7 @@ pub struct FlightObject { pub smart_tap_redemption_value: Option, /// Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. - pub state: Option, + pub state: Option, /// Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. #[serde(rename="textModulesData")] @@ -1922,7 +1922,7 @@ pub struct GenericClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap. #[serde(rename="redemptionIssuers")] @@ -1939,7 +1939,7 @@ pub struct GenericClass { /// View Unlock Requirement options for the generic pass. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, } impl client::RequestValue for GenericClass {} @@ -2000,7 +2000,7 @@ pub struct GenericObject { /// Specify which `GenericType` the card belongs to. Deprecated. #[serde(rename="genericType")] - pub generic_type: Option, + pub generic_type: Option, /// Information that controls how passes are grouped together. #[serde(rename="groupingInfo")] @@ -2047,7 +2047,7 @@ pub struct GenericObject { pub smart_tap_redemption_value: Option, /// The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. If this is not provided, the object would be considered `ACTIVE`. - pub state: Option, + pub state: Option, /// The title label of the pass, such as location where this pass can be used. Appears right above the title in the title row in the pass detail view. pub subheader: Option, @@ -2200,7 +2200,7 @@ pub struct GiftCardClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// The label to display for the PIN, such as "4-digit PIN". #[serde(rename="pinLabel")] @@ -2220,7 +2220,7 @@ pub struct GiftCardClass { /// Required. The status of the class. This field can be set to `draft` or `underReview` using the insert, patch, or update API calls. Once the review state is changed from `draft` it may not be changed back to `draft`. You should keep this field to `draft` when the class is under development. A `draft` class cannot be used to create any object. You should set this field to `underReview` when you believe the class is ready for use. The platform will automatically set this field to `approved` and it can be immediately used to create or migrate objects. When updating an already `approved` class you should keep setting this field to `underReview`. #[serde(rename="reviewStatus")] - pub review_status: Option, + pub review_status: Option, /// Optional information about the security animation. If this is set a security animation will be rendered on pass details. #[serde(rename="securityAnimation")] @@ -2236,7 +2236,7 @@ pub struct GiftCardClass { /// View Unlock Requirement options for the gift card. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, /// Deprecated. #[serde(rename="wordMark")] @@ -2389,7 +2389,7 @@ pub struct GiftCardObject { pub smart_tap_redemption_value: Option, /// Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. - pub state: Option, + pub state: Option, /// Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. #[serde(rename="textModulesData")] @@ -2646,7 +2646,7 @@ impl client::ResponseResult for IssuerListResponse {} pub struct IssuerToUserInfo { /// no description provided - pub action: Option, + pub action: Option, /// no description provided #[serde(rename="signUpInfo")] @@ -2949,7 +2949,7 @@ pub struct LoyaltyClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// Required. The logo of the loyalty program or company. This logo is displayed in both the details and list views of the app. #[serde(rename="programLogo")] @@ -2969,7 +2969,7 @@ pub struct LoyaltyClass { /// Required. The status of the class. This field can be set to `draft` or `underReview` using the insert, patch, or update API calls. Once the review state is changed from `draft` it may not be changed back to `draft`. You should keep this field to `draft` when the class is under development. A `draft` class cannot be used to create any object. You should set this field to `underReview` when you believe the class is ready for use. The platform will automatically set this field to `approved` and it can be immediately used to create or migrate objects. When updating an already `approved` class you should keep setting this field to `underReview`. #[serde(rename="reviewStatus")] - pub review_status: Option, + pub review_status: Option, /// The rewards tier, such as "Gold" or "Platinum." Recommended maximum length is 7 characters to ensure full string is displayed on smaller screens. #[serde(rename="rewardsTier")] @@ -3001,7 +3001,7 @@ pub struct LoyaltyClass { /// View Unlock Requirement options for the loyalty card. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, /// Deprecated. #[serde(rename="wordMark")] @@ -3157,7 +3157,7 @@ pub struct LoyaltyObject { pub smart_tap_redemption_value: Option, /// Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. - pub state: Option, + pub state: Option, /// Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. #[serde(rename="textModulesData")] @@ -3374,7 +3374,7 @@ pub struct Media { /// Describes what the field reference contains. #[serde(rename="referenceType")] - pub reference_type: Option, + pub reference_type: Option, /// Scotty-provided SHA1 hash for an upload. #[serde(rename="sha1Hash")] @@ -3424,7 +3424,7 @@ pub struct MediaRequestInfo { /// The type of notification received from Scotty. #[serde(rename="notificationType")] - pub notification_type: Option, + pub notification_type: Option, /// The Scotty request ID. #[serde(rename="requestId")] @@ -3477,7 +3477,7 @@ pub struct Message { /// The type of the message. Currently, this can only be set for offers. #[serde(rename="messageType")] - pub message_type: Option, + pub message_type: Option, } impl client::Part for Message {} @@ -3703,14 +3703,14 @@ pub struct OfferClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// Required. The offer provider (either the aggregator name or merchant name). Recommended maximum length is 12 characters to ensure full string is displayed on smaller screens. pub provider: Option, /// Required. The redemption channels applicable to this offer. #[serde(rename="redemptionChannel")] - pub redemption_channel: Option, + pub redemption_channel: Option, /// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap. #[serde(rename="redemptionIssuers")] @@ -3722,7 +3722,7 @@ pub struct OfferClass { /// Required. The status of the class. This field can be set to `draft` or The status of the class. This field can be set to `draft` or `underReview` using the insert, patch, or update API calls. Once the review state is changed from `draft` it may not be changed back to `draft`. You should keep this field to `draft` when the class is under development. A `draft` class cannot be used to create any object. You should set this field to `underReview` when you believe the class is ready for use. The platform will automatically set this field to `approved` and it can be immediately used to create or migrate objects. When updating an already `approved` class you should keep setting this field to `underReview`. #[serde(rename="reviewStatus")] - pub review_status: Option, + pub review_status: Option, /// Optional information about the security animation. If this is set a security animation will be rendered on pass details. #[serde(rename="securityAnimation")] @@ -3749,7 +3749,7 @@ pub struct OfferClass { /// View Unlock Requirement options for the offer. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, /// Deprecated. #[serde(rename="wordMark")] @@ -3884,7 +3884,7 @@ pub struct OfferObject { pub smart_tap_redemption_value: Option, /// Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. - pub state: Option, + pub state: Option, /// Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. #[serde(rename="textModulesData")] @@ -3985,7 +3985,7 @@ pub struct Permission { pub email_address: Option, /// The role granted by this permission. - pub role: Option, + pub role: Option, } impl client::Resource for Permission {} @@ -4201,7 +4201,7 @@ pub struct RotatingBarcode { /// The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google. #[serde(rename="renderEncoding")] - pub render_encoding: Option, + pub render_encoding: Option, /// Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google. #[serde(rename="showCodeText")] @@ -4213,7 +4213,7 @@ pub struct RotatingBarcode { /// The type of this barcode. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// String encoded barcode value. This string supports the following substitutions: * {totp_value_n}: Replaced with the TOTP value (see TotpDetails.parameters). * {totp_timestamp_millis}: Replaced with the timestamp (millis since epoch) at which the barcode was generated. * {totp_timestamp_seconds}: Replaced with the timestamp (seconds since epoch) at which the barcode was generated. #[serde(rename="valuePattern")] @@ -4232,7 +4232,7 @@ impl client::Part for RotatingBarcode {} pub struct RotatingBarcodeTotpDetails { /// The TOTP algorithm used to generate the OTP. - pub algorithm: Option, + pub algorithm: Option, /// The TOTP parameters for each of the {totp_value_*} substitutions. The TotpParameters at index n is used for the {totp_value_n} substitution. pub parameters: Option>, @@ -4275,7 +4275,7 @@ pub struct SecurityAnimation { /// Type of animation. #[serde(rename="animationType")] - pub animation_type: Option, + pub animation_type: Option, } impl client::Part for SecurityAnimation {} @@ -4363,7 +4363,7 @@ pub struct TemplateItem { /// A predefined item to display. Only one of `firstValue` or `predefinedItem` may be set. #[serde(rename="predefinedItem")] - pub predefined_item: Option, + pub predefined_item: Option, /// A reference to a field to display. This may only be populated if the `firstValue` field is populated. #[serde(rename="secondValue")] @@ -4536,7 +4536,7 @@ pub struct TicketSeat { /// The fare class of the ticketed seat. #[serde(rename="fareClass")] - pub fare_class: Option, + pub fare_class: Option, /// The identifier of where the ticketed seat is located. Eg. "42". If there is no specific identifier, use `seatAssigment` instead. pub seat: Option, @@ -4739,7 +4739,7 @@ pub struct TransitClass { /// Identifies whether multiple users and devices will save the same object referencing this class. #[serde(rename="multipleDevicesAndHoldersAllowedStatus")] - pub multiple_devices_and_holders_allowed_status: Option, + pub multiple_devices_and_holders_allowed_status: Option, /// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap. #[serde(rename="redemptionIssuers")] @@ -4751,7 +4751,7 @@ pub struct TransitClass { /// Required. The status of the class. This field can be set to `draft` or `underReview` using the insert, patch, or update API calls. Once the review state is changed from `draft` it may not be changed back to `draft`. You should keep this field to `draft` when the class is under development. A `draft` class cannot be used to create any object. You should set this field to `underReview` when you believe the class is ready for use. The platform will automatically set this field to `approved` and it can be immediately used to create or migrate objects. When updating an already `approved` class you should keep setting this field to `underReview`. #[serde(rename="reviewStatus")] - pub review_status: Option, + pub review_status: Option, /// Optional information about the security animation. If this is set a security animation will be rendered on pass details. #[serde(rename="securityAnimation")] @@ -4767,7 +4767,7 @@ pub struct TransitClass { /// Required. The type of transit this class represents, such as "bus". #[serde(rename="transitType")] - pub transit_type: Option, + pub transit_type: Option, /// Deprecated #[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")] @@ -4775,7 +4775,7 @@ pub struct TransitClass { /// View Unlock Requirement options for the transit ticket. #[serde(rename="viewUnlockRequirement")] - pub view_unlock_requirement: Option, + pub view_unlock_requirement: Option, /// Watermark image to display on the user's device. pub watermark: Option, @@ -4866,7 +4866,7 @@ pub struct TransitObject { /// The concession category for the ticket. #[serde(rename="concessionCategory")] - pub concession_category: Option, + pub concession_category: Option, /// A custom concession category to use when `concessionCategory` does not provide the right option. Both `concessionCategory` and `customConcessionCategory` may not be set. #[serde(rename="customConcessionCategory")] @@ -4931,7 +4931,7 @@ pub struct TransitObject { /// The number of passengers. #[serde(rename="passengerType")] - pub passenger_type: Option, + pub passenger_type: Option, /// Purchase details for this ticket. #[serde(rename="purchaseDetails")] @@ -4946,7 +4946,7 @@ pub struct TransitObject { pub smart_tap_redemption_value: Option, /// Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an `inactive` object is moved to the "Expired passes" section. - pub state: Option, + pub state: Option, /// Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. #[serde(rename="textModulesData")] @@ -4970,7 +4970,7 @@ pub struct TransitObject { /// The status of the ticket. For states which affect display, use the `state` field instead. #[serde(rename="ticketStatus")] - pub ticket_status: Option, + pub ticket_status: Option, /// This id is used to group tickets together if the user has saved multiple tickets for the same trip. #[serde(rename="tripId")] @@ -4978,7 +4978,7 @@ pub struct TransitObject { /// Required. The type of trip this transit object represents. Used to determine the pass title and/or which symbol to use between the origin and destination. #[serde(rename="tripType")] - pub trip_type: Option, + pub trip_type: Option, /// The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. #[serde(rename="validTimeInterval")] diff --git a/gen/webfonts1/src/api/call_builders.rs b/gen/webfonts1/src/api/call_builders.rs index 727a6884d1..4d75a92458 100644 --- a/gen/webfonts1/src/api/call_builders.rs +++ b/gen/webfonts1/src/api/call_builders.rs @@ -26,7 +26,7 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.webfonts().list() -/// .sort("ipsum") +/// .sort(&Default::default()) /// .doit().await; /// # } /// ``` @@ -34,7 +34,7 @@ pub struct WebfontListCall<'a, S> where S: 'a { pub(super) hub: &'a Webfonts, - pub(super) _sort: Option, + pub(super) _sort: Option, pub(super) _delegate: Option<&'a mut dyn client::Delegate>, pub(super) _additional_params: HashMap, } @@ -163,8 +163,8 @@ where /// Enables sorting of the list. /// /// Sets the *sort* query property to the given value. - pub fn sort(mut self, new_value: &str) -> WebfontListCall<'a, S> { - self._sort = Some(new_value.to_string()); + pub fn sort(mut self, new_value: &WebfontSortEnum) -> WebfontListCall<'a, S> { + self._sort = Some(new_value.clone()); self } /// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong diff --git a/gen/webfonts1/src/api/hub.rs b/gen/webfonts1/src/api/hub.rs index 162b638025..2e366cd0bc 100644 --- a/gen/webfonts1/src/api/hub.rs +++ b/gen/webfonts1/src/api/hub.rs @@ -32,7 +32,7 @@ use super::*; /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.webfonts().list() -/// .sort("no") +/// .sort(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/webfonts1/src/api/mod.rs b/gen/webfonts1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/webfonts1/src/api/mod.rs +++ b/gen/webfonts1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/webmasters3/src/api/call_builders.rs b/gen/webmasters3/src/api/call_builders.rs index a065d365e3..acb5065761 100644 --- a/gen/webmasters3/src/api/call_builders.rs +++ b/gen/webmasters3/src/api/call_builders.rs @@ -829,7 +829,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); @@ -1111,8 +1111,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("siteUrl", self._site_url); - params.push("feedpath", self._feedpath); + params.push("siteUrl", &self._site_url); + params.push("feedpath", &self._feedpath); params.extend(self._additional_params.iter()); @@ -1370,8 +1370,8 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("siteUrl", self._site_url); - params.push("feedpath", self._feedpath); + params.push("siteUrl", &self._site_url); + params.push("feedpath", &self._feedpath); params.extend(self._additional_params.iter()); @@ -1641,7 +1641,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); if let Some(value) = self._sitemap_index.as_ref() { params.push("sitemapIndex", value); } @@ -1910,8 +1910,8 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("siteUrl", self._site_url); - params.push("feedpath", self._feedpath); + params.push("siteUrl", &self._site_url); + params.push("feedpath", &self._feedpath); params.extend(self._additional_params.iter()); @@ -2168,7 +2168,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); @@ -2415,7 +2415,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); @@ -2662,7 +2662,7 @@ where } let mut params = Params::with_capacity(3 + self._additional_params.len()); - params.push("siteUrl", self._site_url); + params.push("siteUrl", &self._site_url); params.extend(self._additional_params.iter()); diff --git a/gen/webmasters3/src/api/mod.rs b/gen/webmasters3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/webmasters3/src/api/mod.rs +++ b/gen/webmasters3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/webrisk1/src/api/mod.rs b/gen/webrisk1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/webrisk1/src/api/mod.rs +++ b/gen/webrisk1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/webrisk1/src/api/schemas.rs b/gen/webrisk1/src/api/schemas.rs index f9421d6e48..673c3eb4e4 100644 --- a/gen/webrisk1/src/api/schemas.rs +++ b/gen/webrisk1/src/api/schemas.rs @@ -31,7 +31,7 @@ pub struct GoogleCloudWebriskV1ComputeThreatListDiffResponse { /// The type of response. This may indicate that an action must be taken by the client when the response is received. #[serde(rename="responseType")] - pub response_type: Option, + pub response_type: Option, } impl client::ResponseResult for GoogleCloudWebriskV1ComputeThreatListDiffResponse {} @@ -160,7 +160,7 @@ pub struct GoogleCloudWebriskV1SearchHashesResponseThreatHash { /// The ThreatList this threat belongs to. This must contain at least one entry. #[serde(rename="threatTypes")] - pub threat_types: Option>, + pub threat_types: Option>, } impl client::Part for GoogleCloudWebriskV1SearchHashesResponseThreatHash {} @@ -199,7 +199,7 @@ pub struct GoogleCloudWebriskV1SearchUrisResponseThreatUri { /// The ThreatList this threat belongs to. #[serde(rename="threatTypes")] - pub threat_types: Option>, + pub threat_types: Option>, } impl client::Part for GoogleCloudWebriskV1SearchUrisResponseThreatUri {} @@ -219,7 +219,7 @@ pub struct GoogleCloudWebriskV1Submission { /// ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list. #[serde(rename="threatTypes")] - pub threat_types: Option>, + pub threat_types: Option>, /// Required. The URI that is being reported for malicious content to be analyzed. pub uri: Option, diff --git a/gen/workflowexecutions1/src/api/mod.rs b/gen/workflowexecutions1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/workflowexecutions1/src/api/mod.rs +++ b/gen/workflowexecutions1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/workflowexecutions1/src/api/schemas.rs b/gen/workflowexecutions1/src/api/schemas.rs index fa469107e7..33d8e504e0 100644 --- a/gen/workflowexecutions1/src/api/schemas.rs +++ b/gen/workflowexecutions1/src/api/schemas.rs @@ -56,7 +56,7 @@ pub struct Execution { /// The call logging level associated to this execution. #[serde(rename="callLogLevel")] - pub call_log_level: Option, + pub call_log_level: Option, /// Output only. Measures the duration of the execution. #[serde_as(as = "Option<::client::serde::duration::Wrapper>")] @@ -80,7 +80,7 @@ pub struct Execution { pub start_time: Option>, /// Output only. Current state of the execution. - pub state: Option, + pub state: Option, /// Output only. Status tracks the current steps and progress data of this execution. pub status: Option, diff --git a/gen/workflows1/src/api/mod.rs b/gen/workflows1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/workflows1/src/api/mod.rs +++ b/gen/workflows1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/workflows1/src/api/schemas.rs b/gen/workflows1/src/api/schemas.rs index f2ad302951..add2ec57f6 100644 --- a/gen/workflows1/src/api/schemas.rs +++ b/gen/workflows1/src/api/schemas.rs @@ -218,7 +218,7 @@ pub struct Workflow { pub source_contents: Option, /// Output only. State of the workflow deployment. - pub state: Option, + pub state: Option, /// Output only. The timestamp for when the workflow was last updated. #[serde(rename="updateTime")] diff --git a/gen/youtube3/README.md b/gen/youtube3/README.md index a0b5dd8153..1dd296ceb6 100644 --- a/gen/youtube3/README.md +++ b/gen/youtube3/README.md @@ -180,14 +180,14 @@ let result = hub.videos().list(&vec!["et".into()]) .region_code("no") .page_token("ipsum") .on_behalf_of_content_owner("voluptua.") - .my_rating("At") - .max_width(-8) - .max_results(21) - .max_height(-2) - .locale("takimata") - .add_id("amet.") - .hl("duo") - .chart("ipsum") + .my_rating(&Default::default()) + .max_width(-27) + .max_results(93) + .max_height(-80) + .locale("amet.") + .add_id("takimata") + .hl("amet.") + .chart(&Default::default()) .doit().await; match result { diff --git a/gen/youtube3/src/api/hub.rs b/gen/youtube3/src/api/hub.rs index 10504f2f62..cee682d42d 100644 --- a/gen/youtube3/src/api/hub.rs +++ b/gen/youtube3/src/api/hub.rs @@ -31,19 +31,19 @@ use super::*; /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! -/// let result = hub.videos().list(&vec!["gubergren".into()]) -/// .video_category_id("rebum.") -/// .region_code("est") -/// .page_token("ipsum") -/// .on_behalf_of_content_owner("ipsum") -/// .my_rating("est") -/// .max_width(-62) -/// .max_results(84) -/// .max_height(-99) -/// .locale("Lorem") -/// .add_id("eos") -/// .hl("labore") -/// .chart("sed") +/// let result = hub.videos().list(&vec!["duo".into()]) +/// .video_category_id("ipsum") +/// .region_code("sed") +/// .page_token("ut") +/// .on_behalf_of_content_owner("gubergren") +/// .my_rating(&Default::default()) +/// .max_width(-16) +/// .max_results(44) +/// .max_height(-50) +/// .locale("ipsum") +/// .add_id("est") +/// .hl("gubergren") +/// .chart(&Default::default()) /// .doit().await; /// /// match result { diff --git a/gen/youtube3/src/api/method_builders.rs b/gen/youtube3/src/api/method_builders.rs index d09f8f88b0..14e2500a52 100644 --- a/gen/youtube3/src/api/method_builders.rs +++ b/gen/youtube3/src/api/method_builders.rs @@ -759,11 +759,11 @@ impl<'a, S> CommentMethods<'a, S> { /// /// * `id` - Modifies the moderation status of the comments with the given IDs /// * `moderationStatus` - Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED. - pub fn set_moderation_status(&self, id: &Vec, moderation_status: &str) -> CommentSetModerationStatuCall<'a, S> { + pub fn set_moderation_status(&self, id: &Vec, moderation_status: &CommentModerationStatusEnum) -> CommentSetModerationStatuCall<'a, S> { CommentSetModerationStatuCall { hub: self.hub, _id: id.clone(), - _moderation_status: moderation_status.to_string(), + _moderation_status: moderation_status.clone(), _ban_author: Default::default(), _delegate: Default::default(), _additional_params: Default::default(), @@ -1068,10 +1068,10 @@ impl<'a, S> LiveBroadcastMethods<'a, S> { /// * `broadcastStatus` - The status to which the broadcast is going to transition. /// * `id` - Broadcast to transition. /// * `part` - The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. - pub fn transition(&self, broadcast_status: &str, id: &str, part: &Vec) -> LiveBroadcastTransitionCall<'a, S> { + pub fn transition(&self, broadcast_status: &LiveBroadcastBroadcastStatusEnum, id: &str, part: &Vec) -> LiveBroadcastTransitionCall<'a, S> { LiveBroadcastTransitionCall { hub: self.hub, - _broadcast_status: broadcast_status.to_string(), + _broadcast_status: broadcast_status.clone(), _id: id.to_string(), _part: part.clone(), _on_behalf_of_content_owner_channel: Default::default(), @@ -2247,11 +2247,11 @@ impl<'a, S> ThirdPartyLinkMethods<'a, S> { /// /// * `linkingToken` - Delete the partner links with the given linking token. /// * `type` - Type of the link to be deleted. - pub fn delete(&self, linking_token: &str, type_: &str) -> ThirdPartyLinkDeleteCall<'a, S> { + pub fn delete(&self, linking_token: &str, type_: &ThirdPartyLinkTypeEnum) -> ThirdPartyLinkDeleteCall<'a, S> { ThirdPartyLinkDeleteCall { hub: self.hub, _linking_token: linking_token.to_string(), - _type_: type_.to_string(), + _type_: type_.clone(), _part: Default::default(), _external_channel_id: Default::default(), _delegate: Default::default(), @@ -2636,11 +2636,11 @@ impl<'a, S> VideoMethods<'a, S> { /// /// * `id` - No description provided. /// * `rating` - No description provided. - pub fn rate(&self, id: &str, rating: &str) -> VideoRateCall<'a, S> { + pub fn rate(&self, id: &str, rating: &VideoRatingEnum) -> VideoRateCall<'a, S> { VideoRateCall { hub: self.hub, _id: id.to_string(), - _rating: rating.to_string(), + _rating: rating.clone(), _delegate: Default::default(), _additional_params: Default::default(), _scopes: Default::default(), diff --git a/gen/youtube3/src/api/mod.rs b/gen/youtube3/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/youtube3/src/api/mod.rs +++ b/gen/youtube3/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/youtube3/src/api/schemas.rs b/gen/youtube3/src/api/schemas.rs index 8be46992c7..32d3a30384 100644 --- a/gen/youtube3/src/api/schemas.rs +++ b/gen/youtube3/src/api/schemas.rs @@ -280,7 +280,7 @@ pub struct ActivityContentDetailsPromotedItem { /// The type of call-to-action, a message to the user indicating action that can be taken. #[serde(rename="ctaType")] - pub cta_type: Option, + pub cta_type: Option, /// The custom call-to-action button text. If specified, it will override the default button text for the cta_type. #[serde(rename="customCtaButtonText")] @@ -319,7 +319,7 @@ impl client::Part for ActivityContentDetailsPromotedItem {} pub struct ActivityContentDetailsRecommendation { /// The reason that the resource is recommended to the user. - pub reason: Option, + pub reason: Option, /// The resourceId object contains information that identifies the recommended resource. #[serde(rename="resourceId")] @@ -358,7 +358,7 @@ pub struct ActivityContentDetailsSocial { /// The name of the social network. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ActivityContentDetailsSocial {} @@ -499,7 +499,7 @@ pub struct ActivitySnippet { /// The type of activity that the resource describes. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ActivitySnippet {} @@ -611,11 +611,11 @@ pub struct CaptionSnippet { /// The type of audio track associated with the caption track. #[serde(rename="audioTrackType")] - pub audio_track_type: Option, + pub audio_track_type: Option, /// The reason that YouTube failed to process the caption track. This property is only present if the state property's value is failed. #[serde(rename="failureReason")] - pub failure_reason: Option, + pub failure_reason: Option, /// Indicates whether YouTube synchronized the caption track to the audio track in the video. The value will be true if a sync was explicitly requested when the caption track was uploaded. For example, when calling the captions.insert or captions.update methods, you can set the sync parameter to true to instruct YouTube to sync the uploaded track to the video. If the value is false, YouTube uses the time codes in the uploaded caption track to determine when to display captions. #[serde(rename="isAutoSynced")] @@ -648,11 +648,11 @@ pub struct CaptionSnippet { pub name: Option, /// The caption track's status. - pub status: Option, + pub status: Option, /// The caption track's type. #[serde(rename="trackKind")] - pub track_kind: Option, + pub track_kind: Option, /// The ID that YouTube uses to uniquely identify the video associated with the caption track. @mutable youtube.captions.insert #[serde(rename="videoId")] @@ -675,7 +675,7 @@ pub struct CdnSettings { /// The frame rate of the inbound video data. #[serde(rename="frameRate")] - pub frame_rate: Option, + pub frame_rate: Option, /// The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube. #[serde(rename="ingestionInfo")] @@ -683,10 +683,10 @@ pub struct CdnSettings { /// The method or protocol used to transmit the video stream. #[serde(rename="ingestionType")] - pub ingestion_type: Option, + pub ingestion_type: Option, /// The resolution of the inbound video data. - pub resolution: Option, + pub resolution: Option, } impl client::Part for CdnSettings {} @@ -898,7 +898,7 @@ impl client::Part for ChannelContentOwnerDetails {} pub struct ChannelConversionPing { /// Defines the context of the ping. - pub context: Option, + pub context: Option, /// The url (without the schema) that the player shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping. #[serde(rename="conversionUrl")] @@ -1201,14 +1201,14 @@ pub struct ChannelSectionSnippet { pub position: Option, /// The style of the channel section. - pub style: Option, + pub style: Option, /// The channel section's title for multiple_playlists and multiple_channels. pub title: Option, /// The type of the channel section. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ChannelSectionSnippet {} @@ -1388,7 +1388,7 @@ pub struct ChannelStatus { /// The long uploads status of this channel. See https://support.google.com/youtube/answer/71673 for more information. #[serde(rename="longUploadsStatus")] - pub long_uploads_status: Option, + pub long_uploads_status: Option, /// no description provided #[serde(rename="madeForKids")] @@ -1396,7 +1396,7 @@ pub struct ChannelStatus { /// Privacy status of the channel. #[serde(rename="privacyStatus")] - pub privacy_status: Option, + pub privacy_status: Option, /// no description provided #[serde(rename="selfDeclaredMadeForKids")] @@ -1601,7 +1601,7 @@ pub struct CommentSnippet { /// The comment's moderation status. Will not be set if the comments were requested through the id filter. #[serde(rename="moderationStatus")] - pub moderation_status: Option, + pub moderation_status: Option, /// The unique id of the parent comment, only set for replies. #[serde(rename="parentId")] @@ -1629,7 +1629,7 @@ pub struct CommentSnippet { /// The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future. #[serde(rename="viewerRating")] - pub viewer_rating: Option, + pub viewer_rating: Option, } impl client::Part for CommentSnippet {} @@ -1824,287 +1824,287 @@ pub struct ContentRating { /// The video's Australian Classification Board (ACB) or Australian Communications and Media Authority (ACMA) rating. ACMA ratings are used to classify children's television programming. #[serde(rename="acbRating")] - pub acb_rating: Option, + pub acb_rating: Option, /// The video's rating from Italy's Autorità per le Garanzie nelle Comunicazioni (AGCOM). #[serde(rename="agcomRating")] - pub agcom_rating: Option, + pub agcom_rating: Option, /// The video's Anatel (Asociación Nacional de Televisión) rating for Chilean television. #[serde(rename="anatelRating")] - pub anatel_rating: Option, + pub anatel_rating: Option, /// The video's British Board of Film Classification (BBFC) rating. #[serde(rename="bbfcRating")] - pub bbfc_rating: Option, + pub bbfc_rating: Option, /// The video's rating from Thailand's Board of Film and Video Censors. #[serde(rename="bfvcRating")] - pub bfvc_rating: Option, + pub bfvc_rating: Option, /// The video's rating from the Austrian Board of Media Classification (Bundesministerium für Unterricht, Kunst und Kultur). #[serde(rename="bmukkRating")] - pub bmukk_rating: Option, + pub bmukk_rating: Option, /// Rating system for Canadian TV - Canadian TV Classification System The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian English-language broadcasts. For more information, see the Canadian Broadcast Standards Council website. #[serde(rename="catvRating")] - pub catv_rating: Option, + pub catv_rating: Option, /// The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian French-language broadcasts. For more information, see the Canadian Broadcast Standards Council website. #[serde(rename="catvfrRating")] - pub catvfr_rating: Option, + pub catvfr_rating: Option, /// The video's Central Board of Film Certification (CBFC - India) rating. #[serde(rename="cbfcRating")] - pub cbfc_rating: Option, + pub cbfc_rating: Option, /// The video's Consejo de Calificación Cinematográfica (Chile) rating. #[serde(rename="cccRating")] - pub ccc_rating: Option, + pub ccc_rating: Option, /// The video's rating from Portugal's Comissão de Classificação de Espect´culos. #[serde(rename="cceRating")] - pub cce_rating: Option, + pub cce_rating: Option, /// The video's rating in Switzerland. #[serde(rename="chfilmRating")] - pub chfilm_rating: Option, + pub chfilm_rating: Option, /// The video's Canadian Home Video Rating System (CHVRS) rating. #[serde(rename="chvrsRating")] - pub chvrs_rating: Option, + pub chvrs_rating: Option, /// The video's rating from the Commission de Contrôle des Films (Belgium). #[serde(rename="cicfRating")] - pub cicf_rating: Option, + pub cicf_rating: Option, /// The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI (CNA). #[serde(rename="cnaRating")] - pub cna_rating: Option, + pub cna_rating: Option, /// Rating system in France - Commission de classification cinematographique #[serde(rename="cncRating")] - pub cnc_rating: Option, + pub cnc_rating: Option, /// The video's rating from France's Conseil supérieur de l’audiovisuel, which rates broadcast content. #[serde(rename="csaRating")] - pub csa_rating: Option, + pub csa_rating: Option, /// The video's rating from Luxembourg's Commission de surveillance de la classification des films (CSCF). #[serde(rename="cscfRating")] - pub cscf_rating: Option, + pub cscf_rating: Option, /// The video's rating in the Czech Republic. #[serde(rename="czfilmRating")] - pub czfilm_rating: Option, + pub czfilm_rating: Option, /// The video's Departamento de Justiça, Classificação, Qualificação e Títulos (DJCQT - Brazil) rating. #[serde(rename="djctqRating")] - pub djctq_rating: Option, + pub djctq_rating: Option, /// Reasons that explain why the video received its DJCQT (Brazil) rating. #[serde(rename="djctqRatingReasons")] - pub djctq_rating_reasons: Option>, + pub djctq_rating_reasons: Option>, /// Rating system in Turkey - Evaluation and Classification Board of the Ministry of Culture and Tourism #[serde(rename="ecbmctRating")] - pub ecbmct_rating: Option, + pub ecbmct_rating: Option, /// The video's rating in Estonia. #[serde(rename="eefilmRating")] - pub eefilm_rating: Option, + pub eefilm_rating: Option, /// The video's rating in Egypt. #[serde(rename="egfilmRating")] - pub egfilm_rating: Option, + pub egfilm_rating: Option, /// The video's Eirin (映倫) rating. Eirin is the Japanese rating system. #[serde(rename="eirinRating")] - pub eirin_rating: Option, + pub eirin_rating: Option, /// The video's rating from Malaysia's Film Censorship Board. #[serde(rename="fcbmRating")] - pub fcbm_rating: Option, + pub fcbm_rating: Option, /// The video's rating from Hong Kong's Office for Film, Newspaper and Article Administration. #[serde(rename="fcoRating")] - pub fco_rating: Option, + pub fco_rating: Option, /// This property has been deprecated. Use the contentDetails.contentRating.cncRating instead. #[serde(rename="fmocRating")] - pub fmoc_rating: Option, + pub fmoc_rating: Option, /// The video's rating from South Africa's Film and Publication Board. #[serde(rename="fpbRating")] - pub fpb_rating: Option, + pub fpb_rating: Option, /// Reasons that explain why the video received its FPB (South Africa) rating. #[serde(rename="fpbRatingReasons")] - pub fpb_rating_reasons: Option>, + pub fpb_rating_reasons: Option>, /// The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) rating. #[serde(rename="fskRating")] - pub fsk_rating: Option, + pub fsk_rating: Option, /// The video's rating in Greece. #[serde(rename="grfilmRating")] - pub grfilm_rating: Option, + pub grfilm_rating: Option, /// The video's Instituto de la Cinematografía y de las Artes Audiovisuales (ICAA - Spain) rating. #[serde(rename="icaaRating")] - pub icaa_rating: Option, + pub icaa_rating: Option, /// The video's Irish Film Classification Office (IFCO - Ireland) rating. See the IFCO website for more information. #[serde(rename="ifcoRating")] - pub ifco_rating: Option, + pub ifco_rating: Option, /// The video's rating in Israel. #[serde(rename="ilfilmRating")] - pub ilfilm_rating: Option, + pub ilfilm_rating: Option, /// The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - Argentina) rating. #[serde(rename="incaaRating")] - pub incaa_rating: Option, + pub incaa_rating: Option, /// The video's rating from the Kenya Film Classification Board. #[serde(rename="kfcbRating")] - pub kfcb_rating: Option, + pub kfcb_rating: Option, /// The video's NICAM/Kijkwijzer rating from the Nederlands Instituut voor de Classificatie van Audiovisuele Media (Netherlands). #[serde(rename="kijkwijzerRating")] - pub kijkwijzer_rating: Option, + pub kijkwijzer_rating: Option, /// The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates videos in South Korea. #[serde(rename="kmrbRating")] - pub kmrb_rating: Option, + pub kmrb_rating: Option, /// The video's rating from Indonesia's Lembaga Sensor Film. #[serde(rename="lsfRating")] - pub lsf_rating: Option, + pub lsf_rating: Option, /// The video's rating from Malta's Film Age-Classification Board. #[serde(rename="mccaaRating")] - pub mccaa_rating: Option, + pub mccaa_rating: Option, /// The video's rating from the Danish Film Institute's (Det Danske Filminstitut) Media Council for Children and Young People. #[serde(rename="mccypRating")] - pub mccyp_rating: Option, + pub mccyp_rating: Option, /// The video's rating system for Vietnam - MCST #[serde(rename="mcstRating")] - pub mcst_rating: Option, + pub mcst_rating: Option, /// The video's rating from Singapore's Media Development Authority (MDA) and, specifically, it's Board of Film Censors (BFC). #[serde(rename="mdaRating")] - pub mda_rating: Option, + pub mda_rating: Option, /// The video's rating from Medietilsynet, the Norwegian Media Authority. #[serde(rename="medietilsynetRating")] - pub medietilsynet_rating: Option, + pub medietilsynet_rating: Option, /// The video's rating from Finland's Kansallinen Audiovisuaalinen Instituutti (National Audiovisual Institute). #[serde(rename="mekuRating")] - pub meku_rating: Option, + pub meku_rating: Option, /// The rating system for MENA countries, a clone of MPAA. It is needed to prevent titles go live w/o additional QC check, since some of them can be inappropriate for the countries at all. See b/33408548 for more details. #[serde(rename="menaMpaaRating")] - pub mena_mpaa_rating: Option, + pub mena_mpaa_rating: Option, /// The video's rating from the Ministero dei Beni e delle Attività Culturali e del Turismo (Italy). #[serde(rename="mibacRating")] - pub mibac_rating: Option, + pub mibac_rating: Option, /// The video's Ministerio de Cultura (Colombia) rating. #[serde(rename="mocRating")] - pub moc_rating: Option, + pub moc_rating: Option, /// The video's rating from Taiwan's Ministry of Culture (文化部). #[serde(rename="moctwRating")] - pub moctw_rating: Option, + pub moctw_rating: Option, /// The video's Motion Picture Association of America (MPAA) rating. #[serde(rename="mpaaRating")] - pub mpaa_rating: Option, + pub mpaa_rating: Option, /// The rating system for trailer, DVD, and Ad in the US. See http://movielabs.com/md/ratings/v2.3/html/US_MPAAT_Ratings.html. #[serde(rename="mpaatRating")] - pub mpaat_rating: Option, + pub mpaat_rating: Option, /// The video's rating from the Movie and Television Review and Classification Board (Philippines). #[serde(rename="mtrcbRating")] - pub mtrcb_rating: Option, + pub mtrcb_rating: Option, /// The video's rating from the Maldives National Bureau of Classification. #[serde(rename="nbcRating")] - pub nbc_rating: Option, + pub nbc_rating: Option, /// The video's rating in Poland. #[serde(rename="nbcplRating")] - pub nbcpl_rating: Option, + pub nbcpl_rating: Option, /// The video's rating from the Bulgarian National Film Center. #[serde(rename="nfrcRating")] - pub nfrc_rating: Option, + pub nfrc_rating: Option, /// The video's rating from Nigeria's National Film and Video Censors Board. #[serde(rename="nfvcbRating")] - pub nfvcb_rating: Option, + pub nfvcb_rating: Option, /// The video's rating from the Nacionãlais Kino centrs (National Film Centre of Latvia). #[serde(rename="nkclvRating")] - pub nkclv_rating: Option, + pub nkclv_rating: Option, /// The National Media Council ratings system for United Arab Emirates. #[serde(rename="nmcRating")] - pub nmc_rating: Option, + pub nmc_rating: Option, /// The video's Office of Film and Literature Classification (OFLC - New Zealand) rating. #[serde(rename="oflcRating")] - pub oflc_rating: Option, + pub oflc_rating: Option, /// The video's rating in Peru. #[serde(rename="pefilmRating")] - pub pefilm_rating: Option, + pub pefilm_rating: Option, /// The video's rating from the Hungarian Nemzeti Filmiroda, the Rating Committee of the National Office of Film. #[serde(rename="rcnofRating")] - pub rcnof_rating: Option, + pub rcnof_rating: Option, /// The video's rating in Venezuela. #[serde(rename="resorteviolenciaRating")] - pub resorteviolencia_rating: Option, + pub resorteviolencia_rating: Option, /// The video's General Directorate of Radio, Television and Cinematography (Mexico) rating. #[serde(rename="rtcRating")] - pub rtc_rating: Option, + pub rtc_rating: Option, /// The video's rating from Ireland's Raidió Teilifís Éireann. #[serde(rename="rteRating")] - pub rte_rating: Option, + pub rte_rating: Option, /// The video's National Film Registry of the Russian Federation (MKRF - Russia) rating. #[serde(rename="russiaRating")] - pub russia_rating: Option, + pub russia_rating: Option, /// The video's rating in Slovakia. #[serde(rename="skfilmRating")] - pub skfilm_rating: Option, + pub skfilm_rating: Option, /// The video's rating in Iceland. #[serde(rename="smaisRating")] - pub smais_rating: Option, + pub smais_rating: Option, /// The video's rating from Statens medieråd (Sweden's National Media Council). #[serde(rename="smsaRating")] - pub smsa_rating: Option, + pub smsa_rating: Option, /// The video's TV Parental Guidelines (TVPG) rating. #[serde(rename="tvpgRating")] - pub tvpg_rating: Option, + pub tvpg_rating: Option, /// A rating that YouTube uses to identify age-restricted content. #[serde(rename="ytRating")] - pub yt_rating: Option, + pub yt_rating: Option, } impl client::Part for ContentRating {} @@ -2124,7 +2124,7 @@ pub struct Cuepoint { /// no description provided #[serde(rename="cueType")] - pub cue_type: Option, + pub cue_type: Option, /// The duration of this cuepoint. #[serde(rename="durationSecs")] @@ -2603,11 +2603,11 @@ pub struct InvideoPosition { /// Describes in which corner of the video the visual widget will appear. #[serde(rename="cornerPosition")] - pub corner_position: Option, + pub corner_position: Option, /// Defines the position type. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for InvideoPosition {} @@ -2633,7 +2633,7 @@ pub struct InvideoTiming { /// Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for InvideoTiming {} @@ -2751,7 +2751,7 @@ pub struct LiveBroadcastContentDetails { /// no description provided #[serde(rename="closedCaptionsType")] - pub closed_captions_type: Option, + pub closed_captions_type: Option, /// This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events. #[serde(rename="enableAutoStart")] @@ -2783,7 +2783,7 @@ pub struct LiveBroadcastContentDetails { /// If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted. #[serde(rename="latencyPreference")] - pub latency_preference: Option, + pub latency_preference: Option, /// The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags. #[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")] @@ -2794,7 +2794,7 @@ pub struct LiveBroadcastContentDetails { pub monitor_stream: Option, /// The projection format of this broadcast. This defaults to rectangular. - pub projection: Option, + pub projection: Option, /// Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback. #[serde(rename="recordFromStart")] @@ -2806,7 +2806,7 @@ pub struct LiveBroadcastContentDetails { /// The 3D stereo layout of this broadcast. This defaults to mono. #[serde(rename="stereoLayout")] - pub stereo_layout: Option, + pub stereo_layout: Option, } impl client::Part for LiveBroadcastContentDetails {} @@ -2965,11 +2965,11 @@ pub struct LiveBroadcastStatus { /// The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method. #[serde(rename="lifeCycleStatus")] - pub life_cycle_status: Option, + pub life_cycle_status: Option, /// Priority of the live broadcast event (internal state). #[serde(rename="liveBroadcastPriority")] - pub live_broadcast_priority: Option, + pub live_broadcast_priority: Option, /// Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only. #[serde(rename="madeForKids")] @@ -2977,11 +2977,11 @@ pub struct LiveBroadcastStatus { /// The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource. #[serde(rename="privacyStatus")] - pub privacy_status: Option, + pub privacy_status: Option, /// The broadcast's recording status. #[serde(rename="recordingStatus")] - pub recording_status: Option, + pub recording_status: Option, /// This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work. #[serde(rename="selfDeclaredMadeForKids")] @@ -3059,7 +3059,7 @@ pub struct LiveChatBanSnippet { /// The type of ban. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for LiveChatBanSnippet {} @@ -3431,7 +3431,7 @@ pub struct LiveChatMessageSnippet { /// The type of message, this will always be present, it determines the contents of the message as well as which fields will be present. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, /// no description provided #[serde(rename="userBannedDetails")] @@ -3688,7 +3688,7 @@ pub struct LiveChatUserBannedMessageDetails { /// The type of ban. #[serde(rename="banType")] - pub ban_type: Option, + pub ban_type: Option, /// The details of the user that was banned. #[serde(rename="bannedUserDetails")] @@ -3773,11 +3773,11 @@ pub struct LiveStreamConfigurationIssue { pub reason: Option, /// How severe this issue is to the stream. - pub severity: Option, + pub severity: Option, /// The kind of error happening. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for LiveStreamConfigurationIssue {} @@ -3821,7 +3821,7 @@ pub struct LiveStreamHealthStatus { pub last_update_time_seconds: Option, /// The status code of this stream - pub status: Option, + pub status: Option, } impl client::Part for LiveStreamHealthStatus {} @@ -3939,7 +3939,7 @@ pub struct LiveStreamStatus { /// no description provided #[serde(rename="streamStatus")] - pub stream_status: Option, + pub stream_status: Option, } impl client::Part for LiveStreamStatus {} @@ -4636,7 +4636,7 @@ pub struct PlaylistItemStatus { /// This resource's privacy status. #[serde(rename="privacyStatus")] - pub privacy_status: Option, + pub privacy_status: Option, } impl client::Part for PlaylistItemStatus {} @@ -4801,7 +4801,7 @@ pub struct PlaylistStatus { /// The playlist's privacy status. #[serde(rename="privacyStatus")] - pub privacy_status: Option, + pub privacy_status: Option, } impl client::Part for PlaylistStatus {} @@ -4985,7 +4985,7 @@ pub struct SearchResultSnippet { /// It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's "none" if there is not any upcoming/active live broadcasts. #[serde(rename="liveBroadcastContent")] - pub live_broadcast_content: Option, + pub live_broadcast_content: Option, /// The creation date and time of the resource that the search result identifies. #[serde(rename="publishedAt")] @@ -5067,7 +5067,7 @@ pub struct SubscriptionContentDetails { /// The type of activity this subscription is for (only uploads, everything). #[serde(rename="activityType")] - pub activity_type: Option, + pub activity_type: Option, /// The number of new items in the subscription since its content was last read. #[serde(rename="newItemCount")] @@ -5552,7 +5552,7 @@ pub struct ThirdPartyLinkSnippet { /// Type of the link named after the entities that are being linked. #[serde(rename="type")] - pub type_: Option, + pub type_: Option, } impl client::Part for ThirdPartyLinkSnippet {} @@ -5568,7 +5568,7 @@ pub struct ThirdPartyLinkStatus { /// no description provided #[serde(rename="linkStatus")] - pub link_status: Option, + pub link_status: Option, } impl client::Part for ThirdPartyLinkStatus {} @@ -5963,7 +5963,7 @@ pub struct VideoAgeGating { /// Video game rating, if any. #[serde(rename="videoGameRating")] - pub video_game_rating: Option, + pub video_game_rating: Option, } impl client::Part for VideoAgeGating {} @@ -6092,7 +6092,7 @@ impl client::Part for VideoCategorySnippet {} pub struct VideoContentDetails { /// The value of captions indicates whether the video has captions or not. - pub caption: Option, + pub caption: Option, /// Specifies the ratings that the video received under various rating schemes. #[serde(rename="contentRating")] @@ -6103,7 +6103,7 @@ pub struct VideoContentDetails { pub country_restriction: Option, /// The value of definition indicates whether the video is available in high definition or only in standard definition. - pub definition: Option, + pub definition: Option, /// The value of dimension indicates whether the video is available in 3D or in 2D. pub dimension: Option, @@ -6120,7 +6120,7 @@ pub struct VideoContentDetails { pub licensed_content: Option, /// Specifies the projection format of the video. - pub projection: Option, + pub projection: Option, /// The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property. #[serde(rename="regionRestriction")] @@ -6188,7 +6188,7 @@ pub struct VideoFileDetails { /// The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded. #[serde(rename="fileType")] - pub file_type: Option, + pub file_type: Option, /// A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream. #[serde(rename="videoStreams")] @@ -6254,7 +6254,7 @@ pub struct VideoFileDetailsVideoStream { pub height_pixels: Option, /// The amount that YouTube needs to rotate the original source content to properly display the video. - pub rotation: Option, + pub rotation: Option, /// A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code. pub vendor: Option, @@ -6482,7 +6482,7 @@ pub struct VideoProcessingDetails { /// The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed. #[serde(rename="processingFailureReason")] - pub processing_failure_reason: Option, + pub processing_failure_reason: Option, /// This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request. #[serde(rename="processingIssuesAvailability")] @@ -6494,7 +6494,7 @@ pub struct VideoProcessingDetails { /// The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed. #[serde(rename="processingStatus")] - pub processing_status: Option, + pub processing_status: Option, /// This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request. #[serde(rename="tagSuggestionsAvailability")] @@ -6555,7 +6555,7 @@ impl client::Part for VideoProjectDetails {} pub struct VideoRating { /// Rating of a video. - pub rating: Option, + pub rating: Option, /// The ID that YouTube uses to uniquely identify the video. #[serde(rename="videoId")] @@ -6621,7 +6621,7 @@ pub struct VideoSnippet { /// Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not an upcoming/active live broadcast. #[serde(rename="liveBroadcastContent")] - pub live_broadcast_content: Option, + pub live_broadcast_content: Option, /// Localized snippet selected with the hl parameter. If no such localization exists, this field is populated with the default snippet. (Read-only) pub localized: Option, @@ -6693,10 +6693,10 @@ pub struct VideoStatus { /// This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed. #[serde(rename="failureReason")] - pub failure_reason: Option, + pub failure_reason: Option, /// The video's license. @mutable youtube.videos.insert youtube.videos.update - pub license: Option, + pub license: Option, /// no description provided #[serde(rename="madeForKids")] @@ -6704,7 +6704,7 @@ pub struct VideoStatus { /// The video's privacy status. #[serde(rename="privacyStatus")] - pub privacy_status: Option, + pub privacy_status: Option, /// This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled. @mutable youtube.videos.insert youtube.videos.update #[serde(rename="publicStatsViewable")] @@ -6716,7 +6716,7 @@ pub struct VideoStatus { /// This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected. #[serde(rename="rejectionReason")] - pub rejection_reason: Option, + pub rejection_reason: Option, /// no description provided #[serde(rename="selfDeclaredMadeForKids")] @@ -6724,7 +6724,7 @@ pub struct VideoStatus { /// The status of the uploaded video. #[serde(rename="uploadStatus")] - pub upload_status: Option, + pub upload_status: Option, } impl client::Part for VideoStatus {} @@ -6740,19 +6740,19 @@ pub struct VideoSuggestions { /// A list of video editing operations that might improve the video quality or playback experience of the uploaded video. #[serde(rename="editorSuggestions")] - pub editor_suggestions: Option>, + pub editor_suggestions: Option>, /// A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed. #[serde(rename="processingErrors")] - pub processing_errors: Option>, + pub processing_errors: Option>, /// A list of suggestions that may improve YouTube's ability to process the video. #[serde(rename="processingHints")] - pub processing_hints: Option>, + pub processing_hints: Option>, /// A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track. #[serde(rename="processingWarnings")] - pub processing_warnings: Option>, + pub processing_warnings: Option>, /// A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube. #[serde(rename="tagSuggestions")] diff --git a/gen/youtube3/src/lib.rs b/gen/youtube3/src/lib.rs index da80d2452e..b83fad6e9e 100644 --- a/gen/youtube3/src/lib.rs +++ b/gen/youtube3/src/lib.rs @@ -176,19 +176,19 @@ //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative ! -//! let result = hub.videos().list(&vec!["gubergren".into()]) -//! .video_category_id("Lorem") +//! let result = hub.videos().list(&vec!["duo".into()]) +//! .video_category_id("ipsum") //! .region_code("gubergren") -//! .page_token("eos") -//! .on_behalf_of_content_owner("dolor") -//! .my_rating("ea") -//! .max_width(-55) -//! .max_results(13) -//! .max_height(-47) -//! .locale("duo") -//! .add_id("ipsum") -//! .hl("sed") -//! .chart("ut") +//! .page_token("Lorem") +//! .on_behalf_of_content_owner("gubergren") +//! .my_rating(&Default::default()) +//! .max_width(-75) +//! .max_results(97) +//! .max_height(-17) +//! .locale("ipsum") +//! .add_id("invidunt") +//! .hl("amet") +//! .chart(&Default::default()) //! .doit().await; //! //! match result { diff --git a/gen/youtubereporting1/src/api/call_builders.rs b/gen/youtubereporting1/src/api/call_builders.rs index efdb4a4bff..3ece10b607 100644 --- a/gen/youtubereporting1/src/api/call_builders.rs +++ b/gen/youtubereporting1/src/api/call_builders.rs @@ -1154,8 +1154,8 @@ where } let mut params = Params::with_capacity(5 + self._additional_params.len()); - params.push("jobId", self._job_id); - params.push("reportId", self._report_id); + params.push("jobId", &self._job_id); + params.push("reportId", &self._report_id); if let Some(value) = self._on_behalf_of_content_owner.as_ref() { params.push("onBehalfOfContentOwner", value); } @@ -1449,7 +1449,7 @@ where } let mut params = Params::with_capacity(9 + self._additional_params.len()); - params.push("jobId", self._job_id); + params.push("jobId", &self._job_id); if let Some(value) = self._start_time_before.as_ref() { params.push("startTimeBefore", ::client::serde::datetime_to_string(&value)); } @@ -2058,7 +2058,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("jobId", self._job_id); + params.push("jobId", &self._job_id); if let Some(value) = self._on_behalf_of_content_owner.as_ref() { params.push("onBehalfOfContentOwner", value); } @@ -2332,7 +2332,7 @@ where } let mut params = Params::with_capacity(4 + self._additional_params.len()); - params.push("jobId", self._job_id); + params.push("jobId", &self._job_id); if let Some(value) = self._on_behalf_of_content_owner.as_ref() { params.push("onBehalfOfContentOwner", value); } @@ -2900,7 +2900,7 @@ where } let mut params = Params::with_capacity(2 + self._additional_params.len()); - params.push("resourceName", self._resource_name); + params.push("resourceName", &self._resource_name); params.extend(self._additional_params.iter()); diff --git a/gen/youtubereporting1/src/api/mod.rs b/gen/youtubereporting1/src/api/mod.rs index baff229a4e..a5b2a25052 100644 --- a/gen/youtubereporting1/src/api/mod.rs +++ b/gen/youtubereporting1/src/api/mod.rs @@ -30,3 +30,6 @@ pub use method_builders::*; mod call_builders; pub use call_builders::*; + +mod enums; +pub use enums::*; diff --git a/gen/youtubereporting1/src/api/schemas.rs b/gen/youtubereporting1/src/api/schemas.rs index 0e6976fbee..1ae068f7db 100644 --- a/gen/youtubereporting1/src/api/schemas.rs +++ b/gen/youtubereporting1/src/api/schemas.rs @@ -97,7 +97,7 @@ pub struct GdataCompositeMedia { /// gdata #[serde(rename="referenceType")] - pub reference_type: Option, + pub reference_type: Option, /// gdata #[serde(rename="sha1Hash")] @@ -390,7 +390,7 @@ pub struct GdataMedia { /// gdata #[serde(rename="referenceType")] - pub reference_type: Option, + pub reference_type: Option, /// gdata #[serde(rename="sha1Hash")]