diff --git a/etc/api/type-api.yaml b/etc/api/type-api.yaml index 43cf8bd468..05bf9c1320 100644 --- a/etc/api/type-api.yaml +++ b/etc/api/type-api.yaml @@ -26,9 +26,9 @@ make: - source: lib.rs output_dir: src cargo: - build_version: "0.1.3" + build_version: "0.1.4" keywords: [protocol, web, api] dependencies: - url = "*" - - serde = "*" + - serde = ">= 0.3.0" - serde_macros = "*" diff --git a/gen/adexchangebuyer1d3/Cargo.toml b/gen/adexchangebuyer1d3/Cargo.toml index 54d0659d9d..f35ac0fc49 100644 --- a/gen/adexchangebuyer1d3/Cargo.toml +++ b/gen/adexchangebuyer1d3/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexchangebuyer1d3" -version = "0.1.3+20150323" +version = "0.1.4+20150323" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Buyer (protocol v1.3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer1d3" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/adexchangebuyer1d3/README.md b/gen/adexchangebuyer1d3/README.md index caef4f5c56..aeb0f50a6a 100644 --- a/gen/adexchangebuyer1d3/README.md +++ b/gen/adexchangebuyer1d3/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-adexchangebuyer1d3` library allows access to all features of the *Google Ad Exchange Buyer* service. -This documentation was generated from *Ad Exchange Buyer* crate version *0.1.3+20150323*, where *20150323* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Ad Exchange Buyer* crate version *0.1.4+20150323*, where *20150323* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *Ad Exchange Buyer* *v1d3* API can be found at the [official documentation site](https://developers.google.com/ad-exchange/buyer-rest). diff --git a/gen/adexchangebuyer1d3/src/lib.rs b/gen/adexchangebuyer1d3/src/lib.rs index 0352ee4961..4befd444ed 100644 --- a/gen/adexchangebuyer1d3/src/lib.rs +++ b/gen/adexchangebuyer1d3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Ad Exchange Buyer* crate version *0.1.3+20150323*, where *20150323* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Ad Exchange Buyer* crate version *0.1.4+20150323*, where *20150323* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *Ad Exchange Buyer* *v1d3* API can be found at the //! [official documentation site](https://developers.google.com/ad-exchange/buyer-rest). @@ -323,7 +323,7 @@ impl<'a, C, NC, A> AdExchangeBuyer AdExchangeBuyer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -351,7 +351,7 @@ impl<'a, C, NC, A> AdExchangeBuyer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -374,7 +374,7 @@ pub struct PretargetingConfigExcludedPlacements { /// The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement. pub token: String, /// The type of the placement. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -415,24 +415,24 @@ pub struct Account { /// Resource type. pub kind: Option, /// The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this. - #[serde(alias="maximumTotalQps")] + #[serde(rename="maximumTotalQps")] pub maximum_total_qps: Option, /// The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this. - #[serde(alias="maximumActiveCreatives")] + #[serde(rename="maximumActiveCreatives")] pub maximum_active_creatives: Option, /// Your bidder locations that have distinct URLs. - #[serde(alias="bidderLocation")] + #[serde(rename="bidderLocation")] pub bidder_location: Option>, /// The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this. - #[serde(alias="cookieMatchingNid")] + #[serde(rename="cookieMatchingNid")] pub cookie_matching_nid: Option, /// The number of creatives that this account inserted or bid with in the last 30 days. - #[serde(alias="numberActiveCreatives")] + #[serde(rename="numberActiveCreatives")] pub number_active_creatives: Option, /// Account id. pub id: Option, /// The base URL used in cookie match requests. - #[serde(alias="cookieMatchingUrl")] + #[serde(rename="cookieMatchingUrl")] pub cookie_matching_url: Option, } @@ -491,13 +491,13 @@ pub struct BillingInfo { /// Resource type. pub kind: String, /// A list of adgroup IDs associated with this particular account. These IDs may show up as part of a realtime bidding BidRequest, which indicates a bid request for this account. - #[serde(alias="billingId")] + #[serde(rename="billingId")] pub billing_id: Vec, /// Account id. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: i32, /// Account name. - #[serde(alias="accountName")] + #[serde(rename="accountName")] pub account_name: String, } @@ -518,7 +518,7 @@ pub struct DirectDealsList { /// Resource type. pub kind: String, /// A list of direct deals relevant for your account. - #[serde(alias="directDeals")] + #[serde(rename="directDeals")] pub direct_deals: Vec, } @@ -557,7 +557,7 @@ impl ResponseResult for AccountsList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CreativesList { /// Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of creatives. pub items: Vec, @@ -582,20 +582,20 @@ impl ResponseResult for CreativesList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Budget { /// The billing id to determine which adgroup to provide budget information for. This is required for get and update requests. - #[serde(alias="billingId")] + #[serde(rename="billingId")] pub billing_id: Option, /// The kind of the resource, i.e. "adexchangebuyer#budget". pub kind: Option, /// The budget amount to apply for the billingId provided. This is required for update requests. - #[serde(alias="budgetAmount")] + #[serde(rename="budgetAmount")] pub budget_amount: Option, /// The currency code for the buyer. This cannot be altered here. - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: Option, /// The unique id that describes this item. pub id: Option, /// The id of the account. This is required for get and update requests. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -617,58 +617,58 @@ impl ResponseResult for Budget {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Creative { /// Detected product categories, if any. Read-only. This field should not be set in requests. - #[serde(alias="productCategories")] + #[serde(rename="productCategories")] pub product_categories: Option>, /// Creative serving status. Read-only. This field should not be set in requests. pub status: Option, /// The agency id for this creative. - #[serde(alias="agencyId")] + #[serde(rename="agencyId")] pub agency_id: Option, /// All attributes for the ads that may be shown from this snippet. pub attribute: Option>, /// Ad height. pub height: Option, /// The name of the company being advertised in the creative. - #[serde(alias="advertiserName")] + #[serde(rename="advertiserName")] pub advertiser_name: Option, /// The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set. - #[serde(alias="HTMLSnippet")] + #[serde(rename="HTMLSnippet")] pub html_snippet: Option, /// A buyer-specific id identifying the creative in this ad. - #[serde(alias="buyerCreativeId")] + #[serde(rename="buyerCreativeId")] pub buyer_creative_id: Option, /// Account id. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Detected advertiser id, if any. Read-only. This field should not be set in requests. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option>, /// Resource type. pub kind: Option, /// The url to fetch a video ad. If set, HTMLSnippet should not be set. - #[serde(alias="videoURL")] + #[serde(rename="videoURL")] pub video_url: Option, /// The set of destination urls for the snippet. - #[serde(alias="clickThroughUrl")] + #[serde(rename="clickThroughUrl")] pub click_through_url: Option>, /// Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests. pub corrections: Option>, /// Ad width. pub width: Option, /// All restricted categories for the ads that may be shown from this snippet. - #[serde(alias="restrictedCategories")] + #[serde(rename="restrictedCategories")] pub restricted_categories: Option>, /// All vendor types for the ads that may be shown from this snippet. - #[serde(alias="vendorType")] + #[serde(rename="vendorType")] pub vendor_type: Option>, /// The filtering reasons for the creative. If this feature is not enabled, please ask your technical account manager. Read-only. This field should not be set in requests. - #[serde(alias="filteringReasons")] + #[serde(rename="filteringReasons")] pub filtering_reasons: Option, /// The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests. - #[serde(alias="disapprovalReasons")] + #[serde(rename="disapprovalReasons")] pub disapproval_reasons: Option>, /// Detected sensitive categories, if any. Read-only. This field should not be set in requests. - #[serde(alias="sensitiveCategories")] + #[serde(rename="sensitiveCategories")] pub sensitive_categories: Option>, } @@ -691,7 +691,7 @@ pub struct PerformanceReportList { /// Resource type. pub kind: String, /// A list of performance reports relevant for the account. - #[serde(alias="performanceReport")] + #[serde(rename="performanceReport")] pub performance_report: Vec, } @@ -705,10 +705,10 @@ impl ResponseResult for PerformanceReportList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeFilteringReasonsReasons { /// The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange. - #[serde(alias="filteringCount")] + #[serde(rename="filteringCount")] pub filtering_count: i64, /// The filtering status code. Please refer to the creative-status-codes.txt file for different statuses. - #[serde(alias="filteringStatus")] + #[serde(rename="filteringStatus")] pub filtering_status: i32, } @@ -725,7 +725,7 @@ pub struct PretargetingConfigPlacements { /// The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement. pub token: String, /// The type of the placement. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -756,49 +756,49 @@ impl Part for PretargetingConfigDimensions {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PerformanceReport { /// Average QPS for cookie matcher operations. - #[serde(alias="cookieMatcherStatusRate")] + #[serde(rename="cookieMatcherStatusRate")] pub cookie_matcher_status_rate: Vec, /// Rate of various prefiltering statuses per match. Please refer to the callout-status-codes.txt file for different statuses. - #[serde(alias="calloutStatusRate")] + #[serde(rename="calloutStatusRate")] pub callout_status_rate: Vec, /// Average QPS for hosted match operations. - #[serde(alias="hostedMatchStatusRate")] + #[serde(rename="hostedMatchStatusRate")] pub hosted_match_status_rate: Vec, /// The unix timestamp of the starting time of this performance data. pub timestamp: String, /// The 50th percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report. - #[serde(alias="latency50thPercentile")] + #[serde(rename="latency50thPercentile")] pub latency50th_percentile: f64, /// The 85th percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report. - #[serde(alias="latency85thPercentile")] + #[serde(rename="latency85thPercentile")] pub latency85th_percentile: f64, /// Average QPS for pixel match responses from clients. - #[serde(alias="pixelMatchResponses")] + #[serde(rename="pixelMatchResponses")] pub pixel_match_responses: f64, /// Rate of ads with a given status. Please refer to the creative-status-codes.txt file for different statuses. - #[serde(alias="creativeStatusRate")] + #[serde(rename="creativeStatusRate")] pub creative_status_rate: Vec, /// The 95th percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report. - #[serde(alias="latency95thPercentile")] + #[serde(rename="latency95thPercentile")] pub latency95th_percentile: f64, /// Rate of various quota account statuses per quota check. - #[serde(alias="noQuotaInRegion")] + #[serde(rename="noQuotaInRegion")] pub no_quota_in_region: f64, /// Resource type. pub kind: String, /// The trading location of this data. pub region: String, /// The configured quota limits for this account. - #[serde(alias="quotaConfiguredLimit")] + #[serde(rename="quotaConfiguredLimit")] pub quota_configured_limit: f64, /// Rate of various quota account statuses per quota check. - #[serde(alias="outOfQuota")] + #[serde(rename="outOfQuota")] pub out_of_quota: f64, /// The throttled quota limits for this account. - #[serde(alias="quotaThrottledLimit")] + #[serde(rename="quotaThrottledLimit")] pub quota_throttled_limit: f64, /// Average QPS for pixel match requests from clients. - #[serde(alias="pixelMatchRequests")] + #[serde(rename="pixelMatchRequests")] pub pixel_match_requests: f64, } @@ -860,30 +860,30 @@ pub struct DirectDeal { /// Deal name. pub name: String, /// The currency code that applies to the fixed_cpm value. If not set then assumed to be USD. - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, /// The account id of the buyer this deal is for. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: i32, /// The fixed price for this direct deal. In cpm micros of currency according to currency_code. If set, then this deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price). - #[serde(alias="fixedCpm")] + #[serde(rename="fixedCpm")] pub fixed_cpm: String, /// Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// If true, the publisher has opted to have their blocks ignored when a creative is bid with for this deal. - #[serde(alias="publisherBlocksOverriden")] + #[serde(rename="publisherBlocksOverriden")] pub publisher_blocks_overriden: bool, /// End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// The name of the publisher offering this direct deal. - #[serde(alias="sellerNetwork")] + #[serde(rename="sellerNetwork")] pub seller_network: String, /// Deal id. pub id: String, /// The minimum price for this direct deal. In cpm micros of currency according to currency_code. If set, then this deal is eligible for the private exchange tier of buying (below fixed price priority, run as a second price auction). - #[serde(alias="privateExchangeMinCpm")] + #[serde(rename="privateExchangeMinCpm")] pub private_exchange_min_cpm: String, } @@ -912,59 +912,59 @@ pub struct PretargetingConfig { /// Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET. pub platforms: Option>, /// List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO. - #[serde(alias="creativeType")] + #[serde(rename="creativeType")] pub creative_type: Option>, /// Requests containing any of these geo criteria ids will match. - #[serde(alias="geoCriteriaIds")] + #[serde(rename="geoCriteriaIds")] pub geo_criteria_ids: Option>, /// Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section. - #[serde(alias="mobileOperatingSystemVersions")] + #[serde(rename="mobileOperatingSystemVersions")] pub mobile_operating_system_versions: Option>, /// The config id; generated automatically. Leave this field blank for insert requests. - #[serde(alias="configId")] + #[serde(rename="configId")] pub config_id: Option, /// Requests containing any of these users list ids will not match. - #[serde(alias="excludedUserLists")] + #[serde(rename="excludedUserLists")] pub excluded_user_lists: Option>, /// Whether this config is active. Required for all requests. - #[serde(alias="isActive")] + #[serde(rename="isActive")] pub is_active: Option, /// The name of the config. Must be unique. Required for all requests. - #[serde(alias="configName")] + #[serde(rename="configName")] pub config_name: Option, /// Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section. - #[serde(alias="excludedVerticals")] + #[serde(rename="excludedVerticals")] pub excluded_verticals: Option>, /// Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions. pub dimensions: Option>, /// Requests containing any of these geo criteria ids will not match. - #[serde(alias="excludedGeoCriteriaIds")] + #[serde(rename="excludedGeoCriteriaIds")] pub excluded_geo_criteria_ids: Option>, /// Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section. - #[serde(alias="supportedCreativeAttributes")] + #[serde(rename="supportedCreativeAttributes")] pub supported_creative_attributes: Option>, /// Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section. - #[serde(alias="excludedContentLabels")] + #[serde(rename="excludedContentLabels")] pub excluded_content_labels: Option>, /// Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section. - #[serde(alias="vendorTypes")] + #[serde(rename="vendorTypes")] pub vendor_types: Option>, /// Request containing any of these language codes will match. pub languages: Option>, /// Requests containing any of these user list ids will match. - #[serde(alias="userLists")] + #[serde(rename="userLists")] pub user_lists: Option>, /// Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section. - #[serde(alias="mobileDevices")] + #[serde(rename="mobileDevices")] pub mobile_devices: Option>, /// The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically. - #[serde(alias="billingId")] + #[serde(rename="billingId")] pub billing_id: Option, /// Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section. - #[serde(alias="mobileCarriers")] + #[serde(rename="mobileCarriers")] pub mobile_carriers: Option>, /// Requests containing any of these placements will not match. - #[serde(alias="excludedPlacements")] + #[serde(rename="excludedPlacements")] pub excluded_placements: Option>, /// Requests containing any of these placements will match. pub placements: Option>, @@ -989,7 +989,7 @@ pub struct AccountBidderLocation { /// - US_WEST pub region: String, /// The maximum queries per second the Ad Exchange will send. - #[serde(alias="maximumQps")] + #[serde(rename="maximumQps")] pub maximum_qps: i32, } diff --git a/gen/adexchangeseller2/Cargo.toml b/gen/adexchangeseller2/Cargo.toml index 3323eb037f..6208dc4282 100644 --- a/gen/adexchangeseller2/Cargo.toml +++ b/gen/adexchangeseller2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexchangeseller2" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Seller (protocol v2.0)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangeseller2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/adexchangeseller2/README.md b/gen/adexchangeseller2/README.md index c9c288780a..4b11629ca3 100644 --- a/gen/adexchangeseller2/README.md +++ b/gen/adexchangeseller2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-adexchangeseller2` library allows access to all features of the *Google Ad Exchange Seller* service. -This documentation was generated from *Ad Exchange Seller* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Ad Exchange Seller* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *Ad Exchange Seller* *v2* API can be found at the [official documentation site](https://developers.google.com/ad-exchange/seller-rest/). diff --git a/gen/adexchangeseller2/src/lib.rs b/gen/adexchangeseller2/src/lib.rs index d18be3120c..46cfb5f2fa 100644 --- a/gen/adexchangeseller2/src/lib.rs +++ b/gen/adexchangeseller2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Ad Exchange Seller* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Ad Exchange Seller* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *Ad Exchange Seller* *v2* API can be found at the //! [official documentation site](https://developers.google.com/ad-exchange/seller-rest/). @@ -331,7 +331,7 @@ impl<'a, C, NC, A> AdExchangeSeller AdExchangeSeller { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -341,7 +341,7 @@ impl<'a, C, NC, A> AdExchangeSeller } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -367,7 +367,7 @@ impl<'a, C, NC, A> AdExchangeSeller #[derive(Default, Clone, Debug, Deserialize)] pub struct UrlChannels { /// Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The URL channels returned in this list response. pub items: Vec, @@ -428,7 +428,7 @@ impl ResponseResult for Account {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CustomChannels { /// Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The custom channels returned in this list response. pub items: Vec, @@ -485,17 +485,17 @@ impl Part for SavedReport {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdClient { /// This ad client's product code, which corresponds to the PRODUCT_CODE report dimension. - #[serde(alias="productCode")] + #[serde(rename="productCode")] pub product_code: String, /// Kind of resource this is, in this case adexchangeseller#adClient. pub kind: String, /// Unique identifier of this ad client. pub id: String, /// Whether this ad client is opted in to ARC. - #[serde(alias="arcOptIn")] + #[serde(rename="arcOptIn")] pub arc_opt_in: bool, /// Whether this ad client supports being reported on. - #[serde(alias="supportsReporting")] + #[serde(rename="supportsReporting")] pub supports_reporting: bool, } @@ -529,23 +529,23 @@ impl ResponseResult for PreferredDeals {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReportingMetadataEntry { /// The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted. - #[serde(alias="requiredMetrics")] + #[serde(rename="requiredMetrics")] pub required_metrics: Vec, /// Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry. pub kind: String, /// The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with. - #[serde(alias="compatibleMetrics")] + #[serde(rename="compatibleMetrics")] pub compatible_metrics: Vec, /// For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to. - #[serde(alias="compatibleDimensions")] + #[serde(rename="compatibleDimensions")] pub compatible_dimensions: Vec, /// Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric. pub id: String, /// The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted. - #[serde(alias="requiredDimensions")] + #[serde(rename="requiredDimensions")] pub required_dimensions: Vec, /// The codes of the projects supported by the dimension or metric this reporting metadata entry describes. - #[serde(alias="supportedProducts")] + #[serde(rename="supportedProducts")] pub supported_products: Vec, } @@ -561,12 +561,12 @@ pub struct CustomChannelTargetingInfo { /// The external description of the channel. pub description: String, /// The language of the sites ads will be displayed on. - #[serde(alias="siteLanguage")] + #[serde(rename="siteLanguage")] pub site_language: String, /// The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. pub location: String, /// The name used to describe this channel externally. - #[serde(alias="adsAppearOn")] + #[serde(rename="adsAppearOn")] pub ads_appear_on: String, } @@ -606,7 +606,7 @@ pub struct UrlChannel { /// Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: String, /// URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home - #[serde(alias="urlPattern")] + #[serde(rename="urlPattern")] pub url_pattern: String, } @@ -625,7 +625,7 @@ impl Part for UrlChannel {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdClients { /// Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The ad clients returned in this list response. pub items: Vec, @@ -652,22 +652,22 @@ pub struct PreferredDeal { /// Kind of resource this is, in this case adexchangeseller#preferredDeal. pub kind: String, /// The name of the buyer network this deal is for. - #[serde(alias="buyerNetworkName")] + #[serde(rename="buyerNetworkName")] pub buyer_network_name: String, /// The currency code that applies to the fixed_cpm value. If not set then assumed to be USD. - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, /// The name of the advertiser this deal is for. - #[serde(alias="advertiserName")] + #[serde(rename="advertiserName")] pub advertiser_name: String, /// The fixed price for this preferred deal. In cpm micros of currency according to currencyCode. If set, then this preferred deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price). - #[serde(alias="fixedCpm")] + #[serde(rename="fixedCpm")] pub fixed_cpm: String, /// Time when this deal becomes active in seconds since the epoch (GMT). If not set then this deal is active immediately upon creation. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// Time when this deal stops being active in seconds since the epoch (GMT). If not set then this deal is valid until manually disabled by the publisher. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// Unique identifier of this preferred deal. pub id: String, @@ -688,7 +688,7 @@ impl ResponseResult for PreferredDeal {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SavedReports { /// Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The saved reports returned in this list response. pub items: Vec, @@ -710,7 +710,7 @@ pub struct ReportHeaders { /// The currency of this column. Only present if the header type is METRIC_CURRENCY. pub currency: String, /// The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The name of the header. pub name: String, @@ -731,7 +731,7 @@ pub struct Alert { /// Kind of resource this is, in this case adexchangeseller#alert. pub kind: String, /// Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The localized alert message. pub message: String, @@ -754,7 +754,7 @@ impl Part for Alert {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Accounts { /// Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The accounts returned in this list response. pub items: Vec, @@ -786,7 +786,7 @@ pub struct Report { /// The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers. pub rows: Vec>, /// The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit. - #[serde(alias="totalMatchedRows")] + #[serde(rename="totalMatchedRows")] pub total_matched_rows: String, /// Any warnings associated with generation of the report. pub warnings: Vec, @@ -815,7 +815,7 @@ pub struct CustomChannel { /// Code of this custom channel, not necessarily unique across ad clients. pub code: String, /// The targeting information of this custom channel, if activated. - #[serde(alias="targetingInfo")] + #[serde(rename="targetingInfo")] pub targeting_info: CustomChannelTargetingInfo, /// Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: String, diff --git a/gen/admin1_directory/Cargo.toml b/gen/admin1_directory/Cargo.toml index 29a6ddc880..bd91a31559 100644 --- a/gen/admin1_directory/Cargo.toml +++ b/gen/admin1_directory/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-admin1_directory" -version = "0.1.3+20150309" +version = "0.1.4+20150309" authors = ["Sebastian Thiel "] description = "A complete library to interact with directory (protocol directory_v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_directory" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/admin1_directory/README.md b/gen/admin1_directory/README.md index 613764b39a..39b53aa02c 100644 --- a/gen/admin1_directory/README.md +++ b/gen/admin1_directory/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-admin1_directory` library allows access to all features of the *Google directory* service. -This documentation was generated from *directory* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *directory* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *directory* *v1_directory* API can be found at the [official documentation site](https://developers.google.com/admin-sdk/directory/). diff --git a/gen/admin1_directory/src/lib.rs b/gen/admin1_directory/src/lib.rs index ebdefba247..28edb1ba54 100644 --- a/gen/admin1_directory/src/lib.rs +++ b/gen/admin1_directory/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *directory* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *directory* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *directory* *v1_directory* API can be found at the //! [official documentation site](https://developers.google.com/admin-sdk/directory/). @@ -450,7 +450,7 @@ impl<'a, C, NC, A> Directory Directory { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -493,7 +493,7 @@ impl<'a, C, NC, A> Directory } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -514,13 +514,13 @@ impl<'a, C, NC, A> Directory #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UserName { /// Full Name - #[serde(alias="fullName")] + #[serde(rename="fullName")] pub full_name: String, /// First Name - #[serde(alias="givenName")] + #[serde(rename="givenName")] pub given_name: String, /// Last Name - #[serde(alias="familyName")] + #[serde(rename="familyName")] pub family_name: String, } @@ -547,17 +547,17 @@ impl Part for UserName {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Group { /// List of non editable aliases (Read-only) - #[serde(alias="nonEditableAliases")] + #[serde(rename="nonEditableAliases")] pub non_editable_aliases: Option>, /// Kind of resource this is. pub kind: Option, /// Description of the group pub description: Option, /// Is the group created by admin (Read-only) * - #[serde(alias="adminCreated")] + #[serde(rename="adminCreated")] pub admin_created: Option, /// Group direct members count - #[serde(alias="directMembersCount")] + #[serde(rename="directMembersCount")] pub direct_members_count: Option, /// Email of Group pub email: Option, @@ -598,16 +598,16 @@ pub struct Notification { /// ETag of the resource. pub etag: Option, /// Time at which notification was sent (Read-only) - #[serde(alias="sendTime")] + #[serde(rename="sendTime")] pub send_time: Option, /// no description provided - #[serde(alias="notificationId")] + #[serde(rename="notificationId")] pub notification_id: Option, /// Address from which the notification is received (Read-only) - #[serde(alias="fromAddress")] + #[serde(rename="fromAddress")] pub from_address: Option, /// Boolean indicating whether the notification is unread or not. - #[serde(alias="isUnread")] + #[serde(rename="isUnread")] pub is_unread: Option, /// Subject of the notification (Read-only) pub subject: Option, @@ -629,24 +629,24 @@ pub struct SchemaFieldSpec { /// ETag of the resource. pub etag: String, /// Read ACLs on the field specifying who can view values of this field. Valid values are "ALL_DOMAIN_USERS" and "ADMINS_AND_SELF". - #[serde(alias="readAccessType")] + #[serde(rename="readAccessType")] pub read_access_type: String, /// Type of the field. - #[serde(alias="fieldType")] + #[serde(rename="fieldType")] pub field_type: String, /// Boolean specifying whether the field is indexed or not. pub indexed: bool, /// Name of the field. - #[serde(alias="fieldName")] + #[serde(rename="fieldName")] pub field_name: String, /// Indexing spec for a numeric field. By default, only exact match queries will be supported for numeric fields. Setting the numericIndexingSpec allows range queries to be supported. - #[serde(alias="numericIndexingSpec")] + #[serde(rename="numericIndexingSpec")] pub numeric_indexing_spec: SchemaFieldSpecNumericIndexingSpec, /// Unique identifier of Field (Read-only) - #[serde(alias="fieldId")] + #[serde(rename="fieldId")] pub field_id: String, /// Boolean specifying whether this is a multi-valued field or not. - #[serde(alias="multiValued")] + #[serde(rename="multiValued")] pub multi_valued: bool, } @@ -676,7 +676,7 @@ pub struct Member { /// Role of member pub role: Option, /// Type of member (Immutable) - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Email of member (Read-only) pub email: Option, @@ -705,7 +705,7 @@ pub struct OrgUnits { /// ETag of the resource. pub etag: String, /// List of user objects. - #[serde(alias="organizationUnits")] + #[serde(rename="organizationUnits")] pub organization_units: Vec, } @@ -730,20 +730,20 @@ pub struct Token { /// The type of the API resource. This is always admin#directory#token. pub kind: String, /// The Client ID of the application the token is issued to. - #[serde(alias="clientId")] + #[serde(rename="clientId")] pub client_id: String, /// Whether the token is issued to an installed application. The value is true if the application is installed to a desktop or mobile device. - #[serde(alias="nativeApp")] + #[serde(rename="nativeApp")] pub native_app: bool, /// The displayable name of the application the token is issued to. - #[serde(alias="displayText")] + #[serde(rename="displayText")] pub display_text: String, /// ETag of the resource. pub etag: String, /// Whether the application is registered with Google. The value is true if the application has an anonymous Client ID. pub anonymous: bool, /// The unique ID of the user that issued the token. - #[serde(alias="userKey")] + #[serde(rename="userKey")] pub user_key: String, } @@ -787,12 +787,12 @@ impl ResponseResult for Asps {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Channel { /// A version-specific identifier for the watched resource. - #[serde(alias="resourceUri")] + #[serde(rename="resourceUri")] pub resource_uri: Option, /// Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel". pub kind: Option, /// An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. - #[serde(alias="resourceId")] + #[serde(rename="resourceId")] pub resource_id: Option, /// A UUID or similar unique string that identifies this channel. pub id: Option, @@ -805,7 +805,7 @@ pub struct Channel { /// The address where notifications are delivered for this channel. pub address: Option, /// The type of delivery mechanism used for this channel. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// A Boolean value to indicate whether payload is wanted. Optional. pub payload: Option, @@ -839,10 +839,10 @@ pub struct Schema { /// ETag of the resource. pub etag: Option, /// Unique identifier of Schema (Read-only) - #[serde(alias="schemaId")] + #[serde(rename="schemaId")] pub schema_id: Option, /// Schema name - #[serde(alias="schemaName")] + #[serde(rename="schemaName")] pub schema_name: Option, } @@ -871,16 +871,16 @@ pub struct Asp { /// The name of the application that the user, represented by their userId, entered when the ASP was created. pub name: String, /// The unique ID of the ASP. - #[serde(alias="codeId")] + #[serde(rename="codeId")] pub code_id: i32, /// The time when the ASP was last used. Expressed in Unix time format. - #[serde(alias="lastTimeUsed")] + #[serde(rename="lastTimeUsed")] pub last_time_used: String, /// The unique ID of the user who issued the ASP. - #[serde(alias="userKey")] + #[serde(rename="userKey")] pub user_key: String, /// The time when the ASP was created. Expressed in Unix time format. - #[serde(alias="creationTime")] + #[serde(rename="creationTime")] pub creation_time: String, } @@ -922,7 +922,7 @@ impl ResponseResult for Tokens {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Notifications { /// Token for fetching the next page of notifications. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of notifications in this page. pub items: Vec, @@ -931,7 +931,7 @@ pub struct Notifications { /// ETag of the resource. pub etag: String, /// Number of unread notification for the domain. - #[serde(alias="unreadNotificationsCount")] + #[serde(rename="unreadNotificationsCount")] pub unread_notifications_count: i32, } @@ -952,70 +952,70 @@ impl ResponseResult for Notifications {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ChromeOsDevice { /// List of recent device users, in descending order by last login time (Read-only) - #[serde(alias="recentUsers")] + #[serde(rename="recentUsers")] pub recent_users: Option>, /// Chromebook Mac Address on wifi network interface (Read-only) - #[serde(alias="macAddress")] + #[serde(rename="macAddress")] pub mac_address: Option, /// Chromebook serial number (Read-only) - #[serde(alias="serialNumber")] + #[serde(rename="serialNumber")] pub serial_number: Option, /// Date and time the device was last synchronized with the policy settings in the Google Apps administrator control panel (Read-only) - #[serde(alias="lastSync")] + #[serde(rename="lastSync")] pub last_sync: Option, /// Chromebook order number (Read-only) - #[serde(alias="orderNumber")] + #[serde(rename="orderNumber")] pub order_number: Option, /// Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only) pub meid: Option, /// Address or location of the device as noted by the administrator - #[serde(alias="annotatedLocation")] + #[serde(rename="annotatedLocation")] pub annotated_location: Option, /// User of the device - #[serde(alias="annotatedUser")] + #[serde(rename="annotatedUser")] pub annotated_user: Option, /// Chromebook platform version (Read-only) - #[serde(alias="platformVersion")] + #[serde(rename="platformVersion")] pub platform_version: Option, /// List of active time ranges (Read-only) - #[serde(alias="activeTimeRanges")] + #[serde(rename="activeTimeRanges")] pub active_time_ranges: Option>, /// Unique identifier of Chrome OS Device (Read-only) - #[serde(alias="deviceId")] + #[serde(rename="deviceId")] pub device_id: Option, /// Chromebook Mac Address on ethernet network interface (Read-only) - #[serde(alias="ethernetMacAddress")] + #[serde(rename="ethernetMacAddress")] pub ethernet_mac_address: Option, /// Chromebook Os Version (Read-only) - #[serde(alias="osVersion")] + #[serde(rename="osVersion")] pub os_version: Option, /// Chromebook firmware version (Read-only) - #[serde(alias="firmwareVersion")] + #[serde(rename="firmwareVersion")] pub firmware_version: Option, /// Date and time the device was last enrolled (Read-only) - #[serde(alias="lastEnrollmentTime")] + #[serde(rename="lastEnrollmentTime")] pub last_enrollment_time: Option, /// Kind of resource this is. pub kind: Option, /// Notes added by the administrator pub notes: Option, /// Will Chromebook auto renew after support end date (Read-only) - #[serde(alias="willAutoRenew")] + #[serde(rename="willAutoRenew")] pub will_auto_renew: Option, /// Chromebook boot mode (Read-only) - #[serde(alias="bootMode")] + #[serde(rename="bootMode")] pub boot_mode: Option, /// ETag of the resource. pub etag: Option, /// status of the device (Read-only) pub status: Option, /// OrgUnit of the device - #[serde(alias="orgUnitPath")] + #[serde(rename="orgUnitPath")] pub org_unit_path: Option, /// Chromebook Model (Read-only) pub model: Option, /// Final date the device will be supported (Read-only) - #[serde(alias="supportEndDate")] + #[serde(rename="supportEndDate")] pub support_end_date: Option, } @@ -1056,7 +1056,7 @@ pub struct User { /// no description provided pub phones: Option, /// Boolean indicating if the user is delegated admin (Read-only) - #[serde(alias="isDelegatedAdmin")] + #[serde(rename="isDelegatedAdmin")] pub is_delegated_admin: Option, /// Indicates if user is suspended pub suspended: Option, @@ -1065,49 +1065,49 @@ pub struct User { /// List of aliases (Read-only) pub aliases: Option>, /// List of non editable aliases (Read-only) - #[serde(alias="nonEditableAliases")] + #[serde(rename="nonEditableAliases")] pub non_editable_aliases: Option>, /// Custom fields of the user. - #[serde(alias="customSchemas")] + #[serde(rename="customSchemas")] pub custom_schemas: Option>, /// no description provided - #[serde(alias="deletionTime")] + #[serde(rename="deletionTime")] pub deletion_time: Option, /// Suspension reason if user is suspended (Read-only) - #[serde(alias="suspensionReason")] + #[serde(rename="suspensionReason")] pub suspension_reason: Option, /// Photo Url of the user (Read-only) - #[serde(alias="thumbnailPhotoUrl")] + #[serde(rename="thumbnailPhotoUrl")] pub thumbnail_photo_url: Option, /// Boolean indicating if the user is admin (Read-only) - #[serde(alias="isAdmin")] + #[serde(rename="isAdmin")] pub is_admin: Option, /// no description provided pub relations: Option, /// Boolean indicating if user is included in Global Address List - #[serde(alias="includeInGlobalAddressList")] + #[serde(rename="includeInGlobalAddressList")] pub include_in_global_address_list: Option, /// ETag of the resource. pub etag: Option, /// User's last login time. (Read-only) - #[serde(alias="lastLoginTime")] + #[serde(rename="lastLoginTime")] pub last_login_time: Option, /// OrgUnit of User - #[serde(alias="orgUnitPath")] + #[serde(rename="orgUnitPath")] pub org_unit_path: Option, /// Indicates if user has agreed to terms (Read-only) - #[serde(alias="agreedToTerms")] + #[serde(rename="agreedToTerms")] pub agreed_to_terms: Option, /// no description provided - #[serde(alias="externalIds")] + #[serde(rename="externalIds")] pub external_ids: Option, /// Boolean indicating if ip is whitelisted - #[serde(alias="ipWhitelisted")] + #[serde(rename="ipWhitelisted")] pub ip_whitelisted: Option, /// Kind of resource this is. pub kind: Option, /// Is mailbox setup (Read-only) - #[serde(alias="isMailboxSetup")] + #[serde(rename="isMailboxSetup")] pub is_mailbox_setup: Option, /// User's password pub password: Option, @@ -1116,27 +1116,27 @@ pub struct User { /// no description provided pub organizations: Option, /// username of User - #[serde(alias="primaryEmail")] + #[serde(rename="primaryEmail")] pub primary_email: Option, /// Hash function name for password. Supported are MD5, SHA-1 and crypt - #[serde(alias="hashFunction")] + #[serde(rename="hashFunction")] pub hash_function: Option, /// User's name pub name: Option, /// no description provided pub notes: Option, /// User's Google account creation time. (Read-only) - #[serde(alias="creationTime")] + #[serde(rename="creationTime")] pub creation_time: Option, /// no description provided pub websites: Option, /// Boolean indicating if the user should change password in next login - #[serde(alias="changePasswordAtNextLogin")] + #[serde(rename="changePasswordAtNextLogin")] pub change_password_at_next_login: Option, /// no description provided pub ims: Option, /// CustomerId of User (Read-only) - #[serde(alias="customerId")] + #[serde(rename="customerId")] pub customer_id: Option, } @@ -1157,7 +1157,7 @@ impl ResponseResult for User {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Groups { /// Token used to access next page of this result. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Kind of resource this is. pub kind: String, @@ -1177,7 +1177,7 @@ impl ResponseResult for Groups {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ChromeOsDeviceRecentUsers { /// The type of the user - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Email address of the user. Present only if the user type is managed pub email: String, @@ -1194,16 +1194,16 @@ impl Part for ChromeOsDeviceRecentUsers {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MobileDeviceApplications { /// Version code of application - #[serde(alias="versionCode")] + #[serde(rename="versionCode")] pub version_code: i32, /// Package name of application - #[serde(alias="packageName")] + #[serde(rename="packageName")] pub package_name: String, /// Display name of application - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// Version name of application - #[serde(alias="versionName")] + #[serde(rename="versionName")] pub version_name: String, /// List of Permissions for application pub permission: Vec, @@ -1235,7 +1235,7 @@ impl Part for UserCustomProperties {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Members { /// Token used to access next page of this result. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Kind of resource this is. pub kind: String, @@ -1260,7 +1260,7 @@ impl ResponseResult for Members {} #[derive(Default, Clone, Debug, Serialize)] pub struct UserUndelete { /// OrgUnit of User - #[serde(alias="orgUnitPath")] + #[serde(rename="orgUnitPath")] pub org_unit_path: Option, } @@ -1308,7 +1308,7 @@ pub struct Alias { /// ETag of the resource. pub etag: Option, /// Group's primary email (Read-only) User's primary email (Read-only) - #[serde(alias="primaryEmail")] + #[serde(rename="primaryEmail")] pub primary_email: Option, /// Unique id of the group (Read-only) Unique id of the user (Read-only) pub id: Option, @@ -1330,7 +1330,7 @@ impl ResponseResult for Alias {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MobileDevices { /// Token used to access next page of this result. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Kind of resource this is. pub kind: String, @@ -1352,7 +1352,7 @@ pub struct ChromeOsDeviceActiveTimeRanges { /// Date of usage pub date: String, /// Duration in milliseconds - #[serde(alias="activeTime")] + #[serde(rename="activeTime")] pub active_time: i32, } @@ -1374,12 +1374,12 @@ impl Part for ChromeOsDeviceActiveTimeRanges {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UserPhoto { /// Mime Type of the photo - #[serde(alias="mimeType")] + #[serde(rename="mimeType")] pub mime_type: Option, /// Kind of resource this is. pub kind: Option, /// Base64 encoded photo data - #[serde(alias="photoData")] + #[serde(rename="photoData")] pub photo_data: Option, /// Height in pixels of the photo pub height: Option, @@ -1388,7 +1388,7 @@ pub struct UserPhoto { /// ETag of the resource. pub etag: Option, /// Primary email of User (Read-only) - #[serde(alias="primaryEmail")] + #[serde(rename="primaryEmail")] pub primary_email: Option, /// Unique identifier of User (Read-only) pub id: Option, @@ -1446,7 +1446,7 @@ impl RequestValue for UserMakeAdmin {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Users { /// Token used to access next page of this result. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Kind of resource this is. pub kind: String, @@ -1473,72 +1473,72 @@ impl ResponseResult for Users {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MobileDevice { /// Mobile Device Kernel version (Read-only) - #[serde(alias="kernelVersion")] + #[serde(rename="kernelVersion")] pub kernel_version: String, /// Date and time the device was last synchronized with the policy settings in the Google Apps administrator control panel (Read-only) - #[serde(alias="lastSync")] + #[serde(rename="lastSync")] pub last_sync: String, /// Mobile Device compromised status (Read-only) - #[serde(alias="deviceCompromisedStatus")] + #[serde(rename="deviceCompromisedStatus")] pub device_compromised_status: String, /// Unique identifier of Mobile Device (Read-only) - #[serde(alias="resourceId")] + #[serde(rename="resourceId")] pub resource_id: String, /// Mobile Device MEID number (Read-only) pub meid: String, /// The default locale used on the Mobile Device (Read-only) - #[serde(alias="defaultLanguage")] + #[serde(rename="defaultLanguage")] pub default_language: String, /// Mobile Device Build number (Read-only) - #[serde(alias="buildNumber")] + #[serde(rename="buildNumber")] pub build_number: String, /// List of applications installed on Mobile Device pub applications: Vec, /// Mobile Device serial number (Read-only) - #[serde(alias="deviceId")] + #[serde(rename="deviceId")] pub device_id: String, /// Mobile Device IMEI number (Read-only) pub imei: String, /// Mobile Device user agent - #[serde(alias="userAgent")] + #[serde(rename="userAgent")] pub user_agent: String, /// Mobile Device Baseband version (Read-only) - #[serde(alias="basebandVersion")] + #[serde(rename="basebandVersion")] pub baseband_version: String, /// Kind of resource this is. pub kind: String, /// List of owner user's names (Read-only) pub name: Vec, /// Date and time the device was first synchronized with the policy settings in the Google Apps administrator control panel (Read-only) - #[serde(alias="firstSync")] + #[serde(rename="firstSync")] pub first_sync: String, /// Name of the mobile operating system pub os: String, /// Mobile Device SSN or Serial Number (Read-only) - #[serde(alias="serialNumber")] + #[serde(rename="serialNumber")] pub serial_number: String, /// Mobile Device Hardware Id (Read-only) - #[serde(alias="hardwareId")] + #[serde(rename="hardwareId")] pub hardware_id: String, /// Mobile Device mobile or network operator (if available) (Read-only) - #[serde(alias="networkOperator")] + #[serde(rename="networkOperator")] pub network_operator: String, /// ETag of the resource. pub etag: String, /// Status of the device (Read-only) pub status: String, /// Boolean indicating if this account is on owner/primary profile or not (Read-only) - #[serde(alias="managedAccountIsOnOwnerProfile")] + #[serde(rename="managedAccountIsOnOwnerProfile")] pub managed_account_is_on_owner_profile: bool, /// Name of the model of the device pub model: String, /// The type of device (Read-only) - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// List of owner user's email addresses (Read-only) pub email: Vec, /// Mobile Device WiFi MAC address (Read-only) - #[serde(alias="wifiMacAddress")] + #[serde(rename="wifiMacAddress")] pub wifi_mac_address: String, } @@ -1558,7 +1558,7 @@ impl ResponseResult for MobileDevice {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ChromeOsDevices { /// Token used to access next page of this result. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of Chrome OS Device objects. pub chromeosdevices: Vec, @@ -1588,23 +1588,23 @@ pub struct OrgUnit { /// Kind of resource this is. pub kind: Option, /// Path of parent OrgUnit - #[serde(alias="parentOrgUnitPath")] + #[serde(rename="parentOrgUnitPath")] pub parent_org_unit_path: Option, /// Name of OrgUnit pub name: Option, /// ETag of the resource. pub etag: Option, /// Id of OrgUnit - #[serde(alias="orgUnitId")] + #[serde(rename="orgUnitId")] pub org_unit_id: Option, /// Id of parent OrgUnit - #[serde(alias="parentOrgUnitId")] + #[serde(rename="parentOrgUnitId")] pub parent_org_unit_id: Option, /// Should block inheritance - #[serde(alias="blockInheritance")] + #[serde(rename="blockInheritance")] pub block_inheritance: Option, /// Path of OrgUnit - #[serde(alias="orgUnitPath")] + #[serde(rename="orgUnitPath")] pub org_unit_path: Option, /// Description of OrgUnit pub description: Option, @@ -1633,10 +1633,10 @@ pub struct VerificationCode { /// ETag of the resource. pub etag: Option, /// The obfuscated unique ID of the user. - #[serde(alias="userId")] + #[serde(rename="userId")] pub user_id: Option, /// A current verification code for the user. Invalidated or used verification codes are not returned as part of the result. - #[serde(alias="verificationCode")] + #[serde(rename="verificationCode")] pub verification_code: Option, } @@ -1650,10 +1650,10 @@ impl Resource for VerificationCode {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct SchemaFieldSpecNumericIndexingSpec { /// Maximum value of this field. This is meant to be indicative rather than enforced. Values outside this range will still be indexed, but search may not be as performant. - #[serde(alias="maxValue")] + #[serde(rename="maxValue")] pub max_value: f64, /// Minimum value of this field. This is meant to be indicative rather than enforced. Values outside this range will still be indexed, but search may not be as performant. - #[serde(alias="minValue")] + #[serde(rename="minValue")] pub min_value: f64, } diff --git a/gen/admin1_reports/Cargo.toml b/gen/admin1_reports/Cargo.toml index b4f172af98..bf3c0d04b3 100644 --- a/gen/admin1_reports/Cargo.toml +++ b/gen/admin1_reports/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-admin1_reports" -version = "0.1.3+20150115" +version = "0.1.4+20150115" authors = ["Sebastian Thiel "] description = "A complete library to interact with reports (protocol reports_v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_reports" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/admin1_reports/README.md b/gen/admin1_reports/README.md index 37ea938a1f..e32d0ded35 100644 --- a/gen/admin1_reports/README.md +++ b/gen/admin1_reports/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-admin1_reports` library allows access to all features of the *Google reports* service. -This documentation was generated from *reports* crate version *0.1.3+20150115*, where *20150115* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *reports* crate version *0.1.4+20150115*, where *20150115* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *reports* *v1_reports* API can be found at the [official documentation site](https://developers.google.com/admin-sdk/reports/). diff --git a/gen/admin1_reports/src/lib.rs b/gen/admin1_reports/src/lib.rs index d209b95915..0a4b37e716 100644 --- a/gen/admin1_reports/src/lib.rs +++ b/gen/admin1_reports/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *reports* crate version *0.1.3+20150115*, where *20150115* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *reports* crate version *0.1.4+20150115*, where *20150115* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *reports* *v1_reports* API can be found at the //! [official documentation site](https://developers.google.com/admin-sdk/reports/). @@ -340,7 +340,7 @@ impl<'a, C, NC, A> Reports Reports { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -359,7 +359,7 @@ impl<'a, C, NC, A> Reports } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -385,7 +385,7 @@ impl<'a, C, NC, A> Reports #[derive(Default, Clone, Debug, Deserialize)] pub struct Activities { /// Token for retrieving the next page - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Each record in read response. pub items: Vec, @@ -442,21 +442,21 @@ impl Part for UsageReport {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UsageReportParameters { /// Nested message value of the parameter. - #[serde(alias="msgValue")] + #[serde(rename="msgValue")] pub msg_value: Vec>, /// RFC 3339 formatted value of the parameter. - #[serde(alias="datetimeValue")] + #[serde(rename="datetimeValue")] pub datetime_value: String, /// The name of the parameter. pub name: String, /// String value of the parameter. - #[serde(alias="stringValue")] + #[serde(rename="stringValue")] pub string_value: String, /// Boolean value of the parameter. - #[serde(alias="boolValue")] + #[serde(rename="boolValue")] pub bool_value: bool, /// Integral value of the parameter. - #[serde(alias="intValue")] + #[serde(rename="intValue")] pub int_value: String, } @@ -471,14 +471,14 @@ impl Part for UsageReportParameters {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityActor { /// Obfuscated user id of the user. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: String, /// Email address of the user. pub email: String, /// For OAuth 2LO API requests, consumer_key of the requestor. pub key: String, /// User or OAuth 2LO request. - #[serde(alias="callerType")] + #[serde(rename="callerType")] pub caller_type: String, } @@ -493,13 +493,13 @@ impl Part for ActivityActor {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityId { /// Application name to which the event belongs. - #[serde(alias="applicationName")] + #[serde(rename="applicationName")] pub application_name: String, /// Unique qualifier if multiple events have the same time. - #[serde(alias="uniqueQualifier")] + #[serde(rename="uniqueQualifier")] pub unique_qualifier: String, /// Obfuscated customer ID of the source customer. - #[serde(alias="customerId")] + #[serde(rename="customerId")] pub customer_id: String, /// Time of occurrence of the activity. pub time: String, @@ -540,14 +540,14 @@ impl Part for UsageReportsWarnings {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UsageReports { /// Token for retrieving the next page - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The kind of object. pub kind: String, /// ETag of the resource. pub etag: String, /// Various application parameter records. - #[serde(alias="usageReports")] + #[serde(rename="usageReports")] pub usage_reports: Vec, /// Warnings if any. pub warnings: Vec, @@ -569,10 +569,10 @@ pub struct Activity { /// Activity events. pub events: Vec, /// IP Address of the user doing the action. - #[serde(alias="ipAddress")] + #[serde(rename="ipAddress")] pub ip_address: String, /// Domain of source customer. - #[serde(alias="ownerDomain")] + #[serde(rename="ownerDomain")] pub owner_domain: String, /// User doing the action. pub actor: ActivityActor, @@ -590,18 +590,18 @@ impl Part for Activity {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityEventsParameters { /// Boolean value of the parameter. - #[serde(alias="boolValue")] + #[serde(rename="boolValue")] pub bool_value: bool, /// Multi-string value of the parameter. - #[serde(alias="multiValue")] + #[serde(rename="multiValue")] pub multi_value: Vec, /// The name of the parameter. pub name: String, /// Multi-int value of the parameter. - #[serde(alias="multiIntValue")] + #[serde(rename="multiIntValue")] pub multi_int_value: Vec, /// Integral value of the parameter. - #[serde(alias="intValue")] + #[serde(rename="intValue")] pub int_value: String, /// String value of the parameter. pub value: String, @@ -618,7 +618,7 @@ impl Part for ActivityEventsParameters {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityEvents { /// Type of event. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Name of event. pub name: String, @@ -637,16 +637,16 @@ impl Part for ActivityEvents {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UsageReportEntity { /// Obfuscated user id for the record. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: String, /// user's email. - #[serde(alias="userEmail")] + #[serde(rename="userEmail")] pub user_email: String, /// The type of item, can be a customer or user. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Obfuscated customer id for the record. - #[serde(alias="customerId")] + #[serde(rename="customerId")] pub customer_id: String, } @@ -667,12 +667,12 @@ impl Part for UsageReportEntity {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Channel { /// A version-specific identifier for the watched resource. - #[serde(alias="resourceUri")] + #[serde(rename="resourceUri")] pub resource_uri: Option, /// Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel". pub kind: Option, /// An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. - #[serde(alias="resourceId")] + #[serde(rename="resourceId")] pub resource_id: Option, /// A UUID or similar unique string that identifies this channel. pub id: Option, @@ -685,7 +685,7 @@ pub struct Channel { /// The address where notifications are delivered for this channel. pub address: Option, /// The type of delivery mechanism used for this channel. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// A Boolean value to indicate whether payload is wanted. Optional. pub payload: Option, diff --git a/gen/admin2_email_migration/Cargo.toml b/gen/admin2_email_migration/Cargo.toml index 1f6762b440..8560752415 100644 --- a/gen/admin2_email_migration/Cargo.toml +++ b/gen/admin2_email_migration/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-admin2_email_migration" -version = "0.1.3+20150303" +version = "0.1.4+20150303" authors = ["Sebastian Thiel "] description = "A complete library to interact with admin (protocol email_migration_v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin2_email_migration" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/admin2_email_migration/README.md b/gen/admin2_email_migration/README.md index c46f1e50a7..d14b848da5 100644 --- a/gen/admin2_email_migration/README.md +++ b/gen/admin2_email_migration/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-admin2_email_migration` library allows access to all features of the *Google admin* service. -This documentation was generated from *admin* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *admin:email_migration_v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *admin* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *admin:email_migration_v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *admin* *v2_email_migration* API can be found at the [official documentation site](https://developers.google.com/admin-sdk/email-migration/v2/). diff --git a/gen/admin2_email_migration/src/lib.rs b/gen/admin2_email_migration/src/lib.rs index 116ae48d62..0543fefeed 100644 --- a/gen/admin2_email_migration/src/lib.rs +++ b/gen/admin2_email_migration/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *admin* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *admin:email_migration_v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *admin* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *admin:email_migration_v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *admin* *v2_email_migration* API can be found at the //! [official documentation site](https://developers.google.com/admin-sdk/email-migration/v2/). @@ -314,7 +314,7 @@ impl<'a, C, NC, A> Admin Admin { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -324,7 +324,7 @@ impl<'a, C, NC, A> Admin } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -350,29 +350,29 @@ impl<'a, C, NC, A> Admin #[derive(Default, Clone, Debug, Serialize)] pub struct MailItem { /// Boolean indicating if the mail is in trash - #[serde(alias="isTrash")] + #[serde(rename="isTrash")] pub is_trash: Option, /// Kind of resource this is. pub kind: Option, /// List of labels (strings) pub labels: Option>, /// Boolean indicating if the mail is draft - #[serde(alias="isDraft")] + #[serde(rename="isDraft")] pub is_draft: Option, /// Boolean indicating if the mail is in inbox - #[serde(alias="isInbox")] + #[serde(rename="isInbox")] pub is_inbox: Option, /// Boolean indicating if the mail is in 'sent mails' - #[serde(alias="isSent")] + #[serde(rename="isSent")] pub is_sent: Option, /// Boolean indicating if the mail is starred - #[serde(alias="isStarred")] + #[serde(rename="isStarred")] pub is_starred: Option, /// Boolean indicating if the mail is unread - #[serde(alias="isUnread")] + #[serde(rename="isUnread")] pub is_unread: Option, /// Boolean indicating if the mail is deleted (used in Vault) - #[serde(alias="isDeleted")] + #[serde(rename="isDeleted")] pub is_deleted: Option, } diff --git a/gen/adsense1d4/Cargo.toml b/gen/adsense1d4/Cargo.toml index 1ce9dcc82c..73e707f168 100644 --- a/gen/adsense1d4/Cargo.toml +++ b/gen/adsense1d4/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adsense1d4" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdSense (protocol v1.4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adsense1d4" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/adsense1d4/README.md b/gen/adsense1d4/README.md index 30a011d6c0..b43a2b01a8 100644 --- a/gen/adsense1d4/README.md +++ b/gen/adsense1d4/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-adsense1d4` library allows access to all features of the *Google AdSense* service. -This documentation was generated from *AdSense* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *AdSense* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *AdSense* *v1d4* API can be found at the [official documentation site](https://developers.google.com/adsense/management/). diff --git a/gen/adsense1d4/src/lib.rs b/gen/adsense1d4/src/lib.rs index 0cf7338891..85d0363b12 100644 --- a/gen/adsense1d4/src/lib.rs +++ b/gen/adsense1d4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AdSense* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *AdSense* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *AdSense* *v1d4* API can be found at the //! [official documentation site](https://developers.google.com/adsense/management/). @@ -359,7 +359,7 @@ impl<'a, C, NC, A> AdSense AdSense { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -396,7 +396,7 @@ impl<'a, C, NC, A> AdSense } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -423,7 +423,7 @@ impl<'a, C, NC, A> AdSense #[derive(Default, Clone, Debug, Deserialize)] pub struct UrlChannels { /// Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The URL channels returned in this list response. pub items: Vec, @@ -476,7 +476,7 @@ pub struct Account { /// Unique identifier of this account. pub id: String, /// Sub accounts of the this account. - #[serde(alias="subAccounts")] + #[serde(rename="subAccounts")] pub sub_accounts: Vec, } @@ -499,7 +499,7 @@ impl ResponseResult for Account {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdUnits { /// Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The ad units returned in this list response. pub items: Vec, @@ -543,14 +543,14 @@ impl Part for AdStyleFont {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdsenseReportsGenerateResponse { /// The requested start date in yyyy-mm-dd format. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// Kind this is, in this case adsense#report. pub kind: String, /// The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers. pub rows: Vec>, /// The requested end date in yyyy-mm-dd format. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// Any warnings associated with generation of the report. pub warnings: Vec, @@ -559,7 +559,7 @@ pub struct AdsenseReportsGenerateResponse { /// The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request. pub headers: Vec, /// The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit. - #[serde(alias="totalMatchedRows")] + #[serde(rename="totalMatchedRows")] pub total_matched_rows: String, /// The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty. pub averages: Vec, @@ -577,7 +577,7 @@ pub struct AdsenseReportsGenerateResponseHeaders { /// The currency of this column. Only present if the header type is METRIC_CURRENCY. pub currency: String, /// The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The name of the header. pub name: String, @@ -594,13 +594,13 @@ impl Part for AdsenseReportsGenerateResponseHeaders {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdUnitMobileContentAdsSettings { /// The scripting language to use for this ad unit. - #[serde(alias="scriptingLanguage")] + #[serde(rename="scriptingLanguage")] pub scripting_language: String, /// The markup language to use for this ad unit. - #[serde(alias="markupLanguage")] + #[serde(rename="markupLanguage")] pub markup_language: String, /// Type of this ad unit. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Size of this ad unit. pub size: String, @@ -655,18 +655,18 @@ impl Part for SavedReport {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdClient { /// ARC review mode this ad client is in. Empty if the client is not opted in to ARC. Possible values: POST_REVIEW, AUTOMATIC_PRE_REVIEW. - #[serde(alias="arcReviewMode")] + #[serde(rename="arcReviewMode")] pub arc_review_mode: String, /// This ad client's product code, which corresponds to the PRODUCT_CODE report dimension. - #[serde(alias="productCode")] + #[serde(rename="productCode")] pub product_code: String, /// Kind of resource this is, in this case adsense#adClient. pub kind: String, /// Whether this ad client is opted in to ARC. - #[serde(alias="arcOptIn")] + #[serde(rename="arcOptIn")] pub arc_opt_in: bool, /// Whether this ad client supports being reported on. - #[serde(alias="supportsReporting")] + #[serde(rename="supportsReporting")] pub supports_reporting: bool, /// Unique identifier of this ad client. pub id: String, @@ -686,7 +686,7 @@ pub struct AdUnitContentAdsSettingsBackupOption { /// URL to use when type is set to URL. pub url: String, /// Type of the backup option. Possible values are BLANK, COLOR and URL. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -701,15 +701,15 @@ impl Part for AdUnitContentAdsSettingsBackupOption {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdUnitFeedAdsSettings { /// The minimum length an entry should be in order to have attached ads. - #[serde(alias="minimumWordCount")] + #[serde(rename="minimumWordCount")] pub minimum_word_count: i32, /// The frequency at which ads should appear in the feed (i.e. every N entries). pub frequency: i32, /// The position of the ads relative to the feed entries. - #[serde(alias="adPosition")] + #[serde(rename="adPosition")] pub ad_position: String, /// The type of ads which should appear. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -745,23 +745,23 @@ impl ResponseResult for Payments {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReportingMetadataEntry { /// The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted. - #[serde(alias="requiredMetrics")] + #[serde(rename="requiredMetrics")] pub required_metrics: Vec, /// Kind of resource this is, in this case adsense#reportingMetadataEntry. pub kind: String, /// The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with. - #[serde(alias="compatibleMetrics")] + #[serde(rename="compatibleMetrics")] pub compatible_metrics: Vec, /// For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to. - #[serde(alias="compatibleDimensions")] + #[serde(rename="compatibleDimensions")] pub compatible_dimensions: Vec, /// Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric. pub id: String, /// The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted. - #[serde(alias="requiredDimensions")] + #[serde(rename="requiredDimensions")] pub required_dimensions: Vec, /// The codes of the projects supported by the dimension or metric this reporting metadata entry describes. - #[serde(alias="supportedProducts")] + #[serde(rename="supportedProducts")] pub supported_products: Vec, } @@ -777,12 +777,12 @@ pub struct CustomChannelTargetingInfo { /// The external description of the channel. pub description: String, /// The language of the sites ads will be displayed on. - #[serde(alias="siteLanguage")] + #[serde(rename="siteLanguage")] pub site_language: String, /// The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. pub location: String, /// The name used to describe this channel externally. - #[serde(alias="adsAppearOn")] + #[serde(rename="adsAppearOn")] pub ads_appear_on: String, } @@ -805,7 +805,7 @@ impl Part for CustomChannelTargetingInfo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CustomChannels { /// Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The custom channels returned in this list response. pub items: Vec, @@ -829,7 +829,7 @@ pub struct UrlChannel { /// Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: String, /// URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home - #[serde(alias="urlPattern")] + #[serde(rename="urlPattern")] pub url_pattern: String, } @@ -862,21 +862,21 @@ pub struct AdUnit { /// Name of this ad unit. pub name: String, /// Settings specific to feed ads (AFF). - #[serde(alias="feedAdsSettings")] + #[serde(rename="feedAdsSettings")] pub feed_ads_settings: AdUnitFeedAdsSettings, /// ID of the saved ad style which holds this ad unit's style information. - #[serde(alias="savedStyleId")] + #[serde(rename="savedStyleId")] pub saved_style_id: String, /// Settings specific to content ads (AFC) and highend mobile content ads (AFMC). - #[serde(alias="contentAdsSettings")] + #[serde(rename="contentAdsSettings")] pub content_ads_settings: AdUnitContentAdsSettings, /// Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: String, /// Settings specific to WAP mobile content ads (AFMC). - #[serde(alias="mobileContentAdsSettings")] + #[serde(rename="mobileContentAdsSettings")] pub mobile_content_ads_settings: AdUnitMobileContentAdsSettings, /// Custom style information specific to this ad unit. - #[serde(alias="customStyle")] + #[serde(rename="customStyle")] pub custom_style: AdStyle, } @@ -897,7 +897,7 @@ impl ResponseResult for AdUnit {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdClients { /// Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The ad clients returned in this list response. pub items: Vec, @@ -964,7 +964,7 @@ impl Part for AdStyleColors {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SavedReports { /// Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The saved reports returned in this list response. pub items: Vec, @@ -990,7 +990,7 @@ impl ResponseResult for SavedReports {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SavedAdStyles { /// Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The saved ad styles returned in this list response. pub items: Vec, @@ -1020,12 +1020,12 @@ pub struct Alert { /// Severity of this alert. Possible values: INFO, WARNING, SEVERE. pub severity: Option, /// Whether this alert can be dismissed. - #[serde(alias="isDismissible")] + #[serde(rename="isDismissible")] pub is_dismissible: Option, /// The localized alert message. pub message: Option, /// Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: Option, @@ -1051,7 +1051,7 @@ pub struct CustomChannel { /// Code of this custom channel, not necessarily unique across ad clients. pub code: String, /// The targeting information of this custom channel, if activated. - #[serde(alias="targetingInfo")] + #[serde(rename="targetingInfo")] pub targeting_info: CustomChannelTargetingInfo, /// Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: String, @@ -1075,7 +1075,7 @@ impl ResponseResult for CustomChannel {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Accounts { /// Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The accounts returned in this list response. pub items: Vec, @@ -1095,10 +1095,10 @@ impl ResponseResult for Accounts {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdUnitContentAdsSettings { /// Type of this ad unit. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The backup option to be used in instances where no ad is available. - #[serde(alias="backupOption")] + #[serde(rename="backupOption")] pub backup_option: AdUnitContentAdsSettingsBackupOption, /// Size of this ad unit. pub size: String, @@ -1125,7 +1125,7 @@ pub struct SavedAdStyle { /// Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: String, /// The AdStyle itself. - #[serde(alias="adStyle")] + #[serde(rename="adStyle")] pub ad_style: AdStyle, /// The user selected name of this SavedAdStyle. pub name: String, @@ -1148,7 +1148,7 @@ impl ResponseResult for SavedAdStyle {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdCode { /// The ad code snippet. - #[serde(alias="adCode")] + #[serde(rename="adCode")] pub ad_code: String, /// Kind this is, in this case adsense#adCode. pub kind: String, @@ -1190,17 +1190,17 @@ impl ResponseResult for Metadata {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Payment { /// The currency code for the amount to be paid. - #[serde(alias="paymentAmountCurrencyCode")] + #[serde(rename="paymentAmountCurrencyCode")] pub payment_amount_currency_code: Option, /// Kind of resource this is, in this case adsense#payment. pub kind: Option, /// The amount to be paid. - #[serde(alias="paymentAmount")] + #[serde(rename="paymentAmount")] pub payment_amount: Option, /// Unique identifier of this Payment. pub id: Option, /// The date this payment was/will be credited to the user, or none if the payment threshold has not been met. - #[serde(alias="paymentDate")] + #[serde(rename="paymentDate")] pub payment_date: Option, } diff --git a/gen/adsensehost4d1/Cargo.toml b/gen/adsensehost4d1/Cargo.toml index 83a4964078..f9debffa9d 100644 --- a/gen/adsensehost4d1/Cargo.toml +++ b/gen/adsensehost4d1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adsensehost4d1" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdSense Host (protocol v4.1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adsensehost4d1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/adsensehost4d1/README.md b/gen/adsensehost4d1/README.md index d7c9bbba6e..03d546a31a 100644 --- a/gen/adsensehost4d1/README.md +++ b/gen/adsensehost4d1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-adsensehost4d1` library allows access to all features of the *Google AdSense Host* service. -This documentation was generated from *AdSense Host* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *AdSense Host* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *AdSense Host* *v4d1* API can be found at the [official documentation site](https://developers.google.com/adsense/host/). diff --git a/gen/adsensehost4d1/src/lib.rs b/gen/adsensehost4d1/src/lib.rs index 84c1fde7af..a977afbf14 100644 --- a/gen/adsensehost4d1/src/lib.rs +++ b/gen/adsensehost4d1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AdSense Host* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *AdSense Host* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *AdSense Host* *v4d1* API can be found at the //! [official documentation site](https://developers.google.com/adsense/host/). @@ -331,7 +331,7 @@ impl<'a, C, NC, A> AdSenseHost AdSenseHost { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -356,7 +356,7 @@ impl<'a, C, NC, A> AdSenseHost } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -382,7 +382,7 @@ impl<'a, C, NC, A> AdSenseHost #[derive(Default, Clone, Debug, Deserialize)] pub struct UrlChannels { /// Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The URL channels returned in this list response. pub items: Vec, @@ -404,7 +404,7 @@ pub struct ReportHeaders { /// The currency of this column. Only present if the header type is METRIC_CURRENCY. pub currency: String, /// The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The name of the header. pub name: String, @@ -462,7 +462,7 @@ impl ResponseResult for Account {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdUnits { /// Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The ad units returned in this list response. pub items: Vec, @@ -488,7 +488,7 @@ impl ResponseResult for AdUnits {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdClients { /// Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The ad clients returned in this list response. pub items: Vec, @@ -549,13 +549,13 @@ impl Part for AdStyleColors {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AdUnitMobileContentAdsSettings { /// The scripting language to use for this ad unit. - #[serde(alias="scriptingLanguage")] + #[serde(rename="scriptingLanguage")] pub scripting_language: String, /// The markup language to use for this ad unit. - #[serde(alias="markupLanguage")] + #[serde(rename="markupLanguage")] pub markup_language: String, /// Type of this ad unit. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Size of this ad unit. pub size: String, @@ -577,7 +577,7 @@ impl Part for AdUnitMobileContentAdsSettings {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdCode { /// The ad code snippet. - #[serde(alias="adCode")] + #[serde(rename="adCode")] pub ad_code: String, /// Kind this is, in this case adsensehost#adCode. pub kind: String, @@ -615,15 +615,15 @@ pub struct AdUnit { /// Name of this ad unit. pub name: Option, /// Settings specific to content ads (AFC) and highend mobile content ads (AFMC). - #[serde(alias="contentAdsSettings")] + #[serde(rename="contentAdsSettings")] pub content_ads_settings: Option, /// Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: Option, /// Settings specific to WAP mobile content ads (AFMC). - #[serde(alias="mobileContentAdsSettings")] + #[serde(rename="mobileContentAdsSettings")] pub mobile_content_ads_settings: Option, /// Custom style information specific to this ad unit. - #[serde(alias="customStyle")] + #[serde(rename="customStyle")] pub custom_style: Option, } @@ -648,7 +648,7 @@ pub struct UrlChannel { /// Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. pub id: Option, /// URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home - #[serde(alias="urlPattern")] + #[serde(rename="urlPattern")] pub url_pattern: Option, } @@ -670,17 +670,17 @@ impl ResponseResult for UrlChannel {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdClient { /// This ad client's product code, which corresponds to the PRODUCT_CODE report dimension. - #[serde(alias="productCode")] + #[serde(rename="productCode")] pub product_code: String, /// Kind of resource this is, in this case adsensehost#adClient. pub kind: String, /// Unique identifier of this ad client. pub id: String, /// Whether this ad client is opted in to ARC. - #[serde(alias="arcOptIn")] + #[serde(rename="arcOptIn")] pub arc_opt_in: bool, /// Whether this ad client supports being reported on. - #[serde(alias="supportsReporting")] + #[serde(rename="supportsReporting")] pub supports_reporting: bool, } @@ -699,7 +699,7 @@ pub struct AdUnitContentAdsSettingsBackupOption { /// URL to use when type is set to URL. pub url: String, /// Type of the backup option. Possible values are BLANK, COLOR and URL. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -722,26 +722,26 @@ pub struct AssociationSession { /// Status of the completed association, available once the association callback token has been verified. One of ACCEPTED, REJECTED, or ERROR. pub status: String, /// The products to associate with the user. Options: AFC, AFF, AFS, AFMC - #[serde(alias="productCodes")] + #[serde(rename="productCodes")] pub product_codes: Vec, /// Kind of resource this is, in this case adsensehost#associationSession. pub kind: String, /// The preferred locale of the user themselves when going through the AdSense association flow. - #[serde(alias="userLocale")] + #[serde(rename="userLocale")] pub user_locale: String, /// The locale of the user's hosted website. - #[serde(alias="websiteLocale")] + #[serde(rename="websiteLocale")] pub website_locale: String, /// Redirect URL of this association session. Used to redirect users into the AdSense association flow. - #[serde(alias="redirectUrl")] + #[serde(rename="redirectUrl")] pub redirect_url: String, /// The URL of the user's hosted website. - #[serde(alias="websiteUrl")] + #[serde(rename="websiteUrl")] pub website_url: String, /// Unique identifier of this association session. pub id: String, /// Hosted account id of the associated publisher after association. Present if status is ACCEPTED. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -778,10 +778,10 @@ impl ResponseResult for Accounts {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AdUnitContentAdsSettings { /// Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The backup option to be used in instances where no ad is available. - #[serde(alias="backupOption")] + #[serde(rename="backupOption")] pub backup_option: AdUnitContentAdsSettingsBackupOption, /// Size of this ad unit. Size values are in the form SIZE_{width}_{height}. pub size: String, @@ -826,7 +826,7 @@ pub struct Report { /// The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers. pub rows: Vec>, /// The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit. - #[serde(alias="totalMatchedRows")] + #[serde(rename="totalMatchedRows")] pub total_matched_rows: String, /// Any warnings associated with generation of the report. pub warnings: Vec, @@ -882,7 +882,7 @@ impl ResponseResult for CustomChannel {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CustomChannels { /// Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The custom channels returned in this list response. pub items: Vec, diff --git a/gen/analytics3/Cargo.toml b/gen/analytics3/Cargo.toml index cdbd174b23..645708898f 100644 --- a/gen/analytics3/Cargo.toml +++ b/gen/analytics3/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-analytics3" -version = "0.1.3+20150308" +version = "0.1.4+20150308" authors = ["Sebastian Thiel "] description = "A complete library to interact with analytics (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/analytics3" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/analytics3/README.md b/gen/analytics3/README.md index 8cbaa53a77..c20e2cf097 100644 --- a/gen/analytics3/README.md +++ b/gen/analytics3/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-analytics3` library allows access to all features of the *Google analytics* service. -This documentation was generated from *analytics* crate version *0.1.3+20150308*, where *20150308* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *analytics* crate version *0.1.4+20150308*, where *20150308* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *analytics* *v3* API can be found at the [official documentation site](https://developers.google.com/analytics/). diff --git a/gen/analytics3/src/lib.rs b/gen/analytics3/src/lib.rs index cf754877b6..cbfebc2ef0 100644 --- a/gen/analytics3/src/lib.rs +++ b/gen/analytics3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *analytics* crate version *0.1.3+20150308*, where *20150308* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *analytics* crate version *0.1.4+20150308*, where *20150308* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *analytics* *v3* API can be found at the //! [official documentation site](https://developers.google.com/analytics/). @@ -343,7 +343,7 @@ impl<'a, C, NC, A> Analytics Analytics { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -362,7 +362,7 @@ impl<'a, C, NC, A> Analytics } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -405,25 +405,25 @@ pub struct CustomMetric { /// Time the custom metric was last modified. pub updated: Option, /// Property ID. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: Option, /// Boolean indicating whether the custom metric is active. pub active: Option, /// Scope of the custom metric: HIT or PRODUCT. pub scope: Option, /// Parent link for the custom metric. Points to the property to which the custom metric belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// Data type of custom metric. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Custom metric ID. pub id: Option, /// Link for the custom metric - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Account ID. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -448,49 +448,49 @@ pub struct Goal { /// Time this goal was last modified. pub updated: Option, /// Internal ID for the web property to which this goal belongs. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: Option, /// Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: Option, /// Determines whether this goal is active. pub active: Option, /// Goal ID. pub id: Option, /// Account ID to which this goal belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Resource type for an Analytics goal. pub kind: Option, /// Details for the goal of the type VISIT_TIME_ON_SITE. - #[serde(alias="visitTimeOnSiteDetails")] + #[serde(rename="visitTimeOnSiteDetails")] pub visit_time_on_site_details: Option, /// Goal name. pub name: Option, /// Time this goal was created. pub created: Option, /// Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Details for the goal of the type VISIT_NUM_PAGES. - #[serde(alias="visitNumPagesDetails")] + #[serde(rename="visitNumPagesDetails")] pub visit_num_pages_details: Option, /// Goal value. pub value: Option, /// Details for the goal of the type EVENT. - #[serde(alias="eventDetails")] + #[serde(rename="eventDetails")] pub event_details: Option, /// View (Profile) ID to which this goal belongs. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: Option, /// Parent link for a goal. Points to the view (profile) to which this goal belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// Details for the goal of the type URL_DESTINATION. - #[serde(alias="urlDestinationDetails")] + #[serde(rename="urlDestinationDetails")] pub url_destination_details: Option, /// Link for this goal. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -523,7 +523,7 @@ pub struct FilterRef { /// Link for this filter. pub href: String, /// Account ID to which this filter belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// Filter ID. pub id: String, @@ -541,10 +541,10 @@ impl Part for FilterRef {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct GoalEventDetails { /// List of event conditions. - #[serde(alias="eventConditions")] + #[serde(rename="eventConditions")] pub event_conditions: Vec, /// Determines if the event value should be used as the value for this goal. - #[serde(alias="useEventValue")] + #[serde(rename="useEventValue")] pub use_event_value: bool, } @@ -564,7 +564,7 @@ impl Part for GoalEventDetails {} #[derive(Default, Clone, Debug, Serialize)] pub struct AnalyticsDataimportDeleteUploadDataRequest { /// A list of upload UIDs. - #[serde(alias="customDataImportUids")] + #[serde(rename="customDataImportUids")] pub custom_data_import_uids: Option>, } @@ -578,22 +578,22 @@ impl RequestValue for AnalyticsDataimportDeleteUploadDataRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RealtimeDataProfileInfo { /// Internal ID for the web property to which this view (profile) belongs. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: String, /// Table ID for view (profile). - #[serde(alias="tableId")] + #[serde(rename="tableId")] pub table_id: String, /// Web Property ID to which this view (profile) belongs. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: String, /// View (Profile) ID. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: String, /// View (Profile) name. - #[serde(alias="profileName")] + #[serde(rename="profileName")] pub profile_name: String, /// Account ID to which this view (profile) belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -608,7 +608,7 @@ impl Part for RealtimeDataProfileInfo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RealtimeDataQuery { /// Maximum results per page. - #[serde(alias="max-results")] + #[serde(rename="max-results")] pub max_results: i32, /// List of dimensions or metrics based on which real time data is sorted. pub sort: Vec, @@ -639,13 +639,13 @@ pub struct ProfileRef { /// Name of this view (profile). pub name: String, /// Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: String, /// Account ID to which this view (profile) belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// Internal ID for the web property to which this view (profile) belongs. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: String, /// View (Profile) ID. pub id: String, @@ -670,41 +670,41 @@ pub struct McfData { /// Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request. pub rows: Vec>, /// Determines if the Analytics data contains sampled data. - #[serde(alias="containsSampledData")] + #[serde(rename="containsSampledData")] pub contains_sampled_data: bool, /// Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request. - #[serde(alias="columnHeaders")] + #[serde(rename="columnHeaders")] pub column_headers: Vec, /// The total number of rows for the query, regardless of the number of rows in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request. - #[serde(alias="totalsForAllResults")] + #[serde(rename="totalsForAllResults")] pub totals_for_all_results: HashMap, /// Link to next page for this Analytics data query. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The number of samples used to calculate the result. - #[serde(alias="sampleSize")] + #[serde(rename="sampleSize")] pub sample_size: String, /// Analytics data request query parameters. pub query: McfDataQuery, /// Link to previous page for this Analytics data query. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// Information for the view (profile), for which the Analytics data was requested. - #[serde(alias="profileInfo")] + #[serde(rename="profileInfo")] pub profile_info: McfDataProfileInfo, /// Unique ID for this data response. pub id: String, /// Link to this page. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Total size of the sample space from which the samples were selected. - #[serde(alias="sampleSpace")] + #[serde(rename="sampleSpace")] pub sample_space: String, } @@ -729,19 +729,19 @@ pub struct CustomDataSources { /// Collection of custom data sources. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this custom data source collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this custom data source collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -766,19 +766,19 @@ pub struct Goals { /// A list of goals. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this goal collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this goal collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of resources in the result. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -800,12 +800,12 @@ pub struct Account { /// Time the account was last modified. pub updated: String, /// Child link for an account entry. Points to the list of web properties for this account. - #[serde(alias="childLink")] + #[serde(rename="childLink")] pub child_link: AccountChildLink, /// Account ID. pub id: String, /// Link for this account. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Permissions the user has for this account. pub permissions: AccountPermissions, @@ -826,18 +826,18 @@ impl Part for Account {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GaData { /// Determines if Analytics data contains samples. - #[serde(alias="containsSampledData")] + #[serde(rename="containsSampledData")] pub contains_sampled_data: bool, /// Link to previous page for this Analytics data query. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// no description provided - #[serde(alias="dataTable")] + #[serde(rename="dataTable")] pub data_table: GaDataDataTable, /// Analytics data request query parameters. pub query: GaDataQuery, /// Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request. - #[serde(alias="totalsForAllResults")] + #[serde(rename="totalsForAllResults")] pub totals_for_all_results: HashMap, /// Unique ID for this data response. pub id: String, @@ -846,28 +846,28 @@ pub struct GaData { /// Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request. pub rows: Vec>, /// The total number of rows for the query, regardless of the number of rows in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to next page for this Analytics data query. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The number of samples used to calculate the result. - #[serde(alias="sampleSize")] + #[serde(rename="sampleSize")] pub sample_size: String, /// Information for the view (profile), for which the Analytics data was requested. - #[serde(alias="profileInfo")] + #[serde(rename="profileInfo")] pub profile_info: GaDataProfileInfo, /// Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request. - #[serde(alias="columnHeaders")] + #[serde(rename="columnHeaders")] pub column_headers: Vec, /// Link to this page. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Total size of the sample space from which the samples were selected. - #[serde(alias="sampleSpace")] + #[serde(rename="sampleSpace")] pub sample_space: String, } @@ -883,7 +883,7 @@ pub struct ExperimentParentLink { /// Link to the view (profile) to which this experiment belongs. This field is read-only. pub href: String, /// Value is "analytics#profile". This field is read-only. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -908,32 +908,32 @@ pub struct UnsampledReport { /// Time this unsampled report was last modified. pub updated: Option, /// The type of download you need to use for the report data file. - #[serde(alias="downloadType")] + #[serde(rename="downloadType")] pub download_type: Option, /// The start date for the unsampled report. - #[serde(alias="start-date")] + #[serde(rename="start-date")] pub start_date: Option, /// Download details for a file stored in Google Drive. - #[serde(alias="driveDownloadDetails")] + #[serde(rename="driveDownloadDetails")] pub drive_download_details: Option, /// The metrics for the unsampled report. pub metrics: Option, /// The filters for the unsampled report. pub filters: Option, /// Web property ID to which this unsampled report belongs. The web property ID is of the form UA-XXXXX-YY. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: Option, /// The segment for the unsampled report. pub segment: Option, /// Unsampled report ID. pub id: Option, /// Account ID to which this unsampled report belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Resource type for an Analytics unsampled report. pub kind: Option, /// Download details for a file stored in Google Cloud Storage. - #[serde(alias="cloudStorageDownloadDetails")] + #[serde(rename="cloudStorageDownloadDetails")] pub cloud_storage_download_details: Option, /// The dimensions for the unsampled report. pub dimensions: Option, @@ -942,13 +942,13 @@ pub struct UnsampledReport { /// Title of the unsampled report. pub title: Option, /// View (Profile) ID to which this unsampled report belongs. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: Option, /// The end date for the unsampled report. - #[serde(alias="end-date")] + #[serde(rename="end-date")] pub end_date: Option, /// Link for this unsampled report. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -965,7 +965,7 @@ pub struct WebpropertyParentLink { /// Link to the account for this web property. pub href: String, /// Type of the parent link. Its value is "analytics#account". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -982,7 +982,7 @@ pub struct ProfileParentLink { /// Link to the web property to which this view (profile) belongs. pub href: String, /// Value is "analytics#webproperty". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -1025,19 +1025,19 @@ pub struct Accounts { /// A list of accounts. pub items: Vec, /// The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Previous link for this account collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Next link for this account collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1051,34 +1051,34 @@ impl ResponseResult for Accounts {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FilterAdvancedDetails { /// Field A. - #[serde(alias="fieldA")] + #[serde(rename="fieldA")] pub field_a: String, /// Indicates if the existing value of the output field, if any, should be overridden by the output expression. - #[serde(alias="overrideOutputField")] + #[serde(rename="overrideOutputField")] pub override_output_field: bool, /// Indicates if field A is required to match. - #[serde(alias="fieldARequired")] + #[serde(rename="fieldARequired")] pub field_a_required: bool, /// Expression used to construct the output value. - #[serde(alias="outputConstructor")] + #[serde(rename="outputConstructor")] pub output_constructor: String, /// Indicates if field B is required to match. - #[serde(alias="fieldBRequired")] + #[serde(rename="fieldBRequired")] pub field_b_required: bool, /// Indicates if the filter expressions are case sensitive. - #[serde(alias="caseSensitive")] + #[serde(rename="caseSensitive")] pub case_sensitive: bool, /// Field B. - #[serde(alias="fieldB")] + #[serde(rename="fieldB")] pub field_b: String, /// Expression to extract from field B. - #[serde(alias="extractB")] + #[serde(rename="extractB")] pub extract_b: String, /// Expression to extract from field A. - #[serde(alias="extractA")] + #[serde(rename="extractA")] pub extract_a: String, /// Output field. - #[serde(alias="outputToField")] + #[serde(rename="outputToField")] pub output_to_field: String, } @@ -1093,7 +1093,7 @@ impl Part for FilterAdvancedDetails {} #[derive(Default, Clone, Debug, Deserialize)] pub struct WebPropertySummary { /// Website url for this web property. - #[serde(alias="websiteUrl")] + #[serde(rename="websiteUrl")] pub website_url: String, /// Resource type for Analytics WebPropertySummary. pub kind: String, @@ -1102,7 +1102,7 @@ pub struct WebPropertySummary { /// Level for this web property. Possible values are STANDARD or PREMIUM. pub level: String, /// Internal ID for this web property. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: String, /// List of profiles under this web property. pub profiles: Vec, @@ -1135,7 +1135,7 @@ pub struct AccountTicket { /// Resource type for account ticket. pub kind: Option, /// Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL. - #[serde(alias="redirectUri")] + #[serde(rename="redirectUri")] pub redirect_uri: Option, } @@ -1150,22 +1150,22 @@ impl ResponseResult for AccountTicket {} #[derive(Default, Clone, Debug, Deserialize)] pub struct McfDataProfileInfo { /// Internal ID for the web property to which this view (profile) belongs. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: String, /// Table ID for view (profile). - #[serde(alias="tableId")] + #[serde(rename="tableId")] pub table_id: String, /// Web Property ID to which this view (profile) belongs. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: String, /// View (Profile) ID. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: String, /// View (Profile) name. - #[serde(alias="profileName")] + #[serde(rename="profileName")] pub profile_name: String, /// Account ID to which this view (profile) belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -1180,10 +1180,10 @@ impl Part for McfDataProfileInfo {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UnsampledReportCloudStorageDownloadDetails { /// Id of the bucket the file object is stored in. - #[serde(alias="bucketId")] + #[serde(rename="bucketId")] pub bucket_id: String, /// Id of the file object containing the report data. - #[serde(alias="objectId")] + #[serde(rename="objectId")] pub object_id: String, } @@ -1198,10 +1198,10 @@ impl Part for UnsampledReportCloudStorageDownloadDetails {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct GoalVisitTimeOnSiteDetails { /// Type of comparison. Possible values are LESS_THAN or GREATER_THAN. - #[serde(alias="comparisonType")] + #[serde(rename="comparisonType")] pub comparison_type: String, /// Value used for this comparison. - #[serde(alias="comparisonValue")] + #[serde(rename="comparisonValue")] pub comparison_value: String, } @@ -1244,14 +1244,14 @@ pub struct EntityUserLink { /// Resource type for entity user link. pub kind: Option, /// User reference. - #[serde(alias="userRef")] + #[serde(rename="userRef")] pub user_ref: Option, /// Permissions the user has for this entity. pub permissions: Option, /// Entity user link ID pub id: Option, /// Self link for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Entity for this link. It can be an account, a web property, or a view (profile). pub entity: Option, @@ -1279,19 +1279,19 @@ pub struct AccountSummaries { /// A list of AccountSummaries. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this AccountSummary collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this AccountSummary collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1316,19 +1316,19 @@ pub struct CustomDimensions { /// Collection of custom dimensions. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this custom dimension collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this custom dimension collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1342,7 +1342,7 @@ impl ResponseResult for CustomDimensions {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UnsampledReportDriveDownloadDetails { /// Id of the document/file containing the report data. - #[serde(alias="documentId")] + #[serde(rename="documentId")] pub document_id: String, } @@ -1359,15 +1359,15 @@ pub struct GoalUrlDestinationDetails { /// URL for this goal. pub url: String, /// Determines if the goal URL must exactly match the capitalization of visited URLs. - #[serde(alias="caseSensitive")] + #[serde(rename="caseSensitive")] pub case_sensitive: bool, /// Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX. - #[serde(alias="matchType")] + #[serde(rename="matchType")] pub match_type: String, /// List of steps configured for this goal funnel. pub steps: Vec, /// Determines if the first step in this goal is required. - #[serde(alias="firstStepRequired")] + #[serde(rename="firstStepRequired")] pub first_step_required: bool, } @@ -1394,12 +1394,12 @@ pub struct Upload { /// Data import errors collection. pub errors: Vec, /// Custom data source Id to which this data import belongs. - #[serde(alias="customDataSourceId")] + #[serde(rename="customDataSourceId")] pub custom_data_source_id: String, /// A unique ID for this upload. pub id: String, /// Account Id to which this upload belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -1424,19 +1424,19 @@ pub struct Profiles { /// A list of views (profiles). pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this view (profile) collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this view (profile) collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1464,22 +1464,22 @@ impl Part for AccountPermissions {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GaDataProfileInfo { /// Internal ID for the web property to which this view (profile) belongs. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: String, /// Table ID for view (profile). - #[serde(alias="tableId")] + #[serde(rename="tableId")] pub table_id: String, /// Web Property ID to which this view (profile) belongs. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: String, /// View (Profile) ID. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: String, /// View (Profile) name. - #[serde(alias="profileName")] + #[serde(rename="profileName")] pub profile_name: String, /// Account ID to which this view (profile) belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -1496,7 +1496,7 @@ pub struct FilterParentLink { /// Link to the account to which this filter belongs. pub href: String, /// Value is "analytics#account". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -1522,19 +1522,19 @@ pub struct Webproperties { /// A list of web properties. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this web property collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this web property collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1572,15 +1572,15 @@ impl Part for EntityUserLinkPermissions {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ProfileFilterLink { /// Filter for this link. - #[serde(alias="filterRef")] + #[serde(rename="filterRef")] pub filter_ref: Option, /// Resource type for Analytics filter. pub kind: Option, /// Link for this profile filter link. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// View (Profile) for this link. - #[serde(alias="profileRef")] + #[serde(rename="profileRef")] pub profile_ref: Option, /// Profile filter link ID. pub id: Option, @@ -1603,7 +1603,7 @@ pub struct AccountSummary { /// Resource type for Analytics AccountSummary. pub kind: String, /// List of web properties under this account. - #[serde(alias="webProperties")] + #[serde(rename="webProperties")] pub web_properties: Vec, /// Account ID. pub id: String, @@ -1631,24 +1631,24 @@ pub struct Webproperty { /// Time this web property was last modified. pub updated: Option, /// Default view (profile) ID. - #[serde(alias="defaultProfileId")] + #[serde(rename="defaultProfileId")] pub default_profile_id: Option, /// View (Profile) count for this web property. - #[serde(alias="profileCount")] + #[serde(rename="profileCount")] pub profile_count: Option, /// Internal ID for this web property. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: Option, /// Child link for this web property. Points to the list of views (profiles) for this web property. - #[serde(alias="childLink")] + #[serde(rename="childLink")] pub child_link: Option, /// The industry vertical/category selected for this web property. - #[serde(alias="industryVertical")] + #[serde(rename="industryVertical")] pub industry_vertical: Option, /// Web property ID of the form UA-XXXXX-YY. pub id: Option, /// Account ID to which this web property belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Resource type for Analytics WebProperty. pub kind: Option, @@ -1659,15 +1659,15 @@ pub struct Webproperty { /// Level for this web property. Possible values are STANDARD or PREMIUM. pub level: Option, /// Website url for this web property. - #[serde(alias="websiteUrl")] + #[serde(rename="websiteUrl")] pub website_url: Option, /// Parent link for this web property. Points to the account to which this web property belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// Permissions the user has for this web property. pub permissions: Option, /// Link for this web property. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -1691,23 +1691,23 @@ pub struct RealtimeData { /// Real time data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request. pub rows: Vec>, /// The total number of rows for the query, regardless of the number of rows in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// Information for the view (profile), for which the real time data was requested. - #[serde(alias="profileInfo")] + #[serde(rename="profileInfo")] pub profile_info: RealtimeDataProfileInfo, /// Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request. - #[serde(alias="columnHeaders")] + #[serde(rename="columnHeaders")] pub column_headers: Vec, /// Real time data request query parameters. pub query: RealtimeDataQuery, /// Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request. - #[serde(alias="totalsForAllResults")] + #[serde(rename="totalsForAllResults")] pub totals_for_all_results: HashMap, /// Unique ID for this data response. pub id: String, /// Link to this page. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1721,13 +1721,13 @@ impl ResponseResult for RealtimeData {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FilterSearchAndReplaceDetails { /// Determines if the filter is case sensitive. - #[serde(alias="caseSensitive")] + #[serde(rename="caseSensitive")] pub case_sensitive: bool, /// Term to search. - #[serde(alias="searchString")] + #[serde(rename="searchString")] pub search_string: String, /// Term to replace the search term with. - #[serde(alias="replaceString")] + #[serde(rename="replaceString")] pub replace_string: String, /// Field to use in the filter. pub field: String, @@ -1754,40 +1754,40 @@ pub struct Experiment { /// Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. pub status: Option, /// A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. - #[serde(alias="trafficCoverage")] + #[serde(rename="trafficCoverage")] pub traffic_coverage: Option, /// Notes about this experiment. pub description: Option, /// Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: Option, /// Time the experiment was last modified. This field is read-only. pub updated: Option, /// Internal ID for the web property to which this experiment belongs. This field is read-only. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: Option, /// A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. - #[serde(alias="winnerConfidenceLevel")] + #[serde(rename="winnerConfidenceLevel")] pub winner_confidence_level: Option, /// The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: Option, /// Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". - #[serde(alias="optimizationType")] + #[serde(rename="optimizationType")] pub optimization_type: Option, /// Boolean specifying whether a winner has been found for this experiment. This field is read-only. - #[serde(alias="winnerFound")] + #[serde(rename="winnerFound")] pub winner_found: Option, /// The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". - #[serde(alias="objectiveMetric")] + #[serde(rename="objectiveMetric")] pub objective_metric: Option, /// Experiment ID. Required for patch and update. Disallowed for create. pub id: Option, /// Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. - #[serde(alias="equalWeighting")] + #[serde(rename="equalWeighting")] pub equal_weighting: Option, /// Account ID to which this experiment belongs. This field is read-only. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Resource type for an Analytics experiment. This field is read-only. pub kind: Option, @@ -1796,38 +1796,38 @@ pub struct Experiment { /// Time the experiment was created. This field is read-only. pub created: Option, /// Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. - #[serde(alias="reasonExperimentEnded")] + #[serde(rename="reasonExperimentEnded")] pub reason_experiment_ended: Option, /// Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. pub variations: Option>, /// The snippet of code to include on the control page(s). This field is read-only. pub snippet: Option, /// If true, the end user will be able to edit the experiment via the Google Analytics user interface. - #[serde(alias="editableInGaUi")] + #[serde(rename="editableInGaUi")] pub editable_in_ga_ui: Option, /// Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. - #[serde(alias="rewriteVariationUrlsAsOriginal")] + #[serde(rename="rewriteVariationUrlsAsOriginal")] pub rewrite_variation_urls_as_original: Option, /// An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. - #[serde(alias="minimumExperimentLengthInDays")] + #[serde(rename="minimumExperimentLengthInDays")] pub minimum_experiment_length_in_days: Option, /// View (Profile) ID to which this experiment belongs. This field is read-only. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: Option, /// Parent link for an experiment. Points to the view (profile) to which this experiment belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: Option, /// The framework used to serve the experiment variations and evaluate the results. One of: /// - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. /// - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. /// - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. - #[serde(alias="servingFramework")] + #[serde(rename="servingFramework")] pub serving_framework: Option, /// Link for this experiment. This field is read-only. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -1853,19 +1853,19 @@ pub struct CustomMetrics { /// Collection of custom metrics. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this custom metric collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this custom metric collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1879,27 +1879,27 @@ impl ResponseResult for CustomMetrics {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GaDataQuery { /// Maximum results per page. - #[serde(alias="max-results")] + #[serde(rename="max-results")] pub max_results: i32, /// List of dimensions or metrics based on which Analytics data is sorted. pub sort: Vec, /// List of analytics dimensions. pub dimensions: String, /// Start date. - #[serde(alias="start-date")] + #[serde(rename="start-date")] pub start_date: String, /// Start index. - #[serde(alias="start-index")] + #[serde(rename="start-index")] pub start_index: i32, /// End date. - #[serde(alias="end-date")] + #[serde(rename="end-date")] pub end_date: String, /// Unique table ID. pub ids: String, /// List of analytics metrics. pub metrics: Vec, /// Desired sampling level - #[serde(alias="samplingLevel")] + #[serde(rename="samplingLevel")] pub sampling_level: String, /// Comma-separated list of dimension or metric filters. pub filters: String, @@ -1929,10 +1929,10 @@ pub struct Columns { /// Etag of collection. This etag can be compared with the last response etag to check if response has changed. pub etag: String, /// Total number of columns returned in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// List of attributes names returned by columns. - #[serde(alias="attributeNames")] + #[serde(rename="attributeNames")] pub attribute_names: Vec, } @@ -1946,15 +1946,15 @@ impl ResponseResult for Columns {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FilterExpression { /// Determines if the filter is case sensitive. - #[serde(alias="caseSensitive")] + #[serde(rename="caseSensitive")] pub case_sensitive: bool, /// Kind value for filter expression pub kind: String, /// Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH, CONTAINS, MATCHES. Include and Exclude filters can use any match type. Match type is not applicable to Upper case and Lower case filters. Search and Replace expressions in the Search and Replace filter and all filter expressions in the Advanced filter default to MATCHES. User should not set match type for those filters. - #[serde(alias="matchType")] + #[serde(rename="matchType")] pub match_type: String, /// Filter expression value - #[serde(alias="expressionValue")] + #[serde(rename="expressionValue")] pub expression_value: String, /// Field to filter. Possible values: /// - Content and Traffic @@ -2054,10 +2054,10 @@ impl Part for FilterExpression {} #[derive(Default, Clone, Debug, Deserialize)] pub struct McfDataRowsConversionPathValue { /// Node value of an interaction on conversion path. Such as source, medium etc. - #[serde(alias="nodeValue")] + #[serde(rename="nodeValue")] pub node_value: String, /// Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc. - #[serde(alias="interactionType")] + #[serde(rename="interactionType")] pub interaction_type: String, } @@ -2088,10 +2088,10 @@ pub struct AdWordsAccount { /// Resource type for AdWords account. pub kind: String, /// Customer ID. This field is required when creating an AdWords link. - #[serde(alias="customerId")] + #[serde(rename="customerId")] pub customer_id: String, /// True if auto-tagging is enabled on the AdWords account. Read-only after the insert operation. - #[serde(alias="autoTaggingEnabled")] + #[serde(rename="autoTaggingEnabled")] pub auto_tagging_enabled: bool, } @@ -2111,10 +2111,10 @@ pub struct WebPropertyRef { /// Name of this web property. pub name: String, /// Account ID to which this web property belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// Internal ID for this web property. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: String, /// Web property ID of the form UA-XXXXX-YY. pub id: String, @@ -2132,7 +2132,7 @@ pub struct WebpropertyChildLink { /// Link to the list of views (profiles) for this web property. pub href: String, /// Type of the parent link. Its value is "analytics#profiles". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -2189,19 +2189,19 @@ pub struct ProfileFilterLinks { /// A list of profile filter links. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this profile filter link collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this profile filter link collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -2232,36 +2232,36 @@ pub struct Filter { /// Time this filter was last modified. pub updated: Option, /// Details for the filter of the type ADVANCED. - #[serde(alias="advancedDetails")] + #[serde(rename="advancedDetails")] pub advanced_details: Option, /// Details for the filter of the type LOWER. - #[serde(alias="lowercaseDetails")] + #[serde(rename="lowercaseDetails")] pub lowercase_details: Option, /// Parent link for this filter. Points to the account to which this filter belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// Details for the filter of the type EXCLUDE. - #[serde(alias="excludeDetails")] + #[serde(rename="excludeDetails")] pub exclude_details: Option, /// Details for the filter of the type INCLUDE. - #[serde(alias="includeDetails")] + #[serde(rename="includeDetails")] pub include_details: Option, /// Details for the filter of the type UPPER. - #[serde(alias="uppercaseDetails")] + #[serde(rename="uppercaseDetails")] pub uppercase_details: Option, /// Account ID to which this filter belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, UPPERCASE, SEARCH_AND_REPLACE and ADVANCED. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Filter ID. pub id: Option, /// Link for this filter. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Details for the filter of the type SEARCH_AND_REPLACE. - #[serde(alias="searchAndReplaceDetails")] + #[serde(rename="searchAndReplaceDetails")] pub search_and_replace_details: Option, } @@ -2288,15 +2288,15 @@ pub struct EntityAdWordsLink { /// Name of the link. This field is required when creating an AdWords link. pub name: Option, /// A list of AdWords client accounts. These cannot be MCC accounts. This field is required when creating an AdWords link. It cannot be empty. - #[serde(alias="adWordsAccounts")] + #[serde(rename="adWordsAccounts")] pub ad_words_accounts: Option>, /// IDs of linked Views (Profiles) represented as strings. - #[serde(alias="profileIds")] + #[serde(rename="profileIds")] pub profile_ids: Option>, /// Entity AdWords link ID pub id: Option, /// URL link for this Google Analytics - Google AdWords link. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Web property being linked. pub entity: Option, @@ -2320,21 +2320,21 @@ pub struct Uploads { /// Collection type. pub kind: String, /// The total number of results for the query, regardless of the number of resources in the result. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// A list of uploads. pub items: Vec, /// Link to previous page for this upload collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this upload collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -2364,16 +2364,16 @@ pub struct GoalEventDetailsEventConditions { /// Expression used for this match. pub expression: String, /// Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT. - #[serde(alias="matchType")] + #[serde(rename="matchType")] pub match_type: String, /// Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL. - #[serde(alias="comparisonType")] + #[serde(rename="comparisonType")] pub comparison_type: String, /// Value used for this comparison. - #[serde(alias="comparisonValue")] + #[serde(rename="comparisonValue")] pub comparison_value: String, } @@ -2408,7 +2408,7 @@ pub struct CustomMetricParentLink { /// Link to the property to which the custom metric belongs. pub href: String, /// Type of the parent link. Set to "analytics#webproperty". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -2423,10 +2423,10 @@ impl Part for CustomMetricParentLink {} #[derive(Default, Clone, Debug, Deserialize)] pub struct McfDataColumnHeaders { /// Data type. Dimension and metric values data types such as INTEGER, DOUBLE, CURRENCY, MCF_SEQUENCE etc. - #[serde(alias="dataType")] + #[serde(rename="dataType")] pub data_type: String, /// Column Type. Either DIMENSION or METRIC. - #[serde(alias="columnType")] + #[serde(rename="columnType")] pub column_type: String, /// Column name. pub name: String, @@ -2445,7 +2445,7 @@ pub struct GoalParentLink { /// Link to the view (profile) to which this goal belongs. pub href: String, /// Value is "analytics#profile". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -2467,21 +2467,21 @@ pub struct EntityAdWordsLinks { /// Collection type. pub kind: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// A list of entity AdWords links. pub items: Vec, /// Previous link for this AdWords link collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Next link for this AdWords link collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -2495,13 +2495,13 @@ impl ResponseResult for EntityAdWordsLinks {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct EntityUserLinkEntity { /// Account for this link. - #[serde(alias="accountRef")] + #[serde(rename="accountRef")] pub account_ref: AccountRef, /// View (Profile) for this link. - #[serde(alias="profileRef")] + #[serde(rename="profileRef")] pub profile_ref: ProfileRef, /// Web property for this link. - #[serde(alias="webPropertyRef")] + #[serde(rename="webPropertyRef")] pub web_property_ref: WebPropertyRef, } @@ -2544,21 +2544,21 @@ pub struct EntityUserLinks { /// Collection type. pub kind: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, /// A list of entity user links. pub items: Vec, /// Previous link for this account collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Next link for this account collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -2583,19 +2583,19 @@ pub struct Segments { /// A list of segments. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this segment collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this segment collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -2611,7 +2611,7 @@ pub struct AccountChildLink { /// Link to the list of web properties for this account. pub href: String, /// Type of the child link. Its value is "analytics#webproperties". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -2640,10 +2640,10 @@ impl Part for FilterUppercaseDetails {} #[derive(Default, Clone, Debug, Deserialize)] pub struct McfDataRows { /// A primitive dimension value. A primitive metric value. - #[serde(alias="primitiveValue")] + #[serde(rename="primitiveValue")] pub primitive_value: String, /// A conversion path dimension value, containing a list of interactions with their attributes. - #[serde(alias="conversionPathValue")] + #[serde(rename="conversionPathValue")] pub conversion_path_value: Vec, } @@ -2660,7 +2660,7 @@ pub struct ProfileSummary { /// Resource type for Analytics ProfileSummary. pub kind: String, /// View (Profile) type. Supported types: WEB or APP. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// View (profile) ID. pub id: String, @@ -2696,22 +2696,22 @@ pub struct CustomDimension { /// Time the custom dimension was last modified. pub updated: Option, /// Property ID. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: Option, /// Boolean indicating whether the custom dimension is active. pub active: Option, /// Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. pub scope: Option, /// Parent link for the custom dimension. Points to the property to which the custom dimension belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// Custom dimension ID. pub id: Option, /// Link for the custom dimension - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Account ID. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -2766,19 +2766,19 @@ pub struct Segment { /// Resource type for Analytics segment. pub kind: String, /// Segment ID. Can be used with the 'segment' parameter in Core Reporting API. - #[serde(alias="segmentId")] + #[serde(rename="segmentId")] pub segment_id: String, /// Time the segment was created. pub created: String, /// Time the segment was last modified. pub updated: String, /// Type for a segment. Possible values are "BUILT_IN" or "CUSTOM". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Segment ID. pub id: String, /// Link for this segment. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Segment name. pub name: String, @@ -2794,27 +2794,27 @@ impl Part for Segment {} #[derive(Default, Clone, Debug, Deserialize)] pub struct McfDataQuery { /// Maximum results per page. - #[serde(alias="max-results")] + #[serde(rename="max-results")] pub max_results: i32, /// List of dimensions or metrics based on which Analytics data is sorted. pub sort: Vec, /// List of analytics dimensions. pub dimensions: String, /// Start date. - #[serde(alias="start-date")] + #[serde(rename="start-date")] pub start_date: String, /// Start index. - #[serde(alias="start-index")] + #[serde(rename="start-index")] pub start_index: i32, /// End date. - #[serde(alias="end-date")] + #[serde(rename="end-date")] pub end_date: String, /// Unique table ID. pub ids: String, /// List of analytics metrics. pub metrics: Vec, /// Desired sampling level - #[serde(alias="samplingLevel")] + #[serde(rename="samplingLevel")] pub sampling_level: String, /// Comma-separated list of dimension or metric filters. pub filters: String, @@ -2843,67 +2843,67 @@ pub struct Profile { /// Time this view (profile) was last modified. pub updated: Option, /// The query parameters that are excluded from this view (profile). - #[serde(alias="excludeQueryParameters")] + #[serde(rename="excludeQueryParameters")] pub exclude_query_parameters: Option, /// The currency type associated with this view (profile). The supported values are: /// ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY, KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR pub currency: Option, /// Internal ID for the web property to which this view (profile) belongs. - #[serde(alias="internalWebPropertyId")] + #[serde(rename="internalWebPropertyId")] pub internal_web_property_id: Option, /// Child link for this view (profile). Points to the list of goals for this view (profile). - #[serde(alias="childLink")] + #[serde(rename="childLink")] pub child_link: Option, /// Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled. - #[serde(alias="enhancedECommerceTracking")] + #[serde(rename="enhancedECommerceTracking")] pub enhanced_e_commerce_tracking: Option, /// Indicates whether ecommerce tracking is enabled for this view (profile). - #[serde(alias="eCommerceTracking")] + #[serde(rename="eCommerceTracking")] pub e_commerce_tracking: Option, /// Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: Option, /// Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. pub timezone: Option, /// View (Profile) ID. pub id: Option, /// Account ID to which this view (profile) belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Default page for this view (profile). - #[serde(alias="defaultPage")] + #[serde(rename="defaultPage")] pub default_page: Option, /// Resource type for Analytics view (profile). pub kind: Option, /// Whether or not Analytics will strip search query parameters from the URLs in your reports. - #[serde(alias="stripSiteSearchQueryParameters")] + #[serde(rename="stripSiteSearchQueryParameters")] pub strip_site_search_query_parameters: Option, /// Name of this view (profile). pub name: Option, /// Time this view (profile) was created. pub created: Option, /// The site search query parameters for this view (profile). - #[serde(alias="siteSearchQueryParameters")] + #[serde(rename="siteSearchQueryParameters")] pub site_search_query_parameters: Option, /// Website URL for this view (profile). - #[serde(alias="websiteUrl")] + #[serde(rename="websiteUrl")] pub website_url: Option, /// Whether or not Analytics will strip search category parameters from the URLs in your reports. - #[serde(alias="stripSiteSearchCategoryParameters")] + #[serde(rename="stripSiteSearchCategoryParameters")] pub strip_site_search_category_parameters: Option, /// Site search category parameters for this view (profile). - #[serde(alias="siteSearchCategoryParameters")] + #[serde(rename="siteSearchCategoryParameters")] pub site_search_category_parameters: Option, /// Parent link for this view (profile). Points to the web property to which this view (profile) belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, /// Permissions the user has for this view (profile). pub permissions: Option, /// View (Profile) type. Supported types: WEB or APP. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Link for this view (profile). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -2918,10 +2918,10 @@ impl ResponseResult for Profile {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GaDataColumnHeaders { /// Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc. - #[serde(alias="dataType")] + #[serde(rename="dataType")] pub data_type: String, /// Column Type. Either DIMENSION or METRIC. - #[serde(alias="columnType")] + #[serde(rename="columnType")] pub column_type: String, /// Column name. pub name: String, @@ -2938,7 +2938,7 @@ impl Part for GaDataColumnHeaders {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GaDataDataTableCols { /// no description provided - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// no description provided pub id: String, @@ -2957,10 +2957,10 @@ impl Part for GaDataDataTableCols {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct GoalVisitNumPagesDetails { /// Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL. - #[serde(alias="comparisonType")] + #[serde(rename="comparisonType")] pub comparison_type: String, /// Value used for this comparison. - #[serde(alias="comparisonValue")] + #[serde(rename="comparisonValue")] pub comparison_value: String, } @@ -2977,7 +2977,7 @@ pub struct CustomDataSourceChildLink { /// Link to the list of daily uploads for this custom data source. Link to the list of uploads for this custom data source. pub href: String, /// Value is "analytics#dailyUploads". Value is "analytics#uploads". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -3003,19 +3003,19 @@ pub struct UnsampledReports { /// A list of unsampled reports. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this unsampled report collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this unsampled report collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of resources in the result. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -3029,10 +3029,10 @@ impl ResponseResult for UnsampledReports {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RealtimeDataColumnHeaders { /// Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc. - #[serde(alias="dataType")] + #[serde(rename="dataType")] pub data_type: String, /// Column Type. Either DIMENSION or METRIC. - #[serde(alias="columnType")] + #[serde(rename="columnType")] pub column_type: String, /// Column name. pub name: String, @@ -3049,7 +3049,7 @@ impl Part for RealtimeDataColumnHeaders {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct EntityAdWordsLinkEntity { /// no description provided - #[serde(alias="webPropertyRef")] + #[serde(rename="webPropertyRef")] pub web_property_ref: WebPropertyRef, } @@ -3066,7 +3066,7 @@ pub struct CustomDataSourceParentLink { /// Link to the web property to which this custom data source belongs. pub href: String, /// Value is "analytics#webproperty". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -3085,37 +3085,37 @@ pub struct CustomDataSource { /// Description of custom data source. pub description: String, /// IDs of views (profiles) linked to the custom data source. - #[serde(alias="profilesLinked")] + #[serde(rename="profilesLinked")] pub profiles_linked: Vec, /// no description provided - #[serde(alias="uploadType")] + #[serde(rename="uploadType")] pub upload_type: String, /// Time this custom data source was created. pub created: String, /// Time this custom data source was last modified. pub updated: String, /// Account ID to which this custom data source belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// no description provided - #[serde(alias="childLink")] + #[serde(rename="childLink")] pub child_link: CustomDataSourceChildLink, /// Web property ID of the form UA-XXXXX-YY to which this custom data source belongs. - #[serde(alias="webPropertyId")] + #[serde(rename="webPropertyId")] pub web_property_id: String, /// Parent link for this custom data source. Points to the web property to which this custom data source belongs. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: CustomDataSourceParentLink, /// no description provided - #[serde(alias="importBehavior")] + #[serde(rename="importBehavior")] pub import_behavior: String, /// Type of the custom data source. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Custom data source ID. pub id: String, /// Link for this Analytics custom data source. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Name of this custom data source. pub name: String, @@ -3133,7 +3133,7 @@ pub struct CustomDimensionParentLink { /// Link to the property to which the custom dimension belongs. pub href: String, /// Type of the parent link. Set to "analytics#webproperty". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -3159,19 +3159,19 @@ pub struct Experiments { /// A list of experiments. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this experiment collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this experiment collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of resources in the result. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -3196,19 +3196,19 @@ pub struct Filters { /// A list of filters. pub items: Vec, /// The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. - #[serde(alias="itemsPerPage")] + #[serde(rename="itemsPerPage")] pub items_per_page: i32, /// Link to previous page for this filter collection. - #[serde(alias="previousLink")] + #[serde(rename="previousLink")] pub previous_link: String, /// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// Link to next page for this filter collection. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, /// The total number of results for the query, regardless of the number of results in the response. - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -3224,7 +3224,7 @@ pub struct ProfileChildLink { /// Link to the list of goals for this view (profile). pub href: String, /// Value is "analytics#goals". - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } diff --git a/gen/androidenterprise1/Cargo.toml b/gen/androidenterprise1/Cargo.toml index aae9544825..15a69ecd74 100644 --- a/gen/androidenterprise1/Cargo.toml +++ b/gen/androidenterprise1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androidenterprise1" -version = "0.1.3+20150309" +version = "0.1.4+20150309" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Enterprise (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidenterprise1" @@ -17,5 +17,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/androidenterprise1/README.md b/gen/androidenterprise1/README.md index 0d3fc44ede..a3c708ffa1 100644 --- a/gen/androidenterprise1/README.md +++ b/gen/androidenterprise1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-androidenterprise1` library allows access to all features of the *Google Android Enterprise* service. -This documentation was generated from *Android Enterprise* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Android Enterprise* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. # Features Handle the following *Resources* with ease from the central [hub](http://byron.github.io/google-apis-rs/google-androidenterprise1/struct.AndroidEnterprise.html) ... diff --git a/gen/androidenterprise1/src/lib.rs b/gen/androidenterprise1/src/lib.rs index 060a3cc7b6..6e9339dab9 100644 --- a/gen/androidenterprise1/src/lib.rs +++ b/gen/androidenterprise1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Enterprise* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Android Enterprise* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/androidenterprise1). //! # Features //! @@ -331,7 +331,7 @@ impl<'a, C, NC, A> AndroidEnterprise AndroidEnterprise { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -371,7 +371,7 @@ impl<'a, C, NC, A> AndroidEnterprise } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -410,7 +410,7 @@ impl ResponseResult for AppRestrictionsSchema {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AppRestrictionsSchemaRestriction { /// The type of the restriction. - #[serde(alias="restrictionType")] + #[serde(rename="restrictionType")] pub restriction_type: String, /// A longer description of the restriction, giving more detail of what it affects. pub description: String, @@ -421,10 +421,10 @@ pub struct AppRestrictionsSchemaRestriction { /// For choice or multiselect restrictions, the list of possible entries' human-readable names. pub entry: Vec, /// The default value of the restriction. - #[serde(alias="defaultValue")] + #[serde(rename="defaultValue")] pub default_value: AppRestrictionsSchemaRestrictionRestrictionValue, /// For choice or multiselect restrictions, the list of possible entries' machine-readable values. - #[serde(alias="entryValue")] + #[serde(rename="entryValue")] pub entry_value: Vec, } @@ -438,19 +438,19 @@ impl Part for AppRestrictionsSchemaRestriction {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AppRestrictionsSchemaRestrictionRestrictionValue { /// The boolean value - this will only be present if type is bool. - #[serde(alias="valueBool")] + #[serde(rename="valueBool")] pub value_bool: bool, /// The integer value - this will only be present if type is integer. - #[serde(alias="valueInteger")] + #[serde(rename="valueInteger")] pub value_integer: i32, /// The type of the value being provided. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The list of string values - this will only be present if type is multiselect. - #[serde(alias="valueMultiselect")] + #[serde(rename="valueMultiselect")] pub value_multiselect: Vec, /// The string value - this will be present for types string, choice and hidden. - #[serde(alias="valueString")] + #[serde(rename="valueString")] pub value_string: String, } @@ -505,7 +505,7 @@ pub struct Entitlement { /// The reason for the entitlement, e.g. "free" for free apps. This is temporary, it will be replaced by the acquisition kind field of group licenses. pub reason: Option, /// The ID of the product that the entitlement is for, e.g. "app:com.google.android.gm". - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: Option, } @@ -600,15 +600,15 @@ impl ResponseResult for DevicesListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] 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(alias="installState")] + #[serde(rename="installState")] pub install_state: Option, /// The version of the installed product. Guaranteed to be set only if the install state is "installed". - #[serde(alias="versionCode")] + #[serde(rename="versionCode")] pub version_code: Option, /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#install". pub kind: Option, /// The ID of the product that the install is for, e.g. "app:com.google.android.gm". - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: Option, } @@ -645,7 +645,7 @@ pub struct Enterprise { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#enterprise". pub kind: Option, /// The enterprise's primary domain, e.g. "example.com". - #[serde(alias="primaryDomain")] + #[serde(rename="primaryDomain")] pub primary_domain: Option, /// The unique ID for the enterprise. pub id: Option, @@ -672,7 +672,7 @@ pub struct UserToken { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#userToken". pub kind: String, /// The unique ID for the user. - #[serde(alias="userId")] + #[serde(rename="userId")] pub user_id: String, /// The token (activation code) to be entered by the user. This consists of a sequence of decimal digits. Note that the leading digit may be 0. pub token: String, @@ -698,7 +698,7 @@ pub struct ProductPermissions { /// The permissions required by the app. pub permission: Option>, /// The ID of the app that the permissions relate to, e.g. "app:com.google.android.gm". - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: Option, } @@ -721,7 +721,7 @@ pub struct DeviceState { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#deviceState". pub kind: Option, /// 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(alias="accountState")] + #[serde(rename="accountState")] pub account_state: Option, } @@ -738,7 +738,7 @@ impl ResponseResult for DeviceState {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ProductPermission { /// An opaque string uniquely identifying the permission. - #[serde(alias="permissionId")] + #[serde(rename="permissionId")] pub permission_id: String, /// Whether the permission has been accepted or not. pub state: String, @@ -764,24 +764,24 @@ impl Part for ProductPermission {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Product { /// A link to an image that can be used as an icon for the product. - #[serde(alias="iconUrl")] + #[serde(rename="iconUrl")] pub icon_url: String, /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#product". pub kind: String, /// The name of the product. pub title: String, /// A link to the (consumer) Google Play details page for the product. - #[serde(alias="detailsUrl")] + #[serde(rename="detailsUrl")] pub details_url: String, /// A link to the Google Play for Work details page for the product, for use by an Enterprise administrator. - #[serde(alias="workDetailsUrl")] + #[serde(rename="workDetailsUrl")] pub work_details_url: String, /// The name of the author of the product (e.g. the app developer). - #[serde(alias="authorName")] + #[serde(rename="authorName")] pub author_name: String, /// A string of the form "app: /// " - e.g. "app:com.google.android.gm" represents the GMail app. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -803,7 +803,7 @@ impl ResponseResult for Product {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Permission { /// An opaque string uniquely identifying the permission. - #[serde(alias="permissionId")] + #[serde(rename="permissionId")] pub permission_id: String, /// A longer description of the permissions giving more details of what it affects. pub description: String, @@ -878,14 +878,14 @@ pub struct Collection { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#collection". pub kind: Option, /// Arbitrary unique ID, allocated by the API on creation. - #[serde(alias="collectionId")] + #[serde(rename="collectionId")] pub collection_id: Option, /// A user-friendly name for the collection (should be unique), e.g. "Accounting apps". pub name: Option, /// Whether this collection is visible to all users, or only to the users that have been granted access through the collection_viewers api. Even if a collection is visible to allUsers, it is possible to add and remove viewers, but this will have no effect until the collection's visibility changes to viewersOnly. pub visibility: Option, /// The IDs of the products in the collection, in the order in which they should be displayed. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: Option>, } @@ -938,7 +938,7 @@ pub struct User { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user". pub kind: Option, /// The user's primary email, e.g. "jsmith@example.com". - #[serde(alias="primaryEmail")] + #[serde(rename="primaryEmail")] pub primary_email: Option, /// The unique ID for the user. pub id: Option, @@ -983,7 +983,7 @@ pub struct EnterpriseAccount { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#enterpriseAccount". pub kind: Option, /// The email address of the service account. - #[serde(alias="accountEmail")] + #[serde(rename="accountEmail")] pub account_email: Option, } @@ -1010,7 +1010,7 @@ pub struct Device { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". pub kind: String, /// The Google Play Services Android ID for the device encoded as a lowercase hex string, e.g. "123456789abcdef0". - #[serde(alias="androidId")] + #[serde(rename="androidId")] pub android_id: String, } @@ -1036,18 +1036,18 @@ pub struct GroupLicense { /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#groupLicense". pub kind: String, /// The number of purchased licenses (possibly in multiple purchases). If this field is omitted then there is no limit on the number of licenses that can be provisioned (e.g. if the acquisition kind is "free"). - #[serde(alias="numPurchased")] + #[serde(rename="numPurchased")] pub num_purchased: i32, /// The total number of provisioned licenses for this product. Returned by read operations, but ignored in write operations. - #[serde(alias="numProvisioned")] + #[serde(rename="numProvisioned")] pub num_provisioned: i32, /// How this group license was acquired. "bulkPurchase" means that this group license object was created because the enterprise purchased licenses for this product; this is "free" otherwise (for free products). - #[serde(alias="acquisitionKind")] + #[serde(rename="acquisitionKind")] pub acquisition_kind: String, /// Whether the product to which this group license relates is currently approved by the enterprise, as either "approved" or "unapproved". 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: String, /// The ID of the product that the license is for, e.g. "app:com.google.android.gm". - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -1067,7 +1067,7 @@ impl ResponseResult for GroupLicense {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GroupLicensesListResponse { /// A group license for a product approved for use in the enterprise. - #[serde(alias="groupLicense")] + #[serde(rename="groupLicense")] pub group_license: Vec, /// Identifies what kind of resource this is. Value: the fixed string "androidenterprise#groupLicensesListResponse". pub kind: String, diff --git a/gen/androidpublisher2/Cargo.toml b/gen/androidpublisher2/Cargo.toml index 194878f5fe..a59edcaf45 100644 --- a/gen/androidpublisher2/Cargo.toml +++ b/gen/androidpublisher2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androidpublisher2" -version = "0.1.3+20150323" +version = "0.1.4+20150323" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Publisher (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidpublisher2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/androidpublisher2/README.md b/gen/androidpublisher2/README.md index e1a61698e2..6c54030360 100644 --- a/gen/androidpublisher2/README.md +++ b/gen/androidpublisher2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-androidpublisher2` library allows access to all features of the *Google Android Publisher* service. -This documentation was generated from *Android Publisher* crate version *0.1.3+20150323*, where *20150323* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Android Publisher* crate version *0.1.4+20150323*, where *20150323* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *Android Publisher* *v2* API can be found at the [official documentation site](https://developers.google.com/android-publisher). diff --git a/gen/androidpublisher2/src/lib.rs b/gen/androidpublisher2/src/lib.rs index 597c4724ee..7f85292cbd 100644 --- a/gen/androidpublisher2/src/lib.rs +++ b/gen/androidpublisher2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Publisher* crate version *0.1.3+20150323*, where *20150323* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Android Publisher* crate version *0.1.4+20150323*, where *20150323* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *Android Publisher* *v2* API can be found at the //! [official documentation site](https://developers.google.com/android-publisher). @@ -323,7 +323,7 @@ impl<'a, C, NC, A> AndroidPublisher AndroidPublisher { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -339,7 +339,7 @@ impl<'a, C, NC, A> AndroidPublisher } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -385,28 +385,28 @@ pub struct InAppProduct { /// no description provided pub status: Option, /// The period of the subscription (if any), i.e. period at which payments must happen. Defined as ISO 8601 duration, i.e. "P1M" for 1 month period. - #[serde(alias="subscriptionPeriod")] + #[serde(rename="subscriptionPeriod")] pub subscription_period: Option, /// Definition of a season for a seasonal subscription. Can be defined only for yearly subscriptions. pub season: Option, /// The package name of the parent app. - #[serde(alias="packageName")] + #[serde(rename="packageName")] pub package_name: Option, /// List of localized title and description data. pub listings: Option>, /// Trial period, specified in ISO 8601 format. Acceptable values are anything between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions cannot have a trial period. - #[serde(alias="trialPeriod")] + #[serde(rename="trialPeriod")] pub trial_period: Option, /// Purchase type enum value. Unmodifiable after creation. - #[serde(alias="purchaseType")] + #[serde(rename="purchaseType")] pub purchase_type: Option, /// The default language of the localized data, as defined by BCP 47. e.g. "en-US", "en-GB". - #[serde(alias="defaultLanguage")] + #[serde(rename="defaultLanguage")] pub default_language: Option, /// Prices per buyer region. None of these prices should be zero. In-app products can never be free. pub prices: Option>, /// Default price cannot be zero. In-app products can never be free. Default price is always in the developer's Checkout merchant currency. - #[serde(alias="defaultPrice")] + #[serde(rename="defaultPrice")] pub default_price: Option, } @@ -445,7 +445,7 @@ impl ResponseResult for ImagesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ExpansionFilesUploadResponse { /// no description provided - #[serde(alias="expansionFile")] + #[serde(rename="expansionFile")] pub expansion_file: ExpansionFile, } @@ -459,10 +459,10 @@ impl ResponseResult for ExpansionFilesUploadResponse {} #[derive(Default, Clone, Debug, Serialize)] pub struct SubscriptionDeferralInfo { /// The expected expiry time for the subscription. If the current expiry time for the subscription is not the value specified here, the deferral will not occur. - #[serde(alias="expectedExpiryTimeMillis")] + #[serde(rename="expectedExpiryTimeMillis")] pub expected_expiry_time_millis: String, /// The desired next expiry time for the subscription in milliseconds since Epoch. The given time must be after the current expiry time for the subscription. - #[serde(alias="desiredExpiryTimeMillis")] + #[serde(rename="desiredExpiryTimeMillis")] pub desired_expiry_time_millis: String, } @@ -485,10 +485,10 @@ pub struct Listing { /// URL of a promotional YouTube video for the app. pub video: Option, /// Short description of the app (previously known as promo text); this may be up to 80 characters in length. - #[serde(alias="shortDescription")] + #[serde(rename="shortDescription")] pub short_description: Option, /// Full description of the app; this may be up to 4000 characters in length. - #[serde(alias="fullDescription")] + #[serde(rename="fullDescription")] pub full_description: Option, /// Language localization code (for example, "de-AT" for Austrian German). pub language: Option, @@ -547,20 +547,20 @@ pub struct ProductPurchase { /// The consumption state of the inapp product. Possible values are: /// - Yet to be consumed /// - Consumed - #[serde(alias="consumptionState")] + #[serde(rename="consumptionState")] pub consumption_state: i32, /// A developer-specified string that contains supplemental information about an order. - #[serde(alias="developerPayload")] + #[serde(rename="developerPayload")] pub developer_payload: String, /// This kind represents an inappPurchase object in the androidpublisher service. pub kind: String, /// The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). - #[serde(alias="purchaseTimeMillis")] + #[serde(rename="purchaseTimeMillis")] pub purchase_time_millis: String, /// The purchase state of the order. Possible values are: /// - Purchased /// - Cancelled - #[serde(alias="purchaseState")] + #[serde(rename="purchaseState")] pub purchase_state: i32, } @@ -621,10 +621,10 @@ pub struct Track { /// no description provided pub track: Option, /// no description provided - #[serde(alias="userFraction")] + #[serde(rename="userFraction")] pub user_fraction: Option, /// no description provided - #[serde(alias="versionCodes")] + #[serde(rename="versionCodes")] pub version_codes: Option>, } @@ -674,7 +674,7 @@ impl Part for InAppProductListing {} #[derive(Default, Clone, Debug, Serialize)] pub struct SubscriptionPurchasesDeferRequest { /// The information about the new desired expiry time for the subscription. - #[serde(alias="deferralInfo")] + #[serde(rename="deferralInfo")] pub deferral_info: Option, } @@ -701,49 +701,49 @@ impl Part for InappproductsInsertResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ExternallyHostedApk { /// The icon image from the APK, as a base64 encoded byte array. - #[serde(alias="iconBase64")] + #[serde(rename="iconBase64")] pub icon_base64: String, /// A certificate (or array of certificates if a certificate-chain is used) used to signed this APK, represented as a base64 encoded byte array. - #[serde(alias="certificateBase64s")] + #[serde(rename="certificateBase64s")] pub certificate_base64s: Vec, /// The URL at which the APK is hosted. This must be an https URL. - #[serde(alias="externallyHostedUrl")] + #[serde(rename="externallyHostedUrl")] pub externally_hosted_url: String, /// The maximum SDK supported by this APK (optional). - #[serde(alias="maximumSdk")] + #[serde(rename="maximumSdk")] pub maximum_sdk: i32, /// The SHA256 checksum of this APK, represented as a base64 encoded byte array. - #[serde(alias="fileSha256Base64")] + #[serde(rename="fileSha256Base64")] pub file_sha256_base64: String, /// The permissions requested by this APK. - #[serde(alias="usesPermissions")] + #[serde(rename="usesPermissions")] pub uses_permissions: Vec, /// The SHA1 checksum of this APK, represented as a base64 encoded byte array. - #[serde(alias="fileSha1Base64")] + #[serde(rename="fileSha1Base64")] pub file_sha1_base64: String, /// The features required by this APK (optional). - #[serde(alias="usesFeatures")] + #[serde(rename="usesFeatures")] pub uses_features: Vec, /// The native code environments supported by this APK (optional). - #[serde(alias="nativeCodes")] + #[serde(rename="nativeCodes")] pub native_codes: Vec, /// The file size in bytes of this APK. - #[serde(alias="fileSize")] + #[serde(rename="fileSize")] pub file_size: String, /// The version name of this APK. - #[serde(alias="versionName")] + #[serde(rename="versionName")] pub version_name: String, /// The version code of this APK. - #[serde(alias="versionCode")] + #[serde(rename="versionCode")] pub version_code: i32, /// The minimum SDK targeted by this APK. - #[serde(alias="minimumSdk")] + #[serde(rename="minimumSdk")] pub minimum_sdk: i32, /// The application label. - #[serde(alias="applicationLabel")] + #[serde(rename="applicationLabel")] pub application_label: String, /// The package name. - #[serde(alias="packageName")] + #[serde(rename="packageName")] pub package_name: String, } @@ -764,16 +764,16 @@ impl Part for ExternallyHostedApk {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AppDetails { /// The user-visible support email for this app. - #[serde(alias="contactEmail")] + #[serde(rename="contactEmail")] pub contact_email: Option, /// The user-visible support telephone number for this app. - #[serde(alias="contactPhone")] + #[serde(rename="contactPhone")] pub contact_phone: Option, /// The user-visible website for this app. - #[serde(alias="contactWebsite")] + #[serde(rename="contactWebsite")] pub contact_website: Option, /// Default language code, in BCP 47 format (eg "en-US"). - #[serde(alias="defaultLanguage")] + #[serde(rename="defaultLanguage")] pub default_language: Option, } @@ -788,7 +788,7 @@ impl ResponseResult for AppDetails {} #[derive(Default, Clone, Debug, Deserialize)] pub struct InappproductsBatchResponseEntry { /// no description provided - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// no description provided pub inappproductsinsertresponse: InappproductsInsertResponse, @@ -819,7 +819,7 @@ impl Part for InappproductsInsertRequest {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ExternallyHostedApkUsesPermission { /// Optionally, the maximum SDK version for which the permission is required. - #[serde(alias="maxSdkVersion")] + #[serde(rename="maxSdkVersion")] pub max_sdk_version: i32, /// The name of the permission requested. pub name: String, @@ -835,12 +835,12 @@ impl Part for ExternallyHostedApkUsesPermission {} #[derive(Default, Clone, Debug, Serialize)] pub struct InappproductsBatchRequestEntry { /// no description provided - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// no description provided pub inappproductsinsertrequest: InappproductsInsertRequest, /// no description provided - #[serde(alias="methodName")] + #[serde(rename="methodName")] pub method_name: String, /// no description provided pub inappproductsupdaterequest: InappproductsUpdateRequest, @@ -881,7 +881,7 @@ impl ResponseResult for TracksListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SubscriptionPurchasesDeferResponse { /// The new expiry time for the subscription in milliseconds since the Epoch. - #[serde(alias="newExpiryTimeMillis")] + #[serde(rename="newExpiryTimeMillis")] pub new_expiry_time_millis: String, } @@ -902,10 +902,10 @@ pub struct InappproductsListResponse { /// Identifies what kind of resource this is. Value: the fixed string "androidpublisher#inappproductsListResponse". pub kind: String, /// no description provided - #[serde(alias="tokenPagination")] + #[serde(rename="tokenPagination")] pub token_pagination: TokenPagination, /// no description provided - #[serde(alias="pageInfo")] + #[serde(rename="pageInfo")] pub page_info: PageInfo, /// no description provided pub inappproduct: Vec, @@ -921,10 +921,10 @@ impl ResponseResult for InappproductsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TokenPagination { /// no description provided - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// no description provided - #[serde(alias="previousPageToken")] + #[serde(rename="previousPageToken")] pub previous_page_token: String, } @@ -945,7 +945,7 @@ impl Part for TokenPagination {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ApkListing { /// Describe what's new in your APK. - #[serde(alias="recentChanges")] + #[serde(rename="recentChanges")] pub recent_changes: Option, /// The language code, in BCP 47 format (eg "en-US"). pub language: Option, @@ -969,10 +969,10 @@ impl ResponseResult for ApkListing {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Testers { /// no description provided - #[serde(alias="googleGroups")] + #[serde(rename="googleGroups")] pub google_groups: Option>, /// no description provided - #[serde(alias="googlePlusCommunities")] + #[serde(rename="googlePlusCommunities")] pub google_plus_communities: Option>, } @@ -994,10 +994,10 @@ impl ResponseResult for Testers {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ExpansionFile { /// If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set. - #[serde(alias="referencesVersion")] + #[serde(rename="referencesVersion")] pub references_version: Option, /// If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes. - #[serde(alias="fileSize")] + #[serde(rename="fileSize")] pub file_size: Option, } @@ -1017,7 +1017,7 @@ impl ResponseResult for ExpansionFile {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ApksAddExternallyHostedResponse { /// The definition of the externally-hosted APK and where it is located. - #[serde(alias="externallyHostedApk")] + #[serde(rename="externallyHostedApk")] pub externally_hosted_apk: ExternallyHostedApk, } @@ -1036,15 +1036,15 @@ impl ResponseResult for ApksAddExternallyHostedResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SubscriptionPurchase { /// Whether the subscription will automatically be renewed when it reaches its current expiry time. - #[serde(alias="autoRenewing")] + #[serde(rename="autoRenewing")] pub auto_renewing: bool, /// This kind represents a subscriptionPurchase object in the androidpublisher service. pub kind: String, /// Time at which the subscription will expire, in milliseconds since Epoch. - #[serde(alias="expiryTimeMillis")] + #[serde(rename="expiryTimeMillis")] pub expiry_time_millis: String, /// Time at which the subscription was granted, in milliseconds since Epoch. - #[serde(alias="startTimeMillis")] + #[serde(rename="startTimeMillis")] pub start_time_millis: String, } @@ -1066,7 +1066,7 @@ impl ResponseResult for SubscriptionPurchase {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AppEdit { /// The time at which the edit will expire and will be no longer valid for use in any subsequent API calls (encoded as seconds since the Epoch). - #[serde(alias="expiryTimeSeconds")] + #[serde(rename="expiryTimeSeconds")] pub expiry_time_seconds: Option, /// The ID of the edit that can be used in subsequent API calls. pub id: Option, @@ -1116,13 +1116,13 @@ impl Part for InappproductsUpdateRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PageInfo { /// no description provided - #[serde(alias="resultPerPage")] + #[serde(rename="resultPerPage")] pub result_per_page: i32, /// no description provided - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// no description provided - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: i32, } @@ -1159,7 +1159,7 @@ impl ResponseResult for ImagesUploadResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Apk { /// The version code of the APK, as specified in the APK's manifest file. - #[serde(alias="versionCode")] + #[serde(rename="versionCode")] pub version_code: i32, /// Information about the binary payload of this APK. pub binary: ApkBinary, @@ -1217,7 +1217,7 @@ impl Part for Image {} #[derive(Default, Clone, Debug, Serialize)] pub struct ApksAddExternallyHostedRequest { /// The definition of the externally-hosted APK and where it is located. - #[serde(alias="externallyHostedApk")] + #[serde(rename="externallyHostedApk")] pub externally_hosted_apk: Option, } @@ -1246,7 +1246,7 @@ pub struct Price { /// 3 letter Currency code, as defined by ISO 4217. pub currency: String, /// The price in millionths of the currency base unit represented as a string. - #[serde(alias="priceMicros")] + #[serde(rename="priceMicros")] pub price_micros: String, } diff --git a/gen/appsactivity1/Cargo.toml b/gen/appsactivity1/Cargo.toml index f3ed28aaa9..beef1d3722 100644 --- a/gen/appsactivity1/Cargo.toml +++ b/gen/appsactivity1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appsactivity1" -version = "0.1.3+20140828" +version = "0.1.4+20140828" authors = ["Sebastian Thiel "] description = "A complete library to interact with appsactivity (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appsactivity1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/appsactivity1/README.md b/gen/appsactivity1/README.md index 1b8b6537f9..472dcde0db 100644 --- a/gen/appsactivity1/README.md +++ b/gen/appsactivity1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-appsactivity1` library allows access to all features of the *Google appsactivity* service. -This documentation was generated from *appsactivity* crate version *0.1.3+20140828*, where *20140828* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *appsactivity* crate version *0.1.4+20140828*, where *20140828* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *appsactivity* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/activity/). diff --git a/gen/appsactivity1/src/lib.rs b/gen/appsactivity1/src/lib.rs index 7b3999905f..d331faf548 100644 --- a/gen/appsactivity1/src/lib.rs +++ b/gen/appsactivity1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *appsactivity* crate version *0.1.3+20140828*, where *20140828* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *appsactivity* crate version *0.1.4+20140828*, where *20140828* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *appsactivity* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/activity/). @@ -322,7 +322,7 @@ impl<'a, C, NC, A> Appsactivity Appsactivity { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -332,7 +332,7 @@ impl<'a, C, NC, A> Appsactivity } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -353,10 +353,10 @@ impl<'a, C, NC, A> Appsactivity #[derive(Default, Clone, Debug, Deserialize)] pub struct Rename { /// The new title. - #[serde(alias="newTitle")] + #[serde(rename="newTitle")] pub new_title: String, /// The old title. - #[serde(alias="oldTitle")] + #[serde(rename="oldTitle")] pub old_title: String, } @@ -370,10 +370,10 @@ impl Part for Rename {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PermissionChange { /// Lists all Permission objects removed. - #[serde(alias="removedPermissions")] + #[serde(rename="removedPermissions")] pub removed_permissions: Vec, /// Lists all Permission objects added. - #[serde(alias="addedPermissions")] + #[serde(rename="addedPermissions")] pub added_permissions: Vec, } @@ -387,7 +387,7 @@ impl Part for PermissionChange {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Target { /// The MIME type of the target. - #[serde(alias="mimeType")] + #[serde(rename="mimeType")] pub mime_type: String, /// The ID of the target. For example, in Google Drive, this is the file or folder ID. pub id: String, @@ -407,7 +407,7 @@ pub struct Parent { /// The parent's ID. pub id: String, /// Whether this is the root folder. - #[serde(alias="isRoot")] + #[serde(rename="isRoot")] pub is_root: bool, /// The parent's title. pub title: String, @@ -423,17 +423,17 @@ impl Part for Parent {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Permission { /// Whether the permission requires a link to the file. - #[serde(alias="withLink")] + #[serde(rename="withLink")] pub with_link: bool, /// The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource. - #[serde(alias="permissionId")] + #[serde(rename="permissionId")] pub permission_id: String, /// Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file. pub role: String, /// The name of the user or group the permission applies to. pub name: String, /// Indicates how widely permissions are granted. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The user's information if the type is USER. pub user: User, @@ -462,10 +462,10 @@ impl Part for Photo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Move { /// The removed parent(s). - #[serde(alias="removedParents")] + #[serde(rename="removedParents")] pub removed_parents: Vec, /// The added parent(s). - #[serde(alias="addedParents")] + #[serde(rename="addedParents")] pub added_parents: Vec, } @@ -484,7 +484,7 @@ impl Part for Move {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ListActivitiesResponse { /// Token for the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of activities. pub activities: Vec, @@ -515,10 +515,10 @@ impl Part for User {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Activity { /// The fields common to all of the singleEvents that make up the Activity. - #[serde(alias="combinedEvent")] + #[serde(rename="combinedEvent")] pub combined_event: Event, /// A list of all the Events that make up the Activity. - #[serde(alias="singleEvents")] + #[serde(rename="singleEvents")] pub single_events: Vec, } @@ -536,24 +536,24 @@ pub struct Event { /// Information specific to the Target object modified by the event. pub target: Target, /// 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(alias="additionalEventTypes")] + #[serde(rename="additionalEventTypes")] pub additional_event_types: Vec, /// Extra information for move type events, such as changes in an object's parents. - #[serde(alias="move")] + #[serde(rename="move")] pub move_: Move, /// Extra information for permissionChange type events, such as the user or group the new permission applies to. - #[serde(alias="permissionChanges")] + #[serde(rename="permissionChanges")] pub permission_changes: Vec, /// Represents the user responsible for the event. pub user: User, /// The time at which the event occurred formatted as Unix time in milliseconds. - #[serde(alias="eventTimeMillis")] + #[serde(rename="eventTimeMillis")] pub event_time_millis: String, /// The main type of event that occurred. - #[serde(alias="primaryEventType")] + #[serde(rename="primaryEventType")] pub primary_event_type: String, /// Whether this event is caused by a user being deleted. - #[serde(alias="fromUserDeletion")] + #[serde(rename="fromUserDeletion")] pub from_user_deletion: bool, } diff --git a/gen/appstate1/Cargo.toml b/gen/appstate1/Cargo.toml index 47f5913617..12f3b0125f 100644 --- a/gen/appstate1/Cargo.toml +++ b/gen/appstate1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appstate1" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with App State (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appstate1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/appstate1/README.md b/gen/appstate1/README.md index 882c46a5e3..f23e40904f 100644 --- a/gen/appstate1/README.md +++ b/gen/appstate1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-appstate1` library allows access to all features of the *Google App State* service. -This documentation was generated from *App State* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *App State* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *App State* *v1* API can be found at the [official documentation site](https://developers.google.com/games/services/web/api/states). diff --git a/gen/appstate1/src/lib.rs b/gen/appstate1/src/lib.rs index e044b0d7dd..6c30216f59 100644 --- a/gen/appstate1/src/lib.rs +++ b/gen/appstate1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *App State* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *App State* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *App State* *v1* API can be found at the //! [official documentation site](https://developers.google.com/games/services/web/api/states). @@ -311,7 +311,7 @@ impl<'a, C, NC, A> AppState AppState { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -321,7 +321,7 @@ impl<'a, C, NC, A> AppState } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -351,7 +351,7 @@ pub struct ListResponse { /// Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse. pub kind: String, /// The maximum number of keys allowed for this user. - #[serde(alias="maximumKeyCount")] + #[serde(rename="maximumKeyCount")] pub maximum_key_count: i32, } @@ -374,10 +374,10 @@ pub struct GetResponse { /// Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse. pub kind: String, /// The key for the data. - #[serde(alias="stateKey")] + #[serde(rename="stateKey")] pub state_key: i32, /// The current app state version. - #[serde(alias="currentStateVersion")] + #[serde(rename="currentStateVersion")] pub current_state_version: String, } @@ -419,10 +419,10 @@ pub struct WriteResult { /// Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult. pub kind: String, /// The written key. - #[serde(alias="stateKey")] + #[serde(rename="stateKey")] pub state_key: i32, /// The version of the data for this key on the server. - #[serde(alias="currentStateVersion")] + #[serde(rename="currentStateVersion")] pub current_state_version: String, } diff --git a/gen/audit1/Cargo.toml b/gen/audit1/Cargo.toml index 2ffccedfb9..8d1d7ad2e5 100644 --- a/gen/audit1/Cargo.toml +++ b/gen/audit1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-audit1" -version = "0.1.3+20130108" +version = "0.1.4+20130108" authors = ["Sebastian Thiel "] description = "A complete library to interact with audit (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/audit1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/audit1/README.md b/gen/audit1/README.md index 731deb5b13..cbbefe9ccc 100644 --- a/gen/audit1/README.md +++ b/gen/audit1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-audit1` library allows access to all features of the *Google audit* service. -This documentation was generated from *audit* crate version *0.1.3+20130108*, where *20130108* is the exact revision of the *audit:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *audit* crate version *0.1.4+20130108*, where *20130108* is the exact revision of the *audit:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *audit* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/admin-audit/get_started). diff --git a/gen/audit1/src/lib.rs b/gen/audit1/src/lib.rs index d261263a51..eccb29e57e 100644 --- a/gen/audit1/src/lib.rs +++ b/gen/audit1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *audit* crate version *0.1.3+20130108*, where *20130108* is the exact revision of the *audit:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *audit* crate version *0.1.4+20130108*, where *20130108* is the exact revision of the *audit:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *audit* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/admin-audit/get_started). @@ -292,7 +292,7 @@ impl<'a, C, NC, A> Audit Audit { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -302,7 +302,7 @@ impl<'a, C, NC, A> Audit } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -345,14 +345,14 @@ impl ResponseResult for Activities {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityActor { /// ID of application which interacted on behalf of the user. - #[serde(alias="applicationId")] + #[serde(rename="applicationId")] pub application_id: String, /// Email address of the user. pub email: String, /// For OAuth 2LO API requests, consumer_key of the requestor. pub key: String, /// User or OAuth 2LO request. - #[serde(alias="callerType")] + #[serde(rename="callerType")] pub caller_type: String, } @@ -367,13 +367,13 @@ impl Part for ActivityActor {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityId { /// Unique qualifier if multiple events have the same time. - #[serde(alias="uniqQualifier")] + #[serde(rename="uniqQualifier")] pub uniq_qualifier: String, /// Application ID of the source application. - #[serde(alias="applicationId")] + #[serde(rename="applicationId")] pub application_id: String, /// Obfuscated customer ID of the source customer. - #[serde(alias="customerId")] + #[serde(rename="customerId")] pub customer_id: String, /// Time of occurrence of the activity. pub time: String, @@ -394,10 +394,10 @@ pub struct Activity { /// Activity events. pub events: Vec, /// IP Address of the user doing the action. - #[serde(alias="ipAddress")] + #[serde(rename="ipAddress")] pub ip_address: String, /// Domain of source customer. - #[serde(alias="ownerDomain")] + #[serde(rename="ownerDomain")] pub owner_domain: String, /// User doing the action. pub actor: ActivityActor, @@ -431,7 +431,7 @@ impl Part for ActivityEventsParameters {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ActivityEvents { /// Type of event. - #[serde(alias="eventType")] + #[serde(rename="eventType")] pub event_type: String, /// Name of event. pub name: String, diff --git a/gen/autoscaler1_beta2/Cargo.toml b/gen/autoscaler1_beta2/Cargo.toml index 488a4bec16..7fe68df418 100644 --- a/gen/autoscaler1_beta2/Cargo.toml +++ b/gen/autoscaler1_beta2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-autoscaler1_beta2" -version = "0.1.3+20141112" +version = "0.1.4+20141112" authors = ["Sebastian Thiel "] description = "A complete library to interact with autoscaler (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/autoscaler1_beta2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/autoscaler1_beta2/README.md b/gen/autoscaler1_beta2/README.md index bae56ade0b..2e6d1c2a71 100644 --- a/gen/autoscaler1_beta2/README.md +++ b/gen/autoscaler1_beta2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-autoscaler1_beta2` library allows access to all features of the *Google autoscaler* service. -This documentation was generated from *autoscaler* crate version *0.1.3+20141112*, where *20141112* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *autoscaler* crate version *0.1.4+20141112*, where *20141112* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *autoscaler* *v1_beta2* API can be found at the [official documentation site](http://developers.google.com/compute/docs/autoscaler). diff --git a/gen/autoscaler1_beta2/src/lib.rs b/gen/autoscaler1_beta2/src/lib.rs index 0185761615..95eaf45cb7 100644 --- a/gen/autoscaler1_beta2/src/lib.rs +++ b/gen/autoscaler1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *autoscaler* crate version *0.1.3+20141112*, where *20141112* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *autoscaler* crate version *0.1.4+20141112*, where *20141112* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *autoscaler* *v1_beta2* API can be found at the //! [official documentation site](http://developers.google.com/compute/docs/autoscaler). @@ -315,7 +315,7 @@ impl<'a, C, NC, A> AutoscalerHub AutoscalerHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -331,7 +331,7 @@ impl<'a, C, NC, A> AutoscalerHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -400,19 +400,19 @@ pub struct Zone { /// no description provided pub description: Option, /// no description provided - #[serde(alias="maintenanceWindows")] + #[serde(rename="maintenanceWindows")] pub maintenance_windows: Option>, /// no description provided pub deprecated: Option, /// no description provided pub region: Option, /// no description provided - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// no description provided pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// no description provided pub name: Option, @@ -451,7 +451,7 @@ impl Part for OperationWarnings {} #[derive(Default, Clone, Debug, Deserialize)] pub struct OperationList { /// no description provided - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// no description provided pub items: Vec, @@ -460,7 +460,7 @@ pub struct OperationList { /// no description provided pub id: String, /// no description provided - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -474,12 +474,12 @@ impl ResponseResult for OperationList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ZoneMaintenanceWindows { /// no description provided - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// no description provided pub description: String, /// no description provided - #[serde(alias="beginTime")] + #[serde(rename="beginTime")] pub begin_time: String, /// no description provided pub name: String, @@ -498,10 +498,10 @@ pub struct AutoscalingPolicyCustomMetricUtilization { /// Identifier of the metric. It should be a Cloud Monitoring metric. The metric can not have negative values. The metric should be an utilization metric (increasing number of VMs handling requests x times should reduce average value of the metric roughly x times). For example you could use: compute.googleapis.com/instance/network/received_bytes_count. pub metric: String, /// Defines type in which utilization_target is expressed. - #[serde(alias="utilizationTargetType")] + #[serde(rename="utilizationTargetType")] pub utilization_target_type: String, /// Target value of the metric which Autoscaler should maintain. Must be a positive value. - #[serde(alias="utilizationTarget")] + #[serde(rename="utilizationTarget")] pub utilization_target: f64, } @@ -533,22 +533,22 @@ impl Part for OperationErrorErrors {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AutoscalingPolicy { /// Configuration parameters of autoscaling based on custom metric. - #[serde(alias="customMetricUtilizations")] + #[serde(rename="customMetricUtilizations")] pub custom_metric_utilizations: Vec, /// The maximum number of replicas that the Autoscaler can scale up to. - #[serde(alias="maxNumReplicas")] + #[serde(rename="maxNumReplicas")] pub max_num_replicas: i32, /// Exactly one utilization policy should be provided. Configuration parameters of CPU based autoscaling policy. - #[serde(alias="cpuUtilization")] + #[serde(rename="cpuUtilization")] pub cpu_utilization: AutoscalingPolicyCpuUtilization, /// The minimum number of replicas that the Autoscaler can scale down to. - #[serde(alias="minNumReplicas")] + #[serde(rename="minNumReplicas")] pub min_num_replicas: i32, /// The number of seconds that the Autoscaler should wait between two succeeding changes to the number of virtual machines. You should define an interval that is at least as long as the initialization time of a virtual machine and the time it may take for replica pool to create the virtual machine. The default is 60 seconds. - #[serde(alias="coolDownPeriodSec")] + #[serde(rename="coolDownPeriodSec")] pub cool_down_period_sec: i32, /// Configuration parameters of autoscaling based on load balancer. - #[serde(alias="loadBalancingUtilization")] + #[serde(rename="loadBalancingUtilization")] pub load_balancing_utilization: AutoscalingPolicyLoadBalancingUtilization, } @@ -576,7 +576,7 @@ impl Part for OperationError {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AutoscalingPolicyCpuUtilization { /// The target utilization that the Autoscaler should maintain. It is represented as a fraction of used cores. For example: 6 cores used in 8-core VM are represented here as 0.75. Must be a float value between (0, 1]. If not defined, the default is 0.8. - #[serde(alias="utilizationTarget")] + #[serde(rename="utilizationTarget")] pub utilization_target: f64, } @@ -590,7 +590,7 @@ impl Part for AutoscalingPolicyCpuUtilization {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AutoscalingPolicyLoadBalancingUtilization { /// Fraction of backend capacity utilization (set in HTTP load balancing configuration) that Autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. For example if your maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set at 10 and you would like to keep number of instances such that each instance receives 7 QPS on average, set this to 0.7. - #[serde(alias="utilizationTarget")] + #[serde(rename="utilizationTarget")] pub utilization_target: f64, } @@ -609,7 +609,7 @@ impl Part for AutoscalingPolicyLoadBalancingUtilization {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AutoscalerListResponse { /// [Output only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Autoscaler resources. pub items: Vec, @@ -638,26 +638,26 @@ pub struct Operation { /// no description provided pub status: String, /// no description provided - #[serde(alias="insertTime")] + #[serde(rename="insertTime")] pub insert_time: String, /// no description provided pub warnings: Vec, /// no description provided pub error: OperationError, /// no description provided - #[serde(alias="targetId")] + #[serde(rename="targetId")] pub target_id: String, /// no description provided - #[serde(alias="targetLink")] + #[serde(rename="targetLink")] pub target_link: String, /// no description provided - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// no description provided - #[serde(alias="clientOperationId")] + #[serde(rename="clientOperationId")] pub client_operation_id: String, /// no description provided - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// no description provided pub id: String, @@ -670,24 +670,24 @@ pub struct Operation { /// no description provided pub region: String, /// no description provided - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// no description provided - #[serde(alias="operationType")] + #[serde(rename="operationType")] pub operation_type: String, /// no description provided - #[serde(alias="httpErrorMessage")] + #[serde(rename="httpErrorMessage")] pub http_error_message: String, /// no description provided pub progress: i32, /// no description provided - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// no description provided - #[serde(alias="httpErrorStatusCode")] + #[serde(rename="httpErrorStatusCode")] pub http_error_status_code: i32, /// no description provided - #[serde(alias="statusMessage")] + #[serde(rename="statusMessage")] pub status_message: String, /// no description provided pub user: String, @@ -708,7 +708,7 @@ impl ResponseResult for Operation {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ZoneList { /// no description provided - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// no description provided pub items: Vec, @@ -717,7 +717,7 @@ pub struct ZoneList { /// no description provided pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -747,15 +747,15 @@ pub struct Autoscaler { /// Name of the Autoscaler resource. Must be unique per project and zone. pub name: Option, /// Configuration parameters for autoscaling algorithm. - #[serde(alias="autoscalingPolicy")] + #[serde(rename="autoscalingPolicy")] pub autoscaling_policy: Option, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, /// [Output Only] A self-link to the Autoscaler configuration resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// URL to the entity which will be autoscaled. Currently the only supported value is ReplicaPool?s URL. Note: it is illegal to specify multiple Autoscalers for the same target. pub target: Option, diff --git a/gen/bigquery2/Cargo.toml b/gen/bigquery2/Cargo.toml index 5b4d228bb0..a9f83cb0f6 100644 --- a/gen/bigquery2/Cargo.toml +++ b/gen/bigquery2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-bigquery2" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with bigquery (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigquery2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/bigquery2/README.md b/gen/bigquery2/README.md index 9db00aeb70..2bac273db3 100644 --- a/gen/bigquery2/README.md +++ b/gen/bigquery2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-bigquery2` library allows access to all features of the *Google bigquery* service. -This documentation was generated from *bigquery* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *bigquery* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *bigquery* *v2* API can be found at the [official documentation site](https://developers.google.com/bigquery/docs/overview). diff --git a/gen/bigquery2/src/lib.rs b/gen/bigquery2/src/lib.rs index 2f52721fc4..73d50fb383 100644 --- a/gen/bigquery2/src/lib.rs +++ b/gen/bigquery2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *bigquery* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *bigquery* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *bigquery* *v2* API can be found at the //! [official documentation site](https://developers.google.com/bigquery/docs/overview). @@ -345,7 +345,7 @@ impl<'a, C, NC, A> Bigquery Bigquery { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -367,7 +367,7 @@ impl<'a, C, NC, A> Bigquery } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -388,7 +388,7 @@ impl<'a, C, NC, A> Bigquery #[derive(Default, Clone, Debug, Serialize)] pub struct TableDataInsertAllRequestRows { /// [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion requests on a best-effort basis. - #[serde(alias="insertId")] + #[serde(rename="insertId")] pub insert_id: String, /// [Required] A JSON object that contains a row of data. The object's properties and values must match the destination table's schema. pub json: JsonObject, @@ -405,7 +405,7 @@ impl Part for TableDataInsertAllRequestRows {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobStatistics4 { /// [Experimental] Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field. - #[serde(alias="destinationUriFileCounts")] + #[serde(rename="destinationUriFileCounts")] pub destination_uri_file_counts: Vec, } @@ -424,26 +424,26 @@ impl Part for JobStatistics4 {} #[derive(Default, Clone, Debug, Serialize)] pub struct QueryRequest { /// [Optional] How long to wait for the query to complete, in milliseconds, before the request times out and returns. Note that this is only a timeout for the request, not the query. If the query takes longer to run than the timeout value, the call returns without any results and with the 'jobComplete' flag set to false. You can call GetQueryResults() to wait for the query to complete and read the results. The default value is 10000 milliseconds (10 seconds). - #[serde(alias="timeoutMs")] + #[serde(rename="timeoutMs")] pub timeout_ms: Option, /// The resource type of the request. pub kind: Option, /// [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. - #[serde(alias="dryRun")] + #[serde(rename="dryRun")] pub dry_run: Option, /// [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true. - #[serde(alias="useQueryCache")] + #[serde(rename="useQueryCache")] pub use_query_cache: Option, /// [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. - #[serde(alias="defaultDataset")] + #[serde(rename="defaultDataset")] pub default_dataset: Option, /// [Optional] The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies. - #[serde(alias="maxResults")] + #[serde(rename="maxResults")] pub max_results: Option, /// [Required] A query string, following the BigQuery query syntax, of the query to execute. Example: "SELECT count(f1) FROM [myProjectId:myDatasetId.myTableId]". pub query: Option, /// [Deprecated] This property is deprecated. - #[serde(alias="preserveNulls")] + #[serde(rename="preserveNulls")] pub preserve_nulls: Option, } @@ -457,10 +457,10 @@ impl RequestValue for QueryRequest {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobStatistics2 { /// [Output-only] Whether the query result was fetched from the query cache. - #[serde(alias="cacheHit")] + #[serde(rename="cacheHit")] pub cache_hit: bool, /// [Output-only] Total bytes processed for this job. - #[serde(alias="totalBytesProcessed")] + #[serde(rename="totalBytesProcessed")] pub total_bytes_processed: String, } @@ -474,16 +474,16 @@ impl Part for JobStatistics2 {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobStatistics3 { /// [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change. - #[serde(alias="outputRows")] + #[serde(rename="outputRows")] pub output_rows: String, /// [Output-only] Number of source files in a load job. - #[serde(alias="inputFiles")] + #[serde(rename="inputFiles")] pub input_files: String, /// [Output-only] Number of bytes of source data in a joad job. - #[serde(alias="inputFileBytes")] + #[serde(rename="inputFileBytes")] pub input_file_bytes: String, /// [Output-only] Size of the loaded data in bytes. Note that while an import job is in the running state, this value may change. - #[serde(alias="outputBytes")] + #[serde(rename="outputBytes")] pub output_bytes: String, } @@ -512,10 +512,10 @@ impl Part for JsonObject {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProjectList { /// A token to request the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The total number of projects in the list. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, /// The type of list. pub kind: String, @@ -539,7 +539,7 @@ pub struct TableFieldSchema { /// [Optional] The field description. The maximum length is 16K characters. pub description: String, /// [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema). - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. pub mode: String, @@ -571,28 +571,28 @@ pub struct Dataset { /// [Optional] A user-friendly description of the dataset. pub description: Option, /// [Required] A reference that identifies the dataset. - #[serde(alias="datasetReference")] + #[serde(rename="datasetReference")] pub dataset_reference: Option, /// [Output-only] The time when this dataset was created, in milliseconds since the epoch. - #[serde(alias="creationTime")] + #[serde(rename="creationTime")] pub creation_time: Option, /// [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; pub access: Option>, /// [Experimental] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property. - #[serde(alias="defaultTableExpirationMs")] + #[serde(rename="defaultTableExpirationMs")] pub default_table_expiration_ms: Option, /// [Output-only] A hash of the resource. pub etag: Option, /// [Optional] A descriptive name for the dataset. - #[serde(alias="friendlyName")] + #[serde(rename="friendlyName")] pub friendly_name: Option, /// [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch. - #[serde(alias="lastModifiedTime")] + #[serde(rename="lastModifiedTime")] pub last_modified_time: Option, /// [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. pub id: Option, /// [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -637,10 +637,10 @@ impl Part for TableCell {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobReference { /// [Required] The ID of the project containing this job. - #[serde(alias="projectId")] + #[serde(rename="projectId")] pub project_id: String, /// [Required] The ID of the job. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 characters. - #[serde(alias="jobId")] + #[serde(rename="jobId")] pub job_id: String, } @@ -654,14 +654,14 @@ impl Part for JobReference {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatasetListDatasets { /// A descriptive name for the dataset, if one exists. - #[serde(alias="friendlyName")] + #[serde(rename="friendlyName")] pub friendly_name: String, /// The resource type. This property always returns the value "bigquery#dataset". pub kind: String, /// The fully-qualified, unique, opaque ID of the dataset. pub id: String, /// The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID. - #[serde(alias="datasetReference")] + #[serde(rename="datasetReference")] pub dataset_reference: DatasetReference, } @@ -676,17 +676,17 @@ impl Part for DatasetListDatasets {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TableListTables { /// The user-friendly name for this table. - #[serde(alias="friendlyName")] + #[serde(rename="friendlyName")] pub friendly_name: String, /// The resource type. pub kind: String, /// The type of table. Possible values are: TABLE, VIEW. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// An opaque ID of the table pub id: String, /// A reference uniquely identifying the table. - #[serde(alias="tableReference")] + #[serde(rename="tableReference")] pub table_reference: TableReference, } @@ -706,7 +706,7 @@ impl Part for TableListTables {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TableList { /// A token to request the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Tables in the requested dataset. pub tables: Vec, @@ -715,7 +715,7 @@ pub struct TableList { /// A hash of this page of results. pub etag: String, /// The total number of tables in the dataset. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -729,7 +729,7 @@ impl ResponseResult for TableList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProjectReference { /// [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project. - #[serde(alias="projectId")] + #[serde(rename="projectId")] pub project_id: String, } @@ -748,7 +748,7 @@ impl Part for ProjectReference {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TableDataList { /// A token used for paging results. Providing this token instead of the startIndex parameter can help you retrieve stable results when an underlying table is changing. - #[serde(alias="pageToken")] + #[serde(rename="pageToken")] pub page_token: String, /// The resource type of the response. pub kind: String, @@ -757,7 +757,7 @@ pub struct TableDataList { /// Rows of results. pub rows: Vec, /// The total number of rows in the complete table. - #[serde(alias="totalRows")] + #[serde(rename="totalRows")] pub total_rows: String, } @@ -786,12 +786,12 @@ pub struct Job { /// [Output-only] Information about the job, including starting time and ending time of the job. pub statistics: Option, /// [Optional] Reference describing the unique-per-user name of the job. - #[serde(alias="jobReference")] + #[serde(rename="jobReference")] pub job_reference: Option, /// [Output-only] A hash of this resource. pub etag: Option, /// [Output-only] A URL that can be used to access this resource again. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// [Required] Describes the job configuration. pub configuration: Option, @@ -819,12 +819,12 @@ pub struct JobListJobs { /// [Output-only] Information about the job, including starting time and ending time of the job. pub statistics: JobStatistics, /// Job reference uniquely identifying the job. - #[serde(alias="jobReference")] + #[serde(rename="jobReference")] pub job_reference: JobReference, /// Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed. pub state: String, /// A result object that will be present only if the job has failed. - #[serde(alias="errorResult")] + #[serde(rename="errorResult")] pub error_result: ErrorProto, /// [Full-projection-only] Specifies the job configuration. pub configuration: JobConfiguration, @@ -849,46 +849,46 @@ pub struct JobConfigurationLoad { /// [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. pub quote: String, /// [Required] The destination table to load the data into. - #[serde(alias="destinationTable")] + #[serde(rename="destinationTable")] pub destination_table: TableReference, /// [Required] The fully-qualified URIs that point to your data in Google Cloud Storage. Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. - #[serde(alias="sourceUris")] + #[serde(rename="sourceUris")] pub source_uris: Vec, /// Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. - #[serde(alias="allowQuotedNewlines")] + #[serde(rename="allowQuotedNewlines")] pub allow_quoted_newlines: bool, /// [Experimental] Names(case-sensitive) of properties to keep when importing data. If this is populated, only the specified properties will be imported for each entity. Currently, this is only supported for DATASTORE_BACKUP imports and only top level properties are supported. If any specified property is not found in the Datastore 'Kind' being imported, that is an error. Note: This feature is experimental and can change in the future. - #[serde(alias="projectionFields")] + #[serde(rename="projectionFields")] pub projection_fields: Vec, /// [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats. - #[serde(alias="allowJaggedRows")] + #[serde(rename="allowJaggedRows")] pub allow_jagged_rows: bool, /// [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (','). - #[serde(alias="fieldDelimiter")] + #[serde(rename="fieldDelimiter")] pub field_delimiter: String, /// [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". The default value is CSV. - #[serde(alias="sourceFormat")] + #[serde(rename="sourceFormat")] pub source_format: String, /// [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. - #[serde(alias="maxBadRecords")] + #[serde(rename="maxBadRecords")] pub max_bad_records: i32, /// [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names - #[serde(alias="ignoreUnknownValues")] + #[serde(rename="ignoreUnknownValues")] pub ignore_unknown_values: bool, /// [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="writeDisposition")] + #[serde(rename="writeDisposition")] pub write_disposition: String, /// [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. - #[serde(alias="skipLeadingRows")] + #[serde(rename="skipLeadingRows")] pub skip_leading_rows: i32, /// [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="createDisposition")] + #[serde(rename="createDisposition")] pub create_disposition: String, /// [Deprecated] The format of the schemaInline property. - #[serde(alias="schemaInlineFormat")] + #[serde(rename="schemaInlineFormat")] pub schema_inline_format: String, /// [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT". - #[serde(alias="schemaInline")] + #[serde(rename="schemaInline")] pub schema_inline: String, /// [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists or if the schema can be inferred from the loaded data. pub schema: TableSchema, @@ -909,10 +909,10 @@ impl Part for JobConfigurationLoad {} #[derive(Default, Clone, Debug, Deserialize)] pub struct JobList { /// A token to request the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Total number of jobs in this collection. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, /// The resource type of the response. pub kind: String, @@ -932,24 +932,24 @@ impl ResponseResult for JobList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobConfigurationExtract { /// [Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary. The fully-qualified Google Cloud Storage URI where the extracted table should be written. - #[serde(alias="destinationUri")] + #[serde(rename="destinationUri")] pub destination_uri: String, /// [Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON and AVRO. The default value is CSV. Tables with nested or repeated fields cannot be exported as CSV. - #[serde(alias="destinationFormat")] + #[serde(rename="destinationFormat")] pub destination_format: String, /// [Optional] The compression type to use for exported files. Possible values include GZIP and NONE. The default value is NONE. pub compression: String, /// [Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written. - #[serde(alias="destinationUris")] + #[serde(rename="destinationUris")] pub destination_uris: Vec, /// [Optional] Whether to print out a header row in the results. Default is true. - #[serde(alias="printHeader")] + #[serde(rename="printHeader")] pub print_header: bool, /// [Optional] Delimiter to use between fields in the exported data. Default is ',' - #[serde(alias="fieldDelimiter")] + #[serde(rename="fieldDelimiter")] pub field_delimiter: String, /// [Required] A reference to the table being exported. - #[serde(alias="sourceTable")] + #[serde(rename="sourceTable")] pub source_table: TableReference, } @@ -972,22 +972,22 @@ pub struct GetQueryResultsResponse { /// An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. Present only when the query completes successfully. pub rows: Vec, /// Reference to the BigQuery Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults). - #[serde(alias="jobReference")] + #[serde(rename="jobReference")] pub job_reference: JobReference, /// Whether the query result was fetched from the query cache. - #[serde(alias="cacheHit")] + #[serde(rename="cacheHit")] pub cache_hit: bool, /// Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available. - #[serde(alias="jobComplete")] + #[serde(rename="jobComplete")] pub job_complete: bool, /// The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results. Present only when the query completes successfully. - #[serde(alias="totalRows")] + #[serde(rename="totalRows")] pub total_rows: String, /// The total number of bytes processed for this query. - #[serde(alias="totalBytesProcessed")] + #[serde(rename="totalBytesProcessed")] pub total_bytes_processed: String, /// A token used for paging results. - #[serde(alias="pageToken")] + #[serde(rename="pageToken")] pub page_token: String, /// A hash of this response. pub etag: String, @@ -1005,20 +1005,20 @@ impl ResponseResult for GetQueryResultsResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CsvOptions { /// [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. - #[serde(alias="allowJaggedRows")] + #[serde(rename="allowJaggedRows")] pub allow_jagged_rows: bool, /// [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. - #[serde(alias="skipLeadingRows")] + #[serde(rename="skipLeadingRows")] pub skip_leading_rows: i32, /// [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (','). - #[serde(alias="fieldDelimiter")] + #[serde(rename="fieldDelimiter")] pub field_delimiter: String, /// [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. pub encoding: String, /// [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. pub quote: String, /// [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. - #[serde(alias="allowQuotedNewlines")] + #[serde(rename="allowQuotedNewlines")] pub allow_quoted_newlines: bool, } @@ -1032,21 +1032,21 @@ impl Part for CsvOptions {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ExternalDataConfiguration { /// [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns - #[serde(alias="ignoreUnknownValues")] + #[serde(rename="ignoreUnknownValues")] pub ignore_unknown_values: bool, /// [Required] The fully-qualified URIs that point to your data in Google Cloud Storage. Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. CSV limits related to load jobs apply to external data sources, plus an additional limit of 10 GB maximum size across all URIs. - #[serde(alias="sourceUris")] + #[serde(rename="sourceUris")] pub source_uris: Vec, /// [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. pub compression: String, /// Additional properties to set if sourceFormat is set to CSV. - #[serde(alias="csvOptions")] + #[serde(rename="csvOptions")] pub csv_options: CsvOptions, /// [Optional] The data format. External data sources must be in CSV format. The default value is CSV. - #[serde(alias="sourceFormat")] + #[serde(rename="sourceFormat")] pub source_format: String, /// [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. - #[serde(alias="maxBadRecords")] + #[serde(rename="maxBadRecords")] pub max_bad_records: i32, /// [Required] The schema for the data. pub schema: TableSchema, @@ -1062,7 +1062,7 @@ impl Part for ExternalDataConfiguration {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ErrorProto { /// Debugging information. This property is internal to Google and should not be used. - #[serde(alias="debugInfo")] + #[serde(rename="debugInfo")] pub debug_info: String, /// A human-readable description of the error. pub message: String, @@ -1082,16 +1082,16 @@ impl Part for ErrorProto {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobConfigurationLink { /// [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="createDisposition")] + #[serde(rename="createDisposition")] pub create_disposition: String, /// [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="writeDisposition")] + #[serde(rename="writeDisposition")] pub write_disposition: String, /// [Required] The destination table of the link job. - #[serde(alias="destinationTable")] + #[serde(rename="destinationTable")] pub destination_table: TableReference, /// [Required] URI of source table to link. - #[serde(alias="sourceUri")] + #[serde(rename="sourceUri")] pub source_uri: Vec, } @@ -1122,13 +1122,13 @@ pub struct DatasetAccess { /// [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER, WRITER, OWNER. pub role: String, /// [Pick one] An email address of a user to grant access to. For example: fred@example.com. - #[serde(alias="userByEmail")] + #[serde(rename="userByEmail")] pub user_by_email: String, /// [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. - #[serde(alias="specialGroup")] + #[serde(rename="specialGroup")] pub special_group: String, /// [Pick one] An email address of a Google Group to grant access to. - #[serde(alias="groupByEmail")] + #[serde(rename="groupByEmail")] pub group_by_email: String, /// [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. pub view: TableReference, @@ -1149,7 +1149,7 @@ pub struct JobStatus { /// [Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful. pub errors: Vec, /// [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful. - #[serde(alias="errorResult")] + #[serde(rename="errorResult")] pub error_result: ErrorProto, } @@ -1199,14 +1199,14 @@ impl Part for JsonValue {} #[derive(Default, Clone, Debug, Serialize)] pub struct TableDataInsertAllRequest { /// [Optional] Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. - #[serde(alias="ignoreUnknownValues")] + #[serde(rename="ignoreUnknownValues")] pub ignore_unknown_values: Option, /// The resource type of the response. pub kind: Option, /// The rows to insert. pub rows: Option>, /// [Optional] Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. - #[serde(alias="skipInvalidRows")] + #[serde(rename="skipInvalidRows")] pub skip_invalid_rows: Option, } @@ -1225,7 +1225,7 @@ impl RequestValue for TableDataInsertAllRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatasetList { /// A token that can be used to request the next results page. This property is omitted on the final results page. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The list type. This property always returns the value "bigquery#datasetList". pub kind: String, @@ -1249,18 +1249,18 @@ pub struct JobStatistics { /// [Output-only] Statistics for an extract job. pub extract: JobStatistics4, /// [Output-only] Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// [Output-only] Statistics for a query job. pub query: JobStatistics2, /// [Output-only] End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// [Output-only] Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs. - #[serde(alias="creationTime")] + #[serde(rename="creationTime")] pub creation_time: String, /// [Output-only] [Deprecated] Use the bytes processed in the query statistics instead. - #[serde(alias="totalBytesProcessed")] + #[serde(rename="totalBytesProcessed")] pub total_bytes_processed: String, } @@ -1274,35 +1274,35 @@ impl Part for JobStatistics {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobConfigurationQuery { /// [Experimental] Flattens all nested and repeated fields in the query results. The default value is true. allowLargeResults must be true if this is set to false. - #[serde(alias="flattenResults")] + #[serde(rename="flattenResults")] pub flatten_results: bool, /// [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. - #[serde(alias="useQueryCache")] + #[serde(rename="useQueryCache")] pub use_query_cache: bool, /// [Optional] Specifies the default dataset to use for unqualified table names in the query. - #[serde(alias="defaultDataset")] + #[serde(rename="defaultDataset")] pub default_dataset: DatasetReference, /// [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results. - #[serde(alias="destinationTable")] + #[serde(rename="destinationTable")] pub destination_table: TableReference, /// [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE. pub priority: String, /// [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="writeDisposition")] + #[serde(rename="writeDisposition")] pub write_disposition: String, /// If true, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. - #[serde(alias="allowLargeResults")] + #[serde(rename="allowLargeResults")] pub allow_large_results: bool, /// [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="createDisposition")] + #[serde(rename="createDisposition")] pub create_disposition: String, /// [Required] BigQuery SQL query to execute. pub query: String, /// [Deprecated] This property is deprecated. - #[serde(alias="preserveNulls")] + #[serde(rename="preserveNulls")] pub preserve_nulls: bool, /// [Experimental] If querying an external data source outside of BigQuery, describes the data format, location and other properties of the data source. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. - #[serde(alias="tableDefinitions")] + #[serde(rename="tableDefinitions")] pub table_definitions: HashMap, } @@ -1316,10 +1316,10 @@ impl Part for JobConfigurationQuery {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct DatasetReference { /// [Optional] The ID of the project containing this dataset. - #[serde(alias="projectId")] + #[serde(rename="projectId")] pub project_id: String, /// [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. - #[serde(alias="datasetId")] + #[serde(rename="datasetId")] pub dataset_id: String, } @@ -1348,7 +1348,7 @@ pub struct JobConfiguration { /// [Pick one] Configures a load job. pub load: JobConfigurationLoad, /// [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined. - #[serde(alias="dryRun")] + #[serde(rename="dryRun")] pub dry_run: bool, /// [Pick one] Configures a query job. pub query: JobConfigurationQuery, @@ -1370,17 +1370,17 @@ impl Part for JobConfiguration {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProjectListProjects { /// A descriptive name for this project. - #[serde(alias="friendlyName")] + #[serde(rename="friendlyName")] pub friendly_name: String, /// The resource type. pub kind: String, /// The numeric ID of this project. - #[serde(alias="numericId")] + #[serde(rename="numericId")] pub numeric_id: String, /// An opaque ID of this project. pub id: String, /// A unique reference to this project. - #[serde(alias="projectReference")] + #[serde(rename="projectReference")] pub project_reference: ProjectReference, } @@ -1395,13 +1395,13 @@ impl Part for ProjectListProjects {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct TableReference { /// [Required] The ID of the project containing this table. - #[serde(alias="projectId")] + #[serde(rename="projectId")] pub project_id: String, /// [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. - #[serde(alias="tableId")] + #[serde(rename="tableId")] pub table_id: String, /// [Required] The ID of the dataset containing this table. - #[serde(alias="datasetId")] + #[serde(rename="datasetId")] pub dataset_id: String, } @@ -1427,39 +1427,39 @@ pub struct Table { /// [Output-only] The type of the resource. pub kind: Option, /// [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. - #[serde(alias="expirationTime")] + #[serde(rename="expirationTime")] pub expiration_time: Option, /// [Optional] A user-friendly description of this table. pub description: Option, /// [Output-only] The time when this table was created, in milliseconds since the epoch. - #[serde(alias="creationTime")] + #[serde(rename="creationTime")] pub creation_time: Option, /// [Output-only] An opaque ID uniquely identifying the table. pub id: Option, /// [Output-only] The number of rows of data in this table. This property is unavailable for tables that are actively receiving streaming inserts. - #[serde(alias="numRows")] + #[serde(rename="numRows")] pub num_rows: Option, /// [Output-only] The size of the table in bytes. This property is unavailable for tables that are actively receiving streaming inserts. - #[serde(alias="numBytes")] + #[serde(rename="numBytes")] pub num_bytes: Option, /// [Output-only] A hash of this resource. pub etag: Option, /// [Optional] A descriptive name for this table. - #[serde(alias="friendlyName")] + #[serde(rename="friendlyName")] pub friendly_name: Option, /// [Output-only] The time when this table was last modified, in milliseconds since the epoch. - #[serde(alias="lastModifiedTime")] + #[serde(rename="lastModifiedTime")] pub last_modified_time: Option, /// [Optional] Describes the schema of this table. pub schema: Option, /// [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. The default value is TABLE. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// [Required] Reference describing the ID of this table. - #[serde(alias="tableReference")] + #[serde(rename="tableReference")] pub table_reference: Option, /// [Output-only] A URL that can be used to access this resource again. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// [Optional] The view definition. pub view: Option, @@ -1484,7 +1484,7 @@ pub struct TableDataInsertAllResponse { /// The resource type of the response. pub kind: String, /// An array of errors for rows that were not inserted. - #[serde(alias="insertErrors")] + #[serde(rename="insertErrors")] pub insert_errors: Vec, } @@ -1507,22 +1507,22 @@ pub struct QueryResponse { /// An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. pub rows: Vec, /// Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults). - #[serde(alias="jobReference")] + #[serde(rename="jobReference")] pub job_reference: JobReference, /// Whether the query result was fetched from the query cache. - #[serde(alias="cacheHit")] + #[serde(rename="cacheHit")] pub cache_hit: bool, /// Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available. - #[serde(alias="jobComplete")] + #[serde(rename="jobComplete")] pub job_complete: bool, /// The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results. - #[serde(alias="totalRows")] + #[serde(rename="totalRows")] pub total_rows: String, /// The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run. - #[serde(alias="totalBytesProcessed")] + #[serde(rename="totalBytesProcessed")] pub total_bytes_processed: String, /// A token used for paging results. - #[serde(alias="pageToken")] + #[serde(rename="pageToken")] pub page_token: String, /// The schema of the results. Present only when the query completes successfully. pub schema: TableSchema, @@ -1538,19 +1538,19 @@ impl ResponseResult for QueryResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct JobConfigurationTableCopy { /// [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="createDisposition")] + #[serde(rename="createDisposition")] pub create_disposition: String, /// [Pick one] Source tables to copy. - #[serde(alias="sourceTables")] + #[serde(rename="sourceTables")] pub source_tables: Vec, /// [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. - #[serde(alias="writeDisposition")] + #[serde(rename="writeDisposition")] pub write_disposition: String, /// [Required] The destination table - #[serde(alias="destinationTable")] + #[serde(rename="destinationTable")] pub destination_table: TableReference, /// [Pick one] Source table to copy. - #[serde(alias="sourceTable")] + #[serde(rename="sourceTable")] pub source_table: TableReference, } diff --git a/gen/blogger3/Cargo.toml b/gen/blogger3/Cargo.toml index 7f8344cc5b..ed8e96ca24 100644 --- a/gen/blogger3/Cargo.toml +++ b/gen/blogger3/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-blogger3" -version = "0.1.3+20150208" +version = "0.1.4+20150208" authors = ["Sebastian Thiel "] description = "A complete library to interact with blogger (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/blogger3" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/blogger3/README.md b/gen/blogger3/README.md index 0eec41a33c..f2c3c2799d 100644 --- a/gen/blogger3/README.md +++ b/gen/blogger3/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-blogger3` library allows access to all features of the *Google blogger* service. -This documentation was generated from *blogger* crate version *0.1.3+20150208*, where *20150208* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *blogger* crate version *0.1.4+20150208*, where *20150208* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *blogger* *v3* API can be found at the [official documentation site](https://developers.google.com/blogger/docs/3.0/getting_started). diff --git a/gen/blogger3/src/lib.rs b/gen/blogger3/src/lib.rs index 26409e4280..64f769e75a 100644 --- a/gen/blogger3/src/lib.rs +++ b/gen/blogger3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *blogger* crate version *0.1.3+20150208*, where *20150208* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *blogger* crate version *0.1.4+20150208*, where *20150208* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *blogger* *v3* API can be found at the //! [official documentation site](https://developers.google.com/blogger/docs/3.0/getting_started). @@ -343,7 +343,7 @@ impl<'a, C, NC, A> Blogger Blogger { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -374,7 +374,7 @@ impl<'a, C, NC, A> Blogger } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -409,20 +409,20 @@ impl Part for PostBlog {} #[derive(Default, Clone, Debug, Deserialize)] pub struct BlogPerUserInfo { /// True if the user has Admin level access to the blog. - #[serde(alias="hasAdminAccess")] + #[serde(rename="hasAdminAccess")] pub has_admin_access: bool, /// The kind of this entity. Always blogger#blogPerUserInfo pub kind: String, /// Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER). pub role: String, /// The Photo Album Key for the user when adding photos to the blog - #[serde(alias="photosAlbumKey")] + #[serde(rename="photosAlbumKey")] pub photos_album_key: String, /// ID of the User - #[serde(alias="userId")] + #[serde(rename="userId")] pub user_id: String, /// ID of the Blog resource - #[serde(alias="blogId")] + #[serde(rename="blogId")] pub blog_id: String, } @@ -438,16 +438,16 @@ pub struct PostPerUserInfo { /// The kind of this entity. Always blogger#postPerUserInfo pub kind: String, /// ID of the Post resource. - #[serde(alias="postId")] + #[serde(rename="postId")] pub post_id: String, /// ID of the User. - #[serde(alias="userId")] + #[serde(rename="userId")] pub user_id: String, /// ID of the Blog that the post resource belongs to. - #[serde(alias="blogId")] + #[serde(rename="blogId")] pub blog_id: String, /// True if the user has Author level access to the post. - #[serde(alias="hasEditAccess")] + #[serde(rename="hasEditAccess")] pub has_edit_access: bool, } @@ -476,7 +476,7 @@ pub struct Blog { /// The locale this Blog is set to. pub locale: BlogLocale, /// The JSON custom meta-data for the Blog - #[serde(alias="customMetaData")] + #[serde(rename="customMetaData")] pub custom_meta_data: String, /// The container of posts in this blog. pub posts: BlogPosts, @@ -491,7 +491,7 @@ pub struct Blog { /// The container of pages in this blog. pub pages: BlogPages, /// The API REST URL to fetch this resource from. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// The name of this blog. This is displayed as the title. pub name: String, @@ -513,7 +513,7 @@ impl ResponseResult for Blog {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PostUserInfosList { /// Pagination token to fetch the next page, if one exists. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The list of Posts with User information for the post, for this Blog. pub items: Vec, @@ -572,7 +572,7 @@ pub struct CommentAuthor { /// The comment creator's avatar. pub image: CommentAuthorImage, /// The display name. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The identifier of the Comment creator. pub id: String, @@ -617,7 +617,7 @@ impl Part for CommentPost {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UserBlogs { /// The URL of the Blogs for this user. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -632,12 +632,12 @@ impl Part for UserBlogs {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct PostReplies { /// The count of comments on this post. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: String, /// The List of Comments for this Post. pub items: Vec, /// The URL of the comments on this post. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -654,7 +654,7 @@ pub struct PageviewsCounts { /// Count of page views for the given time range pub count: String, /// Time range the given count applies to - #[serde(alias="timeRange")] + #[serde(rename="timeRange")] pub time_range: String, } @@ -678,7 +678,7 @@ pub struct BlogList { /// The kind of this entity. Always blogger#blogList pub kind: String, /// Admin level list of blog per-user information - #[serde(alias="blogUserInfos")] + #[serde(rename="blogUserInfos")] pub blog_user_infos: Vec, } @@ -699,7 +699,7 @@ pub struct User { /// Profile summary information. pub about: String, /// The display name. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The timestamp of when this profile was created, in seconds since epoch. pub created: String, @@ -714,7 +714,7 @@ pub struct User { /// The identifier for this User. pub id: String, /// The API REST URL to fetch this resource from. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -761,7 +761,7 @@ pub struct Post { /// RFC 3339 date-time when this Post was last updated. pub updated: Option, /// Comment control and display setting for readers of this post. - #[serde(alias="readerComments")] + #[serde(rename="readerComments")] pub reader_comments: Option, /// The list of labels this Post was tagged with. pub labels: Option>, @@ -776,7 +776,7 @@ pub struct Post { /// The kind of this entity. Always blogger#post pub kind: Option, /// The title link URL, similar to atom's related link. - #[serde(alias="titleLink")] + #[serde(rename="titleLink")] pub title_link: Option, /// The author of this Post. pub author: Option, @@ -785,7 +785,7 @@ pub struct Post { /// The title of the Post. pub title: Option, /// The JSON meta-data for the Post. - #[serde(alias="customMetaData")] + #[serde(rename="customMetaData")] pub custom_meta_data: Option, /// The content of the Post. May contain HTML markup. pub content: Option, @@ -796,7 +796,7 @@ pub struct Post { /// RFC 3339 date-time when this Post was published. pub published: Option, /// The API REST URL to fetch this resource from. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -836,7 +836,7 @@ pub struct PostAuthor { /// The Post author's avatar. pub image: PostAuthorImage, /// The display name. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The identifier of the Post creator. pub id: String, @@ -859,14 +859,14 @@ impl Part for PostAuthor {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CommentList { /// Pagination token to fetch the next page, if one exists. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The List of Comments for a Post. pub items: Vec, /// The kind of this entry. Always blogger#commentList pub kind: String, /// Pagination token to fetch the previous page, if one exists. - #[serde(alias="prevPageToken")] + #[serde(rename="prevPageToken")] pub prev_page_token: String, } @@ -900,7 +900,7 @@ impl Part for PostImages {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PostList { /// Pagination token to fetch the next page, if one exists. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The list of Posts for this Blog. pub items: Vec, @@ -932,10 +932,10 @@ impl Part for CommentAuthorImage {} #[derive(Default, Clone, Debug, Deserialize)] pub struct BlogPages { /// The count of pages in this blog. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, /// The URL of the container for pages in this blog. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -950,12 +950,12 @@ impl Part for BlogPages {} #[derive(Default, Clone, Debug, Deserialize)] pub struct BlogPosts { /// The count of posts in this blog. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, /// The List of Posts for this Blog. pub items: Vec, /// The URL of the container for posts in this blog. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1004,7 +1004,7 @@ pub struct Page { /// The identifier for this resource. pub id: Option, /// The API REST URL to fetch this resource from. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -1033,7 +1033,7 @@ pub struct Comment { /// The status of the comment (only populated for admin users) pub status: String, /// Data about the comment this is in reply to. - #[serde(alias="inReplyTo")] + #[serde(rename="inReplyTo")] pub in_reply_to: CommentInReplyTo, /// The kind of this entry. Always blogger#comment pub kind: String, @@ -1052,7 +1052,7 @@ pub struct Comment { /// The identifier for this resource. pub id: String, /// The API REST URL to fetch this resource from. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1098,7 +1098,7 @@ pub struct Pageviews { /// The container of posts in this blog. pub counts: Vec, /// Blog Id - #[serde(alias="blogId")] + #[serde(rename="blogId")] pub blog_id: String, /// The kind of this entry. Always blogger#page_views pub kind: String, @@ -1118,7 +1118,7 @@ pub struct PageAuthor { /// The page author's avatar. pub image: PageAuthorImage, /// The display name. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The identifier of the Page creator. pub id: String, @@ -1140,7 +1140,7 @@ impl Part for PageAuthor {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PageList { /// Pagination token to fetch the next page, if one exists. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The list of Pages for a Blog. pub items: Vec, diff --git a/gen/books1/Cargo.toml b/gen/books1/Cargo.toml index 207e8f85c3..e870879282 100644 --- a/gen/books1/Cargo.toml +++ b/gen/books1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-books1" -version = "0.1.3+20150309" +version = "0.1.4+20150309" authors = ["Sebastian Thiel "] description = "A complete library to interact with books (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/books1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/books1/README.md b/gen/books1/README.md index 2d988c8ecf..60f5b6fc44 100644 --- a/gen/books1/README.md +++ b/gen/books1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-books1` library allows access to all features of the *Google books* service. -This documentation was generated from *books* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *books* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *books* *v1* API can be found at the [official documentation site](https://developers.google.com/books/docs/v1/getting_started). diff --git a/gen/books1/src/lib.rs b/gen/books1/src/lib.rs index 0bf32594a1..0664e5876c 100644 --- a/gen/books1/src/lib.rs +++ b/gen/books1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *books* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *books* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *books* *v1* API can be found at the //! [official documentation site](https://developers.google.com/books/docs/v1/getting_started). @@ -343,7 +343,7 @@ impl<'a, C, NC, A> Books Books { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -377,7 +377,7 @@ impl<'a, C, NC, A> Books } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -418,10 +418,10 @@ impl ResponseResult for Category {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CategoryItems { /// no description provided - #[serde(alias="badgeUrl")] + #[serde(rename="badgeUrl")] pub badge_url: String, /// no description provided - #[serde(alias="categoryId")] + #[serde(rename="categoryId")] pub category_id: String, /// no description provided pub name: String, @@ -444,23 +444,23 @@ pub struct ConcurrentAccessRestriction { /// Whether this volume has any concurrent access restrictions. pub restricted: bool, /// Identifies the volume for which this entry applies. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// The maximum number of concurrent access licenses for this volume. - #[serde(alias="maxConcurrentDevices")] + #[serde(rename="maxConcurrentDevices")] pub max_concurrent_devices: i32, /// Whether access is granted for this (user, device, volume). - #[serde(alias="deviceAllowed")] + #[serde(rename="deviceAllowed")] pub device_allowed: bool, /// Client app identifier for verification. Download access and client-validation only. pub source: String, /// Time in seconds for license auto-expiration. - #[serde(alias="timeWindowSeconds")] + #[serde(rename="timeWindowSeconds")] pub time_window_seconds: i32, /// Response signature. pub signature: String, /// Error/warning reason code. - #[serde(alias="reasonCode")] + #[serde(rename="reasonCode")] pub reason_code: String, /// Error/warning message. pub message: String, @@ -498,16 +498,16 @@ pub struct VolumeVolumeInfo { /// A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.) pub description: String, /// Total number of pages as per publisher metadata. - #[serde(alias="pageCount")] + #[serde(rename="pageCount")] pub page_count: i32, /// A list of image links for all the sizes that are available. (In LITE projection.) - #[serde(alias="imageLinks")] + #[serde(rename="imageLinks")] pub image_links: VolumeVolumeInfoImageLinks, /// The number of review ratings for this volume. - #[serde(alias="ratingsCount")] + #[serde(rename="ratingsCount")] pub ratings_count: i32, /// The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight. - #[serde(alias="mainCategory")] + #[serde(rename="mainCategory")] pub main_category: String, /// The names of the authors and/or editors for this volume. (In LITE projection) pub authors: Vec, @@ -520,39 +520,39 @@ pub struct VolumeVolumeInfo { /// Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc. pub language: String, /// URL to preview this volume on the Google Books site. - #[serde(alias="previewLink")] + #[serde(rename="previewLink")] pub preview_link: String, /// The reading modes available for this volume. - #[serde(alias="readingModes")] + #[serde(rename="readingModes")] pub reading_modes: String, /// Date of publication. (In LITE projection.) - #[serde(alias="publishedDate")] + #[serde(rename="publishedDate")] pub published_date: String, /// Type of publication of this volume. Possible values are BOOK or MAGAZINE. - #[serde(alias="printType")] + #[serde(rename="printType")] pub print_type: String, /// Total number of sample pages as per publisher metadata. - #[serde(alias="samplePageCount")] + #[serde(rename="samplePageCount")] pub sample_page_count: i32, /// An identifier for the version of the volume content (text & images). (In LITE projection) - #[serde(alias="contentVersion")] + #[serde(rename="contentVersion")] pub content_version: String, /// Total number of printed pages in generated pdf representation. - #[serde(alias="printedPageCount")] + #[serde(rename="printedPageCount")] pub printed_page_count: i32, /// Industry standard identifiers for this volume. - #[serde(alias="industryIdentifiers")] + #[serde(rename="industryIdentifiers")] pub industry_identifiers: Vec, /// Volume title. (In LITE projection.) pub title: String, /// The mean review rating for this volume. (min = 1.0, max = 5.0) - #[serde(alias="averageRating")] + #[serde(rename="averageRating")] pub average_rating: f64, /// URL to view information about this volume on the Google Books site. (In LITE projection) - #[serde(alias="infoLink")] + #[serde(rename="infoLink")] pub info_link: String, /// Canonical URL for a volume. (In LITE projection.) - #[serde(alias="canonicalVolumeLink")] + #[serde(rename="canonicalVolumeLink")] pub canonical_volume_link: String, } @@ -567,19 +567,19 @@ impl Part for VolumeVolumeInfo {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AnnotationClientVersionRanges { /// Range in image CFI format for this annotation sent by client. - #[serde(alias="imageCfiRange")] + #[serde(rename="imageCfiRange")] pub image_cfi_range: BooksAnnotationsRange, /// Range in GB text format for this annotation sent by client. - #[serde(alias="gbTextRange")] + #[serde(rename="gbTextRange")] pub gb_text_range: BooksAnnotationsRange, /// Content version the client sent in. - #[serde(alias="contentVersion")] + #[serde(rename="contentVersion")] pub content_version: String, /// Range in CFI format for this annotation sent by client. - #[serde(alias="cfiRange")] + #[serde(rename="cfiRange")] pub cfi_range: BooksAnnotationsRange, /// Range in GB image format for this annotation sent by client. - #[serde(alias="gbImageRange")] + #[serde(rename="gbImageRange")] pub gb_image_range: BooksAnnotationsRange, } @@ -599,12 +599,12 @@ impl Part for AnnotationClientVersionRanges {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RequestAccess { /// A download access response. - #[serde(alias="downloadAccess")] + #[serde(rename="downloadAccess")] pub download_access: DownloadAccessRestriction, /// Resource type. pub kind: String, /// A concurrent access response. - #[serde(alias="concurrentAccess")] + #[serde(rename="concurrentAccess")] pub concurrent_access: ConcurrentAccessRestriction, } @@ -624,13 +624,13 @@ pub struct OffersItemsItems { /// no description provided pub title: String, /// no description provided - #[serde(alias="coverUrl")] + #[serde(rename="coverUrl")] pub cover_url: String, /// no description provided - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// no description provided - #[serde(alias="canonicalVolumeLink")] + #[serde(rename="canonicalVolumeLink")] pub canonical_volume_link: String, } @@ -650,14 +650,14 @@ impl Part for OffersItemsItems {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Annotations { /// Token to pass in for pagination for the next page. This will not be present if this request does not have more results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of annotations. pub items: Vec, /// Resource type. pub kind: String, /// Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -671,16 +671,16 @@ impl ResponseResult for Annotations {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeSaleInfoOffers { /// The rental duration (for rental offers only). - #[serde(alias="rentalDuration")] + #[serde(rename="rentalDuration")] pub rental_duration: VolumeSaleInfoOffersRentalDuration, /// Offer retail (=discounted) price in Micros - #[serde(alias="retailPrice")] + #[serde(rename="retailPrice")] pub retail_price: VolumeSaleInfoOffersRetailPrice, /// Offer list (=undiscounted) price in Micros. - #[serde(alias="listPrice")] + #[serde(rename="listPrice")] pub list_price: VolumeSaleInfoOffersListPrice, /// The finsky offer type (e.g., PURCHASE=0 RENTAL=3) - #[serde(alias="finskyOfferType")] + #[serde(rename="finskyOfferType")] pub finsky_offer_type: i32, } @@ -728,32 +728,32 @@ pub struct Volume { /// Resource type for a volume. (In LITE projection.) pub kind: String, /// Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.). - #[serde(alias="accessInfo")] + #[serde(rename="accessInfo")] pub access_info: VolumeAccessInfo, /// Search result information related to this volume. - #[serde(alias="searchInfo")] + #[serde(rename="searchInfo")] pub search_info: VolumeSearchInfo, /// Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries). - #[serde(alias="saleInfo")] + #[serde(rename="saleInfo")] pub sale_info: VolumeSaleInfo, /// Opaque identifier for a specific version of a volume resource. (In LITE projection) pub etag: String, /// What layers exist in this volume and high level information about them. - #[serde(alias="layerInfo")] + #[serde(rename="layerInfo")] pub layer_info: VolumeLayerInfo, /// General volume information. - #[serde(alias="volumeInfo")] + #[serde(rename="volumeInfo")] pub volume_info: VolumeVolumeInfo, /// Recommendation related information for this volume. - #[serde(alias="recommendedInfo")] + #[serde(rename="recommendedInfo")] pub recommended_info: VolumeRecommendedInfo, /// Unique identifier for a volume. (In LITE projection.) pub id: String, /// URL to this resource. (In LITE projection.) - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// User specific information related to this volume. (e.g. page this user last read or whether they purchased this book) - #[serde(alias="userInfo")] + #[serde(rename="userInfo")] pub user_info: VolumeUserInfo, } @@ -790,7 +790,7 @@ pub struct Usersettings { /// Resource type. pub kind: Option, /// User settings in sub-objects, each for different purposes. - #[serde(alias="notesExport")] + #[serde(rename="notesExport")] pub notes_export: Option, } @@ -841,7 +841,7 @@ impl Part for MetadataItems {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReviewAuthor { /// Name of this person. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, } @@ -868,7 +868,7 @@ pub struct Bookshelf { /// Title of this bookshelf. pub title: String, /// Number of volumes in this bookshelf. - #[serde(alias="volumeCount")] + #[serde(rename="volumeCount")] pub volume_count: i32, /// Created time for this bookshelf (formatted UTC timestamp with millisecond resolution). pub created: String, @@ -877,12 +877,12 @@ pub struct Bookshelf { /// Whether this bookshelf is PUBLIC or PRIVATE. pub access: String, /// Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution). - #[serde(alias="volumesLastUpdated")] + #[serde(rename="volumesLastUpdated")] pub volumes_last_updated: String, /// Id of this bookshelf, only unique by user. pub id: i32, /// URL to this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -896,10 +896,10 @@ impl ResponseResult for Bookshelf {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UsersettingsNotesExport { /// no description provided - #[serde(alias="isEnabled")] + #[serde(rename="isEnabled")] pub is_enabled: bool, /// no description provided - #[serde(alias="folderName")] + #[serde(rename="folderName")] pub folder_name: String, } @@ -924,16 +924,16 @@ pub struct Annotation { /// Indicates that this annotation is deleted. pub deleted: Option, /// Selection ranges for the most recent content version. - #[serde(alias="currentVersionRanges")] + #[serde(rename="currentVersionRanges")] pub current_version_ranges: Option, /// Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty. - #[serde(alias="afterSelectedText")] + #[serde(rename="afterSelectedText")] pub after_selected_text: Option, /// The volume that this annotation belongs to. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: Option, /// Excerpt from the volume. - #[serde(alias="selectedText")] + #[serde(rename="selectedText")] pub selected_text: Option, /// User-created data for this annotation. pub data: Option, @@ -944,25 +944,25 @@ pub struct Annotation { /// Timestamp for the created time of this annotation. pub created: Option, /// Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty. - #[serde(alias="beforeSelectedText")] + #[serde(rename="beforeSelectedText")] pub before_selected_text: Option, /// Selection ranges sent from the client. - #[serde(alias="clientVersionRanges")] + #[serde(rename="clientVersionRanges")] pub client_version_ranges: Option, /// Pages that this annotation spans. - #[serde(alias="pageIds")] + #[serde(rename="pageIds")] pub page_ids: Option>, /// The layer this annotation is for. - #[serde(alias="layerId")] + #[serde(rename="layerId")] pub layer_id: Option, /// The highlight style for this annotation. - #[serde(alias="highlightStyle")] + #[serde(rename="highlightStyle")] pub highlight_style: Option, /// no description provided - #[serde(alias="layerSummary")] + #[serde(rename="layerSummary")] pub layer_summary: Option, /// URL to this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -985,7 +985,7 @@ pub struct Review { /// Author of this review. pub author: ReviewAuthor, /// Volume that this review is for. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// Review text. pub content: String, @@ -994,10 +994,10 @@ pub struct Review { /// Date of this review. pub date: String, /// Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// URL for the full review text, for reviews gathered from the web. - #[serde(alias="fullTextUrl")] + #[serde(rename="fullTextUrl")] pub full_text_url: String, } @@ -1015,26 +1015,26 @@ pub struct DownloadAccessRestriction { /// Resource type. pub kind: String, /// If deviceAllowed, whether access was just acquired with this request. - #[serde(alias="justAcquired")] + #[serde(rename="justAcquired")] pub just_acquired: bool, /// If restricted, the maximum number of content download licenses for this volume. - #[serde(alias="maxDownloadDevices")] + #[serde(rename="maxDownloadDevices")] pub max_download_devices: i32, /// If restricted, the number of content download licenses already acquired (including the requesting client, if licensed). - #[serde(alias="downloadsAcquired")] + #[serde(rename="downloadsAcquired")] pub downloads_acquired: i32, /// Identifies the volume for which this entry applies. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// If restricted, whether access is granted for this (user, device, volume). - #[serde(alias="deviceAllowed")] + #[serde(rename="deviceAllowed")] pub device_allowed: bool, /// Client app identifier for verification. Download access and client-validation only. pub source: String, /// Response signature. pub signature: String, /// Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS - #[serde(alias="reasonCode")] + #[serde(rename="reasonCode")] pub reason_code: String, /// Error/warning message. pub message: String, @@ -1057,7 +1057,7 @@ impl Part for DownloadAccessRestriction {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DownloadAccesses { /// A list of download access responses. - #[serde(alias="downloadAccessList")] + #[serde(rename="downloadAccessList")] pub download_access_list: Vec, /// Resource type. pub kind: String, @@ -1073,7 +1073,7 @@ impl ResponseResult for DownloadAccesses {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReviewSource { /// Extra text about the source of the review. - #[serde(alias="extraDescription")] + #[serde(rename="extraDescription")] pub extra_description: String, /// URL of the source of the review. pub url: String, @@ -1097,23 +1097,23 @@ impl Part for ReviewSource {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReadingPosition { /// Position in a PDF file. - #[serde(alias="pdfPosition")] + #[serde(rename="pdfPosition")] pub pdf_position: String, /// Resource type for a reading position. pub kind: String, /// Position in a volume for image-based content. - #[serde(alias="gbImagePosition")] + #[serde(rename="gbImagePosition")] pub gb_image_position: String, /// Position in a volume for text-based content. - #[serde(alias="gbTextPosition")] + #[serde(rename="gbTextPosition")] pub gb_text_position: String, /// Position in an EPUB as a CFI. - #[serde(alias="epubCfiPosition")] + #[serde(rename="epubCfiPosition")] pub epub_cfi_position: String, /// Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). pub updated: String, /// Volume id associated with this reading position. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, } @@ -1127,10 +1127,10 @@ impl ResponseResult for ReadingPosition {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeSaleInfoOffersRetailPrice { /// no description provided - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, /// no description provided - #[serde(alias="amountInMicros")] + #[serde(rename="amountInMicros")] pub amount_in_micros: f64, } @@ -1145,7 +1145,7 @@ impl Part for VolumeSaleInfoOffersRetailPrice {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeSearchInfo { /// A text snippet containing the search query. - #[serde(alias="textSnippet")] + #[serde(rename="textSnippet")] pub text_snippet: String, } @@ -1160,18 +1160,18 @@ impl Part for VolumeSearchInfo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AnnotationsSummaryLayers { /// no description provided - #[serde(alias="limitType")] + #[serde(rename="limitType")] pub limit_type: String, /// no description provided - #[serde(alias="remainingCharacterCount")] + #[serde(rename="remainingCharacterCount")] pub remaining_character_count: i32, /// no description provided pub updated: String, /// no description provided - #[serde(alias="allowedCharacterCount")] + #[serde(rename="allowedCharacterCount")] pub allowed_character_count: i32, /// no description provided - #[serde(alias="layerId")] + #[serde(rename="layerId")] pub layer_id: String, } @@ -1191,26 +1191,26 @@ impl Part for AnnotationsSummaryLayers {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Annotationdata { /// The type of annotation this data is for. - #[serde(alias="annotationType")] + #[serde(rename="annotationType")] pub annotation_type: String, /// Resource Type pub kind: String, /// Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format). pub updated: String, /// The volume id for this data. * - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// Base64 encoded data for this annotation data. pub encoded_data: String, /// The Layer id for this data. * - #[serde(alias="layerId")] + #[serde(rename="layerId")] pub layer_id: String, /// no description provided pub data: String, /// Unique id for this annotation data. pub id: String, /// URL for this resource. * - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1226,12 +1226,12 @@ pub struct VolumeVolumeInfoImageLinks { /// Image link for large size (width of ~800 pixels). (In LITE projection) pub large: String, /// Image link for extra large size (width of ~1280 pixels). (In LITE projection) - #[serde(alias="extraLarge")] + #[serde(rename="extraLarge")] pub extra_large: String, /// Image link for medium size (width of ~575 pixels). (In LITE projection) pub medium: String, /// Image link for small thumbnail size (width of ~80 pixels). (In LITE projection) - #[serde(alias="smallThumbnail")] + #[serde(rename="smallThumbnail")] pub small_thumbnail: String, /// Image link for small size (width of ~300 pixels). (In LITE projection) pub small: String, @@ -1252,7 +1252,7 @@ pub struct VolumeSaleInfoRetailPrice { /// Amount in the currency listed below. (In LITE projection.) pub amount: f64, /// An ISO 4217, three-letter currency code. (In LITE projection.) - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, } @@ -1274,38 +1274,38 @@ pub struct Layersummary { /// Resource Type pub kind: String, /// The number of annotations for this layer. - #[serde(alias="annotationCount")] + #[serde(rename="annotationCount")] pub annotation_count: i32, /// The number of data items for this layer. - #[serde(alias="dataCount")] + #[serde(rename="dataCount")] pub data_count: i32, /// The list of annotation types contained for this layer. - #[serde(alias="annotationTypes")] + #[serde(rename="annotationTypes")] pub annotation_types: Vec, /// Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format). pub updated: String, /// The volume id this resource is for. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// Link to get data for this annotation. - #[serde(alias="annotationsDataLink")] + #[serde(rename="annotationsDataLink")] pub annotations_data_link: String, /// The link to get the annotations for this layer. - #[serde(alias="annotationsLink")] + #[serde(rename="annotationsLink")] pub annotations_link: String, /// The content version this resource is for. - #[serde(alias="contentVersion")] + #[serde(rename="contentVersion")] pub content_version: String, /// The layer id for this summary. - #[serde(alias="layerId")] + #[serde(rename="layerId")] pub layer_id: String, /// The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately. - #[serde(alias="volumeAnnotationsVersion")] + #[serde(rename="volumeAnnotationsVersion")] pub volume_annotations_version: String, /// Unique id of this layer summary. pub id: String, /// URL to this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1319,10 +1319,10 @@ impl ResponseResult for Layersummary {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeSaleInfoOffersListPrice { /// no description provided - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, /// no description provided - #[serde(alias="amountInMicros")] + #[serde(rename="amountInMicros")] pub amount_in_micros: f64, } @@ -1342,41 +1342,41 @@ impl Part for VolumeSaleInfoOffersListPrice {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Volumeannotation { /// The type of annotation this is. - #[serde(alias="annotationType")] + #[serde(rename="annotationType")] pub annotation_type: String, /// Resource Type pub kind: String, /// Indicates that this annotation is deleted. pub deleted: bool, /// The content ranges to identify the selected text. - #[serde(alias="contentRanges")] + #[serde(rename="contentRanges")] pub content_ranges: VolumeannotationContentRanges, /// Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format). pub updated: String, /// The Volume this annotation is for. - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: String, /// The annotation data id for this volume annotation. - #[serde(alias="annotationDataId")] + #[serde(rename="annotationDataId")] pub annotation_data_id: String, /// Link to get data for this annotation. - #[serde(alias="annotationDataLink")] + #[serde(rename="annotationDataLink")] pub annotation_data_link: String, /// Pages the annotation spans. - #[serde(alias="pageIds")] + #[serde(rename="pageIds")] pub page_ids: Vec, /// The Layer this annotation is for. - #[serde(alias="layerId")] + #[serde(rename="layerId")] pub layer_id: String, /// Excerpt from the volume. - #[serde(alias="selectedText")] + #[serde(rename="selectedText")] pub selected_text: String, /// Data for this annotation. pub data: String, /// Unique id of this volume annotation. pub id: String, /// URL to this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1395,7 +1395,7 @@ impl ResponseResult for Volumeannotation {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Volumeannotations { /// Token to pass in for pagination for the next page. This will not be present if this request does not have more results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of volume annotations. pub items: Vec, @@ -1404,7 +1404,7 @@ pub struct Volumeannotations { /// The version string for all of the volume annotations in this layer (not just the ones in this response). Note: the version string doesn't apply to the annotation data, just the information in this response (e.g. the location of annotations in the book). pub version: String, /// The total number of volume annotations found. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -1423,14 +1423,14 @@ impl ResponseResult for Volumeannotations {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Annotationsdata { /// Token to pass in for pagination for the next page. This will not be present if this request does not have more results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of Annotation Data. pub items: Vec, /// Resource type pub kind: String, /// The total number of volume annotations found. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -1446,7 +1446,7 @@ pub struct VolumeVolumeInfoIndustryIdentifiers { /// Industry specific volume identifier. pub identifier: String, /// Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -1461,13 +1461,13 @@ impl Part for VolumeVolumeInfoIndustryIdentifiers {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AnnotationLayerSummary { /// Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer. - #[serde(alias="limitType")] + #[serde(rename="limitType")] pub limit_type: String, /// Remaining allowed characters on this layer, especially for the "copy" layer. - #[serde(alias="remainingCharacterCount")] + #[serde(rename="remainingCharacterCount")] pub remaining_character_count: i32, /// Maximum allowed characters on this layer, especially for the "copy" layer. - #[serde(alias="allowedCharacterCount")] + #[serde(rename="allowedCharacterCount")] pub allowed_character_count: i32, } @@ -1502,13 +1502,13 @@ impl ResponseResult for Offers {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeAccessInfoEpub { /// Is a flowing text epub available either as public domain or for purchase. (In LITE projection.) - #[serde(alias="isAvailable")] + #[serde(rename="isAvailable")] pub is_available: bool, /// URL to download epub. (In LITE projection.) - #[serde(alias="downloadLink")] + #[serde(rename="downloadLink")] pub download_link: String, /// URL to retrieve ACS token for epub download. (In LITE projection.) - #[serde(alias="acsTokenLink")] + #[serde(rename="acsTokenLink")] pub acs_token_link: String, } @@ -1528,7 +1528,7 @@ impl Part for VolumeAccessInfoEpub {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Volume2 { /// no description provided - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of volumes. pub items: Vec, @@ -1546,13 +1546,13 @@ impl ResponseResult for Volume2 {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeAccessInfoPdf { /// Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.) - #[serde(alias="isAvailable")] + #[serde(rename="isAvailable")] pub is_available: bool, /// URL to download pdf. (In LITE projection.) - #[serde(alias="downloadLink")] + #[serde(rename="downloadLink")] pub download_link: String, /// URL to retrieve ACS token for pdf download. (In LITE projection.) - #[serde(alias="acsTokenLink")] + #[serde(rename="acsTokenLink")] pub acs_token_link: String, } @@ -1608,10 +1608,10 @@ impl ResponseResult for Bookshelves {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeLayerInfoLayers { /// The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately. - #[serde(alias="volumeAnnotationsVersion")] + #[serde(rename="volumeAnnotationsVersion")] pub volume_annotations_version: String, /// The layer id of this layer (e.g. "geo"). - #[serde(alias="layerId")] + #[serde(rename="layerId")] pub layer_id: String, } @@ -1631,7 +1631,7 @@ impl Part for VolumeLayerInfoLayers {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Layersummaries { /// The total number of layer summaries found. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, /// A list of layer summary items. pub items: Vec, @@ -1649,12 +1649,12 @@ impl ResponseResult for Layersummaries {} #[derive(Default, Clone, Debug, Deserialize)] pub struct OffersItems { /// no description provided - #[serde(alias="gservicesKey")] + #[serde(rename="gservicesKey")] pub gservices_key: String, /// no description provided pub items: Vec, /// no description provided - #[serde(alias="artUrl")] + #[serde(rename="artUrl")] pub art_url: String, /// no description provided pub id: String, @@ -1671,15 +1671,15 @@ impl Part for OffersItems {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeUserInfoCopy { /// no description provided - #[serde(alias="limitType")] + #[serde(rename="limitType")] pub limit_type: String, /// no description provided - #[serde(alias="remainingCharacterCount")] + #[serde(rename="remainingCharacterCount")] pub remaining_character_count: i32, /// no description provided pub updated: String, /// no description provided - #[serde(alias="allowedCharacterCount")] + #[serde(rename="allowedCharacterCount")] pub allowed_character_count: i32, } @@ -1712,34 +1712,34 @@ impl ResponseResult for BooksVolumesRecommendedRateResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeUserInfo { /// Whether or not this volume is currently in "my books." - #[serde(alias="isInMyBooks")] + #[serde(rename="isInMyBooks")] pub is_in_my_books: bool, /// Period during this book is/was a valid rental. - #[serde(alias="rentalPeriod")] + #[serde(rename="rentalPeriod")] pub rental_period: VolumeUserInfoRentalPeriod, /// Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format). pub updated: String, /// no description provided - #[serde(alias="userUploadedVolumeInfo")] + #[serde(rename="userUploadedVolumeInfo")] pub user_uploaded_volume_info: VolumeUserInfoUserUploadedVolumeInfo, /// Whether this book is an active or an expired rental. - #[serde(alias="rentalState")] + #[serde(rename="rentalState")] pub rental_state: String, /// Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.) - #[serde(alias="isPurchased")] + #[serde(rename="isPurchased")] pub is_purchased: bool, /// The user's current reading position in the volume, if one is available. (In LITE projection.) - #[serde(alias="readingPosition")] + #[serde(rename="readingPosition")] pub reading_position: ReadingPosition, /// Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.) - #[serde(alias="isPreordered")] + #[serde(rename="isPreordered")] pub is_preordered: bool, /// Copy/Paste accounting information. pub copy: VolumeUserInfoCopy, /// This user's review of this volume, if one exists. pub review: Review, /// Whether or not this volume was user uploaded. - #[serde(alias="isUploaded")] + #[serde(rename="isUploaded")] pub is_uploaded: bool, } @@ -1762,10 +1762,10 @@ pub struct BooksCloudloadingResource { /// no description provided pub author: Option, /// no description provided - #[serde(alias="processingState")] + #[serde(rename="processingState")] pub processing_state: Option, /// no description provided - #[serde(alias="volumeId")] + #[serde(rename="volumeId")] pub volume_id: Option, /// no description provided pub title: Option, @@ -1782,7 +1782,7 @@ impl ResponseResult for BooksCloudloadingResource {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeUserInfoUserUploadedVolumeInfo { /// no description provided - #[serde(alias="processingState")] + #[serde(rename="processingState")] pub processing_state: String, } @@ -1799,7 +1799,7 @@ pub struct VolumeSaleInfoListPrice { /// Amount in the currency listed below. (In LITE projection.) pub amount: f64, /// An ISO 4217, three-letter currency code. (In LITE projection.) - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, } @@ -1814,16 +1814,16 @@ impl Part for VolumeSaleInfoListPrice {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct BooksAnnotationsRange { /// The starting position for the range. - #[serde(alias="startPosition")] + #[serde(rename="startPosition")] pub start_position: String, /// The ending position for the range. - #[serde(alias="endPosition")] + #[serde(rename="endPosition")] pub end_position: String, /// The offset from the starting position. - #[serde(alias="startOffset")] + #[serde(rename="startOffset")] pub start_offset: String, /// The offset from the ending position. - #[serde(alias="endOffset")] + #[serde(rename="endOffset")] pub end_offset: String, } @@ -1837,41 +1837,41 @@ impl Part for BooksAnnotationsRange {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeAccessInfo { /// URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes. - #[serde(alias="webReaderLink")] + #[serde(rename="webReaderLink")] pub web_reader_link: String, /// Whether or not this book is public domain in the country listed above. - #[serde(alias="publicDomain")] + #[serde(rename="publicDomain")] pub public_domain: bool, /// Whether this volume requires that the client explicitly request offline download license rather than have it done automatically when loading the content, if the client supports it. - #[serde(alias="explicitOfflineLicenseManagement")] + #[serde(rename="explicitOfflineLicenseManagement")] pub explicit_offline_license_management: bool, /// Whether this volume can be embedded in a viewport using the Embedded Viewer API. pub embeddable: bool, /// Information about a volume's download license access restrictions. - #[serde(alias="downloadAccess")] + #[serde(rename="downloadAccess")] pub download_access: DownloadAccessRestriction, /// The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.) pub country: String, /// For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page. - #[serde(alias="viewOrderUrl")] + #[serde(rename="viewOrderUrl")] pub view_order_url: String, /// Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. - #[serde(alias="textToSpeechPermission")] + #[serde(rename="textToSpeechPermission")] pub text_to_speech_permission: String, /// URL to the Google Drive viewer if this volume is uploaded by the user by selecting the file from Google Drive. - #[serde(alias="driveImportedContentLink")] + #[serde(rename="driveImportedContentLink")] pub drive_imported_content_link: String, /// Information about pdf content. (In LITE projection.) pub pdf: VolumeAccessInfoPdf, /// Whether quote sharing is allowed for this volume. - #[serde(alias="quoteSharingAllowed")] + #[serde(rename="quoteSharingAllowed")] pub quote_sharing_allowed: bool, /// The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES. pub viewability: String, /// Information about epub content. (In LITE projection.) pub epub: VolumeAccessInfoEpub, /// Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.) - #[serde(alias="accessViewStatus")] + #[serde(rename="accessViewStatus")] pub access_view_status: String, } @@ -1886,19 +1886,19 @@ impl Part for VolumeAccessInfo {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AnnotationCurrentVersionRanges { /// Range in image CFI format for this annotation for version above. - #[serde(alias="imageCfiRange")] + #[serde(rename="imageCfiRange")] pub image_cfi_range: BooksAnnotationsRange, /// Range in GB text format for this annotation for version above. - #[serde(alias="gbTextRange")] + #[serde(rename="gbTextRange")] pub gb_text_range: BooksAnnotationsRange, /// Content version applicable to ranges below. - #[serde(alias="contentVersion")] + #[serde(rename="contentVersion")] pub content_version: String, /// Range in CFI format for this annotation for version above. - #[serde(alias="cfiRange")] + #[serde(rename="cfiRange")] pub cfi_range: BooksAnnotationsRange, /// Range in GB image format for this annotation for version above. - #[serde(alias="gbImageRange")] + #[serde(rename="gbImageRange")] pub gb_image_range: BooksAnnotationsRange, } @@ -1915,23 +1915,23 @@ pub struct VolumeSaleInfo { /// The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.) pub country: String, /// The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.) - #[serde(alias="retailPrice")] + #[serde(rename="retailPrice")] pub retail_price: VolumeSaleInfoRetailPrice, /// Whether or not this volume is an eBook (can be added to the My eBooks shelf). - #[serde(alias="isEbook")] + #[serde(rename="isEbook")] pub is_ebook: bool, /// Offers available for this volume (sales and rentals). pub offers: Vec, /// Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER. pub saleability: String, /// URL to purchase this volume on the Google Books site. (In LITE projection) - #[serde(alias="buyLink")] + #[serde(rename="buyLink")] pub buy_link: String, /// The date on which this book is available for sale. - #[serde(alias="onSaleDate")] + #[serde(rename="onSaleDate")] pub on_sale_date: String, /// Suggested retail price. (In LITE projection.) - #[serde(alias="listPrice")] + #[serde(rename="listPrice")] pub list_price: VolumeSaleInfoListPrice, } @@ -1958,7 +1958,7 @@ impl Part for VolumeSaleInfo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Volumes { /// Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, /// A list of volumes. pub items: Vec, @@ -1976,10 +1976,10 @@ impl ResponseResult for Volumes {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeUserInfoRentalPeriod { /// no description provided - #[serde(alias="startUtcSec")] + #[serde(rename="startUtcSec")] pub start_utc_sec: String, /// no description provided - #[serde(alias="endUtcSec")] + #[serde(rename="endUtcSec")] pub end_utc_sec: String, } @@ -1994,16 +1994,16 @@ impl Part for VolumeUserInfoRentalPeriod {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VolumeannotationContentRanges { /// Range in GB image format for this annotation for version above. - #[serde(alias="gbImageRange")] + #[serde(rename="gbImageRange")] pub gb_image_range: BooksAnnotationsRange, /// Range in GB text format for this annotation for version above. - #[serde(alias="gbTextRange")] + #[serde(rename="gbTextRange")] pub gb_text_range: BooksAnnotationsRange, /// Content version applicable to ranges below. - #[serde(alias="contentVersion")] + #[serde(rename="contentVersion")] pub content_version: String, /// Range in CFI format for this annotation for version above. - #[serde(alias="cfiRange")] + #[serde(rename="cfiRange")] pub cfi_range: BooksAnnotationsRange, } diff --git a/gen/calendar3/Cargo.toml b/gen/calendar3/Cargo.toml index 7479822883..c1157585da 100644 --- a/gen/calendar3/Cargo.toml +++ b/gen/calendar3/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-calendar3" -version = "0.1.3+20150303" +version = "0.1.4+20150303" authors = ["Sebastian Thiel "] description = "A complete library to interact with calendar (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/calendar3" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/calendar3/README.md b/gen/calendar3/README.md index 8bbe736cf6..72a759e504 100644 --- a/gen/calendar3/README.md +++ b/gen/calendar3/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-calendar3` library allows access to all features of the *Google calendar* service. -This documentation was generated from *calendar* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *calendar* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *calendar* *v3* API can be found at the [official documentation site](https://developers.google.com/google-apps/calendar/firstapp). diff --git a/gen/calendar3/src/lib.rs b/gen/calendar3/src/lib.rs index 21245752bc..3073cb0f7d 100644 --- a/gen/calendar3/src/lib.rs +++ b/gen/calendar3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *calendar* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *calendar* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *calendar* *v3* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/calendar/firstapp). @@ -382,7 +382,7 @@ impl<'a, C, NC, A> CalendarHub CalendarHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -413,7 +413,7 @@ impl<'a, C, NC, A> CalendarHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -444,14 +444,14 @@ pub struct EventGadget { /// The gadget's URL. pub link: String, /// The gadget's type. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The gadget's display mode. Optional. Possible values are: /// - "icon" - The gadget displays next to the event's title in the calendar view. /// - "chip" - The gadget displays when the event is clicked. pub display: String, /// The gadget's icon URL. - #[serde(alias="iconLink")] + #[serde(rename="iconLink")] pub icon_link: String, } @@ -485,7 +485,7 @@ pub struct AclRuleScope { /// - "user" - Limits the scope to a single user. /// - "group" - Limits the scope to a group. /// - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default". pub value: String, @@ -507,7 +507,7 @@ impl Part for AclRuleScope {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Settings { /// Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of user settings. pub items: Vec, @@ -516,7 +516,7 @@ pub struct Settings { /// Etag of the collection. pub etag: String, /// Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided. - #[serde(alias="nextSyncToken")] + #[serde(rename="nextSyncToken")] pub next_sync_token: String, } @@ -548,7 +548,7 @@ pub struct Calendar { /// Identifier of the calendar. pub id: Option, /// The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. - #[serde(alias="timeZone")] + #[serde(rename="timeZone")] pub time_zone: Option, /// Geographic location of the calendar as free-form text. Optional. pub location: Option, @@ -576,7 +576,7 @@ impl ResponseResult for Calendar {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CalendarListEntry { /// The notifications that the authenticated user is receiving for this calendar. - #[serde(alias="notificationSettings")] + #[serde(rename="notificationSettings")] pub notification_settings: Option, /// Description of the calendar. Optional. Read-only. pub description: Option, @@ -589,20 +589,20 @@ pub struct CalendarListEntry { /// - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. /// - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. /// - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs. - #[serde(alias="accessRole")] + #[serde(rename="accessRole")] pub access_role: Option, /// Identifier of the calendar. pub id: Option, /// Type of the resource ("calendar#calendarListEntry"). pub kind: Option, /// The foreground color of the calendar in the hexadecimal format "#ffffff". This property supersedes the index-based colorId property. Optional. - #[serde(alias="foregroundColor")] + #[serde(rename="foregroundColor")] pub foreground_color: Option, /// The default reminders that the authenticated user has for this calendar. - #[serde(alias="defaultReminders")] + #[serde(rename="defaultReminders")] pub default_reminders: Option>, /// The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). Optional. - #[serde(alias="colorId")] + #[serde(rename="colorId")] pub color_id: Option, /// Whether the calendar content shows up in the calendar UI. Optional. The default is False. pub selected: Option, @@ -613,13 +613,13 @@ pub struct CalendarListEntry { /// Geographic location of the calendar as free-form text. Optional. Read-only. pub location: Option, /// The main color of the calendar in the hexadecimal format "#0088aa". This property supersedes the index-based colorId property. Optional. - #[serde(alias="backgroundColor")] + #[serde(rename="backgroundColor")] pub background_color: Option, /// The summary that the authenticated user has set for this calendar. Optional. - #[serde(alias="summaryOverride")] + #[serde(rename="summaryOverride")] pub summary_override: Option, /// The time zone of the calendar. Optional. Read-only. - #[serde(alias="timeZone")] + #[serde(rename="timeZone")] pub time_zone: Option, /// Whether the calendar has been hidden from the list. Optional. The default is False. pub hidden: Option, @@ -667,10 +667,10 @@ pub struct EventDateTime { /// The date, in the format "yyyy-mm-dd", if this is an all-day event. pub date: String, /// The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end. - #[serde(alias="timeZone")] + #[serde(rename="timeZone")] pub time_zone: String, /// The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in timeZone. - #[serde(alias="dateTime")] + #[serde(rename="dateTime")] pub date_time: String, } @@ -711,10 +711,10 @@ impl ResponseResult for Setting {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct EventCreator { /// Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False. - #[serde(alias="self")] + #[serde(rename="self")] pub self_: bool, /// The creator's name, if available. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The creator's email address, if available. pub email: String, @@ -792,7 +792,7 @@ impl ResponseResult for AclRule {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Acl { /// Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of rules on the access control list. pub items: Vec, @@ -801,7 +801,7 @@ pub struct Acl { /// ETag of the collection. pub etag: String, /// Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided. - #[serde(alias="nextSyncToken")] + #[serde(rename="nextSyncToken")] pub next_sync_token: String, } @@ -821,12 +821,12 @@ impl ResponseResult for Acl {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Events { /// Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Type of the collection ("calendar#events"). pub kind: String, /// The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have reminders.useDefault set to True). - #[serde(alias="defaultReminders")] + #[serde(rename="defaultReminders")] pub default_reminders: Vec, /// Description of the calendar. Read-only. pub description: String, @@ -839,10 +839,10 @@ pub struct Events { /// ETag of the collection. pub etag: String, /// Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided. - #[serde(alias="nextSyncToken")] + #[serde(rename="nextSyncToken")] pub next_sync_token: String, /// The time zone of the calendar. Read-only. - #[serde(alias="timeZone")] + #[serde(rename="timeZone")] pub time_zone: String, /// The user's access role for this calendar. Read-only. Possible values are: /// - "none" - The user has no access. @@ -850,7 +850,7 @@ pub struct Events { /// - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. /// - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. /// - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs. - #[serde(alias="accessRole")] + #[serde(rename="accessRole")] pub access_role: String, } @@ -873,12 +873,12 @@ impl ResponseResult for Events {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Channel { /// A version-specific identifier for the watched resource. - #[serde(alias="resourceUri")] + #[serde(rename="resourceUri")] pub resource_uri: Option, /// Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel". pub kind: Option, /// An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. - #[serde(alias="resourceId")] + #[serde(rename="resourceId")] pub resource_id: Option, /// A UUID or similar unique string that identifies this channel. pub id: Option, @@ -891,7 +891,7 @@ pub struct Channel { /// The address where notifications are delivered for this channel. pub address: Option, /// The type of delivery mechanism used for this channel. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// A Boolean value to indicate whether payload is wanted. Optional. pub payload: Option, @@ -911,17 +911,17 @@ pub struct EventAttendee { /// The attendee's response comment. Optional. pub comment: String, /// The attendee's name, if available. Optional. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False. - #[serde(alias="self")] + #[serde(rename="self")] pub self_: bool, /// The attendee's email address, if available. This field must be present when adding an attendee. pub email: String, /// The attendee's Profile ID, if available. pub id: String, /// Number of additional guests. Optional. The default is 0. - #[serde(alias="additionalGuests")] + #[serde(rename="additionalGuests")] pub additional_guests: i32, /// Whether the attendee is a resource. Read-only. The default is False. pub resource: bool, @@ -934,7 +934,7 @@ pub struct EventAttendee { /// - "declined" - The attendee has declined the invitation. /// - "tentative" - The attendee has tentatively accepted the invitation. /// - "accepted" - The attendee has accepted the invitation. - #[serde(alias="responseStatus")] + #[serde(rename="responseStatus")] pub response_status: String, } @@ -965,7 +965,7 @@ pub struct EventReminders { /// If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. pub overrides: Vec, /// Whether the default reminders of the calendar apply to the event. - #[serde(alias="useDefault")] + #[serde(rename="useDefault")] pub use_default: bool, } @@ -985,7 +985,7 @@ impl Part for EventReminders {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CalendarList { /// Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Calendars that are present on the user's calendar list. pub items: Vec, @@ -994,7 +994,7 @@ pub struct CalendarList { /// ETag of the collection. pub etag: String, /// Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided. - #[serde(alias="nextSyncToken")] + #[serde(rename="nextSyncToken")] pub next_sync_token: String, } @@ -1042,7 +1042,7 @@ impl Part for FreeBusyRequestItem {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FreeBusyResponse { /// The end of the interval. - #[serde(alias="timeMax")] + #[serde(rename="timeMax")] pub time_max: String, /// Type of the resource ("calendar#freeBusy"). pub kind: String, @@ -1051,7 +1051,7 @@ pub struct FreeBusyResponse { /// Expansion of groups. pub groups: HashMap, /// The start of the interval. - #[serde(alias="timeMin")] + #[serde(rename="timeMin")] pub time_min: String, } @@ -1094,21 +1094,21 @@ impl ResponseResult for Colors {} #[derive(Default, Clone, Debug, Serialize)] pub struct FreeBusyRequest { /// Maximal number of calendars for which FreeBusy information is to be provided. Optional. - #[serde(alias="calendarExpansionMax")] + #[serde(rename="calendarExpansionMax")] pub calendar_expansion_max: Option, /// The start of the interval for the query. - #[serde(alias="timeMin")] + #[serde(rename="timeMin")] pub time_min: Option, /// Maximal number of calendar identifiers to be provided for a single group. Optional. An error will be returned for a group with more members than this value. - #[serde(alias="groupExpansionMax")] + #[serde(rename="groupExpansionMax")] pub group_expansion_max: Option, /// The end of the interval for the query. - #[serde(alias="timeMax")] + #[serde(rename="timeMax")] pub time_max: Option, /// List of calendars and/or groups to query. pub items: Option>, /// Time zone used in the response. Optional. The default is UTC. - #[serde(alias="timeZone")] + #[serde(rename="timeZone")] pub time_zone: Option, } @@ -1138,10 +1138,10 @@ impl Part for EventSource {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct EventOrganizer { /// Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False. - #[serde(alias="self")] + #[serde(rename="self")] pub self_: bool, /// The organizer's name, if available. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The organizer's email address, if available. pub email: String, @@ -1198,7 +1198,7 @@ pub struct CalendarNotification { /// - "eventCancellation" - Notification sent when an event is cancelled. /// - "eventResponse" - Notification sent when an event is changed. /// - "agenda" - An agenda with the events of the day (sent out in the morning). - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The method used to deliver the notification. Possible values are: /// - "email" - Reminders are sent via email. @@ -1240,17 +1240,17 @@ pub struct Event { /// - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122. pub id: Option, /// An absolute link to the Google+ hangout associated with this event. Read-only. - #[serde(alias="hangoutLink")] + #[serde(rename="hangoutLink")] pub hangout_link: Option, /// Whether attendees other than the organizer can invite others to the event. Optional. The default is True. - #[serde(alias="guestsCanInviteOthers")] + #[serde(rename="guestsCanInviteOthers")] pub guests_can_invite_others: Option, /// The attendees of the event. pub attendees: Option>, /// The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance. pub start: Option, /// An absolute link to this event in the Google Calendar Web UI. Read-only. - #[serde(alias="htmlLink")] + #[serde(rename="htmlLink")] pub html_link: Option, /// List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events. pub recurrence: Option>, @@ -1261,10 +1261,10 @@ pub struct Event { /// Geographic location of the event as free-form text. Optional. pub location: Option, /// For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable. - #[serde(alias="recurringEventId")] + #[serde(rename="recurringEventId")] pub recurring_event_id: Option, /// For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable. - #[serde(alias="originalStartTime")] + #[serde(rename="originalStartTime")] pub original_start_time: Option, /// Status of the event. Optional. Possible values are: /// - "confirmed" - The event is confirmed. This is the default status. @@ -1276,12 +1276,12 @@ pub struct Event { /// Description of the event. Optional. pub description: Option, /// Event ID in the iCalendar format. - #[serde(alias="iCalUID")] + #[serde(rename="iCalUID")] pub i_cal_uid: Option, /// A gadget that extends this event. pub gadget: Option, /// Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False. - #[serde(alias="endTimeUnspecified")] + #[serde(rename="endTimeUnspecified")] pub end_time_unspecified: Option, /// Sequence number as per iCalendar. pub sequence: Option, @@ -1292,12 +1292,12 @@ pub struct Event { /// - "confidential" - The event is private. This value is provided for compatibility reasons. pub visibility: Option, /// Whether attendees other than the organizer can modify the event. Optional. The default is False. - #[serde(alias="guestsCanModify")] + #[serde(rename="guestsCanModify")] pub guests_can_modify: Option, /// The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance. pub end: Option, /// Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False. - #[serde(alias="attendeesOmitted")] + #[serde(rename="attendeesOmitted")] pub attendees_omitted: Option, /// Type of the resource ("calendar#event"). pub kind: Option, @@ -1306,27 +1306,27 @@ pub struct Event { /// Creation time of the event (as a RFC 3339 timestamp). Read-only. pub created: Option, /// The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional. - #[serde(alias="colorId")] + #[serde(rename="colorId")] pub color_id: Option, /// Whether anyone can invite themselves to the event. Optional. The default is False. - #[serde(alias="anyoneCanAddSelf")] + #[serde(rename="anyoneCanAddSelf")] pub anyone_can_add_self: Option, /// Information about the event's reminders for the authenticated user. pub reminders: Option, /// Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True. - #[serde(alias="guestsCanSeeOtherGuests")] + #[serde(rename="guestsCanSeeOtherGuests")] pub guests_can_see_other_guests: Option, /// Title of the event. pub summary: Option, /// Extended properties of the event. - #[serde(alias="extendedProperties")] + #[serde(rename="extendedProperties")] pub extended_properties: Option, /// Whether the event blocks time on the calendar. Optional. Possible values are: /// - "opaque" - The event blocks time on the calendar. This is the default value. /// - "transparent" - The event does not block time on the calendar. pub transparency: Option, /// Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False. - #[serde(alias="privateCopy")] + #[serde(rename="privateCopy")] pub private_copy: Option, } diff --git a/gen/civicinfo2/Cargo.toml b/gen/civicinfo2/Cargo.toml index 40be6683c8..7b898ed2c7 100644 --- a/gen/civicinfo2/Cargo.toml +++ b/gen/civicinfo2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-civicinfo2" -version = "0.1.3+20150302" +version = "0.1.4+20150302" authors = ["Sebastian Thiel "] description = "A complete library to interact with Civic Info (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/civicinfo2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/civicinfo2/README.md b/gen/civicinfo2/README.md index e280a660b5..353eb5f65a 100644 --- a/gen/civicinfo2/README.md +++ b/gen/civicinfo2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-civicinfo2` library allows access to all features of the *Google Civic Info* service. -This documentation was generated from *Civic Info* crate version *0.1.3+20150302*, where *20150302* is the exact revision of the *civicinfo:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Civic Info* crate version *0.1.4+20150302*, where *20150302* is the exact revision of the *civicinfo:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *Civic Info* *v2* API can be found at the [official documentation site](https://developers.google.com/civic-information). diff --git a/gen/civicinfo2/src/lib.rs b/gen/civicinfo2/src/lib.rs index ba970fcd53..96a6084b7a 100644 --- a/gen/civicinfo2/src/lib.rs +++ b/gen/civicinfo2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Civic Info* crate version *0.1.3+20150302*, where *20150302* is the exact revision of the *civicinfo:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Civic Info* crate version *0.1.4+20150302*, where *20150302* is the exact revision of the *civicinfo:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *Civic Info* *v2* API can be found at the //! [official documentation site](https://developers.google.com/civic-information). @@ -283,7 +283,7 @@ impl<'a, C, NC, A> CivicInfo CivicInfo { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -299,7 +299,7 @@ impl<'a, C, NC, A> CivicInfo } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -320,7 +320,7 @@ impl<'a, C, NC, A> CivicInfo #[derive(Default, Clone, Debug, Deserialize)] pub struct AdministrationRegion { /// The election administration body for this area. - #[serde(alias="electionAdministrationBody")] + #[serde(rename="electionAdministrationBody")] pub election_administration_body: AdministrativeBody, /// The city or county that provides election information for this voter. This object can have the same elements as state. pub local_jurisdiction: Option>, @@ -344,7 +344,7 @@ pub struct Official { /// The official's name. pub name: String, /// A URL for a photo of the official. - #[serde(alias="photoUrl")] + #[serde(rename="photoUrl")] pub photo_url: String, /// The official's public contact phone numbers. pub phones: Vec, @@ -409,17 +409,17 @@ pub struct Candidate { /// The candidate's name. pub name: String, /// A URL for a photo of the candidate. - #[serde(alias="photoUrl")] + #[serde(rename="photoUrl")] pub photo_url: String, /// The URL for the candidate's campaign web site. - #[serde(alias="candidateUrl")] + #[serde(rename="candidateUrl")] pub candidate_url: String, /// A list of known (social) media channels for this candidate. pub channels: Vec, /// The voice phone number for the candidate's campaign office. pub phone: String, /// The order the candidate appears on the ballot for this contest. - #[serde(alias="orderOnBallot")] + #[serde(rename="orderOnBallot")] pub order_on_ballot: String, /// The full name of the party the candidate is a member of. pub party: String, @@ -441,26 +441,26 @@ pub struct Contest { /// A list of sources for this contest. If multiple sources are listed, the data has been aggregated from those sources. pub sources: Vec, /// If this is a partisan election, the name of the party it is for. - #[serde(alias="primaryParty")] + #[serde(rename="primaryParty")] pub primary_party: String, /// A description of any additional eligibility requirements for voting in this contest. - #[serde(alias="electorateSpecifications")] + #[serde(rename="electorateSpecifications")] pub electorate_specifications: String, /// The number of candidates that will be elected to office in this contest. - #[serde(alias="numberElected")] + #[serde(rename="numberElected")] pub number_elected: String, /// A link to the referendum. This field is only populated for contests of type 'Referendum'. - #[serde(alias="referendumUrl")] + #[serde(rename="referendumUrl")] pub referendum_url: String, /// The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'. - #[serde(alias="referendumTitle")] + #[serde(rename="referendumTitle")] pub referendum_title: String, /// An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. pub id: String, /// "Yes" or "No" depending on whether this a contest being held outside the normal election cycle. pub special: String, /// The number of candidates that a voter may vote for in this contest. - #[serde(alias="numberVotingFor")] + #[serde(rename="numberVotingFor")] pub number_voting_for: String, /// Information about the electoral district that this contest is in. pub district: ElectoralDistrict, @@ -469,15 +469,15 @@ pub struct Contest { /// The levels of government of the office for this contest. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1". pub level: Vec, /// A number specifying the position of this contest on the voter's ballot. - #[serde(alias="ballotPlacement")] + #[serde(rename="ballotPlacement")] pub ballot_placement: String, /// A brief description of the referendum. This field is only populated for contests of type 'Referendum'. - #[serde(alias="referendumSubtitle")] + #[serde(rename="referendumSubtitle")] pub referendum_subtitle: String, /// The candidate choices for this contest. pub candidates: Vec, /// The type of contest. Usually this will be 'General', 'Primary', or 'Run-off' for contests with candidates. For referenda this will be 'Referendum'. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -524,7 +524,7 @@ pub struct RepresentativeInfoResponse { /// Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request. pub offices: Vec, /// The normalized version of the requested address - #[serde(alias="normalizedInput")] + #[serde(rename="normalizedInput")] pub normalized_input: SimpleAddressType, } @@ -553,15 +553,15 @@ impl Part for Source {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ElectionOfficial { /// The fax number of the election official. - #[serde(alias="faxNumber")] + #[serde(rename="faxNumber")] pub fax_number: String, /// The email address of the election official. - #[serde(alias="emailAddress")] + #[serde(rename="emailAddress")] pub email_address: String, /// The full name of the election official. pub name: String, /// The office phone number of the election official. - #[serde(alias="officePhoneNumber")] + #[serde(rename="officePhoneNumber")] pub office_phone_number: String, /// The title of the election official. pub title: String, @@ -577,41 +577,41 @@ impl Part for ElectionOfficial {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdministrativeBody { /// A URL provided by this administrative body for information on absentee voting. - #[serde(alias="absenteeVotingInfoUrl")] + #[serde(rename="absenteeVotingInfoUrl")] pub absentee_voting_info_url: String, /// A URL provided by this administrative body for looking up where to vote. - #[serde(alias="votingLocationFinderUrl")] + #[serde(rename="votingLocationFinderUrl")] pub voting_location_finder_url: String, /// The name of this election administrative body. pub name: String, /// A URL provided by this administrative body for confirming that the voter is registered to vote. - #[serde(alias="electionRegistrationConfirmationUrl")] + #[serde(rename="electionRegistrationConfirmationUrl")] pub election_registration_confirmation_url: String, /// A URL provided by this administrative body for looking up general election information. - #[serde(alias="electionInfoUrl")] + #[serde(rename="electionInfoUrl")] pub election_info_url: String, /// A URL provided by this administrative body for looking up how to register to vote. - #[serde(alias="electionRegistrationUrl")] + #[serde(rename="electionRegistrationUrl")] pub election_registration_url: String, /// The election officials for this election administrative body. - #[serde(alias="electionOfficials")] + #[serde(rename="electionOfficials")] pub election_officials: Vec, /// The mailing address of this administrative body. - #[serde(alias="correspondenceAddress")] + #[serde(rename="correspondenceAddress")] pub correspondence_address: SimpleAddressType, /// A URL provided by this administrative body describing election rules to the voter. - #[serde(alias="electionRulesUrl")] + #[serde(rename="electionRulesUrl")] pub election_rules_url: String, /// A description of the services this administrative body may provide. pub voter_services: Vec, /// A URL provided by this administrative body to give contest information to the voter. - #[serde(alias="ballotInfoUrl")] + #[serde(rename="ballotInfoUrl")] pub ballot_info_url: String, /// A description of the hours of operation for this administrative body. - #[serde(alias="hoursOfOperation")] + #[serde(rename="hoursOfOperation")] pub hours_of_operation: String, /// The physical address of this administrative body. - #[serde(alias="physicalAddress")] + #[serde(rename="physicalAddress")] pub physical_address: SimpleAddressType, } @@ -625,7 +625,7 @@ impl Part for AdministrativeBody {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Channel { /// The type of channel. The following is a list of types of channels, but is not exhaustive. More channel types may be added at a later time. One of: GooglePlus, YouTube, Facebook, Twitter - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The unique public identifier for the candidate's channel. pub id: String, @@ -649,10 +649,10 @@ pub struct Office { /// The roles which this office fulfills. Roles are not meant to be exhaustive, or to exactly specify the entire set of responsibilities of a given office, but are meant to be rough categories that are useful for general selection from or sorting of a list of offices. pub roles: Vec, /// The OCD ID of the division with which this office is associated. - #[serde(alias="divisionId")] + #[serde(rename="divisionId")] pub division_id: String, /// List of indices in the officials array of people who presently hold this office. - #[serde(alias="officialIndices")] + #[serde(rename="officialIndices")] pub official_indices: Vec, } @@ -666,7 +666,7 @@ impl Part for Office {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DivisionSearchResult { /// The unique Open Civic Data identifier for this division. - #[serde(alias="ocdId")] + #[serde(rename="ocdId")] pub ocd_id: String, /// The name of the division. pub name: String, @@ -684,7 +684,7 @@ impl Part for DivisionSearchResult {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SimpleAddressType { /// The name of the location. - #[serde(alias="locationName")] + #[serde(rename="locationName")] pub location_name: String, /// The city or town for the address. pub city: String, @@ -710,14 +710,14 @@ impl Part for SimpleAddressType {} #[derive(Default, Clone, Debug, Deserialize)] pub struct GeographicDivision { /// List of indices in the offices array, one for each office elected from this division. Will only be present if includeOffices was true (or absent) in the request. - #[serde(alias="officeIndices")] + #[serde(rename="officeIndices")] pub office_indices: Vec, /// Any other valid OCD IDs that refer to the same division. /// /// Because OCD IDs are meant to be human-readable and at least somewhat predictable, there are occasionally several identifiers for a single division. These identifiers are defined to be equivalent to one another, and one is always indicated as the primary identifier. The primary identifier will be returned in ocd_id above, and any other equivalent valid identifiers will be returned in this list. /// /// For example, if this division's OCD ID is ocd-division/country:us/district:dc, this will contain ocd-division/country:us/state:dc. - #[serde(alias="alsoKnownAs")] + #[serde(rename="alsoKnownAs")] pub also_known_as: Vec, /// The name of the division. pub name: String, @@ -733,13 +733,13 @@ impl Part for GeographicDivision {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PollingLocation { /// The first date that this early vote site or drop off location may be used. This field is not populated for polling locations. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// A description of when this location is open. - #[serde(alias="pollingHours")] + #[serde(rename="pollingHours")] pub polling_hours: String, /// The last date that this early vote site or drop off location may be used. This field is not populated for polling locations. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// The name of the early vote site or drop off location. This field is not populated for polling locations. pub name: String, @@ -750,7 +750,7 @@ pub struct PollingLocation { /// A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. pub sources: Vec, /// The services provided by this early vote site or drop off location. This field is not populated for polling locations. - #[serde(alias="voterServices")] + #[serde(rename="voterServices")] pub voter_services: String, /// An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. pub id: String, @@ -793,28 +793,28 @@ impl ResponseResult for RepresentativeInfoData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VoterInfoResponse { /// Locations where the voter is eligible to vote early, prior to election day. - #[serde(alias="earlyVoteSites")] + #[serde(rename="earlyVoteSites")] pub early_vote_sites: Vec, /// Locations where a voter is eligible to drop off a completed ballot. The voter must have received and completed a ballot prior to arriving at the location. The location may not have ballots available on the premises. These locations could be open on or before election day as indicated in the pollingHours field. - #[serde(alias="dropOffLocations")] + #[serde(rename="dropOffLocations")] pub drop_off_locations: Vec, /// If no election ID was specified in the query, and there was more than one election with data for the given voter, this will contain information about the other elections that could apply. - #[serde(alias="otherElections")] + #[serde(rename="otherElections")] pub other_elections: Vec, /// Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse". pub kind: String, /// The normalized version of the requested address - #[serde(alias="normalizedInput")] + #[serde(rename="normalizedInput")] pub normalized_input: SimpleAddressType, /// Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array. pub state: Vec, /// no description provided - #[serde(alias="precinctId")] + #[serde(rename="precinctId")] pub precinct_id: String, /// The election that was queried. pub election: Election, /// Locations where the voter is eligible to vote on election day. - #[serde(alias="pollingLocations")] + #[serde(rename="pollingLocations")] pub polling_locations: Vec, /// Contests that will appear on the voter's ballot. pub contests: Vec, @@ -836,7 +836,7 @@ impl ResponseResult for VoterInfoResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Election { /// Day of the election in YYYY-MM-DD format. - #[serde(alias="electionDay")] + #[serde(rename="electionDay")] pub election_day: Option, /// The unique ID of this election. pub id: Option, diff --git a/gen/cloudlatencytest2/Cargo.toml b/gen/cloudlatencytest2/Cargo.toml index b7306fcb96..f0a1bc3188 100644 --- a/gen/cloudlatencytest2/Cargo.toml +++ b/gen/cloudlatencytest2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudlatencytest2" -version = "0.1.3+20150206" +version = "0.1.4+20150206" authors = ["Sebastian Thiel "] description = "A complete library to interact with cloudlatencytest (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudlatencytest2" @@ -17,5 +17,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/cloudlatencytest2/README.md b/gen/cloudlatencytest2/README.md index 0e654c2972..d5109e93a6 100644 --- a/gen/cloudlatencytest2/README.md +++ b/gen/cloudlatencytest2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-cloudlatencytest2` library allows access to all features of the *Google cloudlatencytest* service. -This documentation was generated from *cloudlatencytest* crate version *0.1.3+20150206*, where *20150206* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *cloudlatencytest* crate version *0.1.4+20150206*, where *20150206* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. # Features Handle the following *Resources* with ease from the central [hub](http://byron.github.io/google-apis-rs/google-cloudlatencytest2/struct.Cloudlatencytest.html) ... diff --git a/gen/cloudlatencytest2/src/lib.rs b/gen/cloudlatencytest2/src/lib.rs index f9a6cbbd7d..07fad4a6cd 100644 --- a/gen/cloudlatencytest2/src/lib.rs +++ b/gen/cloudlatencytest2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *cloudlatencytest* crate version *0.1.3+20150206*, where *20150206* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *cloudlatencytest* crate version *0.1.4+20150206*, where *20150206* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/cloudlatencytest2). //! # Features //! @@ -305,7 +305,7 @@ impl<'a, C, NC, A> Cloudlatencytest Cloudlatencytest { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -315,7 +315,7 @@ impl<'a, C, NC, A> Cloudlatencytest } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -356,13 +356,13 @@ impl Part for IntValue {} #[derive(Default, Clone, Debug, Serialize)] pub struct Stats { /// no description provided - #[serde(alias="stringValues")] + #[serde(rename="stringValues")] pub string_values: Option>, /// no description provided - #[serde(alias="intValues")] + #[serde(rename="intValues")] pub int_values: Option>, /// no description provided - #[serde(alias="doubleValues")] + #[serde(rename="doubleValues")] pub double_values: Option>, /// no description provided pub time: Option, @@ -416,7 +416,7 @@ impl RequestValue for AggregatedStats {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AggregatedStatsReply { /// no description provided - #[serde(alias="testValue")] + #[serde(rename="testValue")] pub test_value: String, } @@ -450,7 +450,7 @@ impl Part for DoubleValue {} #[derive(Default, Clone, Debug, Deserialize)] pub struct StatsReply { /// no description provided - #[serde(alias="testValue")] + #[serde(rename="testValue")] pub test_value: String, } diff --git a/gen/cloudmonitoring2_beta2/Cargo.toml b/gen/cloudmonitoring2_beta2/Cargo.toml index 03846addc1..f93a8fa0b2 100644 --- a/gen/cloudmonitoring2_beta2/Cargo.toml +++ b/gen/cloudmonitoring2_beta2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudmonitoring2_beta2" -version = "0.1.3+20150303" +version = "0.1.4+20150303" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Monitoring (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudmonitoring2_beta2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/cloudmonitoring2_beta2/README.md b/gen/cloudmonitoring2_beta2/README.md index 599b908ea7..7cdd7ecd1d 100644 --- a/gen/cloudmonitoring2_beta2/README.md +++ b/gen/cloudmonitoring2_beta2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-cloudmonitoring2_beta2` library allows access to all features of the *Google Cloud Monitoring* service. -This documentation was generated from *Cloud Monitoring* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Cloud Monitoring* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *Cloud Monitoring* *v2_beta2* API can be found at the [official documentation site](https://cloud.google.com/monitoring/v2beta2/). diff --git a/gen/cloudmonitoring2_beta2/src/lib.rs b/gen/cloudmonitoring2_beta2/src/lib.rs index 7704537093..e821918128 100644 --- a/gen/cloudmonitoring2_beta2/src/lib.rs +++ b/gen/cloudmonitoring2_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Monitoring* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Cloud Monitoring* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *Cloud Monitoring* *v2_beta2* API can be found at the //! [official documentation site](https://cloud.google.com/monitoring/v2beta2/). @@ -320,7 +320,7 @@ impl<'a, C, NC, A> CloudMonitoring CloudMonitoring { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -336,7 +336,7 @@ impl<'a, C, NC, A> CloudMonitoring } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -359,7 +359,7 @@ pub struct PointDistributionUnderflowBucket { /// The number of events whose values are in the interval defined by this bucket. pub count: String, /// The upper bound of the value interval of this bucket (exclusive). - #[serde(alias="upperBound")] + #[serde(rename="upperBound")] pub upper_bound: f64, } @@ -380,7 +380,7 @@ pub struct ListMetricDescriptorsResponse { /// The returned metric descriptors. pub metrics: Vec, /// Pagination token. If present, indicates that additional results are available for retrieval. To access the results past the pagination limit, pass this value to the pageToken query parameter. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "cloudmonitoring#listMetricDescriptorsResponse". pub kind: String, @@ -432,7 +432,7 @@ impl RequestValue for ListTimeseriesDescriptorsRequest {} #[derive(Default, Clone, Debug, Serialize)] pub struct TimeseriesPoint { /// The descriptor of this time series. - #[serde(alias="timeseriesDesc")] + #[serde(rename="timeseriesDesc")] pub timeseries_desc: TimeseriesDescriptor, /// The data point in this time series snapshot. pub point: Point, @@ -450,10 +450,10 @@ pub struct PointDistribution { /// The finite buckets. pub buckets: Vec, /// The underflow bucket. - #[serde(alias="underflowBucket")] + #[serde(rename="underflowBucket")] pub underflow_bucket: PointDistributionUnderflowBucket, /// The overflow bucket. - #[serde(alias="overflowBucket")] + #[serde(rename="overflowBucket")] pub overflow_bucket: PointDistributionOverflowBucket, } @@ -467,10 +467,10 @@ impl Part for PointDistribution {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct MetricDescriptorTypeDescriptor { /// The type of data that is written to a timeseries point for this metric. - #[serde(alias="valueType")] + #[serde(rename="valueType")] pub value_type: String, /// The method of collecting data for the metric. - #[serde(alias="metricType")] + #[serde(rename="metricType")] pub metric_type: String, } @@ -501,10 +501,10 @@ pub struct PointDistributionBucket { /// The number of events whose values are in the interval defined by this bucket. pub count: String, /// The lower bound of the value interval of this bucket (inclusive). - #[serde(alias="lowerBound")] + #[serde(rename="lowerBound")] pub lower_bound: f64, /// The upper bound of the value interval of this bucket (exclusive). - #[serde(alias="upperBound")] + #[serde(rename="upperBound")] pub upper_bound: f64, } @@ -551,7 +551,7 @@ pub struct MetricDescriptor { /// The name of this metric. pub name: Option, /// Type description for this metric. - #[serde(alias="typeDescriptor")] + #[serde(rename="typeDescriptor")] pub type_descriptor: Option, } @@ -608,7 +608,7 @@ impl ResponseResult for DeleteMetricDescriptorResponse {} #[derive(Default, Clone, Debug, Serialize)] pub struct WriteTimeseriesRequest { /// The label's name. - #[serde(alias="commonLabels")] + #[serde(rename="commonLabels")] pub common_labels: Option>, /// Provide time series specific labels and the data points for each time series. The labels in timeseries and the common_labels should form a complete list of labels that required by the metric. pub timeseries: Option>, @@ -626,21 +626,21 @@ pub struct Point { /// The interval [start, end] is the time period to which the point's value applies. For gauge metrics, whose values are instantaneous measurements, this interval should be empty (start should equal end). For cumulative metrics (of which deltas and rates are special cases), the interval should be non-empty. Both start and end are RFC 3339 strings. pub start: String, /// The value of this data point. Either "true" or "false". - #[serde(alias="boolValue")] + #[serde(rename="boolValue")] pub bool_value: bool, /// The interval [start, end] is the time period to which the point's value applies. For gauge metrics, whose values are instantaneous measurements, this interval should be empty (start should equal end). For cumulative metrics (of which deltas and rates are special cases), the interval should be non-empty. Both start and end are RFC 3339 strings. pub end: String, /// The value of this data point as a distribution. A distribution value can contain a list of buckets and/or an underflowBucket and an overflowBucket. The values of these points can be used to create a histogram. - #[serde(alias="distributionValue")] + #[serde(rename="distributionValue")] pub distribution_value: PointDistribution, /// The value of this data point in string format. - #[serde(alias="stringValue")] + #[serde(rename="stringValue")] pub string_value: String, /// The value of this data point as a 64-bit integer. - #[serde(alias="int64Value")] + #[serde(rename="int64Value")] pub int64_value: String, /// The value of this data point as a double-precision floating-point number. - #[serde(alias="doubleValue")] + #[serde(rename="doubleValue")] pub double_value: f64, } @@ -676,7 +676,7 @@ impl Resource for TimeseriesDescriptor {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Timeseries { /// The descriptor of this time series. - #[serde(alias="timeseriesDesc")] + #[serde(rename="timeseriesDesc")] pub timeseries_desc: TimeseriesDescriptor, /// The data points of this time series. The points are listed in order of their end timestamp, from younger to older. pub points: Vec, @@ -694,7 +694,7 @@ pub struct PointDistributionOverflowBucket { /// The number of events whose values are in the interval defined by this bucket. pub count: String, /// The lower bound of the value interval of this bucket (inclusive). - #[serde(alias="lowerBound")] + #[serde(rename="lowerBound")] pub lower_bound: f64, } @@ -713,7 +713,7 @@ impl Part for PointDistributionOverflowBucket {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ListTimeseriesDescriptorsResponse { /// Pagination token. If present, indicates that additional results are available for retrieval. To access the results past the pagination limit, set this value to the pageToken query parameter. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The youngest timestamp of the interval of this query, as an RFC 3339 string. pub youngest: String, @@ -740,7 +740,7 @@ impl ResponseResult for ListTimeseriesDescriptorsResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ListTimeseriesResponse { /// Pagination token. If present, indicates that additional results are available for retrieval. To access the results past the pagination limit, set the pageToken query parameter to this value. All of the points of a time series will be returned before returning any point of the subsequent time series. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The youngest timestamp of the interval of this query as an RFC 3339 string. pub youngest: String, diff --git a/gen/cloudsearch1/Cargo.toml b/gen/cloudsearch1/Cargo.toml index eb15b864af..1079811d54 100644 --- a/gen/cloudsearch1/Cargo.toml +++ b/gen/cloudsearch1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudsearch1" -version = "0.1.3+20150309" +version = "0.1.4+20150309" authors = ["Sebastian Thiel "] description = "A complete library to interact with cloudsearch (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudsearch1" @@ -17,5 +17,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/cloudsearch1/README.md b/gen/cloudsearch1/README.md index 0a53af5869..17025d230b 100644 --- a/gen/cloudsearch1/README.md +++ b/gen/cloudsearch1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-cloudsearch1` library allows access to all features of the *Google cloudsearch* service. -This documentation was generated from *cloudsearch* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *cloudsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *cloudsearch* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *cloudsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. # Features Handle the following *Resources* with ease from the central [hub](http://byron.github.io/google-apis-rs/google-cloudsearch1/struct.Cloudsearch.html) ... diff --git a/gen/cloudsearch1/src/lib.rs b/gen/cloudsearch1/src/lib.rs index 98207b9488..1b109ffc09 100644 --- a/gen/cloudsearch1/src/lib.rs +++ b/gen/cloudsearch1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *cloudsearch* crate version *0.1.3+20150309*, where *20150309* is the exact revision of the *cloudsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *cloudsearch* crate version *0.1.4+20150309*, where *20150309* is the exact revision of the *cloudsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/cloudsearch1). //! # Features //! @@ -302,7 +302,7 @@ impl<'a, C, NC, A> Cloudsearch Cloudsearch { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -312,7 +312,7 @@ impl<'a, C, NC, A> Cloudsearch } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -338,7 +338,7 @@ impl<'a, C, NC, A> Cloudsearch #[derive(Default, Clone, Debug, Deserialize)] pub struct ListDocumentsResponse { /// If there are more results, retrieve them by invoking list documents call with the same arguments and this `nextPageToken`. If there are no more results, this field is not set. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The list of documents. pub documents: Vec, @@ -354,13 +354,13 @@ impl ResponseResult for ListDocumentsResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct IndexInfo { /// The project associated with the index. It cannot be the empty string. - #[serde(alias="projectId")] + #[serde(rename="projectId")] pub project_id: String, /// The index identifier. It cannot be the empty string. It must contain only visible, printable ASCII characters (ASCII codes 33 through 126 inclusive) and be no longer than 100 characters. It cannot begin with an exclamation point ('!'), and it can't begin and end with double underscores ("__"). - #[serde(alias="indexId")] + #[serde(rename="indexId")] pub index_id: String, /// Names of indexed fields. - #[serde(alias="indexedField")] + #[serde(rename="indexedField")] pub indexed_field: FieldNames, } @@ -374,12 +374,12 @@ impl Part for IndexInfo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SearchResult { /// If there are more results, retrieve them by invoking search call with the same arguments and this `nextPageToken`. If there are no more results, this field is not set. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The list of fields in the result. Each field is either from the stored document, the built-in fields (`_rank`, the document rank, and `_score` if scoring is enabled), or computed from any extra `fieldExpressions` defined in the request. For example, if a request contains a `fieldExpressions` named `"TotalPrice"` and expressed as `"Price + Tax"`, the result will have a field whose name is `"TotalPrice"` and whose value is set to the computed sum of the value of field `"Price"` and the value of field `"Tax"`. If a request contains a `fieldExpressions` named `"snippet"` and expressed as `"snippet(\"good times\", content)"`, the result will have a field whose name is `"snippet"` and whose value contains a snippet of text from field `"content"` matching the query "good times". pub fields: HashMap, /// The unique identifier of the document. - #[serde(alias="docId")] + #[serde(rename="docId")] pub doc_id: String, } @@ -393,22 +393,22 @@ impl Part for SearchResult {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FieldNames { /// The names of fields in which TEXT values are stored. - #[serde(alias="textFields")] + #[serde(rename="textFields")] pub text_fields: Vec, /// The names of fields in which DATE values are stored. - #[serde(alias="dateFields")] + #[serde(rename="dateFields")] pub date_fields: Vec, /// The names of fields in which NUMBER values are stored. - #[serde(alias="numberFields")] + #[serde(rename="numberFields")] pub number_fields: Vec, /// The names of fields in which GEO values are stored. - #[serde(alias="geoFields")] + #[serde(rename="geoFields")] pub geo_fields: Vec, /// The names of fields in which ATOM values are stored. - #[serde(alias="atomFields")] + #[serde(rename="atomFields")] pub atom_fields: Vec, /// The names of fields in which HTML values are stored. - #[serde(alias="htmlFields")] + #[serde(rename="htmlFields")] pub html_fields: Vec, } @@ -440,7 +440,7 @@ impl Part for FieldValueList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ListIndexesResponse { /// If there are more results, retrieve them by invoking list indexes call with the same arguments and this `nextPageToken`. If there are no more results, this field is not set. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The information about available indexes. pub indexes: Vec, @@ -461,7 +461,7 @@ impl ResponseResult for ListIndexesResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SearchResponse { /// The number of documents that match the query. It is greater than or equal to the number of documents actually returned. This is an approximation and not an exact count unless it is less than or equal to `matchedCountAccuracy` in search parameter. - #[serde(alias="matchedCount")] + #[serde(rename="matchedCount")] pub matched_count: i64, /// The list of documents that match the search query. pub results: Vec, @@ -485,7 +485,7 @@ pub struct Document { /// The list of fields in the document. It cannot be the empty list. Each field has a name and a list of values. The field name is unique to a document and is case sensitive. The name can only contain ASCII characters. It must start with a letter and can contain letters, digits, or underscore. It cannot be longer than 500 characters and cannot be the empty string. A field can have multiple values with same or different types, however, it cannot have multiple Timestamp or number values. pub fields: Option>, /// The unique identifier of the document. It must contain only visible, printable ASCII characters (ASCII codes 33 through 126 inclusive) and be no longer than 500 characters. It cannot begin with an exclamation point ('!'), and it can't begin and end with double underscores ("__"). If missing, it is automatically assigned for the document. - #[serde(alias="docId")] + #[serde(rename="docId")] pub doc_id: Option, /// A positive integer which determines the default ordering of documents returned from a search. The rank can be set explicitly when the document is created. It is a bad idea to assign the same rank to many documents, and the same rank should never be assigned to more than 10,000 documents. By default (when it is not specified or set to 0), it is set at the time the document is created to the number of seconds since January 1, 2011. The rank can be used in field_expressions, order_by or return_fields in a search request, where it is referenced as `_rank`. pub rank: Option, @@ -504,19 +504,19 @@ pub struct FieldValue { /// The language of a string value. If given, the language must be a valid `ISO 639-1` code. pub lang: String, /// The value of a number-valued field. - #[serde(alias="numberValue")] + #[serde(rename="numberValue")] pub number_value: f64, /// The value of a timestamp-valued field. - #[serde(alias="timestampValue")] + #[serde(rename="timestampValue")] pub timestamp_value: String, /// The value of a string-valued field. - #[serde(alias="stringValue")] + #[serde(rename="stringValue")] pub string_value: String, /// The format of a string value. By default, the string format is `DEFAULT`, where a format will be automatically detected. - #[serde(alias="stringFormat")] + #[serde(rename="stringFormat")] pub string_format: String, /// The value of a GEO-valued field, represented in string with any of the listed [ways of writing coordinates](http://en.wikipedia.org/wiki/Geographic_coordinate_conversion#Ways_of_writing_coordinates) - #[serde(alias="geoValue")] + #[serde(rename="geoValue")] pub geo_value: String, } diff --git a/gen/compute1/Cargo.toml b/gen/compute1/Cargo.toml index 212d575d90..f66457772b 100644 --- a/gen/compute1/Cargo.toml +++ b/gen/compute1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-compute1" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with compute (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/compute1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/compute1/README.md b/gen/compute1/README.md index 85a63cc808..7713ad6c30 100644 --- a/gen/compute1/README.md +++ b/gen/compute1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-compute1` library allows access to all features of the *Google compute* service. -This documentation was generated from *compute* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *compute* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *compute* *v1* API can be found at the [official documentation site](https://developers.google.com/compute/docs/reference/latest/). diff --git a/gen/compute1/src/lib.rs b/gen/compute1/src/lib.rs index 637753a25b..249d7e4a01 100644 --- a/gen/compute1/src/lib.rs +++ b/gen/compute1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *compute* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *compute* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *compute* *v1* API can be found at the //! [official documentation site](https://developers.google.com/compute/docs/reference/latest/). @@ -446,7 +446,7 @@ impl<'a, C, NC, A> Compute Compute { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -540,7 +540,7 @@ impl<'a, C, NC, A> Compute } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -561,7 +561,7 @@ impl<'a, C, NC, A> Compute #[derive(Default, Clone, Debug, Deserialize)] pub struct VpnTunnelsScopedList { /// List of vpn tunnels contained in this scope. - #[serde(alias="vpnTunnels")] + #[serde(rename="vpnTunnels")] pub vpn_tunnels: Vec, /// Informational warning which replaces the list of addresses when the list is empty. pub warning: VpnTunnelsScopedListWarning, @@ -586,7 +586,7 @@ pub struct SerialPortOutput { /// [Output Only] The contents of the console output. pub contents: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -620,7 +620,7 @@ impl Part for OperationsScopedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UrlMapList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of UrlMap resources. pub items: Vec, @@ -629,7 +629,7 @@ pub struct UrlMapList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -692,20 +692,20 @@ pub struct DiskType { /// [Output Only] URL of the zone where the disk type resides. pub zone: String, /// [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". - #[serde(alias="validDiskSize")] + #[serde(rename="validDiskSize")] pub valid_disk_size: String, /// [Output Only] The deprecation status associated with this disk type. pub deprecated: DeprecationStatus, /// [Output Only] Server defined default disk size in GB. - #[serde(alias="defaultDiskSizeGb")] + #[serde(rename="defaultDiskSizeGb")] pub default_disk_size_gb: String, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// [Output Only] Name of the resource. pub name: String, @@ -743,12 +743,12 @@ impl ResponseResult for DiskType {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Instance { /// [Output Only] The CPU platform used by this instance. - #[serde(alias="cpuPlatform")] + #[serde(rename="cpuPlatform")] pub cpu_platform: Option, /// [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, TERMINATED. pub status: Option, /// Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. - #[serde(alias="canIpForward")] + #[serde(rename="canIpForward")] pub can_ip_forward: Option, /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, @@ -759,18 +759,18 @@ pub struct Instance { /// Full or partial URL of the machine type resource to use for this instance. This is provided by the client when the instance is created. For example, the following is a valid partial url: /// /// zones/zone/machineTypes/machine-type - #[serde(alias="machineType")] + #[serde(rename="machineType")] pub machine_type: Option, /// A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Authenticating from Google Compute Engine for more information. - #[serde(alias="serviceAccounts")] + #[serde(rename="serviceAccounts")] pub service_accounts: Option>, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, /// An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. - #[serde(alias="networkInterfaces")] + #[serde(rename="networkInterfaces")] pub network_interfaces: Option>, /// [Output Only] Type of the resource. Always compute#instance for instances. pub kind: Option, @@ -781,10 +781,10 @@ pub struct Instance { /// Array of disks associated with this instance. Persistent disks must be created before you can assign them. pub disks: Option>, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// [Output Only] An optional, human-readable explanation of the status. - #[serde(alias="statusMessage")] + #[serde(rename="statusMessage")] pub status_message: Option, /// The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. pub metadata: Option, @@ -802,7 +802,7 @@ impl ResponseResult for Instance {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MachineTypesScopedList { /// [Output Only] List of machine types contained in this scope. - #[serde(alias="machineTypes")] + #[serde(rename="machineTypes")] pub machine_types: Vec, /// [Output Only] An informational warning that appears when the machine types list is empty. pub warning: MachineTypesScopedListWarning, @@ -823,7 +823,7 @@ impl Part for MachineTypesScopedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VpnTunnelAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped vpn tunnel lists. pub items: HashMap, @@ -832,7 +832,7 @@ pub struct VpnTunnelAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -851,7 +851,7 @@ impl ResponseResult for VpnTunnelAggregatedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct OperationAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped operation lists. pub items: HashMap, @@ -860,7 +860,7 @@ pub struct OperationAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -879,7 +879,7 @@ impl ResponseResult for OperationAggregatedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ImageList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of Image resources. pub items: Vec, @@ -888,7 +888,7 @@ pub struct ImageList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1009,15 +1009,15 @@ pub struct TargetHttpProxy { /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// URL to the UrlMap resource that defines the mapping from URL to the BackendService. - #[serde(alias="urlMap")] + #[serde(rename="urlMap")] pub url_map: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -1039,7 +1039,7 @@ impl ResponseResult for TargetHttpProxy {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DiskAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped disk lists. pub items: HashMap, @@ -1048,7 +1048,7 @@ pub struct DiskAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1084,10 +1084,10 @@ impl Part for AddressesScopedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MachineType { /// [Output Only] The tumber of CPUs exposed to the instance. - #[serde(alias="guestCpus")] + #[serde(rename="guestCpus")] pub guest_cpus: i32, /// [Deprecated] This property is deprecated and will never be populated with any relevant values. - #[serde(alias="imageSpaceGb")] + #[serde(rename="imageSpaceGb")] pub image_space_gb: i32, /// Type of the resource. pub kind: String, @@ -1096,26 +1096,26 @@ pub struct MachineType { /// [Output Only] The name of the zone where the machine type resides, such as us-central1-a. pub zone: String, /// [Output Only] Maximum total persistent disks size (GB) allowed. - #[serde(alias="maximumPersistentDisksSizeGb")] + #[serde(rename="maximumPersistentDisksSizeGb")] pub maximum_persistent_disks_size_gb: String, /// [Output Only] The deprecation status associated with this machine type. pub deprecated: DeprecationStatus, /// [Output Only] Maximum persistent disks allowed. - #[serde(alias="maximumPersistentDisks")] + #[serde(rename="maximumPersistentDisks")] pub maximum_persistent_disks: i32, /// [Output Only] The amount of physical memory available to the instance, defined in MB. - #[serde(alias="memoryMb")] + #[serde(rename="memoryMb")] pub memory_mb: i32, /// [Output Only] List of extended scratch disks assigned to the instance. - #[serde(alias="scratchDisks")] + #[serde(rename="scratchDisks")] pub scratch_disks: Vec, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// [Output Only] Name of the resource. pub name: String, @@ -1170,7 +1170,7 @@ impl Part for InstancesScopedListWarningData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AddressList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Address resources. pub items: Vec
, @@ -1179,7 +1179,7 @@ pub struct AddressList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1198,7 +1198,7 @@ impl ResponseResult for AddressList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DiskTypeList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Disk Type resources. pub items: Vec, @@ -1207,7 +1207,7 @@ pub struct DiskTypeList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1242,7 +1242,7 @@ impl Part for TargetVpnGatewaysScopedListWarningData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AddressAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped address lists. pub items: HashMap, @@ -1251,7 +1251,7 @@ pub struct AddressAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1265,16 +1265,16 @@ impl ResponseResult for AddressAggregatedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UrlMapValidationResult { /// no description provided - #[serde(alias="testFailures")] + #[serde(rename="testFailures")] pub test_failures: Vec, /// no description provided - #[serde(alias="loadErrors")] + #[serde(rename="loadErrors")] pub load_errors: Vec, /// Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons. - #[serde(alias="loadSucceeded")] + #[serde(rename="loadSucceeded")] pub load_succeeded: bool, /// If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure. - #[serde(alias="testPassed")] + #[serde(rename="testPassed")] pub test_passed: bool, } @@ -1306,10 +1306,10 @@ impl Part for TargetPoolsScopedListWarning {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct PathMatcher { /// The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion. - #[serde(alias="defaultService")] + #[serde(rename="defaultService")] pub default_service: String, /// The list of path rules. - #[serde(alias="pathRules")] + #[serde(rename="pathRules")] pub path_rules: Vec, /// no description provided pub description: String, @@ -1348,7 +1348,7 @@ impl Part for TargetInstancesScopedListWarningData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SnapshotList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of Snapshot resources. pub items: Vec, @@ -1357,7 +1357,7 @@ pub struct SnapshotList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1389,12 +1389,12 @@ pub struct Region { /// [Output Only] A list of zones available in this region, in the form of resource URLs. pub zones: Vec, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// [Output Only] Unique identifier for the resource; defined by the server . pub id: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// [Output Only] Name of the resource. pub name: String, @@ -1454,20 +1454,20 @@ pub struct Project { /// An optional textual description of the resource. pub description: String, /// Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. - #[serde(alias="commonInstanceMetadata")] + #[serde(rename="commonInstanceMetadata")] pub common_instance_metadata: Metadata, /// [Output Only] Quotas assigned to this project. pub quotas: Vec, /// The location in Cloud Storage and naming method of the daily usage report. - #[serde(alias="usageExportLocation")] + #[serde(rename="usageExportLocation")] pub usage_export_location: UsageExportLocation, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Name of the resource. pub name: String, @@ -1512,31 +1512,31 @@ pub struct Snapshot { /// Type of the resource. pub kind: Option, /// A size of the the storage used by the snapshot. As snapshots share storage this number is expected to change with snapshot creation/deletion. - #[serde(alias="storageBytes")] + #[serde(rename="storageBytes")] pub storage_bytes: Option, /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// The source disk used to create this snapshot. - #[serde(alias="sourceDisk")] + #[serde(rename="sourceDisk")] pub source_disk: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. - #[serde(alias="sourceDiskId")] + #[serde(rename="sourceDiskId")] pub source_disk_id: Option, /// Size of the persistent disk snapshot, specified in GB (output only). - #[serde(alias="diskSizeGb")] + #[serde(rename="diskSizeGb")] pub disk_size_gb: Option, /// Public visible licenses. pub licenses: Option>, /// An indicator whether storageBytes is in a stable state, or it is being adjusted as a result of shared storage reallocation. - #[serde(alias="storageBytesStatus")] + #[serde(rename="storageBytesStatus")] pub storage_bytes_status: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -1556,7 +1556,7 @@ pub struct DiskTypesScopedList { /// [Output Only] Informational warning which replaces the list of disk types when the list is empty. pub warning: DiskTypesScopedListWarning, /// [Output Only] List of disk types contained in this scope. - #[serde(alias="diskTypes")] + #[serde(rename="diskTypes")] pub disk_types: Vec, } @@ -1587,7 +1587,7 @@ pub struct BackendService { /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. - #[serde(alias="timeoutSec")] + #[serde(rename="timeoutSec")] pub timeout_sec: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, @@ -1596,18 +1596,18 @@ pub struct BackendService { /// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService. pub fingerprint: Option, /// Name of backend port. The same name should appear in the resource views referenced by this service. Required. - #[serde(alias="portName")] + #[serde(rename="portName")] pub port_name: Option, /// The list of URLs to the HttpHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required. - #[serde(alias="healthChecks")] + #[serde(rename="healthChecks")] pub health_checks: Option>, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// Deprecated in favor of port_name. The TCP port to connect on the backend. The default value is 80. pub port: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -1630,7 +1630,7 @@ impl ResponseResult for BackendService {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetVpnGatewayAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A map of scoped target vpn gateway lists. pub items: HashMap, @@ -1639,7 +1639,7 @@ pub struct TargetVpnGatewayAggregatedList { /// [Output Only] Unique identifier for the resource. Defined by the server. pub id: String, /// [Output Only] Server-defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1676,7 +1676,7 @@ impl RequestValue for ResourceGroupReference {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MachineTypeList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Machine Type resources. pub items: Vec, @@ -1685,7 +1685,7 @@ pub struct MachineTypeList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1737,7 +1737,7 @@ impl Part for OperationWarningsData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ForwardingRuleList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of ForwardingRule resources. pub items: Vec, @@ -1746,7 +1746,7 @@ pub struct ForwardingRuleList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1783,7 +1783,7 @@ impl Part for ForwardingRulesScopedListWarning {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FirewallList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Firewall resources. pub items: Vec, @@ -1792,7 +1792,7 @@ pub struct FirewallList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1859,27 +1859,27 @@ pub struct Firewall { /// A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set. /// /// If both properties are set, an inbound connection is allowed if the range or the tag of the source matches the sourceRanges OR matches the sourceTags property; the connection does not need to match both properties. - #[serde(alias="sourceTags")] + #[serde(rename="sourceTags")] pub source_tags: Option>, /// The IP address blocks that this rule applies to, expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. /// /// If both properties are set, an inbound connection is allowed if the range or the tag of the source matches the sourceRanges OR matches the sourceTags property; the connection does not need to match both properties. - #[serde(alias="sourceRanges")] + #[serde(rename="sourceRanges")] pub source_ranges: Option>, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. pub name: Option, /// A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed[]. If no targetTags are specified, the firewall rule applies to all instances on the specified network. - #[serde(alias="targetTags")] + #[serde(rename="targetTags")] pub target_tags: Option>, /// The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. pub allowed: Option>, /// [Output Only] Creation timestamp in RFC3339text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// URL of the network resource for this firewall rule. This field is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used: /// global/networks/default @@ -1906,7 +1906,7 @@ pub struct HostRule { /// no description provided pub description: String, /// The name of the PathMatcher to match the path portion of the URL, if the this HostRule matches the URL's host portion. - #[serde(alias="pathMatcher")] + #[serde(rename="pathMatcher")] pub path_matcher: String, } @@ -1927,7 +1927,7 @@ impl Part for HostRule {} #[derive(Default, Clone, Debug, Deserialize)] pub struct OperationList { /// [Output Only] A token used to continue a truncate. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] The operation resources. pub items: Vec, @@ -1936,7 +1936,7 @@ pub struct OperationList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1959,7 +1959,7 @@ impl ResponseResult for OperationList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct TargetInstance { /// NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT (default value) is supported. - #[serde(alias="natPolicy")] + #[serde(rename="natPolicy")] pub nat_policy: Option, /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, @@ -1970,12 +1970,12 @@ pub struct TargetInstance { /// The URL to the instance that terminates the relevant traffic. pub instance: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -2007,33 +2007,33 @@ pub struct HttpHealthCheck { /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. - #[serde(alias="timeoutSec")] + #[serde(rename="timeoutSec")] pub timeout_sec: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, /// How often (in seconds) to send a health check. The default value is 5 seconds. - #[serde(alias="checkIntervalSec")] + #[serde(rename="checkIntervalSec")] pub check_interval_sec: Option, /// A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2. - #[serde(alias="unhealthyThreshold")] + #[serde(rename="unhealthyThreshold")] pub unhealthy_threshold: Option, /// A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2. - #[serde(alias="healthyThreshold")] + #[serde(rename="healthyThreshold")] pub healthy_threshold: Option, /// The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. pub host: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// The TCP port number for the HTTP health check request. The default value is 80. pub port: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// The request path of the HTTP health check request. The default value is "/". - #[serde(alias="requestPath")] + #[serde(rename="requestPath")] pub request_path: Option, } @@ -2061,18 +2061,18 @@ pub struct Network { /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created. - #[serde(alias="IPv4Range")] + #[serde(rename="IPv4Range")] pub i_pv4_range: Option, /// A gateway address for default routing to other networks. This value is read only and is selected by the Google Compute Engine, typically as the first usable address in the IPv4Range. - #[serde(alias="gatewayIPv4")] + #[serde(rename="gatewayIPv4")] pub gateway_i_pv4: Option, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. pub name: Option, @@ -2095,7 +2095,7 @@ impl ResponseResult for Network {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DiskTypeAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped disk type lists. pub items: HashMap, @@ -2104,7 +2104,7 @@ pub struct DiskTypeAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2132,12 +2132,12 @@ pub struct InstanceTemplate { /// Name of the instance template resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035 pub name: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// The instance properties portion of this instance template resource. pub properties: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, @@ -2157,10 +2157,10 @@ pub struct HealthStatus { /// URL of the instance resource. pub instance: String, /// Health state of the instance. - #[serde(alias="healthState")] + #[serde(rename="healthState")] pub health_state: String, /// The IP address represented by this resource. - #[serde(alias="ipAddress")] + #[serde(rename="ipAddress")] pub ip_address: String, /// The port on the instance. pub port: i32, @@ -2181,7 +2181,7 @@ impl Part for HealthStatus {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MachineTypeAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped machine type lists. pub items: HashMap, @@ -2190,7 +2190,7 @@ pub struct MachineTypeAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2222,7 +2222,7 @@ impl ResponseResult for UrlMapsValidateResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ForwardingRulesScopedList { /// List of forwarding rules contained in this scope. - #[serde(alias="forwardingRules")] + #[serde(rename="forwardingRules")] pub forwarding_rules: Vec, /// Informational warning which replaces the list of forwarding rules when the list is empty. pub warning: ForwardingRulesScopedListWarning, @@ -2243,7 +2243,7 @@ impl Part for ForwardingRulesScopedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RouteList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of Route resources. pub items: Vec, @@ -2252,7 +2252,7 @@ pub struct RouteList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2281,12 +2281,12 @@ pub struct Disk { /// - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot /// - projects/project/global/snapshots/snapshot /// - global/snapshots/snapshot - #[serde(alias="sourceSnapshot")] + #[serde(rename="sourceSnapshot")] pub source_snapshot: Option, /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. - #[serde(alias="sourceImageId")] + #[serde(rename="sourceImageId")] pub source_image_id: Option, /// Any applicable publicly visible licenses. pub licenses: Option>, @@ -2301,13 +2301,13 @@ pub struct Disk { /// projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD /// /// where vYYYYMMDD is the image version. The fully-qualified URL will also work in both cases. - #[serde(alias="sourceImage")] + #[serde(rename="sourceImage")] pub source_image: Option, /// [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used. - #[serde(alias="sourceSnapshotId")] + #[serde(rename="sourceSnapshotId")] pub source_snapshot_id: Option, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, @@ -2318,17 +2318,17 @@ pub struct Disk { /// Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. /// /// If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot. - #[serde(alias="sizeGb")] + #[serde(rename="sizeGb")] pub size_gb: Option, /// [Output Only] URL of the zone where the disk resides. pub zone: Option, /// URL of the disk type resource describing which disk type to use to create the disk; provided by the client when the disk is created. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Internal use only. pub options: Option, /// [Output Only] Server-defined fully-qualified URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -2365,7 +2365,7 @@ impl Part for VpnTunnelsScopedListWarningData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetHttpProxyList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of TargetHttpProxy resources. pub items: Vec, @@ -2374,7 +2374,7 @@ pub struct TargetHttpProxyList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2397,41 +2397,41 @@ impl ResponseResult for TargetHttpProxyList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct VpnTunnel { /// [Output Only] Detailed status message for the VPN tunnel. - #[serde(alias="detailedStatus")] + #[serde(rename="detailedStatus")] pub detailed_status: Option, /// IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2. - #[serde(alias="ikeVersion")] + #[serde(rename="ikeVersion")] pub ike_version: Option, /// [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. pub kind: Option, /// An optional textual description of the resource. Provided by the client when the resource is created. pub description: Option, /// IP address of the peer VPN gateway. - #[serde(alias="peerIp")] + #[serde(rename="peerIp")] pub peer_ip: Option, /// [Output Only] URL of the region where the VPN tunnel resides. pub region: Option, /// IKE networks to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. - #[serde(alias="ikeNetworks")] + #[serde(rename="ikeNetworks")] pub ike_networks: Option>, /// [Output Only] The status of the VPN tunnel. pub status: Option, /// Hash of the shared secret. - #[serde(alias="sharedSecretHash")] + #[serde(rename="sharedSecretHash")] pub shared_secret_hash: Option, /// URL of the VPN gateway to which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. - #[serde(alias="targetVpnGateway")] + #[serde(rename="targetVpnGateway")] pub target_vpn_gateway: Option, /// Shared secret used to set the secure session between the GCE VPN gateway and the peer VPN gateway. - #[serde(alias="sharedSecret")] + #[serde(rename="sharedSecret")] pub shared_secret: Option, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource. Defined by the server. pub id: Option, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and comply with RFC1035. pub name: Option, @@ -2498,7 +2498,7 @@ impl Part for DisksScopedListWarning {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetVpnGatewayList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of TargetVpnGateway resources. pub items: Vec, @@ -2507,7 +2507,7 @@ pub struct TargetVpnGatewayList { /// [Output Only] Unique identifier for the resource. Defined by the server. pub id: String, /// [Output Only] Server-defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2533,19 +2533,19 @@ pub struct Zone { /// [Output Only] Textual description of the resource. pub description: String, /// [Output Only] Any scheduled maintenance windows for this zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable. For more information, see Maintenance Windows - #[serde(alias="maintenanceWindows")] + #[serde(rename="maintenanceWindows")] pub maintenance_windows: Vec, /// [Output Only] The deprecation status associated with this zone. pub deprecated: DeprecationStatus, /// [Output Only] Full URL reference to the region which hosts the zone. pub region: String, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// [Output Only] Name of the resource. pub name: String, @@ -2578,25 +2578,25 @@ pub struct ForwardingRule { /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// Applicable only when 'IPProtocol' is 'TCP', 'UDP' or 'SCTP', only packets addressed to ports in the specified range will be forwarded to 'target'. If 'portRange' is left empty (default value), all ports are forwarded. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. - #[serde(alias="portRange")] + #[serde(rename="portRange")] pub port_range: Option, /// URL of the region where the regional forwarding rule resides (output only). This field is not applicable to global forwarding rules. pub region: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// The IP protocol to which this rule applies, valid options are 'TCP', 'UDP', 'ESP', 'AH' or 'SCTP'. - #[serde(alias="IPProtocol")] + #[serde(rename="IPProtocol")] pub ip_protocol: Option, /// Value of the reserved IP address that this forwarding rule is serving on behalf of. For global forwarding rules, the address must be a global IP; for regional forwarding rules, the address must live in the same region as the forwarding rule. If left empty (default value), an ephemeral IP from the same scope (global or regional) will be assigned. - #[serde(alias="IPAddress")] + #[serde(rename="IPAddress")] pub ip_address: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global TargetHttpProxy resource. pub target: Option, @@ -2621,12 +2621,12 @@ pub struct AccessConfig { /// [Output Only] Type of the resource. Always compute#accessConfig for access configs. pub kind: Option, /// The type of configuration. The default and only option is ONE_TO_ONE_NAT. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Name of this access configuration. pub name: Option, /// An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. - #[serde(alias="natIP")] + #[serde(rename="natIP")] pub nat_ip: Option, } @@ -2645,7 +2645,7 @@ impl RequestValue for AccessConfig {} #[derive(Default, Clone, Debug, Serialize)] pub struct UrlMapReference { /// no description provided - #[serde(alias="urlMap")] + #[serde(rename="urlMap")] pub url_map: Option, } @@ -2659,7 +2659,7 @@ impl RequestValue for UrlMapReference {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MachineTypeScratchDisks { /// Size of the scratch disk, defined in GB. - #[serde(alias="diskGb")] + #[serde(rename="diskGb")] pub disk_gb: i32, } @@ -2679,7 +2679,7 @@ impl Part for MachineTypeScratchDisks {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetInstanceAggregatedList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A map of scoped target instance lists. pub items: HashMap, @@ -2688,7 +2688,7 @@ pub struct TargetInstanceAggregatedList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2707,10 +2707,10 @@ impl ResponseResult for TargetInstanceAggregatedList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UsageExportLocation { /// The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This is just the bucket name, with no gs:// or https://storage.googleapis.com/ in front of it. - #[serde(alias="bucketName")] + #[serde(rename="bucketName")] pub bucket_name: Option, /// An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions. - #[serde(alias="reportNamePrefix")] + #[serde(rename="reportNamePrefix")] pub report_name_prefix: Option, } @@ -2742,7 +2742,7 @@ impl Part for AddressesScopedListWarning {} #[derive(Default, Clone, Debug, Serialize)] pub struct HealthCheckReference { /// no description provided - #[serde(alias="healthCheck")] + #[serde(rename="healthCheck")] pub health_check: String, } @@ -2763,7 +2763,7 @@ pub struct TargetPoolInstanceHealth { /// Type of resource. pub kind: String, /// no description provided - #[serde(alias="healthStatus")] + #[serde(rename="healthStatus")] pub health_status: Vec, } @@ -2796,13 +2796,13 @@ pub struct TargetVpnGateway { /// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and comply with RFC1035. pub name: Option, /// [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated to a VPN gateway. - #[serde(alias="forwardingRules")] + #[serde(rename="forwardingRules")] pub forwarding_rules: Option>, /// [Output Only] Server-defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource. Defined by the server. pub id: Option, @@ -2829,7 +2829,7 @@ impl ResponseResult for TargetVpnGateway {} #[derive(Default, Clone, Debug, Deserialize)] pub struct InstanceAggregatedList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A map of scoped instance lists. pub items: HashMap, @@ -2838,7 +2838,7 @@ pub struct InstanceAggregatedList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -2895,7 +2895,7 @@ pub struct BackendServiceGroupHealth { /// Type of resource. pub kind: String, /// no description provided - #[serde(alias="healthStatus")] + #[serde(rename="healthStatus")] pub health_status: Vec, } @@ -2935,13 +2935,13 @@ pub struct InstanceMoveRequest { /// - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance /// - projects/project/zones/zone/instances/instance /// - zones/zone/instances/instance - #[serde(alias="targetInstance")] + #[serde(rename="targetInstance")] pub target_instance: Option, /// The URL of the destination zone to move the instance to. This can be a full or partial URL. For example, the following are all valid URLs to a zone: /// - https://www.googleapis.com/compute/v1/projects/project/zones/zone /// - projects/project/zones/zone /// - zones/zone - #[serde(alias="destinationZone")] + #[serde(rename="destinationZone")] pub destination_zone: Option, } @@ -2963,13 +2963,13 @@ pub struct DiskMoveRequest { /// - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk /// - projects/project/zones/zone/disks/disk /// - zones/zone/disks/disk - #[serde(alias="targetDisk")] + #[serde(rename="targetDisk")] pub target_disk: Option, /// The URL of the destination zone to move the disk to. This can be a full or partial URL. For example, the following are all valid URLs to a zone: /// - https://www.googleapis.com/compute/v1/projects/project/zones/zone /// - projects/project/zones/zone /// - zones/zone - #[serde(alias="destinationZone")] + #[serde(rename="destinationZone")] pub destination_zone: Option, } @@ -2985,10 +2985,10 @@ impl RequestValue for DiskMoveRequest {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AttachedDiskInitializeParams { /// Specifies the size of the disk in base-2 GB. - #[serde(alias="diskSizeGb")] + #[serde(rename="diskSizeGb")] pub disk_size_gb: String, /// Specifies the disk name. If not specified, the default is to use the name of the instance. - #[serde(alias="diskName")] + #[serde(rename="diskName")] pub disk_name: String, /// A source image used to create the disk. You can provide a private (custom) image, and Compute Engine will use the corresponding image from your project. For example: /// @@ -2999,7 +2999,7 @@ pub struct AttachedDiskInitializeParams { /// projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD /// /// where vYYYYMMDD is the image version. The fully-qualified URL will also work in both cases. - #[serde(alias="sourceImage")] + #[serde(rename="sourceImage")] pub source_image: String, /// Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: /// @@ -3009,7 +3009,7 @@ pub struct AttachedDiskInitializeParams { /// - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType /// - projects/project/zones/zone/diskTypes/diskType /// - zones/zone/diskTypes/diskType - #[serde(alias="diskType")] + #[serde(rename="diskType")] pub disk_type: String, } @@ -3023,12 +3023,12 @@ impl Part for AttachedDiskInitializeParams {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ZoneMaintenanceWindows { /// [Output Only] Ending time of the maintenance window, in RFC3339 format. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// [Output Only] Textual description of the maintenance window. pub description: String, /// [Output Only] Starting time of the maintenance window, in RFC3339 format. - #[serde(alias="beginTime")] + #[serde(rename="beginTime")] pub begin_time: String, /// [Output Only] Name of the maintenance window. pub name: String, @@ -3050,7 +3050,7 @@ impl Part for ZoneMaintenanceWindows {} #[derive(Default, Clone, Debug, Deserialize)] pub struct InstanceList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Instance resources. pub items: Vec, @@ -3059,7 +3059,7 @@ pub struct InstanceList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3092,7 +3092,7 @@ pub struct TargetPool { /// If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. /// /// In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. - #[serde(alias="failoverRatio")] + #[serde(rename="failoverRatio")] pub failover_ratio: Option, /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, @@ -3101,7 +3101,7 @@ pub struct TargetPool { /// Type of the resource. pub kind: Option, /// Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy. - #[serde(alias="sessionAffinity")] + #[serde(rename="sessionAffinity")] pub session_affinity: Option, /// A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool. pub instances: Option>, @@ -3110,18 +3110,18 @@ pub struct TargetPool { /// 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool. /// /// In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. - #[serde(alias="backupPool")] + #[serde(rename="backupPool")] pub backup_pool: Option, /// A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times. - #[serde(alias="healthChecks")] + #[serde(rename="healthChecks")] pub health_checks: Option>, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -3190,12 +3190,12 @@ pub struct Address { /// The static external IP address represented by this resource. pub address: Option, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// [Output Only] The URLs of the resources that are using this address. pub users: Option>, @@ -3226,7 +3226,7 @@ impl Part for OperationError {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FirewallAllowed { /// The IP protocol that is allowed for this rule. The protocol type is required when creating a firewall. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol number. - #[serde(alias="IPProtocol")] + #[serde(rename="IPProtocol")] pub ip_protocol: String, /// An optional list of ports which are allowed. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, connections through any port are allowed /// @@ -3250,7 +3250,7 @@ impl Part for FirewallAllowed {} #[derive(Default, Clone, Debug, Serialize)] pub struct TargetPoolsAddHealthCheckRequest { /// Health check URLs to be added to targetPool. - #[serde(alias="healthChecks")] + #[serde(rename="healthChecks")] pub health_checks: Option>, } @@ -3269,7 +3269,7 @@ impl RequestValue for TargetPoolsAddHealthCheckRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct NetworkList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Network resources. pub items: Vec, @@ -3278,7 +3278,7 @@ pub struct NetworkList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource . - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3297,7 +3297,7 @@ impl ResponseResult for NetworkList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ZoneList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Zone resources. pub items: Vec, @@ -3306,7 +3306,7 @@ pub struct ZoneList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3361,7 +3361,7 @@ impl RequestValue for InstanceReference {} #[derive(Default, Clone, Debug, Deserialize)] pub struct InstanceTemplateList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of InstanceTemplate resources. pub items: Vec, @@ -3370,7 +3370,7 @@ pub struct InstanceTemplateList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3389,7 +3389,7 @@ impl ResponseResult for InstanceTemplateList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetInstanceList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of TargetInstance resources. pub items: Vec, @@ -3398,7 +3398,7 @@ pub struct TargetInstanceList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3417,7 +3417,7 @@ impl ResponseResult for TargetInstanceList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct HttpHealthCheckList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of HttpHealthCheck resources. pub items: Vec, @@ -3426,7 +3426,7 @@ pub struct HttpHealthCheckList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3445,14 +3445,14 @@ impl ResponseResult for HttpHealthCheckList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct License { /// If true, the customer will be charged license fee for running software that contains this license on an instance. - #[serde(alias="chargesUseFee")] + #[serde(rename="chargesUseFee")] pub charges_use_fee: bool, /// [Output Only] Type of resource. Always compute#license for licenses. pub kind: String, /// Name of the resource. The name must be 1-63 characters long, and comply with RCF1035. pub name: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3474,17 +3474,17 @@ pub struct AttachedDisk { /// Specifies a unique device name of your choice that is reflected into the /dev/ tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. /// /// If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks. - #[serde(alias="deviceName")] + #[serde(rename="deviceName")] pub device_name: Option, /// [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. pub kind: Option, /// [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. /// /// This property is mutually exclusive with the source property; you can only define one or the other, but not both. - #[serde(alias="initializeParams")] + #[serde(rename="initializeParams")] pub initialize_params: 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(alias="autoDelete")] + #[serde(rename="autoDelete")] pub auto_delete: Option, /// Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value. pub index: Option, @@ -3497,7 +3497,7 @@ pub struct AttachedDisk { /// [Output Only] Any valid publicly visible licenses. pub licenses: Option>, /// Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. pub source: Option, @@ -3538,25 +3538,25 @@ impl Part for Quota {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Route { /// The URL to a gateway that should handle matching packets. - #[serde(alias="nextHopGateway")] + #[serde(rename="nextHopGateway")] pub next_hop_gateway: Option, /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// A list of instance tags to which this route applies. pub tags: Option>, /// The URL of the local network if it should handle matching packets. - #[serde(alias="nextHopNetwork")] + #[serde(rename="nextHopNetwork")] pub next_hop_network: Option, /// Which packets does this route apply to? - #[serde(alias="destRange")] + #[serde(rename="destRange")] pub dest_range: Option, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// The network IP address of an instance that should handle matching packets. - #[serde(alias="nextHopIp")] + #[serde(rename="nextHopIp")] pub next_hop_ip: Option, /// URL of the network to which this route is applied; provided by the client when the route is created. pub network: Option, @@ -3565,17 +3565,17 @@ pub struct Route { /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, /// The URL to an instance that should handle matching packets. - #[serde(alias="nextHopInstance")] + #[serde(rename="nextHopInstance")] pub next_hop_instance: Option, /// If potential misconfigurations are detected for this route, this field will be populated with warning messages. pub warnings: Option>, /// Breaks ties between Routes of equal specificity. Routes with smaller values win when tied with routes with larger values. pub priority: Option, /// The URL to a VpnTunnel that should handle matching packets. - #[serde(alias="nextHopVpnTunnel")] + #[serde(rename="nextHopVpnTunnel")] pub next_hop_vpn_tunnel: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -3591,7 +3591,7 @@ impl ResponseResult for Route {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetVpnGatewaysScopedList { /// [Output Only] List of target vpn gateways contained in this scope. - #[serde(alias="targetVpnGateways")] + #[serde(rename="targetVpnGateways")] pub target_vpn_gateways: Vec, /// [Output Only] Informational warning which replaces the list of addresses when the list is empty. pub warning: TargetVpnGatewaysScopedListWarning, @@ -3643,10 +3643,10 @@ impl RequestValue for TargetReference {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct NetworkInterface { /// An array of configurations for this interface. Currently, , /// [Output Only] An optional IPV4 internal network address assigned to the instance for this network interface. - #[serde(alias="networkIP")] + #[serde(rename="networkIP")] pub network_ip: String, /// [Output Only] The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc. pub name: String, @@ -3676,7 +3676,7 @@ impl Part for NetworkInterface {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ForwardingRuleAggregatedList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A map of scoped forwarding rule lists. pub items: HashMap, @@ -3685,7 +3685,7 @@ pub struct ForwardingRuleAggregatedList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3701,12 +3701,12 @@ pub struct TestFailure { /// no description provided pub path: String, /// no description provided - #[serde(alias="actualService")] + #[serde(rename="actualService")] pub actual_service: String, /// no description provided pub host: String, /// no description provided - #[serde(alias="expectedService")] + #[serde(rename="expectedService")] pub expected_service: String, } @@ -3725,7 +3725,7 @@ impl Part for TestFailure {} #[derive(Default, Clone, Debug, Deserialize)] pub struct VpnTunnelList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of VpnTunnel resources. pub items: Vec, @@ -3734,7 +3734,7 @@ pub struct VpnTunnelList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server-defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3753,7 +3753,7 @@ impl ResponseResult for VpnTunnelList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetPoolAggregatedList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A map of scoped target pool lists. pub items: HashMap, @@ -3762,7 +3762,7 @@ pub struct TargetPoolAggregatedList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -3776,7 +3776,7 @@ impl ResponseResult for TargetPoolAggregatedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetInstancesScopedList { /// List of target instances contained in this scope. - #[serde(alias="targetInstances")] + #[serde(rename="targetInstances")] pub target_instances: Vec, /// Informational warning which replaces the list of addresses when the list is empty. pub warning: TargetInstancesScopedListWarning, @@ -3807,25 +3807,25 @@ pub struct UrlMap { /// An optional textual description of the resource; provided by the client when the resource is created. pub description: Option, /// The URL of the BackendService resource if none of the hostRules match. - #[serde(alias="defaultService")] + #[serde(rename="defaultService")] pub default_service: Option, /// The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass. pub tests: Option>, /// The list of HostRules to use against the URL. - #[serde(alias="hostRules")] + #[serde(rename="hostRules")] pub host_rules: Option>, /// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. pub fingerprint: Option, /// The list of named PathMatchers to use against the URL. - #[serde(alias="pathMatchers")] + #[serde(rename="pathMatchers")] pub path_matchers: Option>, /// Creation timestamp in RFC3339 text format (output only). - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// Unique identifier for the resource; defined by the server (output only). pub id: Option, /// Server defined URL for the resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. pub name: Option, @@ -3940,26 +3940,26 @@ pub struct Operation { /// [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. pub status: String, /// [Output Only] The time that this operation was requested. This is in RFC3339 text format. - #[serde(alias="insertTime")] + #[serde(rename="insertTime")] pub insert_time: String, /// [Output Only] If warning messages are generated during processing of the operation, this field will be populated. pub warnings: Vec, /// [Output Only] If errors are generated during processing of the operation, this field will be populated. pub error: OperationError, /// [Output Only] Unique target ID which identifies a particular incarnation of the target. - #[serde(alias="targetId")] + #[serde(rename="targetId")] pub target_id: String, /// [Output Only] URL of the resource the operation is mutating. - #[serde(alias="targetLink")] + #[serde(rename="targetLink")] pub target_link: String, /// [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project - #[serde(alias="clientOperationId")] + #[serde(rename="clientOperationId")] pub client_operation_id: String, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, @@ -3972,24 +3972,24 @@ pub struct Operation { /// [Output Only] URL of the region where the operation resides. Only applicable for regional resources. pub region: String, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// [Output Only] Type of the operation, such as insert, update, and delete. - #[serde(alias="operationType")] + #[serde(rename="operationType")] pub operation_type: String, /// [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. - #[serde(alias="httpErrorMessage")] + #[serde(rename="httpErrorMessage")] pub http_error_message: String, /// [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses. pub progress: i32, /// [Output Only] The time that this operation was completed. This is in RFC3339 text format. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. - #[serde(alias="httpErrorStatusCode")] + #[serde(rename="httpErrorStatusCode")] pub http_error_status_code: i32, /// [Output Only] An optional textual description of the current status of the operation. - #[serde(alias="statusMessage")] + #[serde(rename="statusMessage")] pub status_message: String, /// [Output Only] User who requested the operation, for example: user@example.com. pub user: String, @@ -4028,7 +4028,7 @@ impl RequestValue for TargetPoolsRemoveInstanceRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TargetPoolList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of TargetPool resources. pub items: Vec, @@ -4037,7 +4037,7 @@ pub struct TargetPoolList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -4051,7 +4051,7 @@ impl ResponseResult for TargetPoolList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct InstanceProperties { /// Allows instances created based on this template to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, say true. If unsure, leave this set to false. - #[serde(alias="canIpForward")] + #[serde(rename="canIpForward")] pub can_ip_forward: bool, /// An optional textual description for the instances created based on the instance template resource; provided by the client when the template is created. pub description: String, @@ -4062,13 +4062,13 @@ pub struct InstanceProperties { /// Scheduling options for the instances created based on this template. pub scheduling: Scheduling, /// Name of the machine type resource describing which machine type to use to host the instances created based on this template; provided by the client when the instance template is created. - #[serde(alias="machineType")] + #[serde(rename="machineType")] pub machine_type: String, /// A list of service accounts each with specified scopes, for which access tokens are to be made available to the instances created based on this template, through metadata queries. - #[serde(alias="serviceAccounts")] + #[serde(rename="serviceAccounts")] pub service_accounts: Vec, /// Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instances created based based on this template will have no external internet access. - #[serde(alias="networkInterfaces")] + #[serde(rename="networkInterfaces")] pub network_interfaces: Vec, /// Metadata key/value pairs assigned to instances created based on this template. Consists of custom metadata or predefined keys; see Instance documentation for more information. pub metadata: Metadata, @@ -4089,7 +4089,7 @@ impl Part for InstanceProperties {} #[derive(Default, Clone, Debug, Serialize)] pub struct TargetPoolsRemoveHealthCheckRequest { /// Health check URLs to be removed from targetPool. - #[serde(alias="healthChecks")] + #[serde(rename="healthChecks")] pub health_checks: Option>, } @@ -4151,39 +4151,39 @@ pub struct Image { /// Textual description of the resource; provided by the client when the resource is created. pub description: Option, /// The parameters of the raw disk image. - #[serde(alias="rawDisk")] + #[serde(rename="rawDisk")] pub raw_disk: Option, /// The deprecation status associated with this image. pub deprecated: Option, /// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. pub name: Option, /// Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). - #[serde(alias="archiveSizeBytes")] + #[serde(rename="archiveSizeBytes")] pub archive_size_bytes: Option, /// The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. - #[serde(alias="sourceDiskId")] + #[serde(rename="sourceDiskId")] pub source_disk_id: Option, /// Size of the image when restored onto a persistent disk (in GB). - #[serde(alias="diskSizeGb")] + #[serde(rename="diskSizeGb")] pub disk_size_gb: Option, /// URL of the The source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: /// - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk /// - projects/project/zones/zone/disk/disk /// - zones/zone/disks/disk - #[serde(alias="sourceDisk")] + #[serde(rename="sourceDisk")] pub source_disk: Option, /// Any applicable publicly visible licenses. pub licenses: Option>, /// [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: Option, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: Option, /// [Output Only] Server defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// The type of the image used to create this disk. The default and only value is RAW - #[serde(alias="sourceType")] + #[serde(rename="sourceType")] pub source_type: Option, } @@ -4204,7 +4204,7 @@ impl ResponseResult for Image {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DiskList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of persistent disks. pub items: Vec, @@ -4213,7 +4213,7 @@ pub struct DiskList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -4227,12 +4227,12 @@ impl ResponseResult for DiskList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] 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(alias="containerType")] + #[serde(rename="containerType")] pub container_type: String, /// The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both. pub source: String, /// An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created. - #[serde(alias="sha1Checksum")] + #[serde(rename="sha1Checksum")] pub sha1_checksum: String, } @@ -4268,7 +4268,7 @@ impl Part for OperationsScopedListWarningData {} #[derive(Default, Clone, Debug, Deserialize)] pub struct BackendServiceList { /// A token used to continue a truncated list request (output only). - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A list of BackendService resources. pub items: Vec, @@ -4277,7 +4277,7 @@ pub struct BackendServiceList { /// Unique identifier for the resource; defined by the server (output only). pub id: String, /// Server defined URL for this resource (output only). - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -4348,10 +4348,10 @@ impl Part for RouteWarnings {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Scheduling { /// Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). - #[serde(alias="automaticRestart")] + #[serde(rename="automaticRestart")] pub automatic_restart: Option, /// Defines the maintenance behavior for this instance. The default behavior is MIGRATE. For more information, see Setting maintenance behavior. - #[serde(alias="onHostMaintenance")] + #[serde(rename="onHostMaintenance")] pub on_host_maintenance: Option, } @@ -4367,7 +4367,7 @@ pub struct TargetPoolsScopedList { /// Informational warning which replaces the list of addresses when the list is empty. pub warning: TargetPoolsScopedListWarning, /// List of target pools contained in this scope. - #[serde(alias="targetPools")] + #[serde(rename="targetPools")] pub target_pools: Vec, } @@ -4386,7 +4386,7 @@ impl Part for TargetPoolsScopedList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RegionList { /// [Output Only] A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// [Output Only] A list of Region resources. pub items: Vec, @@ -4395,7 +4395,7 @@ pub struct RegionList { /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Server defined URL for this resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -4409,23 +4409,23 @@ impl ResponseResult for RegionList {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Backend { /// The multiplier (a value between 0 and 1e6) of the max capacity (CPU or RPS, depending on 'balancingMode') the group should serve up to. 0 means the group is totally drained. Default value is 1. Valid range is [0, 1e6]. - #[serde(alias="capacityScaler")] + #[serde(rename="capacityScaler")] pub capacity_scaler: f32, /// The max RPS of the group. Can be used with either balancing mode, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set. - #[serde(alias="maxRate")] + #[serde(rename="maxRate")] pub max_rate: i32, /// URL of a zonal Cloud Resource View resource. This resource view defines the list of instances that serve traffic. Member virtual machine instances from each resource view must live in the same zone as the resource view itself. No two backends in a backend service are allowed to use same Resource View resource. pub group: String, /// An optional textual description of the resource, which is provided by the client when the resource is created. pub description: String, /// Used when 'balancingMode' is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0, 1]. - #[serde(alias="maxUtilization")] + #[serde(rename="maxUtilization")] pub max_utilization: f32, /// The max RPS that a single backed instance can handle. This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set. - #[serde(alias="maxRatePerInstance")] + #[serde(rename="maxRatePerInstance")] pub max_rate_per_instance: f32, /// The balancing mode of this backend, default is UTILIZATION. - #[serde(alias="balancingMode")] + #[serde(rename="balancingMode")] pub balancing_mode: String, } diff --git a/gen/container1_beta1/Cargo.toml b/gen/container1_beta1/Cargo.toml index 30980942ac..73f97f574a 100644 --- a/gen/container1_beta1/Cargo.toml +++ b/gen/container1_beta1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-container1_beta1" -version = "0.1.3+20150318" +version = "0.1.4+20150318" authors = ["Sebastian Thiel "] description = "A complete library to interact with container (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/container1_beta1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/container1_beta1/README.md b/gen/container1_beta1/README.md index ca85f315a2..2e1bbbf9d6 100644 --- a/gen/container1_beta1/README.md +++ b/gen/container1_beta1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-container1_beta1` library allows access to all features of the *Google container* service. -This documentation was generated from *container* crate version *0.1.3+20150318*, where *20150318* is the exact revision of the *container:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *container* crate version *0.1.4+20150318*, where *20150318* is the exact revision of the *container:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *container* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/container-engine/docs/v1beta1/). diff --git a/gen/container1_beta1/src/lib.rs b/gen/container1_beta1/src/lib.rs index fc47a1b54c..e6eae1c7ec 100644 --- a/gen/container1_beta1/src/lib.rs +++ b/gen/container1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *container* crate version *0.1.3+20150318*, where *20150318* is the exact revision of the *container:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *container* crate version *0.1.4+20150318*, where *20150318* is the exact revision of the *container:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *container* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/container-engine/docs/v1beta1/). @@ -298,7 +298,7 @@ impl<'a, C, NC, A> Container Container { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -308,7 +308,7 @@ impl<'a, C, NC, A> Container } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -405,21 +405,21 @@ pub struct Cluster { /// [Output only] The current status of this cluster. pub status: String, /// [Output only] The IP addresses of the container pods in this cluster, in CIDR notation (e.g. 1.2.3.4/29). - #[serde(alias="containerIpv4Cidr")] + #[serde(rename="containerIpv4Cidr")] pub container_ipv4_cidr: String, /// An optional description of this cluster. pub description: String, /// [Output only] The size of the address space on each node for hosting containers. - #[serde(alias="nodeRoutingPrefixSize")] + #[serde(rename="nodeRoutingPrefixSize")] pub node_routing_prefix_size: i32, /// The HTTP basic authentication information for accessing the master. Because the master endpoint is open to the internet, you should create a strong password. - #[serde(alias="masterAuth")] + #[serde(rename="masterAuth")] pub master_auth: MasterAuth, /// The API version of the Kubernetes master and kubelets running in this cluster. Leave blank to pick up the latest stable release, or specify a version of the form "x.y.z". The Google Container Engine release notes lists the currently supported versions. If an incorrect version is specified, the server returns an error listing the currently supported versions. - #[serde(alias="clusterApiVersion")] + #[serde(rename="clusterApiVersion")] pub cluster_api_version: String, /// [Output only] The time the cluster was created, in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// The name of this cluster. The name must be unique within this project and zone, and can be up to 40 characters with the following restrictions: /// - Lowercase letters, numbers, and hyphens only. @@ -435,22 +435,22 @@ pub struct Cluster { /// [Output only] The name of the Google Compute Engine zone in which the cluster resides. pub zone: String, /// The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances plus one (to include the master). You must also have available firewall and routes quota. - #[serde(alias="numNodes")] + #[serde(rename="numNodes")] pub num_nodes: i32, /// The machine type and image to use for all nodes in this cluster. See the descriptions of the child properties of nodeConfig. - #[serde(alias="nodeConfig")] + #[serde(rename="nodeConfig")] pub node_config: NodeConfig, /// [Output only] Server-defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// Whether logs from the cluster should be made available via the Google Cloud Logging service. This includes both logs from your applications running in the cluster as well as logs from the Kubernetes components themselves. - #[serde(alias="enableCloudLogging")] + #[serde(rename="enableCloudLogging")] pub enable_cloud_logging: bool, /// [Output only] Additional information about the current status of this cluster, if available. - #[serde(alias="statusMessage")] + #[serde(rename="statusMessage")] pub status_message: String, /// [Output only] The IP addresses of the Kubernetes services in this cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are always in the 10.0.0.0/16 range. - #[serde(alias="servicesIpv4Cidr")] + #[serde(rename="servicesIpv4Cidr")] pub services_ipv4_cidr: String, } @@ -466,17 +466,17 @@ pub struct NodeConfig { /// The optional list of ServiceAccounts, each with their specified scopes, to be made available on all of the node VMs. In addition to the service accounts and scopes specified, the "default" account will always be created with the following scopes to ensure the correct functioning of the cluster: /// - https://www.googleapis.com/auth/compute, /// - https://www.googleapis.com/auth/devstorage.read_only - #[serde(alias="serviceAccounts")] + #[serde(rename="serviceAccounts")] pub service_accounts: Vec, /// The name of a Google Compute Engine machine type (e.g. n1-standard-1). /// /// If unspecified, the default machine type is n1-standard-1. - #[serde(alias="machineType")] + #[serde(rename="machineType")] pub machine_type: String, /// The fully-specified name of a Google Compute Engine image. For example: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/backports-debian-7-wheezy-vYYYYMMDD (where YYYMMDD is the version date). /// /// If specifying an image, you are responsible for ensuring its compatibility with the Debian 7 backports image. We recommend leaving this field blank to accept the default backports-debian-7-wheezy value. - #[serde(alias="sourceImage")] + #[serde(rename="sourceImage")] pub source_image: String, } @@ -518,16 +518,16 @@ pub struct Operation { /// The name of the Google Compute Engine zone in which the operation is taking place. pub zone: String, /// If an error has occurred, a textual description of the error. - #[serde(alias="errorMessage")] + #[serde(rename="errorMessage")] pub error_message: String, /// Server-defined URL for the target of the operation. - #[serde(alias="targetLink")] + #[serde(rename="targetLink")] pub target_link: String, /// The operation type. - #[serde(alias="operationType")] + #[serde(rename="operationType")] pub operation_type: String, /// Server-defined URL for the resource. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// [Optional] The URL of the cluster resource that this operation is associated with. pub target: String, diff --git a/gen/content2/Cargo.toml b/gen/content2/Cargo.toml index ed499f99b2..5a033f82b3 100644 --- a/gen/content2/Cargo.toml +++ b/gen/content2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-content2" -version = "0.1.3+20150317" +version = "0.1.4+20150317" authors = ["Sebastian Thiel "] description = "A complete library to interact with Shopping Content (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/content2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/content2/README.md b/gen/content2/README.md index 3883a4dfd7..29d2a111c5 100644 --- a/gen/content2/README.md +++ b/gen/content2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-content2` library allows access to all features of the *Google Shopping Content* service. -This documentation was generated from *Shopping Content* crate version *0.1.3+20150317*, where *20150317* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *Shopping Content* crate version *0.1.4+20150317*, where *20150317* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *Shopping Content* *v2* API can be found at the [official documentation site](https://developers.google.com/shopping-content/v2/). diff --git a/gen/content2/src/lib.rs b/gen/content2/src/lib.rs index 994a6d0765..54f478b580 100644 --- a/gen/content2/src/lib.rs +++ b/gen/content2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Shopping Content* crate version *0.1.3+20150317*, where *20150317* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *Shopping Content* crate version *0.1.4+20150317*, where *20150317* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *Shopping Content* *v2* API can be found at the //! [official documentation site](https://developers.google.com/shopping-content/v2/). @@ -331,7 +331,7 @@ impl<'a, C, NC, A> ShoppingContent ShoppingContent { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -365,7 +365,7 @@ impl<'a, C, NC, A> ShoppingContent } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -405,10 +405,10 @@ pub struct ProductAspect { /// Whether the aspect is required, excluded or should be validated. pub intention: String, /// The name of the aspect. - #[serde(alias="aspectName")] + #[serde(rename="aspectName")] pub aspect_name: String, /// The name of the destination. Leave out to apply to all destinations. - #[serde(alias="destinationName")] + #[serde(rename="destinationName")] pub destination_name: String, } @@ -422,7 +422,7 @@ impl Part for ProductAspect {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductsCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// Identifies what kind of resource this is. Value: the fixed string "content#productsCustomBatchResponseEntry". pub kind: String, @@ -504,7 +504,7 @@ pub struct AccountUser { /// Whether user is an admin. pub admin: bool, /// User's email address. - #[serde(alias="emailAddress")] + #[serde(rename="emailAddress")] pub email_address: String, } @@ -571,19 +571,19 @@ impl ResponseResult for DatafeedsCustomBatchResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AccountShippingLocationGroup { /// A postal code range representing a city or a set of cities. - #[serde(alias="postalCodeRanges")] + #[serde(rename="postalCodeRanges")] pub postal_code_ranges: Vec, /// The country in which this location group is, represented as ISO 3166-1 Alpha-2 code. pub country: String, /// A location ID (also called criteria ID) representing administrative areas, smaller country subdivisions (counties), or cities. - #[serde(alias="locationIds")] + #[serde(rename="locationIds")] pub location_ids: Vec, /// The name of the location group. pub name: String, /// A postal code representing a city or a set of cities. /// - A single postal code (e.g., 12345) /// - A postal code prefix followed by a star (e.g., 1234*) - #[serde(alias="postalCodes")] + #[serde(rename="postalCodes")] pub postal_codes: Vec, } @@ -620,28 +620,28 @@ impl ResponseResult for InventorySetResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductStatus { /// Date on which the item expires in Google Shopping, in ISO 8601 format. - #[serde(alias="googleExpirationDate")] + #[serde(rename="googleExpirationDate")] pub google_expiration_date: String, /// The intended destinations for the product. - #[serde(alias="destinationStatuses")] + #[serde(rename="destinationStatuses")] pub destination_statuses: Vec, /// The title of the product. pub title: String, /// Identifies what kind of resource this is. Value: the fixed string "content#productStatus". pub kind: String, /// Date on which the item has been last updated, in ISO 8601 format. - #[serde(alias="lastUpdateDate")] + #[serde(rename="lastUpdateDate")] pub last_update_date: String, /// The link to the product. pub link: String, /// Date on which the item has been created, in ISO 8601 format. - #[serde(alias="creationDate")] + #[serde(rename="creationDate")] pub creation_date: String, /// A list of data quality issues associated with the product. - #[serde(alias="dataQualityIssues")] + #[serde(rename="dataQualityIssues")] pub data_quality_issues: Vec, /// The id of the product for which status is reported. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -663,13 +663,13 @@ pub struct DatafeedFetchSchedule { /// The hour of the day the feed file should be fetched (0-24). pub hour: u32, /// Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". - #[serde(alias="timeZone")] + #[serde(rename="timeZone")] pub time_zone: String, /// The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols. - #[serde(alias="fetchUrl")] + #[serde(rename="fetchUrl")] pub fetch_url: String, /// The day of the month the feed file should be fetched (1-31). - #[serde(alias="dayOfMonth")] + #[serde(rename="dayOfMonth")] pub day_of_month: u32, } @@ -688,20 +688,20 @@ impl Part for DatafeedFetchSchedule {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatafeedStatus { /// The number of items in the feed that were valid. - #[serde(alias="itemsValid")] + #[serde(rename="itemsValid")] pub items_valid: String, /// Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus". pub kind: String, /// The list of errors occurring in the feed. pub errors: Vec, /// The processing status of the feed. - #[serde(alias="processingStatus")] + #[serde(rename="processingStatus")] pub processing_status: String, /// The number of items in the feed that were processed. - #[serde(alias="itemsTotal")] + #[serde(rename="itemsTotal")] pub items_total: String, /// The ID of the feed for which the status is reported. - #[serde(alias="datafeedId")] + #[serde(rename="datafeedId")] pub datafeed_id: String, /// The list of errors occurring in the feed. pub warnings: Vec, @@ -717,13 +717,13 @@ impl ResponseResult for DatafeedStatus {} #[derive(Default, Clone, Debug, Serialize)] pub struct DatafeedstatusesCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The ID of the data feed to get or delete. - #[serde(alias="datafeedId")] + #[serde(rename="datafeedId")] pub datafeed_id: String, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// no description provided pub method: String, @@ -739,10 +739,10 @@ impl Part for DatafeedstatusesCustomBatchRequestEntry {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccounttaxCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The retrieved or updated account tax settings. - #[serde(alias="accountTax")] + #[serde(rename="accountTax")] pub account_tax: AccountTax, /// A list of errors defined if and only if the request failed. pub errors: Errors, @@ -782,7 +782,7 @@ impl RequestValue for AccountstatusesCustomBatchRequest {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AccountShippingShippingServiceCostRule { /// Final calculation method to be used only in leaf nodes. - #[serde(alias="calculationMethod")] + #[serde(rename="calculationMethod")] pub calculation_method: AccountShippingShippingServiceCalculationMethod, /// Condition for this rule to be applicable. If no condition is specified, the rule acts as a catch-all. pub condition: AccountShippingCondition, @@ -812,23 +812,23 @@ impl Part for AccountShippingShippingServiceCostRule {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Account { /// URL for individual seller reviews, i.e., reviews for each child account. - #[serde(alias="reviewsUrl")] + #[serde(rename="reviewsUrl")] pub reviews_url: Option, /// Identifies what kind of resource this is. Value: the fixed string "content#account". pub kind: Option, /// Display name for the account. pub name: Option, /// Indicates whether the merchant sells adult content. - #[serde(alias="adultContent")] + #[serde(rename="adultContent")] pub adult_content: Option, /// List of linked AdWords accounts. - #[serde(alias="adwordsLinks")] + #[serde(rename="adwordsLinks")] pub adwords_links: Option>, /// The merchant's website. - #[serde(alias="websiteUrl")] + #[serde(rename="websiteUrl")] pub website_url: Option, /// Client-specific, locally-unique, internal ID for the child account. - #[serde(alias="sellerId")] + #[serde(rename="sellerId")] pub seller_id: Option, /// Merchant Center account ID. pub id: Option, @@ -848,10 +848,10 @@ impl ResponseResult for Account {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountIdentifier { /// The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount). - #[serde(alias="aggregatorId")] + #[serde(rename="aggregatorId")] pub aggregator_id: String, /// The merchant account ID, set for individual accounts and subaccounts. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, } @@ -865,7 +865,7 @@ impl Part for AccountIdentifier {} #[derive(Default, Clone, Debug, Deserialize)] pub struct InventoryCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// Identifies what kind of resource this is. Value: the fixed string "content#inventoryCustomBatchResponseEntry". pub kind: String, @@ -917,12 +917,12 @@ impl Part for ProductShippingDimension {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountstatusesCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// A list of errors defined if and only if the request failed. pub errors: Errors, /// The requested account status. Defined if and only if the request was successful. - #[serde(alias="accountStatus")] + #[serde(rename="accountStatus")] pub account_status: AccountStatus, } @@ -936,13 +936,13 @@ impl Part for AccountstatusesCustomBatchResponseEntry {} #[derive(Default, Clone, Debug, Serialize)] pub struct AccountstatusesCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The ID of the (sub-)account whose status to get. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// The method (get). pub method: String, @@ -963,7 +963,7 @@ impl Part for AccountstatusesCustomBatchRequestEntry {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccounttaxListResponse { /// The token for the retrieval of the next page of account tax settings. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#accounttaxListResponse". pub kind: String, @@ -1016,7 +1016,7 @@ impl Part for ErrorType {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatafeedsCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// A list of errors defined if and only if the request failed. pub errors: Errors, @@ -1034,18 +1034,18 @@ impl Part for DatafeedsCustomBatchResponseEntry {} #[derive(Default, Clone, Debug, Serialize)] pub struct AccountshippingCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The ID of the account for which to get/update account shipping settings. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// The account shipping settings to update. Only defined if the method is update. - #[serde(alias="accountShipping")] + #[serde(rename="accountShipping")] pub account_shipping: AccountShipping, /// no description provided pub method: String, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, } @@ -1064,7 +1064,7 @@ impl Part for AccountshippingCustomBatchRequestEntry {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatafeedsListResponse { /// The token for the retrieval of the next page of datafeeds. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#datafeedsListResponse". pub kind: String, @@ -1082,12 +1082,12 @@ impl ResponseResult for DatafeedsListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ProductShipping { /// The numeric id of a location that the shipping rate applies to as defined in the AdWords API. - #[serde(alias="locationId")] + #[serde(rename="locationId")] pub location_id: String, /// A free-form description of the service class or delivery speed. pub service: String, /// The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length. - #[serde(alias="postalCode")] + #[serde(rename="postalCode")] pub postal_code: String, /// The two-letter ISO 3166 country code for the country to which an item will ship. pub country: String, @@ -1096,7 +1096,7 @@ pub struct ProductShipping { /// The geographic region to which a shipping rate applies (e.g. zip code). pub region: String, /// The location where the shipping is applicable, represented by a location group name. - #[serde(alias="locationGroupName")] + #[serde(rename="locationGroupName")] pub location_group_name: String, } @@ -1121,7 +1121,7 @@ pub struct AccountTax { /// Identifies what kind of resource this is. Value: the fixed string "content#accountTax". pub kind: Option, /// The ID of the account to which these account tax settings belong. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -1136,17 +1136,17 @@ impl ResponseResult for AccountTax {} #[derive(Default, Clone, Debug, Serialize)] pub struct ProductsCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The product to insert. Only required if the method is insert. pub product: Product, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// no description provided pub method: String, /// The ID of the product to get or delete. Only defined if the method is get or delete. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -1160,7 +1160,7 @@ impl Part for ProductsCustomBatchRequestEntry {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountsCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The retrieved, created, or updated account. Not defined if the method was delete. pub account: Account, @@ -1218,23 +1218,23 @@ impl ResponseResult for ProductstatusesCustomBatchResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AccountShippingCarrierRate { /// Shipping origin represented as a postal code. - #[serde(alias="shippingOrigin")] + #[serde(rename="shippingOrigin")] pub shipping_origin: String, /// The carrier that is responsible for the shipping, such as "UPS", "FedEx", or "USPS". pub carrier: String, /// The name of the carrier rate. pub name: String, /// Sale country for which this carrier rate is valid, represented as an ISO 3166-1 Alpha-2 code. - #[serde(alias="saleCountry")] + #[serde(rename="saleCountry")] pub sale_country: i64, /// The carrier service, such as "Ground" or "2Day". - #[serde(alias="carrierService")] + #[serde(rename="carrierService")] pub carrier_service: String, /// Additive shipping rate modifier. - #[serde(alias="modifierFlatRate")] + #[serde(rename="modifierFlatRate")] pub modifier_flat_rate: Price, /// Multiplicative shipping rate modifier in percent. Represented as a floating point number without the percentage character. - #[serde(alias="modifierPercent")] + #[serde(rename="modifierPercent")] pub modifier_percent: String, } @@ -1261,31 +1261,31 @@ pub struct Datafeed { /// Identifies what kind of resource this is. Value: the fixed string "content#datafeed". pub kind: Option, /// The type of data feed. - #[serde(alias="contentType")] + #[serde(rename="contentType")] pub content_type: Option, /// A descriptive name of the data feed. pub name: Option, /// The two-letter ISO 639-1 language of the items in the feed. - #[serde(alias="contentLanguage")] + #[serde(rename="contentLanguage")] pub content_language: Option, /// Format of the feed file. pub format: Option, /// Fetch schedule for the feed file. - #[serde(alias="fetchSchedule")] + #[serde(rename="fetchSchedule")] pub fetch_schedule: Option, /// The two-letter ISO 3166 country where the items in the feed will be included in the search index. - #[serde(alias="targetCountry")] + #[serde(rename="targetCountry")] pub target_country: Option, /// The filename of the feed. All feeds must have a unique file name. - #[serde(alias="fileName")] + #[serde(rename="fileName")] pub file_name: Option, /// The ID of the data feed. pub id: Option, /// The list of intended destinations (corresponds to checked check boxes in Merchant Center). - #[serde(alias="intendedDestinations")] + #[serde(rename="intendedDestinations")] pub intended_destinations: Option>, /// The two-letter ISO 639-1 language in which the attributes are defined in the data feed. - #[serde(alias="attributeLanguage")] + #[serde(rename="attributeLanguage")] pub attribute_language: Option, } @@ -1301,18 +1301,18 @@ impl ResponseResult for Datafeed {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AccountShippingShippingServiceCalculationMethod { /// Percentage of the price, represented as a floating point number without the percentage character. - #[serde(alias="percentageRate")] + #[serde(rename="percentageRate")] pub percentage_rate: String, /// Name of the carrier rate to use for the calculation. - #[serde(alias="carrierRate")] + #[serde(rename="carrierRate")] pub carrier_rate: String, /// Name of the rate table to use for the calculation. - #[serde(alias="rateTable")] + #[serde(rename="rateTable")] pub rate_table: String, /// Delivery is excluded. Valid only within cost rules tree. pub excluded: bool, /// Fixed price shipping, represented as a floating point number associated with a currency. - #[serde(alias="flatRate")] + #[serde(rename="flatRate")] pub flat_rate: Price, } @@ -1328,17 +1328,17 @@ pub struct ProductTax { /// The percentage of tax rate that applies to the item price. pub rate: f64, /// The numeric id of a location that the tax rate applies to as defined in the AdWords API. - #[serde(alias="locationId")] + #[serde(rename="locationId")] pub location_id: String, /// The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*. - #[serde(alias="postalCode")] + #[serde(rename="postalCode")] pub postal_code: String, /// The country within which the item is taxed, specified with a two-letter ISO 3166 country code. pub country: String, /// The geographic region to which the tax rate applies. pub region: String, /// Set to true if tax is charged on shipping. - #[serde(alias="taxShip")] + #[serde(rename="taxShip")] pub tax_ship: bool, } @@ -1372,15 +1372,15 @@ impl ResponseResult for DatafeedstatusesCustomBatchResponse {} #[derive(Default, Clone, Debug, Serialize)] pub struct AccountsCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The account to create or update. Only defined if the method is insert or update. pub account: Account, /// The ID of the account to get or delete. Only defined if the method is get or delete. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// no description provided pub method: String, @@ -1406,7 +1406,7 @@ pub struct AccountsAuthInfoResponse { /// - For an individual account: only the merchant ID is defined /// - For an aggregator: only the aggregator ID is defined /// - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined. - #[serde(alias="accountIdentifiers")] + #[serde(rename="accountIdentifiers")] pub account_identifiers: Vec, } @@ -1443,7 +1443,7 @@ impl RequestValue for ProductsCustomBatchRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatafeedstatusesListResponse { /// The token for the retrieval of the next page of datafeed statuses. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#datafeedstatusesListResponse". pub kind: String, @@ -1503,10 +1503,10 @@ pub struct AccountStatus { /// Identifies what kind of resource this is. Value: the fixed string "content#accountStatus". pub kind: String, /// A list of data quality issues. - #[serde(alias="dataQualityIssues")] + #[serde(rename="dataQualityIssues")] pub data_quality_issues: Vec, /// The ID of the account for which the status is reported. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -1535,12 +1535,12 @@ impl Part for ProductInstallment {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatafeedstatusesCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// A list of errors defined if and only if the request failed. pub errors: Errors, /// The requested data feed status. Defined if and only if the request was successful. - #[serde(alias="datafeedStatus")] + #[serde(rename="datafeedStatus")] pub datafeed_status: DatafeedStatus, } @@ -1556,10 +1556,10 @@ pub struct Inventory { /// Identifies what kind of resource this is. Value: the fixed string "content#inventory". pub kind: String, /// The sale price of the product. Mandatory if sale_price_effective_date is defined. - #[serde(alias="salePrice")] + #[serde(rename="salePrice")] pub sale_price: Price, /// A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. - #[serde(alias="salePriceEffectiveDate")] + #[serde(rename="salePriceEffectiveDate")] pub sale_price_effective_date: String, /// The price of the product. pub price: Price, @@ -1581,7 +1581,7 @@ pub struct AccountShippingRateTable { /// One-dimensional table cells define one condition along the same dimension. Bi-dimensional table cells use two dimensions with respectively M and N distinct values and must contain exactly M * N cells with distinct conditions (for each possible value pairs). pub content: Vec, /// Sale country for which this table is valid, represented as an ISO 3166-1 Alpha-2 code. - #[serde(alias="saleCountry")] + #[serde(rename="saleCountry")] pub sale_country: i64, /// The name of the rate table. pub name: String, @@ -1597,7 +1597,7 @@ impl Part for AccountShippingRateTable {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductStatusDestinationStatus { /// The destination's approval status. - #[serde(alias="approvalStatus")] + #[serde(rename="approvalStatus")] pub approval_status: String, /// The name of the destination pub destination: String, @@ -1633,18 +1633,18 @@ impl RequestValue for AccounttaxCustomBatchRequest {} #[derive(Default, Clone, Debug, Serialize)] pub struct InventoryCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The code of the store for which to update price and availability. Use online to update price and availability of an online product. - #[serde(alias="storeCode")] + #[serde(rename="storeCode")] pub store_code: String, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// Price and availability of the product. pub inventory: Inventory, /// The ID of the product for which to update price and availability. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -1683,7 +1683,7 @@ impl ResponseResult for ProductsCustomBatchResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountshippingListResponse { /// The token for the retrieval of the next page of account shipping settings. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#accountshippingListResponse". pub kind: String, @@ -1701,15 +1701,15 @@ impl ResponseResult for AccountshippingListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountStatusExampleItem { /// Unique item ID as specified in the uploaded product data. - #[serde(alias="itemId")] + #[serde(rename="itemId")] pub item_id: String, /// The item value that was submitted. - #[serde(alias="submittedValue")] + #[serde(rename="submittedValue")] pub submitted_value: String, /// Landing page of the item. pub link: String, /// The actual value on the landing page. - #[serde(alias="valueOnLandingPage")] + #[serde(rename="valueOnLandingPage")] pub value_on_landing_page: String, /// Title of the item. pub title: String, @@ -1725,15 +1725,15 @@ impl Part for AccountStatusExampleItem {} #[derive(Default, Clone, Debug, Serialize)] pub struct ProductstatusesCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// no description provided pub method: String, /// The ID of the product whose status to get. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -1781,12 +1781,12 @@ impl Part for DatafeedStatusError {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DatafeedStatusExample { /// The ID of the example item. - #[serde(alias="itemId")] + #[serde(rename="itemId")] pub item_id: String, /// The problematic value. pub value: String, /// Line number in the data feed where the example is found. - #[serde(alias="lineNumber")] + #[serde(rename="lineNumber")] pub line_number: String, } @@ -1815,16 +1815,16 @@ impl Part for ProductShippingWeight {} #[derive(Default, Clone, Debug, Serialize)] pub struct AccounttaxCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The account tax settings to update. Only defined if the method is update. - #[serde(alias="accountTax")] + #[serde(rename="accountTax")] pub account_tax: AccountTax, /// The ID of the account for which to get/update account tax settings. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// no description provided pub method: String, @@ -1847,20 +1847,20 @@ impl Part for AccounttaxCustomBatchRequestEntry {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AccountShipping { /// Carrier-based shipping calculations. - #[serde(alias="carrierRates")] + #[serde(rename="carrierRates")] pub carrier_rates: Option>, /// Identifies what kind of resource this is. Value: the fixed string "content#accountShipping". pub kind: Option, /// Location groups for shipping. - #[serde(alias="locationGroups")] + #[serde(rename="locationGroups")] pub location_groups: Option>, /// Shipping services describing shipping fees calculation. pub services: Option>, /// The ID of the account to which these account shipping settings belong. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Rate tables definitions. - #[serde(alias="rateTables")] + #[serde(rename="rateTables")] pub rate_tables: Option>, } @@ -1892,16 +1892,16 @@ pub struct AccountTaxTaxRule { /// Country code in which tax is applicable. pub country: String, /// Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative. - #[serde(alias="ratePercent")] + #[serde(rename="ratePercent")] pub rate_percent: String, /// If true, shipping charges are also taxed. - #[serde(alias="shippingTaxed")] + #[serde(rename="shippingTaxed")] pub shipping_taxed: bool, /// State (or province) is which the tax is applicable, described by its location id (also called criteria id). - #[serde(alias="locationId")] + #[serde(rename="locationId")] pub location_id: String, /// Whether the tax rate is taken from a global tax table or specified explicitly. - #[serde(alias="useGlobalRate")] + #[serde(rename="useGlobalRate")] pub use_global_rate: bool, } @@ -1917,7 +1917,7 @@ pub struct ProductCustomAttribute { /// Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT. pub unit: String, /// The type of the attribute. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The name of the attribute. Underscores will be replaced by spaces upon insertion. pub name: String, @@ -1940,7 +1940,7 @@ impl Part for ProductCustomAttribute {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountstatusesListResponse { /// The token for the retrieval of the next page of account statuses. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#accountstatusesListResponse". pub kind: String, @@ -1958,25 +1958,25 @@ impl ResponseResult for AccountstatusesListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AccountShippingCondition { /// Maximum shipping weight. Forms an interval between the maximum of smaller weight (exclusive) and this weight (inclusive). - #[serde(alias="weightMax")] + #[serde(rename="weightMax")] pub weight_max: Weight, /// Delivery location in terms of a location ID. Can be used to represent administrative areas, smaller country subdivisions, or cities. - #[serde(alias="deliveryLocationId")] + #[serde(rename="deliveryLocationId")] pub delivery_location_id: String, /// Shipping label of the product. The products with the label are matched. - #[serde(alias="shippingLabel")] + #[serde(rename="shippingLabel")] pub shipping_label: String, /// Delivery location in terms of a location group name. A location group with this name must be specified among location groups. - #[serde(alias="deliveryLocationGroup")] + #[serde(rename="deliveryLocationGroup")] pub delivery_location_group: String, /// Delivery location in terms of a postal code. - #[serde(alias="deliveryPostalCode")] + #[serde(rename="deliveryPostalCode")] pub delivery_postal_code: String, /// Maximum shipping price. Forms an interval between the maximum of smaller prices (exclusive) and this price (inclusive). - #[serde(alias="priceMax")] + #[serde(rename="priceMax")] pub price_max: Price, /// Delivery location in terms of a postal code range. - #[serde(alias="deliveryPostalCodeRange")] + #[serde(rename="deliveryPostalCodeRange")] pub delivery_postal_code_range: AccountShippingPostalCodeRange, } @@ -2021,47 +2021,47 @@ pub struct Product { /// Color of the item. pub color: Option, /// Similar to adwords_grouping, but only works on CPC. - #[serde(alias="adwordsLabels")] + #[serde(rename="adwordsLabels")] pub adwords_labels: Option>, /// Shared identifier for all variants of the same product. - #[serde(alias="itemGroupId")] + #[serde(rename="itemGroupId")] pub item_group_id: Option, /// Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. - #[serde(alias="expirationDate")] + #[serde(rename="expirationDate")] pub expiration_date: Option, /// Availability status of the item. pub availability: Option, /// Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise. - #[serde(alias="adwordsGrouping")] + #[serde(rename="adwordsGrouping")] pub adwords_grouping: Option, /// Specifies the intended destinations for the product. pub destinations: Option>, /// The two-letter ISO 3166 country code for the item. - #[serde(alias="targetCountry")] + #[serde(rename="targetCountry")] pub target_country: Option, /// Custom label 4 for custom grouping of items in a Shopping campaign. - #[serde(alias="customLabel4")] + #[serde(rename="customLabel4")] pub custom_label4: Option, /// Title of the item. pub title: Option, /// Whether an item is available for purchase only online. - #[serde(alias="onlineOnly")] + #[serde(rename="onlineOnly")] pub online_only: Option, /// Link to a mobile-optimized version of the landing page. - #[serde(alias="mobileLink")] + #[serde(rename="mobileLink")] pub mobile_link: Option, /// Specifies the intended aspects for the product. pub aspects: Option>, /// Height of the item for shipping. - #[serde(alias="shippingHeight")] + #[serde(rename="shippingHeight")] pub shipping_height: Option, /// The two-letter ISO 639-1 language code for the item. - #[serde(alias="contentLanguage")] + #[serde(rename="contentLanguage")] pub content_language: Option, /// Manufacturer Part Number (MPN) of the item. pub mpn: Option, /// Date range during which the item is on sale (see product feed specifications). - #[serde(alias="salePriceEffectiveDate")] + #[serde(rename="salePriceEffectiveDate")] pub sale_price_effective_date: Option, /// Brand of the item. pub brand: Option, @@ -2070,27 +2070,27 @@ pub struct Product { /// URL directly linking to your item's page on your website. pub link: Option, /// Allows advertisers to override the item URL when the product is shown within the context of Product Ads. - #[serde(alias="adwordsRedirect")] + #[serde(rename="adwordsRedirect")] pub adwords_redirect: Option, /// The energy efficiency class as defined in EU directive 2010/30/EU. - #[serde(alias="energyEfficiencyClass")] + #[serde(rename="energyEfficiencyClass")] pub energy_efficiency_class: Option, /// System in which the size is specified. Recommended for apparel items. - #[serde(alias="sizeSystem")] + #[serde(rename="sizeSystem")] pub size_system: Option, /// The cut of the item. Recommended for apparel items. - #[serde(alias="sizeType")] + #[serde(rename="sizeType")] pub size_type: Option, /// Custom label 3 for custom grouping of items in a Shopping campaign. - #[serde(alias="customLabel3")] + #[serde(rename="customLabel3")] pub custom_label3: Option, /// Custom label 2 for custom grouping of items in a Shopping campaign. - #[serde(alias="customLabel2")] + #[serde(rename="customLabel2")] pub custom_label2: Option, /// Condition or state of the item. pub condition: Option, /// Custom label 0 for custom grouping of items in a Shopping campaign. - #[serde(alias="customLabel0")] + #[serde(rename="customLabel0")] pub custom_label0: Option, /// Identifies what kind of resource this is. Value: the fixed string "content#product". pub kind: Option, @@ -2103,63 +2103,63 @@ pub struct Product { /// Tax information. pub taxes: Option>, /// False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada. - #[serde(alias="identifierExists")] + #[serde(rename="identifierExists")] pub identifier_exists: Option, /// Advertised sale price of the item. - #[serde(alias="salePrice")] + #[serde(rename="salePrice")] pub sale_price: Option, /// Your category of the item (formatted as in product feeds specification). - #[serde(alias="productType")] + #[serde(rename="productType")] pub product_type: Option, /// Advertiser-specified recommendations. - #[serde(alias="displayAdsSimilarIds")] + #[serde(rename="displayAdsSimilarIds")] pub display_ads_similar_ids: Option>, /// Custom label 1 for custom grouping of items in a Shopping campaign. - #[serde(alias="customLabel1")] + #[serde(rename="customLabel1")] pub custom_label1: Option, /// Target age group of the item. - #[serde(alias="ageGroup")] + #[serde(rename="ageGroup")] pub age_group: Option, /// Additional URLs of images of the item. - #[serde(alias="additionalImageLinks")] + #[serde(rename="additionalImageLinks")] pub additional_image_links: Option>, /// An identifier of the item. - #[serde(alias="offerId")] + #[serde(rename="offerId")] pub offer_id: Option, /// Global Trade Item Number (GTIN) of the item. pub gtin: Option, /// The shipping label of the product, used to group product in account-level shipping rules. - #[serde(alias="shippingLabel")] + #[serde(rename="shippingLabel")] pub shipping_label: Option, /// Google's category of the item (see Google product taxonomy). - #[serde(alias="googleProductCategory")] + #[serde(rename="googleProductCategory")] pub google_product_category: Option, /// The number of identical products in a merchant-defined multipack. pub multipack: Option, /// An identifier for an item for dynamic remarketing campaigns. - #[serde(alias="displayAdsId")] + #[serde(rename="displayAdsId")] pub display_ads_id: Option, /// Offer margin for dynamic remarketing campaigns. - #[serde(alias="displayAdsValue")] + #[serde(rename="displayAdsValue")] pub display_ads_value: Option, /// The REST id of the product. pub id: Option, /// Width of the item for shipping. - #[serde(alias="shippingWidth")] + #[serde(rename="shippingWidth")] pub shipping_width: Option, /// The item's pattern (e.g. polka dots). pub pattern: Option, /// The measure and dimension of an item. - #[serde(alias="unitPricingMeasure")] + #[serde(rename="unitPricingMeasure")] pub unit_pricing_measure: Option, /// A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. - #[serde(alias="customAttributes")] + #[serde(rename="customAttributes")] pub custom_attributes: Option>, /// The day a pre-ordered product becomes available for delivery, in ISO 8601 format. - #[serde(alias="availabilityDate")] + #[serde(rename="availabilityDate")] pub availability_date: Option, /// Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price. - #[serde(alias="isBundle")] + #[serde(rename="isBundle")] pub is_bundle: Option, /// The item's channel (online or local). pub channel: Option, @@ -2170,33 +2170,33 @@ pub struct Product { /// Price of the item. pub price: Option, /// Length of the item for shipping. - #[serde(alias="shippingLength")] + #[serde(rename="shippingLength")] pub shipping_length: Option, /// URL directly to your item's landing page for dynamic remarketing campaigns. - #[serde(alias="displayAdsLink")] + #[serde(rename="displayAdsLink")] pub display_ads_link: Option, /// The read-only list of intended destinations which passed validation. - #[serde(alias="validatedDestinations")] + #[serde(rename="validatedDestinations")] pub validated_destinations: Option>, /// A list of custom (merchant-provided) custom attribute groups. - #[serde(alias="customGroups")] + #[serde(rename="customGroups")] pub custom_groups: Option>, /// Loyalty points that users receive after purchasing the item. Japan only. - #[serde(alias="loyaltyPoints")] + #[serde(rename="loyaltyPoints")] pub loyalty_points: Option, /// The preference of the denominator of the unit price. - #[serde(alias="unitPricingBaseMeasure")] + #[serde(rename="unitPricingBaseMeasure")] pub unit_pricing_base_measure: Option, /// Shipping rules. pub shipping: Option>, /// Weight of the item for shipping. - #[serde(alias="shippingWeight")] + #[serde(rename="shippingWeight")] pub shipping_weight: Option, /// URL of an image of the item. - #[serde(alias="imageLink")] + #[serde(rename="imageLink")] pub image_link: Option, /// Title of an item for dynamic remarketing campaigns. - #[serde(alias="displayAdsTitle")] + #[serde(rename="displayAdsTitle")] pub display_ads_title: Option, } @@ -2212,7 +2212,7 @@ impl ResponseResult for Product {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductStatusDataQualityIssue { /// The value the attribute had at time of evaluation. - #[serde(alias="valueProvided")] + #[serde(rename="valueProvided")] pub value_provided: String, /// The severity of the data quality issue. pub severity: String, @@ -2223,12 +2223,12 @@ pub struct ProductStatusDataQualityIssue { /// The attribute name that is relevant for the issue. pub location: String, /// The value of that attribute that was found on the landing page - #[serde(alias="valueOnLandingPage")] + #[serde(rename="valueOnLandingPage")] pub value_on_landing_page: String, /// The id of the data quality issue. pub id: String, /// The fetch status for landing_page_errors. - #[serde(alias="fetchStatus")] + #[serde(rename="fetchStatus")] pub fetch_status: String, } @@ -2247,7 +2247,7 @@ impl Part for ProductStatusDataQualityIssue {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductsListResponse { /// The token for the retrieval of the next page of products. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#productsListResponse". pub kind: String, @@ -2267,13 +2267,13 @@ pub struct AccountShippingShippingService { /// Whether the shipping service is available. pub active: bool, /// Decision tree for "complicated" shipping cost calculation. - #[serde(alias="costRuleTree")] + #[serde(rename="costRuleTree")] pub cost_rule_tree: AccountShippingShippingServiceCostRule, /// Sale country for which this service can be used, represented as an ISO 3166-1 Alpha-2 code. - #[serde(alias="saleCountry")] + #[serde(rename="saleCountry")] pub sale_country: i64, /// Calculation method for the "simple" case that needs no rules. - #[serde(alias="calculationMethod")] + #[serde(rename="calculationMethod")] pub calculation_method: AccountShippingShippingServiceCalculationMethod, /// The name of this shipping service. pub name: String, @@ -2289,14 +2289,14 @@ impl Part for AccountShippingShippingService {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountshippingCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// Identifies what kind of resource this is. Value: the fixed string "content#accountshippingCustomBatchResponseEntry". pub kind: String, /// A list of errors defined if and only if the request failed. pub errors: Errors, /// The retrieved or updated account shipping settings. - #[serde(alias="accountShipping")] + #[serde(rename="accountShipping")] pub account_shipping: AccountShipping, } @@ -2315,7 +2315,7 @@ impl Part for AccountshippingCustomBatchResponseEntry {} #[derive(Default, Clone, Debug, Serialize)] pub struct InventorySetRequest { /// A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. - #[serde(alias="salePriceEffectiveDate")] + #[serde(rename="salePriceEffectiveDate")] pub sale_price_effective_date: Option, /// The price of the product. pub price: Option, @@ -2324,7 +2324,7 @@ pub struct InventorySetRequest { /// The availability of the product. pub availability: Option, /// The sale price of the product. Mandatory if sale_price_effective_date is defined. - #[serde(alias="salePrice")] + #[serde(rename="salePrice")] pub sale_price: Option, } @@ -2340,7 +2340,7 @@ pub struct ProductDestination { /// Whether the destination is required, excluded or should be validated. pub intention: String, /// The name of the destination. - #[serde(alias="destinationName")] + #[serde(rename="destinationName")] pub destination_name: String, } @@ -2374,15 +2374,15 @@ impl ResponseResult for AccountsCustomBatchResponse {} #[derive(Default, Clone, Debug, Serialize)] pub struct DatafeedsCustomBatchRequestEntry { /// An entry ID, unique within the batch request. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// The ID of the data feed to get or delete. - #[serde(alias="datafeedId")] + #[serde(rename="datafeedId")] pub datafeed_id: String, /// The data feed to insert. pub datafeed: Datafeed, /// The ID of the managing account. - #[serde(alias="merchantId")] + #[serde(rename="merchantId")] pub merchant_id: String, /// no description provided pub method: String, @@ -2403,7 +2403,7 @@ impl Part for DatafeedsCustomBatchRequestEntry {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductstatusesListResponse { /// The token for the retrieval of the next page of products statuses. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#productstatusesListResponse". pub kind: String, @@ -2436,23 +2436,23 @@ impl Part for Weight {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountStatusDataQualityIssue { /// Actual value displayed on the landing page. - #[serde(alias="displayedValue")] + #[serde(rename="displayedValue")] pub displayed_value: String, /// Severity of the problem. pub severity: String, /// Last time the account was checked for this issue. - #[serde(alias="lastChecked")] + #[serde(rename="lastChecked")] pub last_checked: String, /// Country for which this issue is reported. pub country: String, /// Example items featuring the issue. - #[serde(alias="exampleItems")] + #[serde(rename="exampleItems")] pub example_items: Vec, /// Submitted value that causes the issue. - #[serde(alias="submittedValue")] + #[serde(rename="submittedValue")] pub submitted_value: String, /// Number of items in the account found to have the said issue. - #[serde(alias="numItems")] + #[serde(rename="numItems")] pub num_items: u32, /// Issue identifier. pub id: String, @@ -2473,7 +2473,7 @@ impl Part for AccountStatusDataQualityIssue {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountsListResponse { /// The token for the retrieval of the next page of accounts. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "content#accountsListResponse". pub kind: String, @@ -2491,14 +2491,14 @@ impl ResponseResult for AccountsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ProductstatusesCustomBatchResponseEntry { /// The ID of the request entry this entry responds to. - #[serde(alias="batchId")] + #[serde(rename="batchId")] pub batch_id: u32, /// Identifies what kind of resource this is. Value: the fixed string "content#productstatusesCustomBatchResponseEntry". pub kind: String, /// A list of errors, if the request failed. pub errors: Errors, /// The requested product status. Only defined if the request was successful. - #[serde(alias="productStatus")] + #[serde(rename="productStatus")] pub product_status: ProductStatus, } @@ -2534,7 +2534,7 @@ pub struct LoyaltyPoints { /// Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters. pub name: String, /// The retailer's loyalty points in absolute value. - #[serde(alias="pointsValue")] + #[serde(rename="pointsValue")] pub points_value: String, } @@ -2566,13 +2566,13 @@ impl RequestValue for DatafeedsCustomBatchRequest {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct DatafeedFormat { /// Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. - #[serde(alias="fileEncoding")] + #[serde(rename="fileEncoding")] pub file_encoding: String, /// Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. - #[serde(alias="quotingMode")] + #[serde(rename="quotingMode")] pub quoting_mode: String, /// Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. - #[serde(alias="columnDelimiter")] + #[serde(rename="columnDelimiter")] pub column_delimiter: String, } @@ -2588,7 +2588,7 @@ pub struct AccountAdwordsLink { /// Status of the link between this Merchant Center account and the AdWords account. pub status: String, /// Customer ID of the AdWords account. - #[serde(alias="adwordsId")] + #[serde(rename="adwordsId")] pub adwords_id: String, } diff --git a/gen/coordinate1/Cargo.toml b/gen/coordinate1/Cargo.toml index ec6af5b660..92201919fc 100644 --- a/gen/coordinate1/Cargo.toml +++ b/gen/coordinate1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-coordinate1" -version = "0.1.3+20141215" +version = "0.1.4+20141215" authors = ["Sebastian Thiel "] description = "A complete library to interact with coordinate (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/coordinate1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/coordinate1/README.md b/gen/coordinate1/README.md index 7628184c10..da4bb468f4 100644 --- a/gen/coordinate1/README.md +++ b/gen/coordinate1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-coordinate1` library allows access to all features of the *Google coordinate* service. -This documentation was generated from *coordinate* crate version *0.1.3+20141215*, where *20141215* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *coordinate* crate version *0.1.4+20141215*, where *20141215* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *coordinate* *v1* API can be found at the [official documentation site](https://developers.google.com/coordinate/). diff --git a/gen/coordinate1/src/lib.rs b/gen/coordinate1/src/lib.rs index d77e3de550..edd3b08faa 100644 --- a/gen/coordinate1/src/lib.rs +++ b/gen/coordinate1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *coordinate* crate version *0.1.3+20141215*, where *20141215* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *coordinate* crate version *0.1.4+20141215*, where *20141215* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *coordinate* *v1* API can be found at the //! [official documentation site](https://developers.google.com/coordinate/). @@ -346,7 +346,7 @@ impl<'a, C, NC, A> Coordinate Coordinate { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -371,7 +371,7 @@ impl<'a, C, NC, A> Coordinate } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -397,14 +397,14 @@ impl<'a, C, NC, A> Coordinate #[derive(Default, Clone, Debug, Deserialize)] pub struct LocationListResponse { /// A token to provide to get the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Locations in the collection. pub items: Vec, /// Identifies this object as a list of locations. pub kind: String, /// Pagination information for token pagination. - #[serde(alias="tokenPagination")] + #[serde(rename="tokenPagination")] pub token_pagination: TokenPagination, } @@ -472,10 +472,10 @@ impl ResponseResult for CustomFieldDefListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TokenPagination { /// A token to provide to get the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// A token to provide to get the previous page of results. - #[serde(alias="previousPageToken")] + #[serde(rename="previousPageToken")] pub previous_page_token: String, /// Identifies this object as pagination information. pub kind: String, @@ -495,7 +495,7 @@ pub struct Location { /// Identifies this object as a location. pub kind: String, /// Address. - #[serde(alias="addressLine")] + #[serde(rename="addressLine")] pub address_line: Vec, /// Longitude. pub lng: f64, @@ -530,7 +530,7 @@ pub struct JobState { /// Identifies this object as a job state. pub kind: String, /// Customer name. - #[serde(alias="customerName")] + #[serde(rename="customerName")] pub customer_name: String, /// Job title. pub title: String, @@ -539,14 +539,14 @@ pub struct JobState { /// Email address of the assignee, or the string "DELETED_USER" if the account is no longer available. pub assignee: String, /// Customer phone number. - #[serde(alias="customerPhoneNumber")] + #[serde(rename="customerPhoneNumber")] pub customer_phone_number: String, /// Job location. pub location: Location, /// Job progress. pub progress: String, /// Custom fields. - #[serde(alias="customFields")] + #[serde(rename="customFields")] pub custom_fields: CustomFields, } @@ -562,7 +562,7 @@ pub struct CustomFields { /// Identifies this object as a collection of custom fields. pub kind: String, /// Collection of custom fields. - #[serde(alias="customField")] + #[serde(rename="customField")] pub custom_field: Vec, } @@ -598,10 +598,10 @@ pub struct LocationRecord { /// Latitude. pub latitude: f64, /// The collection time in milliseconds since the epoch. - #[serde(alias="collectionTime")] + #[serde(rename="collectionTime")] pub collection_time: String, /// The location accuracy in meters. This is the radius of a 95% confidence interval around the location measurement. - #[serde(alias="confidenceRadius")] + #[serde(rename="confidenceRadius")] pub confidence_radius: f64, /// Identifies this object as a location. pub kind: String, @@ -630,13 +630,13 @@ pub struct Schedule { /// Identifies this object as a job schedule. pub kind: Option, /// Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true. - #[serde(alias="allDay")] + #[serde(rename="allDay")] pub all_day: Option, /// Scheduled start time in milliseconds since epoch. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: Option, /// Scheduled end time in milliseconds since epoch. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: Option, } @@ -676,7 +676,7 @@ impl ResponseResult for TeamListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct JobListResponse { /// A token to provide to get the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Jobs in the collection. pub items: Vec, @@ -720,7 +720,7 @@ pub struct Job { /// Identifies this object as a job. pub kind: Option, /// List of job changes since it was created. The first change corresponds to the state of the job when it was created. - #[serde(alias="jobChange")] + #[serde(rename="jobChange")] pub job_change: Option>, /// Job id. pub id: Option, @@ -746,10 +746,10 @@ pub struct CustomFieldDef { /// Custom field name. pub name: String, /// Custom field type. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Whether the field is required for checkout. - #[serde(alias="requiredForCheckout")] + #[serde(rename="requiredForCheckout")] pub required_for_checkout: bool, /// Whether the field is enabled. pub enabled: bool, @@ -769,7 +769,7 @@ pub struct CustomField { /// Identifies this object as a custom field. pub kind: String, /// Custom field id. - #[serde(alias="customFieldId")] + #[serde(rename="customFieldId")] pub custom_field_id: String, /// Custom field value. pub value: String, diff --git a/gen/customsearch1/Cargo.toml b/gen/customsearch1/Cargo.toml index 925a12c86b..1a1e93443f 100644 --- a/gen/customsearch1/Cargo.toml +++ b/gen/customsearch1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-customsearch1" -version = "0.1.3+20131205" +version = "0.1.4+20131205" authors = ["Sebastian Thiel "] description = "A complete library to interact with customsearch (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/customsearch1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/customsearch1/README.md b/gen/customsearch1/README.md index 8f5afb5363..d9409571c2 100644 --- a/gen/customsearch1/README.md +++ b/gen/customsearch1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-customsearch1` library allows access to all features of the *Google customsearch* service. -This documentation was generated from *customsearch* crate version *0.1.3+20131205*, where *20131205* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *customsearch* crate version *0.1.4+20131205*, where *20131205* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *customsearch* *v1* API can be found at the [official documentation site](https://developers.google.com/custom-search/v1/using_rest). diff --git a/gen/customsearch1/src/lib.rs b/gen/customsearch1/src/lib.rs index 8256d016b8..99a9613f56 100644 --- a/gen/customsearch1/src/lib.rs +++ b/gen/customsearch1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *customsearch* crate version *0.1.3+20131205*, where *20131205* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *customsearch* crate version *0.1.4+20131205*, where *20131205* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *customsearch* *v1* API can be found at the //! [official documentation site](https://developers.google.com/custom-search/v1/using_rest). @@ -336,7 +336,7 @@ impl<'a, C, NC, A> Customsearch Customsearch { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -346,7 +346,7 @@ impl<'a, C, NC, A> Customsearch } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -369,19 +369,19 @@ pub struct ResultImage { /// no description provided pub width: i32, /// no description provided - #[serde(alias="contextLink")] + #[serde(rename="contextLink")] pub context_link: String, /// no description provided - #[serde(alias="thumbnailWidth")] + #[serde(rename="thumbnailWidth")] pub thumbnail_width: i32, /// no description provided - #[serde(alias="thumbnailLink")] + #[serde(rename="thumbnailLink")] pub thumbnail_link: String, /// no description provided - #[serde(alias="byteSize")] + #[serde(rename="byteSize")] pub byte_size: i32, /// no description provided - #[serde(alias="thumbnailHeight")] + #[serde(rename="thumbnailHeight")] pub thumbnail_height: i32, /// no description provided pub height: i32, @@ -417,7 +417,7 @@ pub struct Search { /// no description provided pub spelling: SearchSpelling, /// no description provided - #[serde(alias="searchInformation")] + #[serde(rename="searchInformation")] pub search_information: SearchSearchInformation, } @@ -449,7 +449,7 @@ impl Part for PromotionImage {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SearchUrl { /// no description provided - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// no description provided pub template: String, @@ -466,10 +466,10 @@ impl Part for SearchUrl {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SearchSpelling { /// no description provided - #[serde(alias="correctedQuery")] + #[serde(rename="correctedQuery")] pub corrected_query: String, /// no description provided - #[serde(alias="htmlCorrectedQuery")] + #[serde(rename="htmlCorrectedQuery")] pub html_corrected_query: String, } @@ -486,7 +486,7 @@ pub struct PromotionBodyLines { /// no description provided pub url: String, /// no description provided - #[serde(alias="htmlTitle")] + #[serde(rename="htmlTitle")] pub html_title: String, /// no description provided pub link: String, @@ -511,26 +511,26 @@ pub struct ResultType { /// no description provided pub title: String, /// no description provided - #[serde(alias="displayLink")] + #[serde(rename="displayLink")] pub display_link: String, /// no description provided - #[serde(alias="cacheId")] + #[serde(rename="cacheId")] pub cache_id: String, /// no description provided - #[serde(alias="formattedUrl")] + #[serde(rename="formattedUrl")] pub formatted_url: String, /// no description provided - #[serde(alias="htmlFormattedUrl")] + #[serde(rename="htmlFormattedUrl")] pub html_formatted_url: String, /// no description provided pub pagemap: HashMap>>, /// no description provided - #[serde(alias="fileFormat")] + #[serde(rename="fileFormat")] pub file_format: String, /// no description provided pub snippet: String, /// no description provided - #[serde(alias="htmlSnippet")] + #[serde(rename="htmlSnippet")] pub html_snippet: String, /// no description provided pub link: String, @@ -539,7 +539,7 @@ pub struct ResultType { /// no description provided pub mime: String, /// no description provided - #[serde(alias="htmlTitle")] + #[serde(rename="htmlTitle")] pub html_title: String, } @@ -586,51 +586,51 @@ impl Part for ContextFacets {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Query { /// no description provided - #[serde(alias="dateRestrict")] + #[serde(rename="dateRestrict")] pub date_restrict: String, /// no description provided - #[serde(alias="inputEncoding")] + #[serde(rename="inputEncoding")] pub input_encoding: String, /// no description provided - #[serde(alias="orTerms")] + #[serde(rename="orTerms")] pub or_terms: String, /// no description provided - #[serde(alias="highRange")] + #[serde(rename="highRange")] pub high_range: String, /// no description provided pub cx: String, /// no description provided - #[serde(alias="startPage")] + #[serde(rename="startPage")] pub start_page: i32, /// no description provided - #[serde(alias="disableCnTwTranslation")] + #[serde(rename="disableCnTwTranslation")] pub disable_cn_tw_translation: String, /// no description provided pub cr: String, /// no description provided - #[serde(alias="imgType")] + #[serde(rename="imgType")] pub img_type: String, /// no description provided - #[serde(alias="relatedSite")] + #[serde(rename="relatedSite")] pub related_site: String, /// no description provided pub gl: String, /// no description provided - #[serde(alias="searchType")] + #[serde(rename="searchType")] pub search_type: String, /// no description provided pub title: String, /// no description provided - #[serde(alias="googleHost")] + #[serde(rename="googleHost")] pub google_host: String, /// no description provided - #[serde(alias="fileType")] + #[serde(rename="fileType")] pub file_type: String, /// no description provided - #[serde(alias="imgDominantColor")] + #[serde(rename="imgDominantColor")] pub img_dominant_color: String, /// no description provided - #[serde(alias="siteSearch")] + #[serde(rename="siteSearch")] pub site_search: String, /// no description provided pub cref: String, @@ -639,49 +639,49 @@ pub struct Query { /// no description provided pub hq: String, /// no description provided - #[serde(alias="outputEncoding")] + #[serde(rename="outputEncoding")] pub output_encoding: String, /// no description provided pub safe: String, /// no description provided - #[serde(alias="searchTerms")] + #[serde(rename="searchTerms")] pub search_terms: String, /// no description provided - #[serde(alias="exactTerms")] + #[serde(rename="exactTerms")] pub exact_terms: String, /// no description provided - #[serde(alias="imgColorType")] + #[serde(rename="imgColorType")] pub img_color_type: String, /// no description provided pub hl: String, /// no description provided - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: String, /// no description provided - #[serde(alias="lowRange")] + #[serde(rename="lowRange")] pub low_range: String, /// no description provided pub count: i32, /// no description provided - #[serde(alias="imgSize")] + #[serde(rename="imgSize")] pub img_size: String, /// no description provided pub language: String, /// no description provided pub rights: String, /// no description provided - #[serde(alias="startIndex")] + #[serde(rename="startIndex")] pub start_index: i32, /// no description provided - #[serde(alias="excludeTerms")] + #[serde(rename="excludeTerms")] pub exclude_terms: String, /// no description provided pub filter: String, /// no description provided - #[serde(alias="linkSite")] + #[serde(rename="linkSite")] pub link_site: String, /// no description provided - #[serde(alias="siteSearchFilter")] + #[serde(rename="siteSearchFilter")] pub site_search_filter: String, } @@ -695,17 +695,17 @@ impl Part for Query {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Promotion { /// no description provided - #[serde(alias="bodyLines")] + #[serde(rename="bodyLines")] pub body_lines: Vec, /// no description provided pub title: String, /// no description provided pub link: String, /// no description provided - #[serde(alias="displayLink")] + #[serde(rename="displayLink")] pub display_link: String, /// no description provided - #[serde(alias="htmlTitle")] + #[serde(rename="htmlTitle")] pub html_title: String, /// no description provided pub image: PromotionImage, @@ -721,16 +721,16 @@ impl Part for Promotion {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SearchSearchInformation { /// no description provided - #[serde(alias="formattedSearchTime")] + #[serde(rename="formattedSearchTime")] pub formatted_search_time: String, /// no description provided - #[serde(alias="formattedTotalResults")] + #[serde(rename="formattedTotalResults")] pub formatted_total_results: String, /// no description provided - #[serde(alias="totalResults")] + #[serde(rename="totalResults")] pub total_results: String, /// no description provided - #[serde(alias="searchTime")] + #[serde(rename="searchTime")] pub search_time: f64, } @@ -745,7 +745,7 @@ impl Part for SearchSearchInformation {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ResultLabels { /// no description provided - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// no description provided pub label_with_op: String, diff --git a/gen/dataflow1_b4/Cargo.toml b/gen/dataflow1_b4/Cargo.toml index 495853d43e..2881df5ed2 100644 --- a/gen/dataflow1_b4/Cargo.toml +++ b/gen/dataflow1_b4/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dataflow1_b4" -version = "0.1.3+20150401" +version = "0.1.4+20150401" authors = ["Sebastian Thiel "] description = "A complete library to interact with dataflow (protocol v1b4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dataflow1_b4" @@ -17,5 +17,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/dataflow1_b4/README.md b/gen/dataflow1_b4/README.md index 4142d5401e..ec2cbca0b4 100644 --- a/gen/dataflow1_b4/README.md +++ b/gen/dataflow1_b4/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-dataflow1_b4` library allows access to all features of the *Google dataflow* service. -This documentation was generated from *dataflow* crate version *0.1.3+20150401*, where *20150401* is the exact revision of the *dataflow:v1b4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *dataflow* crate version *0.1.4+20150401*, where *20150401* is the exact revision of the *dataflow:v1b4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. # Features It seems there is nothing you can do here ... . diff --git a/gen/dataflow1_b4/src/lib.rs b/gen/dataflow1_b4/src/lib.rs index ea9dfbfb35..1bdc021fac 100644 --- a/gen/dataflow1_b4/src/lib.rs +++ b/gen/dataflow1_b4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dataflow* crate version *0.1.3+20150401*, where *20150401* is the exact revision of the *dataflow:v1b4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *dataflow* crate version *0.1.4+20150401*, where *20150401* is the exact revision of the *dataflow:v1b4* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/dataflow1_b4). //! # Features //! @@ -228,14 +228,14 @@ impl<'a, C, NC, A> Dataflow Dataflow { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/datastore1_beta2/Cargo.toml b/gen/datastore1_beta2/Cargo.toml index abdcc19bce..363550e1a5 100644 --- a/gen/datastore1_beta2/Cargo.toml +++ b/gen/datastore1_beta2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-datastore1_beta2" -version = "0.1.3+20140916" +version = "0.1.4+20140916" authors = ["Sebastian Thiel "] description = "A complete library to interact with datastore (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datastore1_beta2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/datastore1_beta2/README.md b/gen/datastore1_beta2/README.md index bf5e30f875..f55d02b1bf 100644 --- a/gen/datastore1_beta2/README.md +++ b/gen/datastore1_beta2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-datastore1_beta2` library allows access to all features of the *Google datastore* service. -This documentation was generated from *datastore* crate version *0.1.3+20140916*, where *20140916* is the exact revision of the *datastore:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *datastore* crate version *0.1.4+20140916*, where *20140916* is the exact revision of the *datastore:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *datastore* *v1_beta2* API can be found at the [official documentation site](https://developers.google.com/datastore/). diff --git a/gen/datastore1_beta2/src/lib.rs b/gen/datastore1_beta2/src/lib.rs index ff328d2f4e..8c9057c88a 100644 --- a/gen/datastore1_beta2/src/lib.rs +++ b/gen/datastore1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *datastore* crate version *0.1.3+20140916*, where *20140916* is the exact revision of the *datastore:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *datastore* crate version *0.1.4+20140916*, where *20140916* is the exact revision of the *datastore:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *datastore* *v1_beta2* API can be found at the //! [official documentation site](https://developers.google.com/datastore/). @@ -316,7 +316,7 @@ impl<'a, C, NC, A> Datastore Datastore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -326,7 +326,7 @@ impl<'a, C, NC, A> Datastore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -351,7 +351,7 @@ pub struct PartitionId { /// The namespace. pub namespace: String, /// The dataset ID. - #[serde(alias="datasetId")] + #[serde(rename="datasetId")] pub dataset_id: String, } @@ -392,7 +392,7 @@ pub struct LookupRequest { /// Keys of entities to look up from the datastore. pub keys: Option>, /// Options for this lookup request. Optional. - #[serde(alias="readOptions")] + #[serde(rename="readOptions")] pub read_options: Option, } @@ -468,7 +468,7 @@ pub struct Mutation { /// Ignore a user specified read-only period. Optional. pub force: bool, /// Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only. - #[serde(alias="insertAutoId")] + #[serde(rename="insertAutoId")] pub insert_auto_id: Vec, /// Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only. pub delete: Vec, @@ -495,7 +495,7 @@ pub struct CommitResponse { /// no description provided pub header: ResponseHeader, /// The result of performing the mutation (if any). - #[serde(alias="mutationResult")] + #[serde(rename="mutationResult")] pub mutation_result: MutationResult, } @@ -509,19 +509,19 @@ impl ResponseResult for CommitResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct QueryResultBatch { /// The state of the query after the current batch. One of notFinished, moreResultsAfterLimit, noMoreResults. - #[serde(alias="moreResults")] + #[serde(rename="moreResults")] pub more_results: String, /// The number of results skipped because of Query.offset. - #[serde(alias="skippedResults")] + #[serde(rename="skippedResults")] pub skipped_results: i32, /// A cursor that points to the position after the last result in the batch. May be absent. TODO(arfuller): Once all plans produce cursors update documentation here. - #[serde(alias="endCursor")] + #[serde(rename="endCursor")] pub end_cursor: String, /// The results for this batch. - #[serde(alias="entityResults")] + #[serde(rename="entityResults")] pub entity_results: Vec, /// The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key. - #[serde(alias="entityResultType")] + #[serde(rename="entityResultType")] pub entity_result_type: String, } @@ -579,16 +579,16 @@ impl ResponseResult for RollbackResponse {} #[derive(Default, Clone, Debug, Serialize)] pub struct GqlQuery { /// When false, the query string must not contain a literal. - #[serde(alias="allowLiteral")] + #[serde(rename="allowLiteral")] pub allow_literal: bool, /// A named argument must set field GqlQueryArg.name. No two named arguments may have the same name. For each non-reserved named binding site in the query string, there must be a named argument with that name, but not necessarily the inverse. - #[serde(alias="nameArgs")] + #[serde(rename="nameArgs")] pub name_args: Vec, /// The query string. - #[serde(alias="queryString")] + #[serde(rename="queryString")] pub query_string: String, /// Numbered binding site @1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For each binding site numbered i in query_string, there must be an ith numbered argument. The inverse must also be true. - #[serde(alias="numberArgs")] + #[serde(rename="numberArgs")] pub number_args: Vec, } @@ -604,7 +604,7 @@ pub struct Key { /// The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements. pub path: Vec, /// Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition. - #[serde(alias="partitionId")] + #[serde(rename="partitionId")] pub partition_id: PartitionId, } @@ -618,7 +618,7 @@ impl Part for Key {} #[derive(Default, Clone, Debug, Serialize)] pub struct PropertyExpression { /// The aggregation function to apply to the property. Optional. Can only be used when grouping by at least one property. Must then be set on all properties in the projection that are not being grouped by. Aggregation functions: first selects the first result as determined by the query's order. - #[serde(alias="aggregationFunction")] + #[serde(rename="aggregationFunction")] pub aggregation_function: String, /// The property to project. pub property: PropertyReference, @@ -634,10 +634,10 @@ impl Part for PropertyExpression {} #[derive(Default, Clone, Debug, Deserialize)] pub struct MutationResult { /// Keys for insertAutoId entities. One per entity from the request, in the same order. - #[serde(alias="insertAutoIdKeys")] + #[serde(rename="insertAutoIdKeys")] pub insert_auto_id_keys: Vec, /// Number of index writes. - #[serde(alias="indexUpdates")] + #[serde(rename="indexUpdates")] pub index_updates: i32, } @@ -653,7 +653,7 @@ pub struct ReadOptions { /// The transaction to use. Optional. pub transaction: String, /// The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default. - #[serde(alias="readConsistency")] + #[serde(rename="readConsistency")] pub read_consistency: String, } @@ -697,40 +697,40 @@ impl Part for ResponseHeader {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Value { /// An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key. - #[serde(alias="entityValue")] + #[serde(rename="entityValue")] pub entity_value: Entity, /// A double value. - #[serde(alias="doubleValue")] + #[serde(rename="doubleValue")] pub double_value: f64, /// A blob key value. - #[serde(alias="blobKeyValue")] + #[serde(rename="blobKeyValue")] pub blob_key_value: String, /// The meaning field is reserved and should not be used. pub meaning: i32, /// A timestamp value. - #[serde(alias="dateTimeValue")] + #[serde(rename="dateTimeValue")] pub date_time_value: String, /// A key value. - #[serde(alias="keyValue")] + #[serde(rename="keyValue")] pub key_value: Key, /// A blob value. May be a maximum of 1,000,000 bytes. - #[serde(alias="blobValue")] + #[serde(rename="blobValue")] pub blob_value: String, /// If the value should be indexed. /// /// The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true. pub indexed: bool, /// A UTF-8 encoded string value. - #[serde(alias="stringValue")] + #[serde(rename="stringValue")] pub string_value: String, /// A list value. Cannot contain another list value. Cannot also have a meaning and indexing set. - #[serde(alias="listValue")] + #[serde(rename="listValue")] pub list_value: Vec, /// A boolean value. - #[serde(alias="booleanValue")] + #[serde(rename="booleanValue")] pub boolean_value: bool, /// An integer value. - #[serde(alias="integerValue")] + #[serde(rename="integerValue")] pub integer_value: String, } @@ -744,10 +744,10 @@ impl Part for Value {} #[derive(Default, Clone, Debug, Serialize)] pub struct Filter { /// A composite filter. - #[serde(alias="compositeFilter")] + #[serde(rename="compositeFilter")] pub composite_filter: CompositeFilter, /// A filter on a property. - #[serde(alias="propertyFilter")] + #[serde(rename="propertyFilter")] pub property_filter: PropertyFilter, } @@ -780,40 +780,40 @@ impl Part for KeyPathElement {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Property { /// An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key. - #[serde(alias="entityValue")] + #[serde(rename="entityValue")] pub entity_value: Entity, /// A double value. - #[serde(alias="doubleValue")] + #[serde(rename="doubleValue")] pub double_value: f64, /// A blob key value. - #[serde(alias="blobKeyValue")] + #[serde(rename="blobKeyValue")] pub blob_key_value: String, /// The meaning field is reserved and should not be used. pub meaning: i32, /// A timestamp value. - #[serde(alias="dateTimeValue")] + #[serde(rename="dateTimeValue")] pub date_time_value: String, /// A key value. - #[serde(alias="keyValue")] + #[serde(rename="keyValue")] pub key_value: Key, /// A blob value. May be a maximum of 1,000,000 bytes. - #[serde(alias="blobValue")] + #[serde(rename="blobValue")] pub blob_value: String, /// If the value should be indexed. /// /// The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true. pub indexed: bool, /// A UTF-8 encoded string value. - #[serde(alias="stringValue")] + #[serde(rename="stringValue")] pub string_value: String, /// A list value. Cannot contain another list value. Cannot also have a meaning and indexing set. - #[serde(alias="listValue")] + #[serde(rename="listValue")] pub list_value: Vec, /// A boolean value. - #[serde(alias="booleanValue")] + #[serde(rename="booleanValue")] pub boolean_value: bool, /// An integer value. - #[serde(alias="integerValue")] + #[serde(rename="integerValue")] pub integer_value: String, } @@ -871,7 +871,7 @@ impl Part for CompositeFilter {} #[derive(Default, Clone, Debug, Serialize)] pub struct CommitRequest { /// no description provided - #[serde(alias="ignoreReadOnly")] + #[serde(rename="ignoreReadOnly")] pub ignore_read_only: Option, /// The transaction identifier, returned by a call to beginTransaction. Must be set when mode is TRANSACTIONAL. pub transaction: Option, @@ -898,13 +898,13 @@ pub struct RunQueryRequest { /// The query to run. Either this field or field gql_query must be set, but not both. pub query: Option, /// Entities are partitioned into subsets, identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID, but all other partition IDs in RunQueryRequest are normalized with this partition ID as the context partition ID. - #[serde(alias="partitionId")] + #[serde(rename="partitionId")] pub partition_id: Option, /// The GQL query to run. Either this field or field query must be set, but not both. - #[serde(alias="gqlQuery")] + #[serde(rename="gqlQuery")] pub gql_query: Option, /// The options for this query. - #[serde(alias="readOptions")] + #[serde(rename="readOptions")] pub read_options: Option, } @@ -988,7 +988,7 @@ impl RequestValue for RollbackRequest {} #[derive(Default, Clone, Debug, Serialize)] pub struct BeginTransactionRequest { /// The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction. - #[serde(alias="isolationLevel")] + #[serde(rename="isolationLevel")] pub isolation_level: Option, } @@ -1017,14 +1017,14 @@ impl Part for PropertyOrder {} #[derive(Default, Clone, Debug, Serialize)] pub struct Query { /// A starting point for the query results. Optional. Query cursors are returned in query result batches. - #[serde(alias="startCursor")] + #[serde(rename="startCursor")] pub start_cursor: String, /// The kinds to query (if empty, returns entities from all kinds). pub kinds: Vec, /// The projection to return. If not set the entire entity is returned. pub projection: Vec, /// The properties to group by (if empty, no grouping is applied to the result set). - #[serde(alias="groupBy")] + #[serde(rename="groupBy")] pub group_by: Vec, /// The filter to apply (optional). pub filter: Filter, @@ -1033,7 +1033,7 @@ pub struct Query { /// The number of results to skip. Applies before limit, but after all other constraints (optional, defaults to 0). pub offset: i32, /// An ending point for the query results. Optional. Query cursors are returned in query result batches. - #[serde(alias="endCursor")] + #[serde(rename="endCursor")] pub end_cursor: String, /// The order to apply to the query results (if empty, order is unspecified). pub order: Vec, diff --git a/gen/deploymentmanager2_beta1/Cargo.toml b/gen/deploymentmanager2_beta1/Cargo.toml index 752ad93cad..c4761a96c3 100644 --- a/gen/deploymentmanager2_beta1/Cargo.toml +++ b/gen/deploymentmanager2_beta1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-deploymentmanager2_beta1" -version = "0.1.3+20150303" +version = "0.1.4+20150303" authors = ["Sebastian Thiel "] description = "A complete library to interact with deploymentmanager (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/deploymentmanager2_beta1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/deploymentmanager2_beta1/README.md b/gen/deploymentmanager2_beta1/README.md index f40848524d..95105699a3 100644 --- a/gen/deploymentmanager2_beta1/README.md +++ b/gen/deploymentmanager2_beta1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-deploymentmanager2_beta1` library allows access to all features of the *Google deploymentmanager* service. -This documentation was generated from *deploymentmanager* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *deploymentmanager:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *deploymentmanager* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *deploymentmanager:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *deploymentmanager* *v2_beta1* API can be found at the [official documentation site](https://developers.google.com/deployment-manager/). diff --git a/gen/deploymentmanager2_beta1/src/lib.rs b/gen/deploymentmanager2_beta1/src/lib.rs index b1d49ecf52..3ef2111fb0 100644 --- a/gen/deploymentmanager2_beta1/src/lib.rs +++ b/gen/deploymentmanager2_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *deploymentmanager* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *deploymentmanager:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *deploymentmanager* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *deploymentmanager:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *deploymentmanager* *v2_beta1* API can be found at the //! [official documentation site](https://developers.google.com/deployment-manager/). @@ -319,7 +319,7 @@ impl<'a, C, NC, A> Deploymentmanager Deploymentmanager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -341,7 +341,7 @@ impl<'a, C, NC, A> Deploymentmanager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -380,7 +380,7 @@ pub struct ResourceType { /// ! [Output Only] The intended state of the resource. pub intent: String, /// ! [Output Only] The type of the resource, for example ! ?compute.v1.instance?, or ?replicaPools.v1beta2.instanceGroupManager? - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, @@ -436,7 +436,7 @@ impl Part for OperationWarnings {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ResourcesListResponse { /// ! A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// ! Resources contained in this list response. pub resources: Vec, @@ -476,14 +476,14 @@ impl Part for OperationErrorErrors {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Manifest { /// ! [Output Only] The fully-expanded configuration file, including any ! templates and references. - #[serde(alias="evaluatedConfig")] + #[serde(rename="evaluatedConfig")] pub evaluated_config: String, /// v2beta1: YAML with config - described above v2beta2: YAML + templates. ! The YAML configuration for this manifest. pub config: String, /// [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// [Output Only] Self link for the manifest. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// ! [Output Only] The name of the manifest. pub name: String, @@ -537,7 +537,7 @@ impl ResponseResult for TypesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DeploymentsListResponse { /// ! A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// ! The deployments contained in this response. pub deployments: Vec, @@ -565,7 +565,7 @@ pub struct Deployment { /// ! An optional user-provided description of the deployment. pub description: Option, /// ! [Input Only] The YAML configuration to use in processing this deployment. ! ! When you create a deployment, the server creates a new manifest with the ! given YAML configuration and sets the `manifest` property to the URL of ! the manifest resource. - #[serde(alias="targetConfig")] + #[serde(rename="targetConfig")] pub target_config: Option, /// ! The name of the deployment, which must be unique within the project. pub name: Option, @@ -590,7 +590,7 @@ impl ResponseResult for Deployment {} #[derive(Default, Clone, Debug, Deserialize)] pub struct OperationsListResponse { /// ! A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// ! Operations contained in this list response. pub operations: Vec, @@ -616,47 +616,47 @@ pub struct Operation { /// ! [Output Only] Status of the operation. Can be one of the following: ! "PENDING", "RUNNING", or "DONE". pub status: String, /// ! [Output Only] The time that this operation was requested. ! This is in RFC 3339 format. - #[serde(alias="insertTime")] + #[serde(rename="insertTime")] pub insert_time: String, /// ! [Output Only] If warning messages generated during processing of this ! operation, this field will be populated. pub warnings: Vec, /// ! [Output Only] If operation fails, the HTTP error message returned, ! e.g. NOT FOUND. - #[serde(alias="httpErrorMessage")] + #[serde(rename="httpErrorMessage")] pub http_error_message: String, /// ! [Output Only] Unique target id which identifies a particular ! incarnation of the target. - #[serde(alias="targetId")] + #[serde(rename="targetId")] pub target_id: String, /// ! [Output Only] URL of the resource the operation is mutating. - #[serde(alias="targetLink")] + #[serde(rename="targetLink")] pub target_link: String, /// ! [Output Only] The time that this operation was started by the server. ! This is in RFC 3339 format. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// ! [Output Only] Creation timestamp in RFC3339 text format. - #[serde(alias="creationTimestamp")] + #[serde(rename="creationTimestamp")] pub creation_timestamp: String, /// ! [Output Only] Unique identifier for the resource; defined by the server. pub id: String, /// ! [Output Only] Name of the operation. pub name: String, /// [Output Only] Self link for the manifest. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// ! [Output Only] Type of the operation. Examples include "insert", or ! "delete" - #[serde(alias="operationType")] + #[serde(rename="operationType")] pub operation_type: String, /// ! [Output Only] If errors occurred during processing of this operation, ! this field will be populated. pub error: OperationError, /// ! [Output Only] An optional progress indicator that ranges from 0 to 100. ! There is no requirement that this be linear or support any granularity ! of operations. This should not be used to guess at when the operation will ! be complete. This number should be monotonically increasing as the ! operation progresses. pub progress: i32, /// ! [Output Only] The time that this operation was completed. This is in ! RFC3339 format. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// ! [Output Only] If operation fails, the HTTP error status code returned, ! e.g. 404. - #[serde(alias="httpErrorStatusCode")] + #[serde(rename="httpErrorStatusCode")] pub http_error_status_code: i32, /// ! [Output Only] An optional textual description of the current status of ! the operation. - #[serde(alias="statusMessage")] + #[serde(rename="statusMessage")] pub status_message: String, /// ! [Output Only] User who requested the operation, for example ! "user@example.com" pub user: String, @@ -696,7 +696,7 @@ impl Resource for Type {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ManifestsListResponse { /// ! A token used to continue a truncated list request. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// ! Manifests contained in this list response. pub manifests: Vec, diff --git a/gen/dfareporting2/Cargo.toml b/gen/dfareporting2/Cargo.toml index 8335d90260..0205a202aa 100644 --- a/gen/dfareporting2/Cargo.toml +++ b/gen/dfareporting2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dfareporting2" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v2.0)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/dfareporting2/README.md b/gen/dfareporting2/README.md index 0e4dc76dbe..28bb1a4ead 100644 --- a/gen/dfareporting2/README.md +++ b/gen/dfareporting2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-dfareporting2` library allows access to all features of the *Google dfareporting* service. -This documentation was generated from *dfareporting* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *dfareporting:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *dfareporting* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *dfareporting:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *dfareporting* *v2* API can be found at the [official documentation site](https://developers.google.com/doubleclick-advertisers/reporting/). diff --git a/gen/dfareporting2/src/lib.rs b/gen/dfareporting2/src/lib.rs index e8ef490594..09bb99e9a4 100644 --- a/gen/dfareporting2/src/lib.rs +++ b/gen/dfareporting2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dfareporting* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *dfareporting:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *dfareporting* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *dfareporting:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *dfareporting* *v2* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-advertisers/reporting/). @@ -422,7 +422,7 @@ impl<'a, C, NC, A> Dfareporting Dfareporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -573,7 +573,7 @@ impl<'a, C, NC, A> Dfareporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -601,7 +601,7 @@ pub struct OperatingSystemsListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemsListResponse". pub kind: String, /// Operating system collection. - #[serde(alias="operatingSystems")] + #[serde(rename="operatingSystems")] pub operating_systems: Vec, } @@ -615,21 +615,21 @@ impl ResponseResult for OperatingSystemsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DirectorySiteSettings { /// Whether this site accepts interstitial ads. - #[serde(alias="interstitialPlacementAccepted")] + #[serde(rename="interstitialPlacementAccepted")] pub interstitial_placement_accepted: bool, /// Whether this directory site has disabled Nielsen OCR reach ratings. - #[serde(alias="nielsenOcrOptOut")] + #[serde(rename="nielsenOcrOptOut")] pub nielsen_ocr_opt_out: bool, /// Whether this directory site has disabled active view creatives. - #[serde(alias="activeViewOptOut")] + #[serde(rename="activeViewOptOut")] pub active_view_opt_out: bool, /// Whether this directory site has disabled active view for in-stream video creatives. - #[serde(alias="videoActiveViewOptOut")] + #[serde(rename="videoActiveViewOptOut")] pub video_active_view_opt_out: bool, /// Directory site DFP settings. pub dfp_settings: DfpSettings, /// Whether this directory site has disabled generation of Verification ins tags. - #[serde(alias="verificationTagOptOut")] + #[serde(rename="verificationTagOptOut")] pub verification_tag_opt_out: bool, /// Whether this site accepts in-stream video ads. pub instream_video_placement_accepted: bool, @@ -652,12 +652,12 @@ pub struct MobileCarrier { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". pub kind: Option, /// DART ID of the country to which this mobile carrier belongs. - #[serde(alias="countryDartId")] + #[serde(rename="countryDartId")] pub country_dart_id: Option, /// ID of this mobile carrier. pub id: Option, /// Country code of the country to which this mobile carrier belongs. - #[serde(alias="countryCode")] + #[serde(rename="countryCode")] pub country_code: Option, /// Name of this mobile carrier. pub name: Option, @@ -684,10 +684,10 @@ pub struct Subaccount { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#subaccount". pub kind: Option, /// ID of the account that contains this subaccount. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// IDs of the available user role permissions for this subaccount. - #[serde(alias="availablePermissionIds")] + #[serde(rename="availablePermissionIds")] pub available_permission_ids: Option>, /// ID of this subaccount. This is a read-only, auto-generated field. pub id: Option, @@ -736,7 +736,7 @@ impl ResponseResult for AccountPermissionGroup {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DimensionValueList { /// Continuation token used to page through dimension values. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The dimension values returned in this response. pub items: Vec, @@ -761,10 +761,10 @@ impl ResponseResult for DimensionValueList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CampaignCreativeAssociationsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Campaign creative association collection - #[serde(alias="campaignCreativeAssociations")] + #[serde(rename="campaignCreativeAssociations")] pub campaign_creative_associations: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignCreativeAssociationsListResponse". pub kind: String, @@ -785,12 +785,12 @@ impl ResponseResult for CampaignCreativeAssociationsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FloodlightActivitiesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivitiesListResponse". pub kind: String, /// Floodlight activity collection. - #[serde(alias="floodlightActivities")] + #[serde(rename="floodlightActivities")] pub floodlight_activities: Vec, } @@ -809,7 +809,7 @@ impl ResponseResult for FloodlightActivitiesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UserRolePermissionGroupsListResponse { /// User role permission group collection. - #[serde(alias="userRolePermissionGroups")] + #[serde(rename="userRolePermissionGroups")] pub user_role_permission_groups: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRolePermissionGroupsListResponse". pub kind: String, @@ -831,7 +831,7 @@ impl ResponseResult for UserRolePermissionGroupsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FileList { /// Continuation token used to page through files. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The files returned in this response. pub items: Vec, @@ -853,7 +853,7 @@ pub struct CustomRichMediaEvents { /// The kind of resource this is, in this case dfareporting#customRichMediaEvents. pub kind: String, /// List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName. - #[serde(alias="filteredEventIds")] + #[serde(rename="filteredEventIds")] pub filtered_event_ids: Vec, } @@ -887,18 +887,18 @@ impl Part for EventTagOverride {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountActiveAdSummary { /// Ads that can be activated for the account. - #[serde(alias="availableAds")] + #[serde(rename="availableAds")] pub available_ads: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountActiveAdSummary". pub kind: String, /// ID of the account. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// Ads that have been activated for the account - #[serde(alias="activeAds")] + #[serde(rename="activeAds")] pub active_ads: String, /// Maximum number of active ads allowed for the account. - #[serde(alias="activeAdsLimitTier")] + #[serde(rename="activeAdsLimitTier")] pub active_ads_limit_tier: String, } @@ -912,10 +912,10 @@ impl ResponseResult for AccountActiveAdSummary {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct LookbackConfiguration { /// Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. - #[serde(alias="clickDuration")] + #[serde(rename="clickDuration")] pub click_duration: i32, /// Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. - #[serde(alias="postImpressionActivitiesDuration")] + #[serde(rename="postImpressionActivitiesDuration")] pub post_impression_activities_duration: i32, } @@ -936,7 +936,7 @@ pub struct FloodlightActivitiesGenerateTagResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivitiesGenerateTagResponse". pub kind: String, /// Generated tag for this floodlight activity. - #[serde(alias="floodlightActivityTag")] + #[serde(rename="floodlightActivityTag")] pub floodlight_activity_tag: String, } @@ -950,22 +950,22 @@ impl ResponseResult for FloodlightActivitiesGenerateTagResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct SiteSettings { /// Whether brand safe ads are disabled for this site. - #[serde(alias="disableBrandSafeAds")] + #[serde(rename="disableBrandSafeAds")] pub disable_brand_safe_ads: bool, /// Site-wide creative settings. - #[serde(alias="creativeSettings")] + #[serde(rename="creativeSettings")] pub creative_settings: CreativeSettings, /// Whether active view creatives are disabled for this site. - #[serde(alias="activeViewOptOut")] + #[serde(rename="activeViewOptOut")] pub active_view_opt_out: bool, /// Lookback window settings for this site. - #[serde(alias="lookbackConfiguration")] + #[serde(rename="lookbackConfiguration")] pub lookback_configuration: LookbackConfiguration, /// Whether new cookies are disabled for this site. - #[serde(alias="disableNewCookie")] + #[serde(rename="disableNewCookie")] pub disable_new_cookie: bool, /// Configuration settings for dynamic and image floodlight tags. - #[serde(alias="tagSetting")] + #[serde(rename="tagSetting")] pub tag_setting: TagSetting, } @@ -1006,41 +1006,41 @@ pub struct AccountUserProfile { /// - "zh-TW" (Chinese Traditional) pub locale: Option, /// Filter that describes which sites are visible to the user profile. - #[serde(alias="siteFilter")] + #[serde(rename="siteFilter")] pub site_filter: Option, /// Filter that describes which campaigns are visible to the user profile. - #[serde(alias="campaignFilter")] + #[serde(rename="campaignFilter")] pub campaign_filter: Option, /// User role ID of the user profile. This is a required field. - #[serde(alias="userRoleId")] + #[serde(rename="userRoleId")] pub user_role_id: Option, /// User type of the user profile. This is a read-only field that can be left blank. - #[serde(alias="userAccessType")] + #[serde(rename="userAccessType")] pub user_access_type: Option, /// Whether this user profile is active. This defaults to false, and must be set true on insert for the user profile to be usable. pub active: Option, /// ID of the user profile. This is a read-only, auto-generated field. pub id: Option, /// Account ID of the user profile. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountUserProfile". pub kind: Option, /// Subaccount ID of the user profile. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Filter that describes which user roles are visible to the user profile. - #[serde(alias="userRoleFilter")] + #[serde(rename="userRoleFilter")] pub user_role_filter: Option, /// Trafficker type of this user profile. - #[serde(alias="traffickerType")] + #[serde(rename="traffickerType")] pub trafficker_type: Option, /// Comments for this user profile. pub comments: Option, /// Name of the user profile. This is a required field. Must be less than 64 characters long, must be globally unique, and cannot contain whitespace or any of the following characters: "&;"#%,". pub name: Option, /// Filter that describes which advertisers are visible to the user profile. - #[serde(alias="advertiserFilter")] + #[serde(rename="advertiserFilter")] pub advertiser_filter: Option, /// Email of the user profile. The email addresss must be linked to a Google Account. This field is required on insertion and is read-only after insertion. pub email: Option, @@ -1058,10 +1058,10 @@ impl ResponseResult for AccountUserProfile {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct TagSettings { /// Whether dynamic floodlight tags are enabled. - #[serde(alias="dynamicTagEnabled")] + #[serde(rename="dynamicTagEnabled")] pub dynamic_tag_enabled: bool, /// Whether image tags are enabled. - #[serde(alias="imageTagEnabled")] + #[serde(rename="imageTagEnabled")] pub image_tag_enabled: bool, } @@ -1080,17 +1080,17 @@ impl Part for TagSettings {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct OperatingSystemVersion { /// Major version (leftmost number) of this operating system version. - #[serde(alias="majorVersion")] + #[serde(rename="majorVersion")] pub major_version: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". pub kind: Option, /// Minor version (number after the first dot) of this operating system version. - #[serde(alias="minorVersion")] + #[serde(rename="minorVersion")] pub minor_version: Option, /// Name of this operating system version. pub name: Option, /// Operating system of this operating system version. - #[serde(alias="operatingSystem")] + #[serde(rename="operatingSystem")] pub operating_system: Option, /// ID of this operating system version. pub id: Option, @@ -1106,13 +1106,13 @@ impl Resource for OperatingSystemVersion {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportFloodlightCriteriaReportProperties { /// Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion. - #[serde(alias="includeUnattributedIPConversions")] + #[serde(rename="includeUnattributedIPConversions")] pub include_unattributed_ip_conversions: bool, /// Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window. - #[serde(alias="includeUnattributedCookieConversions")] + #[serde(rename="includeUnattributedCookieConversions")] pub include_unattributed_cookie_conversions: bool, /// Include conversions that have no cookie, but do have an exposure path. - #[serde(alias="includeAttributedIPConversions")] + #[serde(rename="includeAttributedIPConversions")] pub include_attributed_ip_conversions: bool, } @@ -1127,10 +1127,10 @@ impl Part for ReportFloodlightCriteriaReportProperties {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeFieldAssignment { /// ID of the creative field. - #[serde(alias="creativeFieldId")] + #[serde(rename="creativeFieldId")] pub creative_field_id: String, /// ID of the creative field value. - #[serde(alias="creativeFieldValueId")] + #[serde(rename="creativeFieldValueId")] pub creative_field_value_id: String, } @@ -1152,10 +1152,10 @@ impl Part for CreativeFieldAssignment {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Account { /// File size limit in kilobytes of Rich Media teaser creatives. Must be between 1 and 10240. - #[serde(alias="teaserSizeLimit")] + #[serde(rename="teaserSizeLimit")] pub teaser_size_limit: Option, /// Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions. - #[serde(alias="activeViewOptOut")] + #[serde(rename="activeViewOptOut")] pub active_view_opt_out: Option, /// Description of this account. pub description: Option, @@ -1179,36 +1179,36 @@ pub struct Account { /// - "zh-TW" (Chinese Traditional) pub locale: Option, /// Profile for this account. This is a read-only field that can be left blank. - #[serde(alias="accountProfile")] + #[serde(rename="accountProfile")] pub account_profile: Option, /// Whether this account is active. pub active: Option, /// Whether campaigns created in this account will be enabled for comScore vCE by default. - #[serde(alias="comscoreVceEnabled")] + #[serde(rename="comscoreVceEnabled")] pub comscore_vce_enabled: Option, /// ID of this account. This is a read-only, auto-generated field. pub id: Option, /// User role permissions available to the user roles of this account. - #[serde(alias="availablePermissionIds")] + #[serde(rename="availablePermissionIds")] pub available_permission_ids: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#account". pub kind: Option, /// ID of the country associated with this account. - #[serde(alias="countryId")] + #[serde(rename="countryId")] pub country_id: Option, /// Name of this account. This is a required field, and must be less than 128 characters long and be globally unique. pub name: Option, /// Maximum image size allowed for this account. - #[serde(alias="maximumImageSize")] + #[serde(rename="maximumImageSize")] pub maximum_image_size: Option, /// Whether campaigns created in this account will be enabled for Nielsen OCR reach ratings by default. - #[serde(alias="nielsenOcrEnabled")] + #[serde(rename="nielsenOcrEnabled")] pub nielsen_ocr_enabled: Option, /// Default placement dimensions for this account. - #[serde(alias="defaultCreativeSizeId")] + #[serde(rename="defaultCreativeSizeId")] pub default_creative_size_id: Option, /// Account permissions assigned to this account. - #[serde(alias="accountPermissionIds")] + #[serde(rename="accountPermissionIds")] pub account_permission_ids: Option>, /// ID of currency associated with this account. This is a required field. /// Acceptable values are: @@ -1248,13 +1248,13 @@ pub struct Account { /// - "34" for VEF /// - "35" for COP /// - "36" for GTQ - #[serde(alias="currencyId")] + #[serde(rename="currencyId")] pub currency_id: Option, /// Reporting configuration of this account. - #[serde(alias="reportsConfiguration")] + #[serde(rename="reportsConfiguration")] pub reports_configuration: Option, /// Maximum number of active ads allowed for this account. - #[serde(alias="activeAdsLimitTier")] + #[serde(rename="activeAdsLimitTier")] pub active_ads_limit_tier: Option, } @@ -1279,13 +1279,13 @@ pub struct DayPartTargeting { /// - "THURSDAY" /// - "FRIDAY" /// - "SATURDAY" - #[serde(alias="daysOfWeek")] + #[serde(rename="daysOfWeek")] pub days_of_week: Vec, /// Hours of the day when the ad will serve. Must be an integer between 0 and 23 (inclusive), 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. - #[serde(alias="hoursOfDay")] + #[serde(rename="hoursOfDay")] pub hours_of_day: Vec, /// Whether or not to use the user's local time. If false, the America/New York time zone applies. - #[serde(alias="userLocalTime")] + #[serde(rename="userLocalTime")] pub user_local_time: bool, } @@ -1306,19 +1306,19 @@ pub struct CompatibleFields { /// The kind of resource this is, in this case dfareporting#compatibleFields. pub kind: String, /// Contains items that are compatible to be selected for a report of type "CROSS_DIMENSION_REACH". - #[serde(alias="crossDimensionReachReportCompatibleFields")] + #[serde(rename="crossDimensionReachReportCompatibleFields")] pub cross_dimension_reach_report_compatible_fields: CrossDimensionReachReportCompatibleFields, /// Contains items that are compatible to be selected for a report of type "REACH". - #[serde(alias="reachReportCompatibleFields")] + #[serde(rename="reachReportCompatibleFields")] pub reach_report_compatible_fields: ReachReportCompatibleFields, /// Contains items that are compatible to be selected for a report of type "PATH_TO_CONVERSION". - #[serde(alias="pathToConversionReportCompatibleFields")] + #[serde(rename="pathToConversionReportCompatibleFields")] pub path_to_conversion_report_compatible_fields: PathToConversionReportCompatibleFields, /// Contains items that are compatible to be selected for a report of type "FLOODLIGHT". - #[serde(alias="floodlightReportCompatibleFields")] + #[serde(rename="floodlightReportCompatibleFields")] pub floodlight_report_compatible_fields: FloodlightReportCompatibleFields, /// Contains items that are compatible to be selected for a report of type "STANDARD". - #[serde(alias="reportCompatibleFields")] + #[serde(rename="reportCompatibleFields")] pub report_compatible_fields: ReportCompatibleFields, } @@ -1337,20 +1337,20 @@ impl ResponseResult for CompatibleFields {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Region { /// Region code. - #[serde(alias="regionCode")] + #[serde(rename="regionCode")] pub region_code: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". pub kind: Option, /// DART ID of the country to which this region belongs. - #[serde(alias="countryDartId")] + #[serde(rename="countryDartId")] pub country_dart_id: Option, /// Name of this region. pub name: Option, /// Country code of the country to which this region belongs. - #[serde(alias="countryCode")] + #[serde(rename="countryCode")] pub country_code: Option, /// DART ID of this region. - #[serde(alias="dartId")] + #[serde(rename="dartId")] pub dart_id: Option, } @@ -1368,17 +1368,17 @@ pub struct ReportCriteria { /// The list of standard dimensions the report should include. pub dimensions: Vec, /// The list of names of metrics the report should include. - #[serde(alias="metricNames")] + #[serde(rename="metricNames")] pub metric_names: Vec, /// The date range for which this report should be run. - #[serde(alias="dateRange")] + #[serde(rename="dateRange")] pub date_range: DateRange, /// Custom Rich Media Events group. - #[serde(alias="customRichMediaEvents")] + #[serde(rename="customRichMediaEvents")] pub custom_rich_media_events: CustomRichMediaEvents, /// The list of filters on which dimensions are filtered. /// Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, } @@ -1399,10 +1399,10 @@ pub struct CrossDimensionReachReportCompatibleFields { /// The kind of resource this is, in this case dfareporting#crossDimensionReachReportCompatibleFields. pub kind: String, /// Metrics which are compatible to be selected in the "overlapMetricNames" section of the report. - #[serde(alias="overlapMetrics")] + #[serde(rename="overlapMetrics")] pub overlap_metrics: Vec, /// Dimensions which are compatible to be selected in the "dimensionFilters" section of the report. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, } @@ -1426,20 +1426,20 @@ impl Part for CrossDimensionReachReportCompatibleFields {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UserRole { /// Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions. - #[serde(alias="defaultUserRole")] + #[serde(rename="defaultUserRole")] pub default_user_role: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRole". pub kind: Option, /// Subaccount ID of this user role. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account. pub name: Option, /// ID of the user role that this user role is based on or copied from. This is a required field. - #[serde(alias="parentUserRoleId")] + #[serde(rename="parentUserRoleId")] pub parent_user_role_id: Option, /// Account ID of this user role. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// ID of this user role. This is a read-only, auto-generated field. pub id: Option, @@ -1464,7 +1464,7 @@ impl ResponseResult for UserRole {} #[derive(Default, Clone, Debug, Deserialize)] pub struct EventTagsListResponse { /// Event tag collection. - #[serde(alias="eventTags")] + #[serde(rename="eventTags")] pub event_tags: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#eventTagsListResponse". pub kind: String, @@ -1492,35 +1492,35 @@ pub struct FloodlightActivityGroup { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivityGroup". pub kind: Option, /// Subaccount ID of this floodlight activity group. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this floodlight activity group. This is a required field. Must be less than 65 characters long and cannot contain quotes. pub name: Option, /// Floodlight configuration ID of this floodlight activity group. This is a required field. - #[serde(alias="floodlightConfigurationId")] + #[serde(rename="floodlightConfigurationId")] pub floodlight_configuration_id: Option, /// Advertiser ID of this floodlight activity group. If this field is left blank, the value will be copied over either from the floodlight configuration's advertiser or from the existing activity group's advertiser. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Dimension value for the ID of the floodlight configuration. This is a read-only, auto-generated field. - #[serde(alias="floodlightConfigurationIdDimensionValue")] + #[serde(rename="floodlightConfigurationIdDimensionValue")] pub floodlight_configuration_id_dimension_value: Option, /// Dimension value for the ID of this floodlight activity group. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// Value of the type= parameter in the floodlight tag, which the ad servers use to identify the activity group that the activity belongs to. 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 activity groups of the same floodlight configuration. This field is read-only after insertion. - #[serde(alias="tagString")] + #[serde(rename="tagString")] pub tag_string: Option, /// Type of the floodlight activity group. This is a required field that is read-only after insertion. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// ID of this floodlight activity group. This is a read-only, auto-generated field. pub id: Option, /// Account ID of this floodlight activity group. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -1564,81 +1564,81 @@ pub struct Campaign { /// Arbitrary comments about this campaign. Must be less than 256 characters long. pub comment: Option, /// Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: Option, /// Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: Option, /// Click-through URL suffix override properties for this campaign. - #[serde(alias="clickThroughUrlSuffixProperties")] + #[serde(rename="clickThroughUrlSuffixProperties")] pub click_through_url_suffix_properties: Option, /// Whether this campaign has been archived. pub archived: Option, /// Additional creative optimization configurations for the campaign. - #[serde(alias="additionalCreativeOptimizationConfigurations")] + #[serde(rename="additionalCreativeOptimizationConfigurations")] pub additional_creative_optimization_configurations: Option>, /// Advertiser ID of this campaign. This is a required field. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. - #[serde(alias="audienceSegmentGroups")] + #[serde(rename="audienceSegmentGroups")] pub audience_segment_groups: Option>, /// Information about the creation of this campaign. This is a read-only field. - #[serde(alias="createInfo")] + #[serde(rename="createInfo")] pub create_info: Option, /// Click-through event tag ID override properties for this campaign. - #[serde(alias="defaultClickThroughEventTagProperties")] + #[serde(rename="defaultClickThroughEventTagProperties")] pub default_click_through_event_tag_properties: Option, /// Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// Overrides that can be used to activate or deactivate advertiser event tags. - #[serde(alias="eventTagOverrides")] + #[serde(rename="eventTagOverrides")] pub event_tag_overrides: Option>, /// Creative optimization configuration for the campaign. - #[serde(alias="creativeOptimizationConfiguration")] + #[serde(rename="creativeOptimizationConfiguration")] pub creative_optimization_configuration: Option, /// ID of this campaign. This is a read-only auto-generated field. pub id: Option, /// Account ID of this campaign. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Campaign trafficker contact emails. - #[serde(alias="traffickerEmails")] + #[serde(rename="traffickerEmails")] pub trafficker_emails: Option>, /// List of creative group IDs that are assigned to the campaign. - #[serde(alias="creativeGroupIds")] + #[serde(rename="creativeGroupIds")] pub creative_group_ids: Option>, /// Subaccount ID of this campaign. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. pub name: Option, /// Lookback window settings for the campaign. - #[serde(alias="lookbackConfiguration")] + #[serde(rename="lookbackConfiguration")] pub lookback_configuration: Option, /// Whether Nielsen reports are enabled for this campaign. - #[serde(alias="nielsenOcrEnabled")] + #[serde(rename="nielsenOcrEnabled")] pub nielsen_ocr_enabled: Option, /// Information about the most recent modification of this campaign. This is a read-only field. - #[serde(alias="lastModifiedInfo")] + #[serde(rename="lastModifiedInfo")] pub last_modified_info: Option, /// Whether comScore vCE reports are enabled for this campaign. - #[serde(alias="comscoreVceEnabled")] + #[serde(rename="comscoreVceEnabled")] pub comscore_vce_enabled: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". pub kind: Option, /// External ID for this campaign. - #[serde(alias="externalId")] + #[serde(rename="externalId")] pub external_id: Option, /// Advertiser group ID of the associated advertiser. - #[serde(alias="advertiserGroupId")] + #[serde(rename="advertiserGroupId")] pub advertiser_group_id: Option, /// Dimension value for the ID of this campaign. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Billing invoice code included in the DCM client billing invoices associated with the campaign. - #[serde(alias="billingInvoiceCode")] + #[serde(rename="billingInvoiceCode")] pub billing_invoice_code: Option, } @@ -1660,43 +1660,43 @@ impl ResponseResult for Campaign {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ChangeLog { /// Time when the object was modified. - #[serde(alias="changeTime")] + #[serde(rename="changeTime")] pub change_time: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#changeLog". pub kind: String, /// Subaccount ID of the modified object. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: String, /// Old value of the object field. - #[serde(alias="oldValue")] + #[serde(rename="oldValue")] pub old_value: String, /// ID of the object of this change log. The object could be a campaign, placement, ad, or other type. - #[serde(alias="objectId")] + #[serde(rename="objectId")] pub object_id: String, /// ID of this change log. pub id: String, /// User profile name of the user who modified the object. - #[serde(alias="userProfileName")] + #[serde(rename="userProfileName")] pub user_profile_name: String, /// Field name of the object which changed. - #[serde(alias="fieldName")] + #[serde(rename="fieldName")] pub field_name: String, /// ID of the user who modified the object. - #[serde(alias="userProfileId")] + #[serde(rename="userProfileId")] pub user_profile_id: String, /// Action which caused the change. pub action: String, /// Transaction ID of this change log. When a single API call results in many changes, each change will have a separate ID in the change log but will share the same transactionId. - #[serde(alias="transactionId")] + #[serde(rename="transactionId")] pub transaction_id: String, /// Account ID of the modified object. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, /// New value of the object field. - #[serde(alias="newValue")] + #[serde(rename="newValue")] pub new_value: String, /// Object type of the change log. - #[serde(alias="objectType")] + #[serde(rename="objectType")] pub object_type: String, } @@ -1725,20 +1725,20 @@ pub struct File { /// The output format of the report. Only available once the file is available. pub format: String, /// The date range for which the file has report data. The date range will always be the absolute date range for which the report is run. - #[serde(alias="dateRange")] + #[serde(rename="dateRange")] pub date_range: DateRange, /// The filename of the file. - #[serde(alias="fileName")] + #[serde(rename="fileName")] pub file_name: String, /// The eTag of this response for caching purposes. pub etag: String, /// The ID of the report this file was generated from. - #[serde(alias="reportId")] + #[serde(rename="reportId")] pub report_id: String, /// The URLs where the completed report file can be downloaded. pub urls: FileUrls, /// The timestamp in milliseconds since epoch when this file was last modified. - #[serde(alias="lastModifiedTime")] + #[serde(rename="lastModifiedTime")] pub last_modified_time: String, /// The unique ID of this report file. pub id: String, @@ -1772,16 +1772,16 @@ pub struct ReportCrossDimensionReachCriteria { /// Whether the report is pivoted or not. Defaults to true. pub pivoted: bool, /// The list of names of overlap metrics the report should include. - #[serde(alias="overlapMetricNames")] + #[serde(rename="overlapMetricNames")] pub overlap_metric_names: Vec, /// The list of names of metrics the report should include. - #[serde(alias="metricNames")] + #[serde(rename="metricNames")] pub metric_names: Vec, /// The date range this report should be run for. - #[serde(alias="dateRange")] + #[serde(rename="dateRange")] pub date_range: DateRange, /// The list of filters on which dimensions are filtered. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, /// The dimension option. pub dimension: String, @@ -1798,7 +1798,7 @@ impl Part for ReportCrossDimensionReachCriteria {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct AudienceSegmentGroup { /// Audience segments assigned to this group. The number of segments must be between 2 and 100. - #[serde(alias="audienceSegments")] + #[serde(rename="audienceSegments")] pub audience_segments: Vec, /// ID of this audience segment group. This is a read-only, auto-generated field. pub id: String, @@ -1826,7 +1826,7 @@ pub struct PlacementStrategy { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementStrategy". pub kind: Option, /// Account ID of this placement strategy.This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// ID of this placement strategy. This is a read-only, auto-generated field. pub id: Option, @@ -1845,10 +1845,10 @@ impl ResponseResult for PlacementStrategy {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PlacementTag { /// Tags generated for this placement. - #[serde(alias="tagDatas")] + #[serde(rename="tagDatas")] pub tag_datas: Vec, /// Placement ID - #[serde(alias="placementId")] + #[serde(rename="placementId")] pub placement_id: String, } @@ -1882,13 +1882,13 @@ impl ResponseResult for CountriesListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ClickThroughUrl { /// ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. - #[serde(alias="landingPageId")] + #[serde(rename="landingPageId")] pub landing_page_id: String, /// Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. - #[serde(alias="customClickThroughUrl")] + #[serde(rename="customClickThroughUrl")] pub custom_click_through_url: String, /// Whether the campaign default landing page is used. - #[serde(alias="defaultLandingPage")] + #[serde(rename="defaultLandingPage")] pub default_landing_page: bool, } @@ -1902,10 +1902,10 @@ impl Part for ClickThroughUrl {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CompanionClickThroughOverride { /// Click-through URL of this companion click-through override. - #[serde(alias="clickThroughUrl")] + #[serde(rename="clickThroughUrl")] pub click_through_url: ClickThroughUrl, /// ID of the creative for this companion click-through override. - #[serde(alias="creativeId")] + #[serde(rename="creativeId")] pub creative_id: String, } @@ -1940,7 +1940,7 @@ impl Part for FrequencyCap {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CampaignCreativeAssociation { /// ID of the creative associated with the campaign. This is a required field. - #[serde(alias="creativeId")] + #[serde(rename="creativeId")] pub creative_id: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignCreativeAssociation". pub kind: Option, @@ -1965,7 +1965,7 @@ pub struct OperatingSystemVersionsListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersionsListResponse". pub kind: String, /// Operating system version collection. - #[serde(alias="operatingSystemVersions")] + #[serde(rename="operatingSystemVersions")] pub operating_system_versions: Vec, } @@ -1989,7 +1989,7 @@ pub struct ContentCategory { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#contentCategory". pub kind: Option, /// Account ID of this content category. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Description of this content category. pub description: Option, @@ -2022,35 +2022,35 @@ pub struct Placement { /// Comments for this placement. pub comment: Option, /// Campaign ID of this placement. This field is a required field on insertion. - #[serde(alias="campaignId")] + #[serde(rename="campaignId")] pub campaign_id: Option, /// Payment source for this placement. This is a required field that is read-only after insertion. - #[serde(alias="paymentSource")] + #[serde(rename="paymentSource")] pub payment_source: Option, /// Dimension value for the ID of the directory site. This is a read-only, auto-generated field. - #[serde(alias="directorySiteIdDimensionValue")] + #[serde(rename="directorySiteIdDimensionValue")] pub directory_site_id_dimension_value: Option, /// Advertiser ID of this placement. This field can be left blank. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Key name of this placement. This is a read-only, auto-generated field. - #[serde(alias="keyName")] + #[serde(rename="keyName")] pub key_name: Option, /// Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion. - #[serde(alias="directorySiteId")] + #[serde(rename="directorySiteId")] pub directory_site_id: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// ID of the content category assigned to this placement. - #[serde(alias="contentCategoryId")] + #[serde(rename="contentCategoryId")] pub content_category_id: Option, /// Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion. pub size: Option, /// Whether this placement is archived. pub archived: Option, /// Information about the last publisher update. This is a read-only field. - #[serde(alias="publisherUpdateInfo")] + #[serde(rename="publisherUpdateInfo")] pub publisher_update_info: Option, /// Tag formats to generate for this placement. This field is required on insertion. /// Acceptable values are: @@ -2067,70 +2067,70 @@ pub struct Placement { /// - "PLACEMENT_TAG_TRACKING" /// - "PLACEMENT_TAG_TRACKING_IFRAME" /// - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - #[serde(alias="tagFormats")] + #[serde(rename="tagFormats")] pub tag_formats: Option>, /// Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements. - #[serde(alias="paymentApproved")] + #[serde(rename="paymentApproved")] pub payment_approved: Option, /// Tag settings for this placement. - #[serde(alias="tagSetting")] + #[serde(rename="tagSetting")] pub tag_setting: Option, /// ID of this placement. This is a read-only, auto-generated field. pub id: Option, /// External ID for this placement. - #[serde(alias="externalId")] + #[serde(rename="externalId")] pub external_id: Option, /// Dimension value for the ID of this placement. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Account ID of this placement. This field can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Whether creatives assigned to this placement must be SSL-compliant. - #[serde(alias="sslRequired")] + #[serde(rename="sslRequired")] pub ssl_required: Option, /// Third-party placement status. pub status: Option, /// Dimension value for the ID of the campaign. This is a read-only, auto-generated field. - #[serde(alias="campaignIdDimensionValue")] + #[serde(rename="campaignIdDimensionValue")] pub campaign_id_dimension_value: Option, /// Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement. pub primary: Option, /// ID of this placement's group, if applicable. - #[serde(alias="placementGroupId")] + #[serde(rename="placementGroupId")] pub placement_group_id: Option, /// Information about the creation of this placement. This is a read-only field. - #[serde(alias="createInfo")] + #[serde(rename="createInfo")] pub create_info: Option, /// Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion. - #[serde(alias="siteId")] + #[serde(rename="siteId")] pub site_id: Option, /// Dimension value for the ID of the site. This is a read-only, auto-generated field. - #[serde(alias="siteIdDimensionValue")] + #[serde(rename="siteIdDimensionValue")] pub site_id_dimension_value: Option, /// Placement compatibility. WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices 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. This field is required on insertion. pub compatibility: Option, /// ID of the placement strategy assigned to this placement. - #[serde(alias="placementStrategyId")] + #[serde(rename="placementStrategyId")] pub placement_strategy_id: Option, /// Dimension value for the ID of the placement group. This is a read-only, auto-generated field. - #[serde(alias="placementGroupIdDimensionValue")] + #[serde(rename="placementGroupIdDimensionValue")] pub placement_group_id_dimension_value: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement". pub kind: Option, /// Subaccount ID of this placement. This field can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this placement.This is a required field and must be less than 256 characters long. pub name: Option, /// Lookback window settings for this placement. - #[serde(alias="lookbackConfiguration")] + #[serde(rename="lookbackConfiguration")] pub lookback_configuration: Option, /// Information about the most recent modification of this placement. This is a read-only field. - #[serde(alias="lastModifiedInfo")] + #[serde(rename="lastModifiedInfo")] pub last_modified_info: Option, /// Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType. - #[serde(alias="pricingSchedule")] + #[serde(rename="pricingSchedule")] pub pricing_schedule: Option, } @@ -2150,7 +2150,7 @@ pub struct FloodlightReportCompatibleFields { /// The kind of resource this is, in this case dfareporting#floodlightReportCompatibleFields. pub kind: String, /// Dimensions which are compatible to be selected in the "dimensionFilters" section of the report. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, /// Dimensions which are compatible to be selected in the "dimensions" section of the report. pub dimensions: Vec, @@ -2166,7 +2166,7 @@ impl Part for FloodlightReportCompatibleFields {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeAssetId { /// Type of asset to upload. This is a required field. IMAGE is solely used for IMAGE creatives. Other image assets should use HTML_IMAGE. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Name of the creative asset. This is a required field while inserting an asset. After insertion, this assetIdentifier is used to identify the uploaded asset. Characters in the name must be alphanumeric or one of the following: ".-_ ". Spaces are allowed. pub name: String, @@ -2182,7 +2182,7 @@ impl Part for CreativeAssetId {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DirectorySiteContactAssignment { /// ID of this directory site contact. This is a read-only, auto-generated field. - #[serde(alias="contactId")] + #[serde(rename="contactId")] pub contact_id: String, /// 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: String, @@ -2202,7 +2202,7 @@ pub struct CreativeAssignment { /// Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. pub sequence: i32, /// Click-through URL of the creative assignment. - #[serde(alias="clickThroughUrl")] + #[serde(rename="clickThroughUrl")] pub click_through_url: ClickThroughUrl, /// Rich media exit overrides for this creative assignment. /// Applicable when the creative type is any of the following: @@ -2217,33 +2217,33 @@ pub struct CreativeAssignment { /// - ADVANCED_BANNER /// - VPAID_LINEAR /// - VPAID_NON_LINEAR - #[serde(alias="richMediaExitOverrides")] + #[serde(rename="richMediaExitOverrides")] pub rich_media_exit_overrides: Vec, /// Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. - #[serde(alias="applyEventTags")] + #[serde(rename="applyEventTags")] pub apply_event_tags: bool, /// Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. - #[serde(alias="creativeGroupAssignments")] + #[serde(rename="creativeGroupAssignments")] pub creative_group_assignments: Vec, /// Companion creative overrides for this creative assignment. Applicable to video ads. - #[serde(alias="companionCreativeOverrides")] + #[serde(rename="companionCreativeOverrides")] pub companion_creative_overrides: Vec, /// Date and time that the assigned creative should start serving. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: String, /// Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. - #[serde(alias="sslCompliant")] + #[serde(rename="sslCompliant")] pub ssl_compliant: bool, /// Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. pub active: bool, /// ID of the creative to be assigned. This is a required field. - #[serde(alias="creativeId")] + #[serde(rename="creativeId")] pub creative_id: String, /// Date and time that the assigned creative should stop serving. Must be later than the start time. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: String, /// Dimension value for the ID of the creative. This is a read-only, auto-generated field. - #[serde(alias="creativeIdDimensionValue")] + #[serde(rename="creativeIdDimensionValue")] pub creative_id_dimension_value: DimensionValue, } @@ -2262,15 +2262,15 @@ impl Part for CreativeAssignment {} #[derive(Default, Clone, Debug, Serialize)] pub struct DimensionValueRequest { /// The name of the dimension for which values should be requested. - #[serde(alias="dimensionName")] + #[serde(rename="dimensionName")] pub dimension_name: Option, /// The start date of the date range for which to retrieve dimension values. A string of the format "yyyy-MM-dd". - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: Option, /// The kind of request this is, in this case dfareporting#dimensionValueRequest. pub kind: Option, /// The end date of the date range for which to retrieve dimension values. A string of the format "yyyy-MM-dd". - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: Option, /// The list of filters by which to filter values. The filters are ANDed. pub filters: Option>, @@ -2286,10 +2286,10 @@ impl RequestValue for DimensionValueRequest {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct DefaultClickThroughEventTagProperties { /// Whether this entity should override the inherited default click-through event tag with its own defined value. - #[serde(alias="overrideInheritedEventTag")] + #[serde(rename="overrideInheritedEventTag")] pub override_inherited_event_tag: bool, /// ID of the click-through event tag to apply to all ads in this entity's scope. - #[serde(alias="defaultClickThroughEventTagId")] + #[serde(rename="defaultClickThroughEventTagId")] pub default_click_through_event_tag_id: String, } @@ -2330,7 +2330,7 @@ impl ResponseResult for UserProfileList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SubaccountsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#subaccountsListResponse". pub kind: String, @@ -2362,35 +2362,35 @@ impl ResponseResult for SubaccountsListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Report { /// The user profile id of the owner of this report. - #[serde(alias="ownerProfileId")] + #[serde(rename="ownerProfileId")] pub owner_profile_id: Option, /// The subaccount ID to which this report belongs if applicable. - #[serde(alias="subAccountId")] + #[serde(rename="subAccountId")] pub sub_account_id: Option, /// The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY". pub schedule: Option, /// The report criteria for a report of type "PATH_TO_CONVERSION". - #[serde(alias="pathToConversionCriteria")] + #[serde(rename="pathToConversionCriteria")] pub path_to_conversion_criteria: Option, /// The report criteria for a report of type "REACH". - #[serde(alias="reachCriteria")] + #[serde(rename="reachCriteria")] pub reach_criteria: Option, /// The report criteria for a report of type "FLOODLIGHT". - #[serde(alias="floodlightCriteria")] + #[serde(rename="floodlightCriteria")] pub floodlight_criteria: Option, /// The filename used when generating report files for this report. - #[serde(alias="fileName")] + #[serde(rename="fileName")] pub file_name: Option, /// The report's email delivery settings. pub delivery: Option, /// The timestamp (in milliseconds since epoch) of when this report was last modified. - #[serde(alias="lastModifiedTime")] + #[serde(rename="lastModifiedTime")] pub last_modified_time: Option, /// The report criteria for a report of type "CROSS_DIMENSION_REACH". - #[serde(alias="crossDimensionReachCriteria")] + #[serde(rename="crossDimensionReachCriteria")] pub cross_dimension_reach_criteria: Option, /// The account ID to which this report belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// The kind of resource this is, in this case dfareporting#report. pub kind: Option, @@ -2405,7 +2405,7 @@ pub struct Report { /// The report criteria for a report of type "STANDARD". pub criteria: Option, /// The type of the report. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, } @@ -2448,7 +2448,7 @@ impl Resource for PlatformType {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdvertisersListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Advertiser collection. pub advertisers: Vec, @@ -2471,32 +2471,32 @@ impl ResponseResult for AdvertisersListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeAsset { /// Detected MIME type for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="mimeType")] + #[serde(rename="mimeType")] pub mime_type: Option, /// Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="artworkType")] + #[serde(rename="artworkType")] pub artwork_type: Option, /// Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="positionLeftUnit")] + #[serde(rename="positionLeftUnit")] pub position_left_unit: 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(alias="collapsedSize")] + #[serde(rename="collapsedSize")] pub collapsed_size: Option, /// Flash version of the asset. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE, ENHANCED_BANNER, all RICH_MEDIA, and all VPAID. - #[serde(alias="flashVersion")] + #[serde(rename="flashVersion")] pub flash_version: Option, /// Whether the asset pushes down other content. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable when the asset offsets are 0, the collapsedSize.width matches size.width, and the collapsedSize.height is less than size.height. pub pushdown: Option, /// Whether to hide Flash objects flag for an asset. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="hideFlashObjects")] + #[serde(rename="hideFlashObjects")] pub hide_flash_objects: Option, /// List of feature dependencies for the creative asset that are detected by DCM. 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: ENHANCED_BANNER and HTML5_BANNER. - #[serde(alias="detectedFeatures")] + #[serde(rename="detectedFeatures")] pub detected_features: Option>, /// Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_VIDEO and VPAID_LINEAR. pub duration: 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(alias="positionTopUnit")] + #[serde(rename="positionTopUnit")] pub position_top_unit: Option, /// Numeric ID of this creative asset. This is a required field and should not be modified. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. pub id: Option, @@ -2505,19 +2505,19 @@ pub struct CreativeAsset { /// 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: ENHANCED_BANNER, ENHANCED_IMAGE, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. pub size: Option, /// Whether the asset is horizontally locked. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="horizontallyLocked")] + #[serde(rename="horizontallyLocked")] pub horizontally_locked: Option, /// Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="startTimeType")] + #[serde(rename="startTimeType")] pub start_time_type: Option, /// Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="displayType")] + #[serde(rename="displayType")] pub display_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(alias="expandedDimension")] + #[serde(rename="expandedDimension")] pub expanded_dimension: Option, /// Whether the asset is vertically locked. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="verticallyLocked")] + #[serde(rename="verticallyLocked")] pub vertically_locked: 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 ENHANCED_BANNER, FLASH_INPAGE, HTML5_BANNER, IMAGE, IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), and all VPAID creatives. @@ -2530,69 +2530,69 @@ pub struct CreativeAsset { /// For VPAID_LINEAR 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 creative. pub role: Option, /// Size of zip file. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. - #[serde(alias="zipFilesize")] + #[serde(rename="zipFilesize")] pub zip_filesize: Option, /// Detected bit-rate for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="bitRate")] + #[serde(rename="bitRate")] pub bit_rate: Option, /// Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_INPAGE, and RICH_MEDIA_INPAGE_FLOATING. - #[serde(alias="windowMode")] + #[serde(rename="windowMode")] pub window_mode: Option, /// Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="progressiveServingUrl")] + #[serde(rename="progressiveServingUrl")] pub progressive_serving_url: Option, /// Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="durationType")] + #[serde(rename="durationType")] pub duration_type: Option, /// Detected video duration for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="videoDuration")] + #[serde(rename="videoDuration")] pub video_duration: Option, /// File size associated with this creative asset. This is a read-only field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. - #[serde(alias="fileSize")] + #[serde(rename="fileSize")] pub file_size: Option, /// Offset position for an asset in collapsed mode. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, only applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. pub offset: Option, /// Whether the video asset is active. This is a read-only field for VPAID_NON_LINEAR assets. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. pub active: Option, /// Whether the backup asset is original or changed by the user in DCM. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="originalBackup")] + #[serde(rename="originalBackup")] pub original_backup: Option, /// Whether to hide selection boxes flag for an asset. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="hideSelectionBoxes")] + #[serde(rename="hideSelectionBoxes")] pub hide_selection_boxes: Option, /// Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="streamingServingUrl")] + #[serde(rename="streamingServingUrl")] pub streaming_serving_url: Option, /// zIndex value of an asset. This is a read-only field. 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. - #[serde(alias="zIndex")] + #[serde(rename="zIndex")] pub z_index: Option, /// Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID. - #[serde(alias="childAssetType")] + #[serde(rename="childAssetType")] pub child_asset_type: Option, /// Exit event configured for the backup image. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="backupImageExit")] + #[serde(rename="backupImageExit")] pub backup_image_exit: Option, /// Whether ActionScript3 is enabled for the flash asset. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE and ENHANCED_BANNER. - #[serde(alias="actionScript3")] + #[serde(rename="actionScript3")] pub action_script3: Option, /// Pushdown duration in seconds for an asset. Must be between 0 and 9.99. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable when the asset pushdown field is true, the offsets are 0, the collapsedSize.width matches size.width, and the collapsedSize.height is less than size.height. - #[serde(alias="pushdownDuration")] + #[serde(rename="pushdownDuration")] pub pushdown_duration: 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(alias="assetIdentifier")] + #[serde(rename="assetIdentifier")] pub asset_identifier: Option, /// Whether the asset is transparent. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. pub transparency: Option, /// Whether the asset is SSL-compliant. This is a read-only field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. - #[serde(alias="sslCompliant")] + #[serde(rename="sslCompliant")] pub ssl_compliant: Option, /// Offset position for an asset. Applicable to the following creative types: all RICH_MEDIA. pub position: Option, /// Custom start time in seconds for making the asset visible. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="customStartTimeValue")] + #[serde(rename="customStartTimeValue")] pub custom_start_time_value: Option, /// File name of zip file. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. - #[serde(alias="zipFilename")] + #[serde(rename="zipFilename")] pub zip_filename: Option, } @@ -2611,12 +2611,12 @@ impl Resource for CreativeAsset {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DirectorySitesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySitesListResponse". pub kind: String, /// Directory site collection. - #[serde(alias="directorySites")] + #[serde(rename="directorySites")] pub directory_sites: Vec, } @@ -2687,7 +2687,7 @@ impl ResponseResult for UserRolePermissionGroup {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ClickTag { /// Advertiser event name associated with the click tag. This field is used by ENHANCED_BANNER, ENHANCED_IMAGE, and HTML5_BANNER creatives. - #[serde(alias="eventName")] + #[serde(rename="eventName")] pub event_name: String, /// Parameter name for the specified click tag. For ENHANCED_IMAGE creative assets, this field must match the value of the creative asset's creativeAssetId.name field. pub name: String, @@ -2747,7 +2747,7 @@ impl ResponseResult for BrowsersListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ObjectFilter { /// Applicable when status is ASSIGNED. The user has access to objects with these object IDs. - #[serde(alias="objectIds")] + #[serde(rename="objectIds")] pub object_ids: Vec, /// 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: String, @@ -2765,10 +2765,10 @@ impl Part for ObjectFilter {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeSettings { /// Header text for iFrames for this site. Must be less than or equal to 2000 characters long. - #[serde(alias="iFrameHeader")] + #[serde(rename="iFrameHeader")] pub i_frame_header: String, /// Header text for iFrames for this site. Must be less than or equal to 2000 characters long. - #[serde(alias="iFrameFooter")] + #[serde(rename="iFrameFooter")] pub i_frame_footer: String, } @@ -2807,22 +2807,22 @@ impl Part for Dimension {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeField { /// Advertiser ID of this creative field. This is a required field on insertion. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativeField". pub kind: Option, /// Subaccount ID of this creative field. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this creative field. This is a required field and must be less than 256 characters long and unique among creative fields of the same advertiser. pub name: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// ID of this creative field. This is a read-only, auto-generated field. pub id: Option, /// Account ID of this creative field. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -2846,7 +2846,7 @@ pub struct DirectorySite { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite". pub kind: String, /// Country ID of this directory site. - #[serde(alias="countryId")] + #[serde(rename="countryId")] pub country_id: String, /// Description of this directory site. pub description: String, @@ -2890,7 +2890,7 @@ pub struct DirectorySite { /// - "34" for VEF /// - "35" for COP /// - "36" for GTQ - #[serde(alias="currencyId")] + #[serde(rename="currencyId")] pub currency_id: String, /// Tag types for regular placements. /// @@ -2899,15 +2899,15 @@ pub struct DirectorySite { /// - "IFRAME_JAVASCRIPT_INPAGE" /// - "INTERNAL_REDIRECT_INPAGE" /// - "JAVASCRIPT_INPAGE" - #[serde(alias="inpageTagFormats")] + #[serde(rename="inpageTagFormats")] pub inpage_tag_formats: Vec, /// URL of this directory site. pub url: String, /// Directory site contacts. - #[serde(alias="contactAssignments")] + #[serde(rename="contactAssignments")] pub contact_assignments: Vec, /// Parent directory site ID. - #[serde(alias="parentId")] + #[serde(rename="parentId")] pub parent_id: String, /// Tag types for interstitial placements. /// @@ -2915,10 +2915,10 @@ pub struct DirectorySite { /// - "IFRAME_JAVASCRIPT_INTERSTITIAL" /// - "INTERNAL_REDIRECT_INTERSTITIAL" /// - "JAVASCRIPT_INTERSTITIAL" - #[serde(alias="interstitialTagFormats")] + #[serde(rename="interstitialTagFormats")] pub interstitial_tag_formats: Vec, /// Dimension value for the ID of this directory site. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: DimensionValue, /// Whether this directory site is active. pub active: bool, @@ -2970,7 +2970,7 @@ pub struct CreativeGroup { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativeGroup". pub kind: Option, /// Subaccount ID of this creative group. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this creative group. This is a required field and must be less than 256 characters long and unique among creative groups of the same advertiser. pub name: Option, @@ -2978,18 +2978,18 @@ pub struct CreativeGroup { /// Acceptable values are: /// - 1 /// - 2 - #[serde(alias="groupNumber")] + #[serde(rename="groupNumber")] pub group_number: Option, /// Advertiser ID of this creative group. This is a required field on insertion. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// ID of this creative group. This is a read-only, auto-generated field. pub id: Option, /// Account ID of this creative group. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -3020,13 +3020,13 @@ impl Part for Metric {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct RichMediaExitOverride { /// Click-through URL to override the default exit URL. Applicable if the useCustomExitUrl field is set to true. - #[serde(alias="customExitUrl")] + #[serde(rename="customExitUrl")] pub custom_exit_url: String, /// Whether to use the custom exit URL. - #[serde(alias="useCustomExitUrl")] + #[serde(rename="useCustomExitUrl")] pub use_custom_exit_url: bool, /// ID for the override to refer to a specific exit in the creative. - #[serde(alias="exitId")] + #[serde(rename="exitId")] pub exit_id: String, } @@ -3045,7 +3045,7 @@ impl Part for RichMediaExitOverride {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountPermissionsListResponse { /// Account permission collection. - #[serde(alias="accountPermissions")] + #[serde(rename="accountPermissions")] pub account_permissions: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountPermissionsListResponse". pub kind: String, @@ -3068,7 +3068,7 @@ pub struct PlacementsGenerateTagsResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementsGenerateTagsResponse". pub kind: String, /// Set of generated tags for the specified placements. - #[serde(alias="placementTags")] + #[serde(rename="placementTags")] pub placement_tags: Vec, } @@ -3116,12 +3116,12 @@ impl ResponseResult for CreativeFieldValue {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FloodlightActivityGroupsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivityGroupsListResponse". pub kind: String, /// Floodlight activity group collection. - #[serde(alias="floodlightActivityGroups")] + #[serde(rename="floodlightActivityGroups")] pub floodlight_activity_groups: Vec, } @@ -3140,10 +3140,10 @@ impl ResponseResult for FloodlightActivityGroupsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DirectorySiteContactsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Directory site contact collection - #[serde(alias="directorySiteContacts")] + #[serde(rename="directorySiteContacts")] pub directory_site_contacts: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySiteContactsListResponse". pub kind: String, @@ -3159,32 +3159,32 @@ impl ResponseResult for DirectorySiteContactsListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeCustomEvent { /// Target type used by the event. - #[serde(alias="targetType")] + #[serde(rename="targetType")] pub target_type: String, /// Artwork type used by the creative.This is a read-only field. - #[serde(alias="artworkType")] + #[serde(rename="artworkType")] pub artwork_type: String, /// Reporting ID, used to differentiate multiple videos in a single creative. - #[serde(alias="videoReportingId")] + #[serde(rename="videoReportingId")] pub video_reporting_id: String, /// Properties for rich media popup windows. This field is used only for exit events. - #[serde(alias="popupWindowProperties")] + #[serde(rename="popupWindowProperties")] pub popup_window_properties: PopupWindowProperties, /// Artwork label column, used to link events in DCM back to events in Studio. This is a required field and should not be modified after insertion. - #[serde(alias="artworkLabel")] + #[serde(rename="artworkLabel")] pub artwork_label: String, /// Whether the event is active. pub active: bool, /// Type of the event. This is a read-only field. - #[serde(alias="advertiserCustomEventType")] + #[serde(rename="advertiserCustomEventType")] pub advertiser_custom_event_type: String, /// Exit URL of the event. This field is used only for exit events. - #[serde(alias="exitUrl")] + #[serde(rename="exitUrl")] pub exit_url: String, /// ID of this event. This is a required field and should not be modified after insertion. pub id: String, /// User-entered name for the event. - #[serde(alias="advertiserCustomEventName")] + #[serde(rename="advertiserCustomEventName")] pub advertiser_custom_event_name: String, } @@ -3203,7 +3203,7 @@ impl Part for CreativeCustomEvent {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CreativesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativesListResponse". pub kind: String, @@ -3221,10 +3221,10 @@ impl ResponseResult for CreativesListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct OmnitureSettings { /// Whether placement cost data will be sent to Omniture. This property can be enabled only if omnitureIntegrationEnabled is true. - #[serde(alias="omnitureCostDataEnabled")] + #[serde(rename="omnitureCostDataEnabled")] pub omniture_cost_data_enabled: bool, /// Whether Omniture integration is enabled. This property can be enabled only when the "Advanced Ad Serving" account setting is enabled. - #[serde(alias="omnitureIntegrationEnabled")] + #[serde(rename="omnitureIntegrationEnabled")] pub omniture_integration_enabled: bool, } @@ -3240,15 +3240,15 @@ pub struct PathToConversionReportCompatibleFields { /// Metrics which are compatible to be selected in the "metricNames" section of the report. pub metrics: Vec, /// Per-interaction dimensions which are compatible to be selected in the "perInteractionDimensions" section of the report. - #[serde(alias="perInteractionDimensions")] + #[serde(rename="perInteractionDimensions")] pub per_interaction_dimensions: Vec, /// The kind of resource this is, in this case dfareporting#pathToConversionReportCompatibleFields. pub kind: String, /// Conversion dimensions which are compatible to be selected in the "conversionDimensions" section of the report. - #[serde(alias="conversionDimensions")] + #[serde(rename="conversionDimensions")] pub conversion_dimensions: Vec, /// Custom floodlight variables which are compatible to be selected in the "customFloodlightVariables" section of the report. - #[serde(alias="customFloodlightVariables")] + #[serde(rename="customFloodlightVariables")] pub custom_floodlight_variables: Vec, } @@ -3269,7 +3269,7 @@ pub struct MobileCarriersListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarriersListResponse". pub kind: String, /// Mobile carrier collection. - #[serde(alias="mobileCarriers")] + #[serde(rename="mobileCarriers")] pub mobile_carriers: Vec, } @@ -3309,112 +3309,112 @@ impl Part for FloodlightActivityDynamicTag {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] 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(alias="artworkType")] + #[serde(rename="artworkType")] pub artwork_type: Option, /// Latest Studio trafficked creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="latestTraffickedCreativeId")] + #[serde(rename="latestTraffickedCreativeId")] pub latest_trafficked_creative_id: Option, /// List of counter events configured for the creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="counterCustomEvents")] + #[serde(rename="counterCustomEvents")] pub counter_custom_events: Option>, /// Advertiser ID of this creative. This is a required field. Applicable to all creative types. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Whether the creative is active. Applicable to all creative types. pub active: Option, /// List of timer events configured for the creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="timerCustomEvents")] + #[serde(rename="timerCustomEvents")] pub timer_custom_events: Option>, /// Dimension value for the rendering ID of this creative. This is a read-only field. Applicable to all creative types. - #[serde(alias="renderingIdDimensionValue")] + #[serde(rename="renderingIdDimensionValue")] pub rendering_id_dimension_value: Option, /// OpenWindow FSCommand of this creative. This lets the SWF file communicate with either Flash Player or the program hosting Flash Player, such as a web browser. This is only triggered if allowScriptAccess field is true. Applicable to the following creative types: FLASH_INPAGE. - #[serde(alias="fsCommand")] + #[serde(rename="fsCommand")] pub fs_command: Option, /// ID of this creative. This is a read-only, auto-generated field. Applicable to all creative types. pub id: Option, /// Account ID of this creative. This field, if left unset, will be auto-generated for both insert and update operations. Applicable to all creative types. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Studio trafficked creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="studioTraffickedCreativeId")] + #[serde(rename="studioTraffickedCreativeId")] pub studio_trafficked_creative_id: Option, /// Whether the creative is archived. Applicable to all creative types. pub archived: Option, /// Override CSS value for rich media creatives. Applicable to the following creative types: all RICH_MEDIA. - #[serde(alias="overrideCss")] + #[serde(rename="overrideCss")] pub override_css: Option, /// Whether script access is allowed for this creative. This is a read-only and deprecated field which will automatically be set to true on update. Applicable to the following creative types: FLASH_INPAGE. - #[serde(alias="allowScriptAccess")] + #[serde(rename="allowScriptAccess")] pub allow_script_access: Option, /// The internal Flash version for this creative as calculated by DoubleClick Studio. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE, ENHANCED_BANNER, all RICH_MEDIA, and all VPAID. - #[serde(alias="requiredFlashVersion")] + #[serde(rename="requiredFlashVersion")] pub required_flash_version: Option, /// List of exit events configured for the creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="exitCustomEvents")] + #[serde(rename="exitCustomEvents")] pub exit_custom_events: Option>, /// ID of current rendering version. This is a read-only field. Applicable to all creative types. - #[serde(alias="renderingId")] + #[serde(rename="renderingId")] pub rendering_id: Option, /// Description of the video ad. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="videoDescription")] + #[serde(rename="videoDescription")] pub video_description: Option, /// Third-party URL used to record backup image impressions. Applicable to the following creative types: all RICH_MEDIA - #[serde(alias="thirdPartyBackupImageImpressionsUrl")] + #[serde(rename="thirdPartyBackupImageImpressionsUrl")] pub third_party_backup_image_impressions_url: Option, /// The version number helps you keep track of multiple versions of your creative in your reports. The version number will always be auto-generated during insert operations to start at 1. For tracking creatives the version cannot be incremented and will always remain at 1. For all other creative types the version can be incremented only by 1 during update operations. In addition, the version will be automatically incremented by 1 when undergoing Rich Media creative merging. Applicable to all creative types. pub version: Option, /// Creative field assignments for this creative. Applicable to all creative types. - #[serde(alias="creativeFieldAssignments")] + #[serde(rename="creativeFieldAssignments")] pub creative_field_assignments: Option>, /// The 6-character HTML color code, beginning with #, for the background of the window area where the Flash file is displayed. Default is white. Applicable to the following creative types: FLASH_INPAGE. - #[serde(alias="backgroundColor")] + #[serde(rename="backgroundColor")] pub background_color: Option, /// Custom key-values for a Rich Media creative. Key-values let you customize the creative settings of a Rich Media ad running on your site without having to contact the advertiser. You can use key-values to dynamically change the look or functionality of a creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="customKeyValues")] + #[serde(rename="customKeyValues")] pub custom_key_values: Option>, /// Dimension value for the ID of this creative. This is a read-only field. Applicable to all creative types. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Whether images are automatically advanced for enhanced image creatives. Applicable to the following creative types: ENHANCED_IMAGE. pub auto_advance_images: Option, /// Size associated with this creative. When inserting or updating a creative either the size ID field or size width and height fields can be used. 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 assets. Applicable to the following creative types: ENHANCED_BANNER, ENHANCED_IMAGE, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. pub size: Option, /// Type of this creative.This is a required field. Applicable to all creative types. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Combined size of all creative assets. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="totalFileSize")] + #[serde(rename="totalFileSize")] pub total_file_size: Option, /// Third-party URL used to record rich media impressions. Applicable to the following creative types: all RICH_MEDIA - #[serde(alias="thirdPartyRichMediaImpressionsUrl")] + #[serde(rename="thirdPartyRichMediaImpressionsUrl")] pub third_party_rich_media_impressions_url: Option, /// Studio advertiser ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="studioAdvertiserId")] + #[serde(rename="studioAdvertiserId")] pub studio_advertiser_id: Option, /// Assets associated with a creative. Applicable to all but the following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT - #[serde(alias="creativeAssets")] + #[serde(rename="creativeAssets")] pub creative_assets: Option>, /// 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 DCM 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: ENHANCED_BANNER and HTML5_BANNER. - #[serde(alias="backupImageFeatures")] + #[serde(rename="backupImageFeatures")] pub backup_image_features: Option>, /// Whether HTML code is DCM-generated or manually entered. Set to true to ignore changes to htmlCode. Applicable to the following creative types: FLASH_INPAGE and HTML5_BANNER. - #[serde(alias="htmlCodeLocked")] + #[serde(rename="htmlCodeLocked")] pub html_code_locked: Option, /// URL of hosted image or another ad tag. This is a required field when applicable. Applicable to the following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT - #[serde(alias="redirectUrl")] + #[serde(rename="redirectUrl")] pub redirect_url: Option, /// Click tags of the creative. For ENHANCED_BANNER, FLASH_INPAGE, and HTML5_BANNER creatives, this is a subset of detected click tags for the assets associated with this creative. After creating a flash asset, detected click tags will be returned in the creativeAssetMetadata. When inserting the creative, populate the creative clickTags field using the creativeAssetMetadata.clickTags field. For ENHANCED_IMAGE creatives, there should be exactly one entry in this list for each image creative asset. A click tag is matched with a corresponding creative asset by matching the clickTag.name field with the creativeAsset.assetIdentifier.name field. Applicable to the following creative types: ENHANCED_BANNER, ENHANCED_IMAGE, FLASH_INPAGE, HTML5_BANNER. - #[serde(alias="clickTags")] + #[serde(rename="clickTags")] pub click_tags: Option>, /// Target window for backup image. Applicable to the following creative types: ENHANCED_BANNER, FLASH_INPAGE, and HTML5_BANNER. - #[serde(alias="backupImageTargetWindow")] + #[serde(rename="backupImageTargetWindow")] pub backup_image_target_window: Option, /// The minimum required Flash plugin version for this creative. For example, 11.2.202.235. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="requiredFlashPluginVersion")] + #[serde(rename="requiredFlashPluginVersion")] pub required_flash_plugin_version: Option, /// Reporting label used for HTML5 banner backup image. Applicable to the following creative types: ENHANCED_BANNER. - #[serde(alias="backupImageReportingLabel")] + #[serde(rename="backupImageReportingLabel")] pub backup_image_reporting_label: Option, /// Compatibilities associated with this creative. This is a read-only field. WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices 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. Applicable to all creative types. /// @@ -3426,47 +3426,47 @@ pub struct Creative { /// - "WEB_INTERSTITIAL" pub compatibility: Option>, /// Ad parameters user for VPAID creative. This is a read-only field. Applicable to the following creative types: all VPAID. - #[serde(alias="adParameters")] + #[serde(rename="adParameters")] pub ad_parameters: Option, /// Keywords for a Rich Media creative. Keywords let you customize the creative settings of a Rich Media ad running on your site without having to contact the advertiser. You can use keywords to dynamically change the look or functionality of a creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="adTagKeys")] + #[serde(rename="adTagKeys")] pub ad_tag_keys: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creative". pub kind: Option, /// Subaccount ID of this creative. This field, if left unset, will be auto-generated for both insert and update operations. Applicable to all creative types. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of the creative. This is a required field and must be less than 256 characters long. Applicable to all creative types. pub name: Option, /// Creative video duration in seconds. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all VPAID. - #[serde(alias="videoDuration")] + #[serde(rename="videoDuration")] pub video_duration: Option, /// Creative last modification information. This is a read-only field. Applicable to all creative types. - #[serde(alias="lastModifiedInfo")] + #[serde(rename="lastModifiedInfo")] pub last_modified_info: Option, /// Click-through URL for backup image. Applicable to the following creative types: ENHANCED_BANNER, FLASH_INPAGE, and HTML5_BANNER. - #[serde(alias="backupImageClickThroughUrl")] + #[serde(rename="backupImageClickThroughUrl")] pub backup_image_click_through_url: Option, /// Studio creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - #[serde(alias="studioCreativeId")] + #[serde(rename="studioCreativeId")] pub studio_creative_id: Option, /// Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER. - #[serde(alias="authoringTool")] + #[serde(rename="authoringTool")] pub authoring_tool: Option, /// Third-party URLs for tracking in-stream video creative events. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="thirdPartyUrls")] + #[serde(rename="thirdPartyUrls")] pub third_party_urls: Option>, /// List of companion creatives assigned to an in-Stream videocreative. Acceptable values include IDs of existing flash and image creatives. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="companionCreatives")] + #[serde(rename="companionCreatives")] pub companion_creatives: Option>, /// HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is false. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA. - #[serde(alias="htmlCode")] + #[serde(rename="htmlCode")] pub html_code: Option, /// Whether the creative is SSL-compliant. This is a read-only field. Applicable to all creative types. - #[serde(alias="sslCompliant")] + #[serde(rename="sslCompliant")] pub ssl_compliant: Option, /// Industry standard ID assigned to creative for reach and frequency. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - #[serde(alias="commercialId")] + #[serde(rename="commercialId")] pub commercial_id: Option, /// Whether the user can choose to skip the creative. Applicable to the following creative types: INSTREAM_VIDEO. pub skippable: Option, @@ -3484,7 +3484,7 @@ impl ResponseResult for Creative {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportsConfiguration { /// Whether the exposure to conversion report is enabled. This report shows detailed pathway information on up to 10 of the most recent ad exposures seen by a user before converting. - #[serde(alias="exposureToConversionEnabled")] + #[serde(rename="exposureToConversionEnabled")] pub exposure_to_conversion_enabled: bool, /// Report generation time zone ID of this account. This is a required field that can only be changed by a superuser. /// Acceptable values are: @@ -3502,10 +3502,10 @@ pub struct ReportsConfiguration { /// - "11" for "America/Los_Angeles" /// - "12" for "Pacific/Auckland" /// - "13" for "America/Sao_Paulo" - #[serde(alias="reportGenerationTimeZoneId")] + #[serde(rename="reportGenerationTimeZoneId")] pub report_generation_time_zone_id: String, /// Default lookback windows for new advertisers in this account. - #[serde(alias="lookbackConfiguration")] + #[serde(rename="lookbackConfiguration")] pub lookback_configuration: LookbackConfiguration, } @@ -3526,7 +3526,7 @@ pub struct CampaignsListResponse { /// Campaign collection. pub campaigns: Vec, /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignsListResponse". pub kind: String, @@ -3547,7 +3547,7 @@ impl ResponseResult for CampaignsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UserRolePermissionsListResponse { /// User role permission collection. - #[serde(alias="userRolePermissions")] + #[serde(rename="userRolePermissions")] pub user_role_permissions: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRolePermissionsListResponse". pub kind: String, @@ -3569,26 +3569,26 @@ impl ResponseResult for UserRolePermissionsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UserProfile { /// The user name. - #[serde(alias="userName")] + #[serde(rename="userName")] pub user_name: String, /// The kind of resource this is, in this case dfareporting#userProfile. pub kind: String, /// The sub account ID this profile belongs to if applicable. - #[serde(alias="subAccountId")] + #[serde(rename="subAccountId")] pub sub_account_id: String, /// The account name this profile belongs to. - #[serde(alias="accountName")] + #[serde(rename="accountName")] pub account_name: String, /// The eTag of this response for caching purposes. pub etag: String, /// The sub account name this profile belongs to if applicable. - #[serde(alias="subAccountName")] + #[serde(rename="subAccountName")] pub sub_account_name: String, /// The unique ID of the user profile. - #[serde(alias="profileId")] + #[serde(rename="profileId")] pub profile_id: String, /// The account ID to which this profile belongs. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: String, } @@ -3603,10 +3603,10 @@ impl ResponseResult for UserProfile {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeGroupAssignment { /// ID of the creative group to be assigned. - #[serde(alias="creativeGroupId")] + #[serde(rename="creativeGroupId")] pub creative_group_id: String, /// Creative group number of the creative group assignment. - #[serde(alias="creativeGroupNumber")] + #[serde(rename="creativeGroupNumber")] pub creative_group_number: String, } @@ -3620,31 +3620,31 @@ impl Part for CreativeGroupAssignment {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportPathToConversionCriteria { /// The list of conversion dimensions the report should include. - #[serde(alias="conversionDimensions")] + #[serde(rename="conversionDimensions")] pub conversion_dimensions: Vec, /// The list of names of metrics the report should include. - #[serde(alias="metricNames")] + #[serde(rename="metricNames")] pub metric_names: Vec, /// The date range this report should be run for. - #[serde(alias="dateRange")] + #[serde(rename="dateRange")] pub date_range: DateRange, /// The list of custom floodlight variables the report should include. - #[serde(alias="customFloodlightVariables")] + #[serde(rename="customFloodlightVariables")] pub custom_floodlight_variables: Vec, /// The list of 'dfa:activity' values to filter on. - #[serde(alias="activityFilters")] + #[serde(rename="activityFilters")] pub activity_filters: Vec, /// The list of custom rich media events to include. - #[serde(alias="customRichMediaEvents")] + #[serde(rename="customRichMediaEvents")] pub custom_rich_media_events: Vec, /// The list of per interaction dimensions the report should include. - #[serde(alias="perInteractionDimensions")] + #[serde(rename="perInteractionDimensions")] pub per_interaction_dimensions: Vec, /// The properties of the report. - #[serde(alias="reportProperties")] + #[serde(rename="reportProperties")] pub report_properties: ReportPathToConversionCriteriaReportProperties, /// The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'. - #[serde(alias="floodlightConfigId")] + #[serde(rename="floodlightConfigId")] pub floodlight_config_id: DimensionValue, } @@ -3664,10 +3664,10 @@ impl Part for ReportPathToConversionCriteria {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CreativeFieldsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Creative field collection. - #[serde(alias="creativeFields")] + #[serde(rename="creativeFields")] pub creative_fields: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativeFieldsListResponse". pub kind: String, @@ -3685,12 +3685,12 @@ pub struct ReportDelivery { /// The message to be sent with each email. pub message: String, /// The type of delivery for the owner to receive, if enabled. - #[serde(alias="emailOwnerDeliveryType")] + #[serde(rename="emailOwnerDeliveryType")] pub email_owner_delivery_type: String, /// The list of recipients to which to email the report. pub recipients: Vec, /// Whether the report should be emailed to the report owner. - #[serde(alias="emailOwner")] + #[serde(rename="emailOwner")] pub email_owner: bool, } @@ -3713,10 +3713,10 @@ pub struct GeoTargeting { /// Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city. pub cities: Vec, /// Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad. - #[serde(alias="excludeCountries")] + #[serde(rename="excludeCountries")] pub exclude_countries: bool, /// Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code. - #[serde(alias="postalCodes")] + #[serde(rename="postalCodes")] pub postal_codes: Vec, } @@ -3732,13 +3732,13 @@ pub struct DeliverySchedule { /// 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: String, /// Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. - #[serde(alias="hardCutoff")] + #[serde(rename="hardCutoff")] pub hard_cutoff: bool, /// Limit on the number of times an individual user can be served the ad within a specified period of time. - #[serde(alias="frequencyCap")] + #[serde(rename="frequencyCap")] pub frequency_cap: FrequencyCap, /// Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then DCM will serve ad B three times as often as ad A. Must be between 1 and 10. - #[serde(alias="impressionRatio")] + #[serde(rename="impressionRatio")] pub impression_ratio: String, } @@ -3752,14 +3752,14 @@ impl Part for DeliverySchedule {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportSchedule { /// Start date of date range for which scheduled reports should be run. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// 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(alias="runsOnDayOfMonth")] + #[serde(rename="runsOnDayOfMonth")] pub runs_on_day_of_month: String, /// The expiration date when the scheduled report stops running. - #[serde(alias="expirationDate")] + #[serde(rename="expirationDate")] pub expiration_date: String, /// Whether the schedule is active or not. Must be set to either true or false. pub active: bool, @@ -3771,7 +3771,7 @@ pub struct ReportSchedule { /// - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. pub repeats: String, /// List of week days "WEEKLY" on which scheduled reports should run. - #[serde(alias="repeatsOnWeekDays")] + #[serde(rename="repeatsOnWeekDays")] pub repeats_on_week_days: Vec, } @@ -3788,7 +3788,7 @@ pub struct Recipient { /// The kind of resource this is, in this case dfareporting#recipient. pub kind: String, /// The delivery type for the recipient. - #[serde(alias="deliveryType")] + #[serde(rename="deliveryType")] pub delivery_type: String, /// The email address of the recipient. pub email: String, @@ -3808,12 +3808,12 @@ pub struct ReportCompatibleFields { /// The kind of resource this is, in this case dfareporting#reportCompatibleFields. pub kind: String, /// Metrics which are compatible to be selected as activity metrics to pivot on in the "activities" section of the report. - #[serde(alias="pivotedActivityMetrics")] + #[serde(rename="pivotedActivityMetrics")] pub pivoted_activity_metrics: Vec, /// Dimensions which are compatible to be selected in the "dimensions" section of the report. pub dimensions: Vec, /// Dimensions which are compatible to be selected in the "dimensionFilters" section of the report. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, } @@ -3832,12 +3832,12 @@ impl Part for ReportCompatibleFields {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdvertiserGroupsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#advertiserGroupsListResponse". pub kind: String, /// Advertiser group collection. - #[serde(alias="advertiserGroups")] + #[serde(rename="advertiserGroups")] pub advertiser_groups: Vec, } @@ -3856,12 +3856,12 @@ impl ResponseResult for AdvertiserGroupsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PlacementGroupsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementGroupsListResponse". pub kind: String, /// Placement group collection. - #[serde(alias="placementGroups")] + #[serde(rename="placementGroups")] pub placement_groups: Vec, } @@ -3875,31 +3875,31 @@ impl ResponseResult for PlacementGroupsListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportPathToConversionCriteriaReportProperties { /// DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90. - #[serde(alias="clicksLookbackWindow")] + #[serde(rename="clicksLookbackWindow")] pub clicks_lookback_window: i32, /// Enable pivoting on interaction path. - #[serde(alias="pivotOnInteractionPath")] + #[serde(rename="pivotOnInteractionPath")] pub pivot_on_interaction_path: bool, /// DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90. - #[serde(alias="impressionsLookbackWindow")] + #[serde(rename="impressionsLookbackWindow")] pub impressions_lookback_window: i32, /// Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion. - #[serde(alias="includeUnattributedIPConversions")] + #[serde(rename="includeUnattributedIPConversions")] pub include_unattributed_ip_conversions: bool, /// Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window. - #[serde(alias="includeUnattributedCookieConversions")] + #[serde(rename="includeUnattributedCookieConversions")] pub include_unattributed_cookie_conversions: bool, /// The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90. - #[serde(alias="maximumInteractionGap")] + #[serde(rename="maximumInteractionGap")] pub maximum_interaction_gap: i32, /// Deprecated: has no effect. - #[serde(alias="includeAttributedIPConversions")] + #[serde(rename="includeAttributedIPConversions")] pub include_attributed_ip_conversions: bool, /// The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report. - #[serde(alias="maximumClickInteractions")] + #[serde(rename="maximumClickInteractions")] pub maximum_click_interactions: i32, /// The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report. - #[serde(alias="maximumImpressionInteractions")] + #[serde(rename="maximumImpressionInteractions")] pub maximum_impression_interactions: i32, } @@ -3916,19 +3916,19 @@ pub struct TechnologyTargeting { /// Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used.The other fields are populated automatically when the ad is inserted or updated. pub browsers: Vec, /// Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system. - #[serde(alias="operatingSystems")] + #[serde(rename="operatingSystems")] pub operating_systems: Vec, /// Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes. - #[serde(alias="mobileCarriers")] + #[serde(rename="mobileCarriers")] pub mobile_carriers: Vec, /// Connection types that this ad targets. For each connection type only id is required.The other fields are populated automatically when the ad is inserted or updated. - #[serde(alias="connectionTypes")] + #[serde(rename="connectionTypes")] pub connection_types: Vec, /// Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated. - #[serde(alias="platformTypes")] + #[serde(rename="platformTypes")] pub platform_types: Vec, /// Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems. - #[serde(alias="operatingSystemVersions")] + #[serde(rename="operatingSystemVersions")] pub operating_system_versions: Vec, } @@ -3942,10 +3942,10 @@ impl Part for TechnologyTargeting {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct OptimizationActivity { /// Floodlight activity ID of this optimization activity. This is a required field. - #[serde(alias="floodlightActivityId")] + #[serde(rename="floodlightActivityId")] pub floodlight_activity_id: String, /// Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. - #[serde(alias="floodlightActivityIdDimensionValue")] + #[serde(rename="floodlightActivityIdDimensionValue")] pub floodlight_activity_id_dimension_value: DimensionValue, /// Weight associated with this optimization. Must be greater than 1. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. pub weight: i32, @@ -4002,16 +4002,16 @@ pub struct CreativeAssetMetadata { /// - "ASSET_FORMAT_UNSUPPORTED_DCM" /// - "COMPONENT_UNSUPPORTED_DCM" /// - "HTML5_FEATURE_UNSUPPORTED' " - #[serde(alias="warnedValidationRules")] + #[serde(rename="warnedValidationRules")] pub warned_validation_rules: Option>, /// List of feature dependencies for the creative asset that are detected by DCM. 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(alias="detectedFeatures")] + #[serde(rename="detectedFeatures")] pub detected_features: Option>, /// List of detected click tags for assets. This is a read-only auto-generated field. - #[serde(alias="clickTags")] + #[serde(rename="clickTags")] pub click_tags: Option>, /// ID of the creative asset. This is a required field. - #[serde(alias="assetIdentifier")] + #[serde(rename="assetIdentifier")] pub asset_identifier: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativeAssetMetadata". pub kind: Option, @@ -4028,16 +4028,16 @@ impl ResponseResult for CreativeAssetMetadata {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TagData { /// Tag string to record a click. - #[serde(alias="clickTag")] + #[serde(rename="clickTag")] pub click_tag: String, /// Tag string for serving an ad. - #[serde(alias="impressionTag")] + #[serde(rename="impressionTag")] pub impression_tag: String, /// Creative associated with this placement tag. - #[serde(alias="creativeId")] + #[serde(rename="creativeId")] pub creative_id: String, /// Ad associated with this placement tag. - #[serde(alias="adId")] + #[serde(rename="adId")] pub ad_id: String, /// TagData tag format of this tag. pub format: String, @@ -4053,25 +4053,25 @@ impl Part for TagData {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportFloodlightCriteria { /// The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'. - #[serde(alias="floodlightConfigId")] + #[serde(rename="floodlightConfigId")] pub floodlight_config_id: DimensionValue, /// The list of dimensions the report should include. pub dimensions: Vec, /// The list of names of metrics the report should include. - #[serde(alias="metricNames")] + #[serde(rename="metricNames")] pub metric_names: Vec, /// The date range this report should be run for. - #[serde(alias="dateRange")] + #[serde(rename="dateRange")] pub date_range: DateRange, /// The list of custom rich media events to include. - #[serde(alias="customRichMediaEvents")] + #[serde(rename="customRichMediaEvents")] pub custom_rich_media_events: Vec, /// The list of filters on which dimensions are filtered. /// Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, /// The properties of the report. - #[serde(alias="reportProperties")] + #[serde(rename="reportProperties")] pub report_properties: ReportFloodlightCriteriaReportProperties, } @@ -4093,7 +4093,7 @@ pub struct LandingPagesListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#landingPagesListResponse". pub kind: String, /// Landing page collection - #[serde(alias="landingPages")] + #[serde(rename="landingPages")] pub landing_pages: Vec, } @@ -4112,7 +4112,7 @@ impl ResponseResult for LandingPagesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SitesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#sitesListResponse". pub kind: String, @@ -4130,7 +4130,7 @@ impl ResponseResult for SitesListResponse {} #[derive(Default, Clone, Debug, Serialize)] pub struct DimensionFilter { /// The name of the dimension to filter. - #[serde(alias="dimensionName")] + #[serde(rename="dimensionName")] pub dimension_name: String, /// The kind of resource this is, in this case dfareporting#dimensionFilter. pub kind: String, @@ -4155,12 +4155,12 @@ pub struct PostalCode { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". pub kind: Option, /// DART ID of the country to which this postal code belongs. - #[serde(alias="countryDartId")] + #[serde(rename="countryDartId")] pub country_dart_id: Option, /// ID of this postal code. pub id: Option, /// Country code of the country to which this postal code belongs. - #[serde(alias="countryCode")] + #[serde(rename="countryCode")] pub country_code: Option, } @@ -4184,25 +4184,25 @@ pub struct FloodlightActivity { /// Whether this tag should use SSL. pub secure: Option, /// Dimension value for the ID of this floodlight activity. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Name of the associated floodlight activity group. This is a read-only field. - #[serde(alias="floodlightActivityGroupName")] + #[serde(rename="floodlightActivityGroupName")] pub floodlight_activity_group_name: Option, /// Whether the image tag is enabled for this activity. - #[serde(alias="imageTagEnabled")] + #[serde(rename="imageTagEnabled")] pub image_tag_enabled: Option, /// Advertiser ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's advertiser or the existing activity's advertiser. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Code type used for cache busting in the generated tag. - #[serde(alias="cacheBustingType")] + #[serde(rename="cacheBustingType")] pub cache_busting_type: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// Floodlight activity group ID of this floodlight activity. This is a required field. - #[serde(alias="floodlightActivityGroupId")] + #[serde(rename="floodlightActivityGroupId")] pub floodlight_activity_group_id: Option, /// List of the user-defined variables used by this conversion tag. These map to the "u[1-20]=" in the tags. Each of these can have a user defined type. /// Acceptable values are: @@ -4226,59 +4226,59 @@ pub struct FloodlightActivity { /// - "U18" /// - "U19" /// - "U20" - #[serde(alias="userDefinedVariableTypes")] + #[serde(rename="userDefinedVariableTypes")] pub user_defined_variable_types: Option>, /// Value of the cat= paramter 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(alias="tagString")] + #[serde(rename="tagString")] pub tag_string: Option, /// Tag string of the associated floodlight activity group. This is a read-only field. - #[serde(alias="floodlightActivityGroupTagString")] + #[serde(rename="floodlightActivityGroupTagString")] pub floodlight_activity_group_tag_string: Option, /// URL where this tag will be deployed. If specified, must be less than 256 characters long. - #[serde(alias="expectedUrl")] + #[serde(rename="expectedUrl")] pub expected_url: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivity". pub kind: Option, /// Subaccount ID of this floodlight activity. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this floodlight activity. This is a required field. Must be less than 129 characters long and cannot contain quotes. pub name: Option, /// Publisher dynamic floodlight tags. - #[serde(alias="publisherTags")] + #[serde(rename="publisherTags")] pub publisher_tags: Option>, /// Whether the floodlight activity is SSL-compliant. This is a read-only field, its value detected by the system from the floodlight tags. - #[serde(alias="sslCompliant")] + #[serde(rename="sslCompliant")] pub ssl_compliant: Option, /// General notes or implementation instructions for the tag. pub notes: 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(alias="floodlightConfigurationId")] + #[serde(rename="floodlightConfigurationId")] pub floodlight_configuration_id: Option, /// ID of this floodlight activity. This is a read-only, auto-generated field. pub id: Option, /// Counting method for conversions for this floodlight activity. This is a required field. - #[serde(alias="countingMethod")] + #[serde(rename="countingMethod")] pub counting_method: Option, /// Dynamic floodlight tags. - #[serde(alias="defaultTags")] + #[serde(rename="defaultTags")] pub default_tags: Option>, /// Dimension value for the ID of the floodlight configuration. This is a read-only, auto-generated field. - #[serde(alias="floodlightConfigurationIdDimensionValue")] + #[serde(rename="floodlightConfigurationIdDimensionValue")] pub floodlight_configuration_id_dimension_value: Option, /// Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. - #[serde(alias="tagFormat")] + #[serde(rename="tagFormat")] pub tag_format: Option, /// Whether this activity is archived. pub hidden: Option, /// Account ID of this floodlight activity. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Whether this floodlight activity must be SSL-compliant. - #[serde(alias="sslRequired")] + #[serde(rename="sslRequired")] pub ssl_required: Option, /// Type of the associated floodlight activity group. This is a read-only field. - #[serde(alias="floodlightActivityGroupType")] + #[serde(rename="floodlightActivityGroupType")] pub floodlight_activity_group_type: Option, } @@ -4298,20 +4298,20 @@ impl ResponseResult for FloodlightActivity {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Browser { /// Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can't tell which version it is. - #[serde(alias="majorVersion")] + #[serde(rename="majorVersion")] pub major_version: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". pub kind: Option, /// ID referring to this grouping of browser and version numbers. This is the ID used for targeting. - #[serde(alias="browserVersionId")] + #[serde(rename="browserVersionId")] pub browser_version_id: Option, /// Name of this browser. pub name: Option, /// DART ID of this browser. This is the ID used when generating reports. - #[serde(alias="dartId")] + #[serde(rename="dartId")] pub dart_id: Option, /// Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can't tell which version it is. - #[serde(alias="minorVersion")] + #[serde(rename="minorVersion")] pub minor_version: Option, } @@ -4330,10 +4330,10 @@ impl Resource for Browser {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountUserProfilesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Account user profile collection. - #[serde(alias="accountUserProfiles")] + #[serde(rename="accountUserProfiles")] pub account_user_profiles: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountUserProfilesListResponse". pub kind: String, @@ -4362,37 +4362,37 @@ pub struct Advertiser { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#advertiser". pub kind: Option, /// Subaccount ID of this advertiser.This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this advertiser. This is a required field and must be less than 256 characters long and unique among advertisers of the same account. pub name: Option, /// ID of the click-through event tag to apply by default to the landing pages of this advertiser's campaigns. - #[serde(alias="defaultClickThroughEventTagId")] + #[serde(rename="defaultClickThroughEventTagId")] pub default_click_through_event_tag_id: Option, /// Suffix added to click-through URL of ad creative associations under this advertiser. Must be less than 129 characters long. - #[serde(alias="clickThroughUrlSuffix")] + #[serde(rename="clickThroughUrlSuffix")] pub click_through_url_suffix: Option, /// Floodlight configuration ID of this advertiser. The floodlight configuration ID will be created automatically, so on insert this field should be left blank. This field can be set to another advertiser's floodlight configuration ID in order to share that advertiser's floodlight configuration with this advertiser, so long as: /// - This advertiser's original floodlight configuration is not already associated with floodlight activities or floodlight activity groups. /// - This advertiser's original floodlight configuration is not already shared with another advertiser. - #[serde(alias="floodlightConfigurationId")] + #[serde(rename="floodlightConfigurationId")] pub floodlight_configuration_id: Option, /// Dimension value for the ID of the floodlight configuration. This is a read-only, auto-generated field. - #[serde(alias="floodlightConfigurationIdDimensionValue")] + #[serde(rename="floodlightConfigurationIdDimensionValue")] pub floodlight_configuration_id_dimension_value: Option, /// ID of the advertiser group this advertiser belongs to. You can group advertisers for reporting purposes, allowing you to see aggregated information for all advertisers in each group. - #[serde(alias="advertiserGroupId")] + #[serde(rename="advertiserGroupId")] pub advertiser_group_id: Option, /// Dimension value for the ID of this advertiser. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Default email address used in sender field for tag emails. - #[serde(alias="defaultEmail")] + #[serde(rename="defaultEmail")] pub default_email: Option, /// ID of this advertiser. This is a read-only, auto-generated field. pub id: Option, /// Account ID of this advertiser.This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -4415,7 +4415,7 @@ pub struct PlatformTypesListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformTypesListResponse". pub kind: String, /// Platform type collection. - #[serde(alias="platformTypes")] + #[serde(rename="platformTypes")] pub platform_types: Vec, } @@ -4434,12 +4434,12 @@ impl ResponseResult for PlatformTypesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ChangeLogsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#changeLogsListResponse". pub kind: String, /// Change log collection. - #[serde(alias="changeLogs")] + #[serde(rename="changeLogs")] pub change_logs: Vec, } @@ -4458,7 +4458,7 @@ impl ResponseResult for ChangeLogsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PlacementsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementsListResponse". pub kind: String, @@ -4481,7 +4481,7 @@ impl ResponseResult for PlacementsListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AdsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#adsListResponse". pub kind: String, @@ -4503,23 +4503,23 @@ pub struct ReportReachCriteria { /// The list of dimensions the report should include. pub dimensions: Vec, /// The list of names of metrics the report should include. - #[serde(alias="metricNames")] + #[serde(rename="metricNames")] pub metric_names: Vec, /// The date range this report should be run for. - #[serde(alias="dateRange")] + #[serde(rename="dateRange")] pub date_range: DateRange, /// The list of filters on which dimensions are filtered. /// Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, /// The list of names of Reach By Frequency metrics the report should include. - #[serde(alias="reachByFrequencyMetricNames")] + #[serde(rename="reachByFrequencyMetricNames")] pub reach_by_frequency_metric_names: Vec, /// Custom Rich Media Events group. - #[serde(alias="customRichMediaEvents")] + #[serde(rename="customRichMediaEvents")] pub custom_rich_media_events: CustomRichMediaEvents, /// Whether to enable all reach dimension combinations in the report. Defaults to false. If enabled, the date range of the report should be within the last three months. - #[serde(alias="enableAllDimensionCombinations")] + #[serde(rename="enableAllDimensionCombinations")] pub enable_all_dimension_combinations: bool, } @@ -4534,10 +4534,10 @@ impl Part for ReportReachCriteria {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FileUrls { /// The URL for downloading the report data through a browser. - #[serde(alias="browserUrl")] + #[serde(rename="browserUrl")] pub browser_url: String, /// The URL for downloading the report data through the API. - #[serde(alias="apiUrl")] + #[serde(rename="apiUrl")] pub api_url: String, } @@ -4552,13 +4552,13 @@ impl Part for FileUrls {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UserDefinedVariableConfiguration { /// Data type for the variable. This is a required field. - #[serde(alias="dataType")] + #[serde(rename="dataType")] pub data_type: String, /// 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(alias="reportName")] + #[serde(rename="reportName")] pub report_name: String, /// Variable name in the tag. This is a required field. - #[serde(alias="variableType")] + #[serde(rename="variableType")] pub variable_type: String, } @@ -4572,22 +4572,22 @@ impl Part for UserDefinedVariableConfiguration {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FloodlightActivityPublisherDynamicTag { /// Whether this tag is applicable only for view-throughs. - #[serde(alias="viewThrough")] + #[serde(rename="viewThrough")] pub view_through: bool, /// Site ID of this dynamic tag. - #[serde(alias="siteId")] + #[serde(rename="siteId")] pub site_id: String, /// Whether this tag is applicable only for click-throughs. - #[serde(alias="clickThrough")] + #[serde(rename="clickThrough")] pub click_through: bool, /// Directory site ID of this dynamic tag. This is a write-only field that can be used as an alternative to the siteId field. When this resource is retrieved, only the siteId field will be populated. - #[serde(alias="directorySiteId")] + #[serde(rename="directorySiteId")] pub directory_site_id: String, /// Dimension value for the ID of the site. This is a read-only, auto-generated field. - #[serde(alias="siteIdDimensionValue")] + #[serde(rename="siteIdDimensionValue")] pub site_id_dimension_value: DimensionValue, /// Dynamic floodlight tag. - #[serde(alias="dynamicTag")] + #[serde(rename="dynamicTag")] pub dynamic_tag: FloodlightActivityDynamicTag, } @@ -4666,27 +4666,27 @@ pub struct City { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". pub kind: String, /// DART ID of the country to which this city belongs. - #[serde(alias="countryDartId")] + #[serde(rename="countryDartId")] pub country_dart_id: String, /// Name of this city. pub name: String, /// Country code of the country to which this city belongs. - #[serde(alias="countryCode")] + #[serde(rename="countryCode")] pub country_code: String, /// Metro region code of the metro region (DMA) to which this city belongs. - #[serde(alias="metroCode")] + #[serde(rename="metroCode")] pub metro_code: String, /// Region code of the region to which this city belongs. - #[serde(alias="regionCode")] + #[serde(rename="regionCode")] pub region_code: String, /// ID of the metro region (DMA) to which this city belongs. - #[serde(alias="metroDmaId")] + #[serde(rename="metroDmaId")] pub metro_dma_id: String, /// DART ID of this city. This is the ID used for targeting and generating reports. - #[serde(alias="dartId")] + #[serde(rename="dartId")] pub dart_id: String, /// DART ID of the region to which this city belongs. - #[serde(alias="regionDartId")] + #[serde(rename="regionDartId")] pub region_dart_id: String, } @@ -4700,10 +4700,10 @@ impl Part for City {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ClickThroughUrlSuffixProperties { /// Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. - #[serde(alias="clickThroughUrlSuffix")] + #[serde(rename="clickThroughUrlSuffix")] pub click_through_url_suffix: String, /// Whether this entity should override the inherited click-through URL suffix with its own defined value. - #[serde(alias="overrideInheritedSuffix")] + #[serde(rename="overrideInheritedSuffix")] pub override_inherited_suffix: bool, } @@ -4728,78 +4728,78 @@ pub struct PlacementGroup { /// Comments for this placement group. pub comment: Option, /// ID of the primary placement, used to calculate the media cost of a roadblock (placement group). Modifying this field will automatically modify the primary field on all affected roadblock child placements. - #[serde(alias="primaryPlacementId")] + #[serde(rename="primaryPlacementId")] pub primary_placement_id: Option, /// Campaign ID of this placement group. This field is required on insertion. - #[serde(alias="campaignId")] + #[serde(rename="campaignId")] pub campaign_id: Option, /// Dimension value for the ID of the primary placement. This is a read-only, auto-generated field. - #[serde(alias="primaryPlacementIdDimensionValue")] + #[serde(rename="primaryPlacementIdDimensionValue")] pub primary_placement_id_dimension_value: Option, /// Dimension value for the ID of the directory site. This is a read-only, auto-generated field. - #[serde(alias="directorySiteIdDimensionValue")] + #[serde(rename="directorySiteIdDimensionValue")] pub directory_site_id_dimension_value: Option, /// Advertiser ID of this placement group. This is a required field on insertion. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Directory site ID associated with this placement group. On insert, you must set either this field or the site_id field to specify the site associated with this placement group. This is a required field that is read-only after insertion. - #[serde(alias="directorySiteId")] + #[serde(rename="directorySiteId")] pub directory_site_id: Option, /// Information about the creation of this placement group. This is a read-only field. - #[serde(alias="createInfo")] + #[serde(rename="createInfo")] pub create_info: Option, /// Site ID associated with this placement group. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement group. This is a required field that is read-only after insertion. - #[serde(alias="siteId")] + #[serde(rename="siteId")] pub site_id: Option, /// Pricing schedule of this placement group. This field is required on insertion. - #[serde(alias="pricingSchedule")] + #[serde(rename="pricingSchedule")] pub pricing_schedule: Option, /// Dimension value for the ID of the site. This is a read-only, auto-generated field. - #[serde(alias="siteIdDimensionValue")] + #[serde(rename="siteIdDimensionValue")] pub site_id_dimension_value: Option, /// 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(alias="placementGroupType")] + #[serde(rename="placementGroupType")] pub placement_group_type: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// Whether this placement group is archived. pub archived: Option, /// ID of this placement group. This is a read-only, auto-generated field. pub id: Option, /// ID of the placement strategy assigned to this placement group. - #[serde(alias="placementStrategyId")] + #[serde(rename="placementStrategyId")] pub placement_strategy_id: Option, /// Account ID of this placement group. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Settings for a programmatic placement. - #[serde(alias="programmaticSetting")] + #[serde(rename="programmaticSetting")] pub programmatic_setting: Option, /// Dimension value for the ID of the campaign. This is a read-only, auto-generated field. - #[serde(alias="campaignIdDimensionValue")] + #[serde(rename="campaignIdDimensionValue")] pub campaign_id_dimension_value: Option, /// Subaccount ID of this placement group. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this placement group. This is a required field and must be less than 256 characters long. pub name: Option, /// IDs of placements which are assigned to this placement group. This is a read-only, auto-generated field. - #[serde(alias="childPlacementIds")] + #[serde(rename="childPlacementIds")] pub child_placement_ids: Option>, /// Information about the most recent modification of this placement group. This is a read-only field. - #[serde(alias="lastModifiedInfo")] + #[serde(rename="lastModifiedInfo")] pub last_modified_info: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementGroup". pub kind: Option, /// ID of the content category assigned to this placement group. - #[serde(alias="contentCategoryId")] + #[serde(rename="contentCategoryId")] pub content_category_id: Option, /// External ID for this placement. - #[serde(alias="externalId")] + #[serde(rename="externalId")] pub external_id: Option, /// Dimension value for the ID of this placement group. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, } @@ -4817,7 +4817,7 @@ pub struct ThirdPartyTrackingUrl { /// URL for the specified third-party URL type. pub url: String, /// Third-party URL type for in-stream video creatives. - #[serde(alias="thirdPartyUrlType")] + #[serde(rename="thirdPartyUrlType")] pub third_party_url_type: String, } @@ -4837,7 +4837,7 @@ impl Part for ThirdPartyTrackingUrl {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct UserRolePermission { /// ID of the permission group that this user role permission belongs to. - #[serde(alias="permissionGroupId")] + #[serde(rename="permissionGroupId")] pub permission_group_id: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRolePermission". pub kind: String, @@ -4880,30 +4880,30 @@ impl ResponseResult for MetrosListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct PricingSchedule { /// 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(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This field is required on insertion. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// Whether this placement is flighted. If true, pricing periods will be computed automatically. pub flighted: bool, /// Whether cap costs are ignored by ad serving. - #[serde(alias="disregardOverdelivery")] + #[serde(rename="disregardOverdelivery")] pub disregard_overdelivery: bool, /// Placement cap cost option. - #[serde(alias="capCostOption")] + #[serde(rename="capCostOption")] pub cap_cost_option: String, /// Pricing periods for this placement. - #[serde(alias="pricingPeriods")] + #[serde(rename="pricingPeriods")] pub pricing_periods: Vec, /// Placement pricing type. This field is required on insertion. - #[serde(alias="pricingType")] + #[serde(rename="pricingType")] pub pricing_type: String, /// Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. - #[serde(alias="testingStartDate")] + #[serde(rename="testingStartDate")] pub testing_start_date: String, /// Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA. - #[serde(alias="floodlightActivityId")] + #[serde(rename="floodlightActivityId")] pub floodlight_activity_id: String, } @@ -4922,7 +4922,7 @@ impl Part for PricingSchedule {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountsListResponse". pub kind: String, @@ -4947,7 +4947,7 @@ pub struct OperatingSystem { /// Whether this operating system is for mobile. pub mobile: Option, /// DART ID of this operating system. This is the ID used for targeting. - #[serde(alias="dartId")] + #[serde(rename="dartId")] pub dart_id: Option, /// Whether this operating system is for desktop. pub desktop: Option, @@ -4971,7 +4971,7 @@ pub struct Activities { /// List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup". pub filters: Vec, /// List of names of floodlight activity metrics. - #[serde(alias="metricNames")] + #[serde(rename="metricNames")] pub metric_names: Vec, } @@ -4989,7 +4989,7 @@ pub struct SortedDimension { /// The name of the dimension. pub name: String, /// An optional sort order for the dimension column. - #[serde(alias="sortOrder")] + #[serde(rename="sortOrder")] pub sort_order: String, } @@ -5008,12 +5008,12 @@ impl Part for SortedDimension {} #[derive(Default, Clone, Debug, Deserialize)] pub struct PlacementStrategiesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementStrategiesListResponse". pub kind: String, /// Placement strategy collection. - #[serde(alias="placementStrategies")] + #[serde(rename="placementStrategies")] pub placement_strategies: Vec, } @@ -5032,7 +5032,7 @@ impl ResponseResult for PlacementStrategiesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReportList { /// Continuation token used to page through reports. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The reports returned in this response. pub items: Vec, @@ -5064,7 +5064,7 @@ pub struct AdvertiserGroup { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#advertiserGroup". pub kind: Option, /// Account ID of this advertiser group. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// ID of this advertiser group. This is a read-only, auto-generated field. pub id: Option, @@ -5084,15 +5084,15 @@ impl ResponseResult for AdvertiserGroup {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FsCommand { /// Height of the window. - #[serde(alias="windowHeight")] + #[serde(rename="windowHeight")] pub window_height: i32, /// Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub top: i32, /// Width of the window. - #[serde(alias="windowWidth")] + #[serde(rename="windowWidth")] pub window_width: i32, /// Position in the browser where the window will open. - #[serde(alias="positionOption")] + #[serde(rename="positionOption")] pub position_option: String, /// Distance from the left of the browser.Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. pub left: i32, @@ -5108,14 +5108,14 @@ impl Part for FsCommand {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeOptimizationConfiguration { /// List of optimization activities associated with this configuration. - #[serde(alias="optimizationActivitys")] + #[serde(rename="optimizationActivitys")] pub optimization_activitys: Vec, /// ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. pub id: String, /// Name of this creative optimization config. This is a required field and must be less than 129 characters long. pub name: String, /// Optimization model for this configuration. - #[serde(alias="optimizationModel")] + #[serde(rename="optimizationModel")] pub optimization_model: String, } @@ -5134,10 +5134,10 @@ impl Part for CreativeOptimizationConfiguration {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CreativeGroupsListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Creative group collection. - #[serde(alias="creativeGroups")] + #[serde(rename="creativeGroups")] pub creative_groups: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativeGroupsListResponse". pub kind: String, @@ -5168,10 +5168,10 @@ impl Part for OffsetPosition {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct TargetWindow { /// User-entered value. - #[serde(alias="customHtml")] + #[serde(rename="customHtml")] pub custom_html: String, /// Type of browser window for which the backup image of the flash creative can be displayed. - #[serde(alias="targetWindowOption")] + #[serde(rename="targetWindowOption")] pub target_window_option: String, } @@ -5185,21 +5185,21 @@ impl Part for TargetWindow {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ProgrammaticSetting { /// Trafficker emails assigned to the placement. - #[serde(alias="traffickerEmails")] + #[serde(rename="traffickerEmails")] pub trafficker_emails: Vec, /// Whether programmatic is enabled. pub programmatic: bool, /// Media cost for the programmatic placement. - #[serde(alias="mediaCostNanos")] + #[serde(rename="mediaCostNanos")] pub media_cost_nanos: String, /// Adx deal IDs assigned to the placement. - #[serde(alias="adxDealIds")] + #[serde(rename="adxDealIds")] pub adx_deal_ids: Vec, /// Insertion order ID. - #[serde(alias="insertionOrderId")] + #[serde(rename="insertionOrderId")] pub insertion_order_id: String, /// Whether insertion order ID has been placed in DFP. This is a read-only field. - #[serde(alias="insertionOrderIdStatus")] + #[serde(rename="insertionOrderIdStatus")] pub insertion_order_id_status: bool, } @@ -5213,15 +5213,15 @@ impl Part for ProgrammaticSetting {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct SiteContact { /// Last name of this site contact. - #[serde(alias="lastName")] + #[serde(rename="lastName")] pub last_name: String, /// Site contact type. - #[serde(alias="contactType")] + #[serde(rename="contactType")] pub contact_type: String, /// Email address of this site contact. This is a required field. pub email: String, /// First name of this site contact. - #[serde(alias="firstName")] + #[serde(rename="firstName")] pub first_name: String, /// ID of this site contact. This is a read-only, auto-generated field. pub id: String, @@ -5237,16 +5237,16 @@ impl Part for SiteContact {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CreativeRotation { /// Creative assignments in this creative rotation. - #[serde(alias="creativeAssignments")] + #[serde(rename="creativeAssignments")] pub creative_assignments: Vec, /// Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. - #[serde(alias="weightCalculationStrategy")] + #[serde(rename="weightCalculationStrategy")] pub weight_calculation_strategy: String, /// Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. - #[serde(alias="creativeOptimizationConfigurationId")] + #[serde(rename="creativeOptimizationConfigurationId")] pub creative_optimization_configuration_id: String, /// Type of creative rotation. Can be used to specify whether to use sequential or random rotation. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -5267,21 +5267,21 @@ pub struct Metro { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". pub kind: Option, /// DART ID of the country to which this metro region belongs. - #[serde(alias="countryDartId")] + #[serde(rename="countryDartId")] pub country_dart_id: Option, /// Name of this metro region. pub name: Option, /// Country code of the country to which this metro region belongs. - #[serde(alias="countryCode")] + #[serde(rename="countryCode")] pub country_code: Option, /// Metro code of this metro region. This is equivalent to dma_id. - #[serde(alias="metroCode")] + #[serde(rename="metroCode")] pub metro_code: Option, /// DART ID of this metro region. - #[serde(alias="dartId")] + #[serde(rename="dartId")] pub dart_id: Option, /// DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. - #[serde(alias="dmaId")] + #[serde(rename="dmaId")] pub dma_id: Option, } @@ -5300,15 +5300,15 @@ impl Resource for Metro {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Country { /// DART ID of this country. This is the ID used for targeting and generating reports. - #[serde(alias="dartId")] + #[serde(rename="dartId")] pub dart_id: String, /// Whether ad serving supports secure servers in this country. - #[serde(alias="sslEnabled")] + #[serde(rename="sslEnabled")] pub ssl_enabled: bool, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". pub kind: String, /// Country code. - #[serde(alias="countryCode")] + #[serde(rename="countryCode")] pub country_code: String, /// Name of this country. pub name: String, @@ -5331,7 +5331,7 @@ pub struct PostalCodesListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCodesListResponse". pub kind: String, /// Postal code collection. - #[serde(alias="postalCodes")] + #[serde(rename="postalCodes")] pub postal_codes: Vec, } @@ -5345,16 +5345,16 @@ impl ResponseResult for PostalCodesListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct TagSetting { /// Whether static landing page URLs should be included in the tags. This setting applies only to placements. - #[serde(alias="includeClickThroughUrls")] + #[serde(rename="includeClickThroughUrls")] pub include_click_through_urls: bool, /// Whether click-tracking string should be included in the tags. - #[serde(alias="includeClickTracking")] + #[serde(rename="includeClickTracking")] pub include_click_tracking: bool, /// Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field. - #[serde(alias="additionalKeyValues")] + #[serde(rename="additionalKeyValues")] pub additional_key_values: String, /// 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(alias="keywordOption")] + #[serde(rename="keywordOption")] pub keyword_option: String, } @@ -5380,48 +5380,48 @@ pub struct EventTag { /// Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. pub status: Option, /// Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a whitelist or blacklist filter. - #[serde(alias="siteIds")] + #[serde(rename="siteIds")] pub site_ids: Option>, /// Campaign ID of this event tag. This field or the advertiserId field is required on insertion. - #[serde(alias="campaignId")] + #[serde(rename="campaignId")] pub campaign_id: Option, /// Dimension value for the ID of the campaign. This is a read-only, auto-generated field. - #[serde(alias="campaignIdDimensionValue")] + #[serde(rename="campaignIdDimensionValue")] pub campaign_id_dimension_value: Option, /// Whether this event tag should be automatically enabled for all of the advertiser's campaigns and ads. - #[serde(alias="enabledByDefault")] + #[serde(rename="enabledByDefault")] pub enabled_by_default: Option, /// Advertiser ID of this event tag. This field or the campaignId field is required on insertion. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. - #[serde(alias="siteFilterType")] + #[serde(rename="siteFilterType")] pub site_filter_type: Option, /// 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(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// ID of this event tag. This is a read-only, auto-generated field. pub id: Option, /// Account ID of this event tag. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#eventTag". pub kind: Option, /// Subaccount ID of this event tag. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this event tag. This is a required field and must be less than 256 characters long. pub name: 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, /// Whether this tag is SSL-compliant or not. - #[serde(alias="sslCompliant")] + #[serde(rename="sslCompliant")] pub ssl_compliant: Option, /// Number of times the landing page URL should be URL-escaped before being appended to the click-through event tag URL. Only applies to click-through event tags as specified by the event tag type. - #[serde(alias="urlEscapeLevels")] + #[serde(rename="urlEscapeLevels")] pub url_escape_levels: Option, } @@ -5442,12 +5442,12 @@ impl ResponseResult for EventTag {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CreativeFieldValuesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#creativeFieldValuesListResponse". pub kind: String, /// Creative field value collection. - #[serde(alias="creativeFieldValues")] + #[serde(rename="creativeFieldValues")] pub creative_field_values: Vec, } @@ -5471,13 +5471,13 @@ pub struct DirectorySiteContact { /// Directory site contact role. pub role: String, /// First name of this directory site contact. - #[serde(alias="firstName")] + #[serde(rename="firstName")] pub first_name: String, /// Last name of this directory site contact. - #[serde(alias="lastName")] + #[serde(rename="lastName")] pub last_name: String, /// Directory site contact type. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Email address of this directory site contact. pub email: String, @@ -5501,14 +5501,14 @@ impl ResponseResult for DirectorySiteContact {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct DimensionValue { /// The name of the dimension. - #[serde(alias="dimensionName")] + #[serde(rename="dimensionName")] pub dimension_name: Option, /// The kind of resource this is, in this case dfareporting#dimensionValue. pub kind: Option, /// The eTag of this response for caching purposes. pub etag: Option, /// 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(alias="matchType")] + #[serde(rename="matchType")] pub match_type: Option, /// The ID associated with the value if available. pub id: Option, @@ -5531,12 +5531,12 @@ impl Resource for DimensionValue {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ContentCategoriesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#contentCategoriesListResponse". pub kind: String, /// Content category collection. - #[serde(alias="contentCategories")] + #[serde(rename="contentCategories")] pub content_categories: Vec, } @@ -5555,7 +5555,7 @@ impl ResponseResult for ContentCategoriesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FloodlightConfigurationsListResponse { /// Floodlight configuration collection. - #[serde(alias="floodlightConfigurations")] + #[serde(rename="floodlightConfigurations")] pub floodlight_configurations: Vec, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightConfigurationsListResponse". pub kind: String, @@ -5571,26 +5571,26 @@ impl ResponseResult for FloodlightConfigurationsListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct PopupWindowProperties { /// Whether to display the browser status bar. - #[serde(alias="showStatusBar")] + #[serde(rename="showStatusBar")] pub show_status_bar: bool, /// Whether to display the browser scroll bar. - #[serde(alias="showScrollBar")] + #[serde(rename="showScrollBar")] pub show_scroll_bar: bool, /// Whether to display the browser address bar. - #[serde(alias="showAddressBar")] + #[serde(rename="showAddressBar")] pub show_address_bar: bool, /// Whether to display the browser menu bar. - #[serde(alias="showMenuBar")] + #[serde(rename="showMenuBar")] pub show_menu_bar: bool, /// Title of popup window. pub title: String, /// Upper-left corner coordinates of the popup window. Applicable if positionType is COORDINATES. pub offset: OffsetPosition, /// Popup window position either centered or at specific coordinate. - #[serde(alias="positionType")] + #[serde(rename="positionType")] pub position_type: String, /// Whether to display the browser tool bar. - #[serde(alias="showToolBar")] + #[serde(rename="showToolBar")] pub show_tool_bar: bool, /// Popup dimension for a creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID pub dimension: Size, @@ -5612,7 +5612,7 @@ impl Part for PopupWindowProperties {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AccountPermission { /// Permission group of this account permission. - #[serde(alias="permissionGroupId")] + #[serde(rename="permissionGroupId")] pub permission_group_id: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountPermission". pub kind: String, @@ -5625,7 +5625,7 @@ pub struct AccountPermission { /// Possible values are: /// - "ACCOUNT_PROFILE_BASIC" /// - "ACCOUNT_PROFILE_STANDARD" - #[serde(alias="accountProfiles")] + #[serde(rename="accountProfiles")] pub account_profiles: Vec, /// ID of this account permission. pub id: String, @@ -5651,27 +5651,27 @@ impl ResponseResult for AccountPermission {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Ad { /// Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. - #[serde(alias="clickThroughUrlSuffixProperties")] + #[serde(rename="clickThroughUrlSuffixProperties")] pub click_through_url_suffix_properties: Option, /// Campaign ID of this ad. This is a required field on insertion. - #[serde(alias="campaignId")] + #[serde(rename="campaignId")] pub campaign_id: Option, /// Advertiser ID of this ad. This is a required field on insertion. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Geographical targeting information for this ad.Applicable when type is AD_SERVING_STANDARD_AD. - #[serde(alias="geoTargeting")] + #[serde(rename="geoTargeting")] pub geo_targeting: Option, /// Comments for this ad. pub comments: Option, /// Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. - #[serde(alias="deliverySchedule")] + #[serde(rename="deliverySchedule")] pub delivery_schedule: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// Event tag overrides for this ad. - #[serde(alias="eventTagOverrides")] + #[serde(rename="eventTagOverrides")] pub event_tag_overrides: Option>, /// ID of this ad. This is a read-only, auto-generated field. pub id: Option, @@ -5682,46 +5682,46 @@ pub struct Ad { /// Whether this ad is archived. pub archived: Option, /// Technology platform targeting information for this ad. Applicable when type is AD_SERVING_STANDARD_AD. - #[serde(alias="technologyTargeting")] + #[serde(rename="technologyTargeting")] pub technology_targeting: Option, /// Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. - #[serde(alias="creativeRotation")] + #[serde(rename="creativeRotation")] pub creative_rotation: Option, /// Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. - #[serde(alias="clickThroughUrl")] + #[serde(rename="clickThroughUrl")] pub click_through_url: Option, /// Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. - #[serde(alias="creativeGroupAssignments")] + #[serde(rename="creativeGroupAssignments")] pub creative_group_assignments: Option>, /// Dimension value for the ID of this ad. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Account ID of this ad. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// 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(alias="type")] + #[serde(rename="type")] pub type_: Option, /// Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. - #[serde(alias="sslRequired")] + #[serde(rename="sslRequired")] pub ssl_required: Option, /// Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. - #[serde(alias="audienceSegmentId")] + #[serde(rename="audienceSegmentId")] pub audience_segment_id: Option, /// Key-value targeting information for this ad. Applicable when type is AD_SERVING_STANDARD_AD. - #[serde(alias="keyValueTargetingExpression")] + #[serde(rename="keyValueTargetingExpression")] pub key_value_targeting_expression: Option, /// Dimension value for the ID of the campaign. This is a read-only, auto-generated field. - #[serde(alias="campaignIdDimensionValue")] + #[serde(rename="campaignIdDimensionValue")] pub campaign_id_dimension_value: Option, /// Default click-through event tag properties for this ad. - #[serde(alias="defaultClickThroughEventTagProperties")] + #[serde(rename="defaultClickThroughEventTagProperties")] pub default_click_through_event_tag_properties: Option, /// Information about the creation of this ad.This is a read-only field. - #[serde(alias="createInfo")] + #[serde(rename="createInfo")] pub create_info: Option, /// Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: Option, /// Whether this ad is active. pub active: Option, @@ -5730,27 +5730,27 @@ pub struct Ad { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". pub kind: Option, /// Subaccount ID of this ad. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this ad. This is a required field and must be less than 256 characters long. pub name: Option, /// Time and day targeting information for this ad. Applicable when type is AD_SERVING_STANDARD_AD. - #[serde(alias="dayPartTargeting")] + #[serde(rename="dayPartTargeting")] pub day_part_targeting: Option, /// Information about the most recent modification of this ad. This is a read-only field. - #[serde(alias="lastModifiedInfo")] + #[serde(rename="lastModifiedInfo")] pub last_modified_info: Option, /// Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. - #[serde(alias="sslCompliant")] + #[serde(rename="sslCompliant")] pub ssl_compliant: Option, /// Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. - #[serde(alias="endTime")] + #[serde(rename="endTime")] pub end_time: Option, /// Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. - #[serde(alias="dynamicClickTracker")] + #[serde(rename="dynamicClickTracker")] pub dynamic_click_tracker: Option, /// Placement assignments for this ad. - #[serde(alias="placementAssignments")] + #[serde(rename="placementAssignments")] pub placement_assignments: Option>, } @@ -5768,16 +5768,16 @@ pub struct PricingSchedulePricingPeriod { /// Units of this pricing period. pub units: String, /// Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// Rate or cost of this pricing period. - #[serde(alias="rateOrCostNanos")] + #[serde(rename="rateOrCostNanos")] pub rate_or_cost_nanos: String, /// Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// Comments for this pricing period. - #[serde(alias="pricingComment")] + #[serde(rename="pricingComment")] pub pricing_comment: String, } @@ -5793,13 +5793,13 @@ pub struct PlacementAssignment { /// Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. pub active: bool, /// Dimension value for the ID of the placement. This is a read-only, auto-generated field. - #[serde(alias="placementIdDimensionValue")] + #[serde(rename="placementIdDimensionValue")] pub placement_id_dimension_value: DimensionValue, /// ID of the placement to be assigned. This is a required field. - #[serde(alias="placementId")] + #[serde(rename="placementId")] pub placement_id: String, /// Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. - #[serde(alias="sslRequired")] + #[serde(rename="sslRequired")] pub ssl_required: bool, } @@ -5819,13 +5819,13 @@ pub struct ReachReportCompatibleFields { /// Dimensions which are compatible to be selected in the "dimensions" section of the report. pub dimensions: Vec, /// Metrics which are compatible to be selected in the "reachByFrequencyMetricNames" section of the report. - #[serde(alias="reachByFrequencyMetrics")] + #[serde(rename="reachByFrequencyMetrics")] pub reach_by_frequency_metrics: Vec, /// Dimensions which are compatible to be selected in the "dimensionFilters" section of the report. - #[serde(alias="dimensionFilters")] + #[serde(rename="dimensionFilters")] pub dimension_filters: Vec, /// Metrics which are compatible to be selected as activity metrics to pivot on in the "activities" section of the report. - #[serde(alias="pivotedActivityMetrics")] + #[serde(rename="pivotedActivityMetrics")] pub pivoted_activity_metrics: Vec, } @@ -5850,34 +5850,34 @@ pub struct Site { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#site". pub kind: Option, /// Subaccount ID of this site. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account. pub name: Option, /// Dimension value for the ID of the directory site. This is a read-only, auto-generated field. - #[serde(alias="directorySiteIdDimensionValue")] + #[serde(rename="directorySiteIdDimensionValue")] pub directory_site_id_dimension_value: Option, /// Site-wide settings. - #[serde(alias="siteSettings")] + #[serde(rename="siteSettings")] pub site_settings: Option, /// ID of this site. This is a read-only, auto-generated field. pub id: Option, /// Directory site associated with this site. This is a required field that is read-only after insertion. - #[serde(alias="directorySiteId")] + #[serde(rename="directorySiteId")] pub directory_site_id: Option, /// Site contacts. - #[serde(alias="siteContacts")] + #[serde(rename="siteContacts")] pub site_contacts: Option>, /// Key name of this site. This is a read-only, auto-generated field. - #[serde(alias="keyName")] + #[serde(rename="keyName")] pub key_name: Option, /// Dimension value for the ID of this site. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Whether this site is approved. pub approved: Option, /// Account ID of this site. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, } @@ -5897,13 +5897,13 @@ pub struct DfpSettings { /// DFP network code for this directory site. pub dfp_network_code: String, /// Whether this directory site is available only via DoubleClick Publisher Portal. - #[serde(alias="publisherPortalOnly")] + #[serde(rename="publisherPortalOnly")] pub publisher_portal_only: bool, /// Whether this directory site accepts programmatic placements. - #[serde(alias="programmaticPlacementAccepted")] + #[serde(rename="programmaticPlacementAccepted")] pub programmatic_placement_accepted: bool, /// Whether this directory site accepts publisher-paid tags. - #[serde(alias="pubPaidPlacementAccepted")] + #[serde(rename="pubPaidPlacementAccepted")] pub pub_paid_placement_accepted: bool, } @@ -5924,7 +5924,7 @@ pub struct ConnectionTypesListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionTypesListResponse". pub kind: String, /// Collection of connection types such as broadband and mobile. - #[serde(alias="connectionTypes")] + #[serde(rename="connectionTypes")] pub connection_types: Vec, } @@ -5946,57 +5946,57 @@ impl ResponseResult for ConnectionTypesListResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FloodlightConfiguration { /// List of user defined variables enabled for this configuration. - #[serde(alias="userDefinedVariableConfigurations")] + #[serde(rename="userDefinedVariableConfigurations")] pub user_defined_variable_configurations: Option>, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightConfiguration". pub kind: Option, /// Advertiser ID of the parent advertiser of this floodlight configuration. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: Option, /// Configuration settings for dynamic and image floodlight tags. - #[serde(alias="tagSettings")] + #[serde(rename="tagSettings")] pub tag_settings: Option, /// Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. - #[serde(alias="advertiserIdDimensionValue")] + #[serde(rename="advertiserIdDimensionValue")] pub advertiser_id_dimension_value: Option, /// ID of this floodlight configuration. This is a read-only, auto-generated field. pub id: Option, /// Account ID of this floodlight configuration. This is a read-only field that can be left blank. - #[serde(alias="accountId")] + #[serde(rename="accountId")] pub account_id: Option, /// Types of attribution options for natural search conversions. - #[serde(alias="naturalSearchConversionAttributionOption")] + #[serde(rename="naturalSearchConversionAttributionOption")] pub natural_search_conversion_attribution_option: Option, /// Settings for DCM Omniture integration. - #[serde(alias="omnitureSettings")] + #[serde(rename="omnitureSettings")] pub omniture_settings: Option, /// Whether the exposure-to-conversion report is enabled. This report shows detailed pathway information on up to 10 of the most recent ad exposures seen by a user before converting. - #[serde(alias="exposureToConversionEnabled")] + #[serde(rename="exposureToConversionEnabled")] pub exposure_to_conversion_enabled: Option, /// Lookback window settings for this floodlight configuration. - #[serde(alias="lookbackConfiguration")] + #[serde(rename="lookbackConfiguration")] pub lookback_configuration: Option, /// Day that will be counted as the first day of the week in reports. This is a required field. - #[serde(alias="firstDayOfWeek")] + #[serde(rename="firstDayOfWeek")] pub first_day_of_week: Option, /// List of standard variables enabled for this configuration. /// /// Acceptable values are: /// - "ORD" /// - "NUM" - #[serde(alias="standardVariableTypes")] + #[serde(rename="standardVariableTypes")] pub standard_variable_types: Option>, /// Subaccount ID of this floodlight configuration. This is a read-only field that can be left blank. - #[serde(alias="subaccountId")] + #[serde(rename="subaccountId")] pub subaccount_id: Option, /// Whether advertiser data is shared with Google Analytics. - #[serde(alias="analyticsDataSharingEnabled")] + #[serde(rename="analyticsDataSharingEnabled")] pub analytics_data_sharing_enabled: Option, /// Dimension value for the ID of this floodlight configuration. This is a read-only, auto-generated field. - #[serde(alias="idDimensionValue")] + #[serde(rename="idDimensionValue")] pub id_dimension_value: Option, /// Whether floodlight activities owned by this configuration are required to be SSL-compliant. - #[serde(alias="sslRequired")] + #[serde(rename="sslRequired")] pub ssl_required: Option, } @@ -6012,15 +6012,15 @@ impl ResponseResult for FloodlightConfiguration {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct DateRange { /// The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd". - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// The kind of resource this is, in this case dfareporting#dateRange. pub kind: String, /// The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd". - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// The date range relative to the date of when the report is run. - #[serde(alias="relativeDateRange")] + #[serde(rename="relativeDateRange")] pub relative_date_range: String, } @@ -6041,7 +6041,7 @@ pub struct AccountPermissionGroupsListResponse { /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#accountPermissionGroupsListResponse". pub kind: String, /// Account permission group collection. - #[serde(alias="accountPermissionGroups")] + #[serde(rename="accountPermissionGroups")] pub account_permission_groups: Vec, } @@ -6080,12 +6080,12 @@ impl ResponseResult for SizesListResponse {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UserRolesListResponse { /// Pagination token to be used for the next list operation. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRolesListResponse". pub kind: String, /// User role collection. - #[serde(alias="userRoles")] + #[serde(rename="userRoles")] pub user_roles: Vec, } diff --git a/gen/discovery1/Cargo.toml b/gen/discovery1/Cargo.toml index 7b8b025da0..d7f5304921 100644 --- a/gen/discovery1/Cargo.toml +++ b/gen/discovery1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-discovery1" -version = "0.1.3+00000000" +version = "0.1.4+00000000" authors = ["Sebastian Thiel "] description = "A complete library to interact with discovery (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/discovery1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/discovery1/README.md b/gen/discovery1/README.md index f90247f164..a2b752e287 100644 --- a/gen/discovery1/README.md +++ b/gen/discovery1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-discovery1` library allows access to all features of the *Google discovery* service. -This documentation was generated from *discovery* crate version *0.1.3+00000000*, where *00000000* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *discovery* crate version *0.1.4+00000000*, where *00000000* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *discovery* *v1* API can be found at the [official documentation site](https://developers.google.com/discovery/). diff --git a/gen/discovery1/src/lib.rs b/gen/discovery1/src/lib.rs index b5d7cc6f19..fa20a48a39 100644 --- a/gen/discovery1/src/lib.rs +++ b/gen/discovery1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *discovery* crate version *0.1.3+00000000*, where *00000000* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *discovery* crate version *0.1.4+00000000*, where *00000000* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *discovery* *v1* API can be found at the //! [official documentation site](https://developers.google.com/discovery/). @@ -274,7 +274,7 @@ impl<'a, C, NC, A> Discovery Discovery { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -284,7 +284,7 @@ impl<'a, C, NC, A> Discovery } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -319,7 +319,7 @@ impl Part for RestDescriptionAuthOauth2 {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RestMethodResponse { /// Schema ID for the response schema. - #[serde(alias="$ref")] + #[serde(rename="$ref")] pub ref_: String, } @@ -398,7 +398,7 @@ pub struct JsonSchemaVariantMap { /// no description provided pub type_value: String, /// no description provided - #[serde(alias="$ref")] + #[serde(rename="$ref")] pub ref_: String, } @@ -435,27 +435,27 @@ pub struct RestMethod { /// Details for all parameters in this method. pub parameters: HashMap, /// Whether this method supports media uploads. - #[serde(alias="supportsMediaUpload")] + #[serde(rename="supportsMediaUpload")] pub supports_media_upload: bool, /// Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header. - #[serde(alias="etagRequired")] + #[serde(rename="etagRequired")] pub etag_required: bool, /// Media upload parameters. - #[serde(alias="mediaUpload")] + #[serde(rename="mediaUpload")] pub media_upload: RestMethodMediaUpload, /// The schema for the request. pub request: RestMethodRequest, /// Indicates that downloads from this method should use the download service URL (i.e. "/download"). Only applies if the method supports media download. - #[serde(alias="useMediaDownloadService")] + #[serde(rename="useMediaDownloadService")] pub use_media_download_service: bool, /// HTTP method used by this method. - #[serde(alias="httpMethod")] + #[serde(rename="httpMethod")] pub http_method: String, /// Whether this method supports subscriptions. - #[serde(alias="supportsSubscription")] + #[serde(rename="supportsSubscription")] pub supports_subscription: bool, /// Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures. The array is ordered such that the "most-significant" parameter appears first. - #[serde(alias="parameterOrder")] + #[serde(rename="parameterOrder")] pub parameter_order: Vec, /// A unique ID for this method. This property can be used to match methods between different versions of Discovery. pub id: String, @@ -464,7 +464,7 @@ pub struct RestMethod { /// The schema for the response. pub response: RestMethodResponse, /// Whether this method supports media downloads. - #[serde(alias="supportsMediaDownload")] + #[serde(rename="supportsMediaDownload")] pub supports_media_download: bool, } @@ -491,31 +491,31 @@ pub struct RestDescription { /// The kind for this response. pub kind: String, /// Indicates how the API name should be capitalized and split into various parts. Useful for generating pretty class names. - #[serde(alias="canonicalName")] + #[serde(rename="canonicalName")] pub canonical_name: String, /// The name of the owner of this API. See ownerDomain. - #[serde(alias="ownerName")] + #[serde(rename="ownerName")] pub owner_name: String, /// A link to human readable documentation for the API. - #[serde(alias="documentationLink")] + #[serde(rename="documentationLink")] pub documentation_link: String, /// Authentication information. pub auth: RestDescriptionAuth, /// The package of the owner of this API. See ownerDomain. - #[serde(alias="packagePath")] + #[serde(rename="packagePath")] pub package_path: String, /// The path for REST batch requests. - #[serde(alias="batchPath")] + #[serde(rename="batchPath")] pub batch_path: String, /// The ID of this API. pub id: String, /// A list of supported features for this API. pub features: Vec, /// The domain of the owner of this API. Together with the ownerName and a packagePath values, this can be used to generate a library for this API which would have a unique fully qualified name. - #[serde(alias="ownerDomain")] + #[serde(rename="ownerDomain")] pub owner_domain: String, /// The root URL under which all API services live. - #[serde(alias="rootUrl")] + #[serde(rename="rootUrl")] pub root_url: String, /// The name of this API. pub name: String, @@ -528,22 +528,22 @@ pub struct RestDescription { /// The title of this API. pub title: String, /// [DEPRECATED] The base URL for REST requests. - #[serde(alias="baseUrl")] + #[serde(rename="baseUrl")] pub base_url: String, /// The ETag for this response. pub etag: String, /// The version of this API. pub version: String, /// The base path for all REST requests. - #[serde(alias="servicePath")] + #[serde(rename="servicePath")] pub service_path: String, /// Indicate the version of the Discovery API used to generate this doc. - #[serde(alias="discoveryVersion")] + #[serde(rename="discoveryVersion")] pub discovery_version: String, /// The schemas for this API. pub schemas: HashMap, /// [DEPRECATED] The base path for REST requests. - #[serde(alias="basePath")] + #[serde(rename="basePath")] pub base_path: String, /// The resources in this API. pub resources: HashMap, @@ -561,7 +561,7 @@ impl ResponseResult for RestDescription {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RestMethodMediaUpload { /// Maximum size of a media upload, such as "1MB", "2GB" or "3TB". - #[serde(alias="maxSize")] + #[serde(rename="maxSize")] pub max_size: String, /// MIME Media Ranges for acceptable media uploads to this method. pub accept: Vec, @@ -587,7 +587,7 @@ pub struct DirectoryList { /// The individual directory entries. One entry per api/version pair. pub items: Vec, /// Indicate the version of the Discovery API used to generate this doc. - #[serde(alias="discoveryVersion")] + #[serde(rename="discoveryVersion")] pub discovery_version: String, /// The kind for this response. pub kind: String, @@ -607,15 +607,15 @@ pub struct JsonSchema { /// An additional regular expression or key that helps constrain the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23 pub format: String, /// Values this parameter may take (if it is an enum). - #[serde(alias="enum")] + #[serde(rename="enum")] pub enum_: Vec, /// In a variant data type, the value of one property is used to determine how to interpret the entire entity. Its value must exist in a map of descriminant values to schema names. pub variant: JsonSchemaVariant, /// The descriptions for the enums. Each position maps to the corresponding value in the "enum" array. - #[serde(alias="enumDescriptions")] + #[serde(rename="enumDescriptions")] pub enum_descriptions: Vec, /// The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service. - #[serde(alias="readOnly")] + #[serde(rename="readOnly")] pub read_only: bool, /// The minimum value of this parameter. pub minimum: String, @@ -624,7 +624,7 @@ pub struct JsonSchema { /// Unique identifier for this schema. pub id: String, /// A reference to another schema. The value of this property is the "id" of another schema. - #[serde(alias="$ref")] + #[serde(rename="$ref")] pub ref_: String, /// The default value of this property (if one exists). pub default: String, @@ -641,10 +641,10 @@ pub struct JsonSchema { /// The regular expression this parameter must conform to. Uses Java 6 regex format: http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html pub pattern: String, /// If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object. - #[serde(alias="additionalProperties")] + #[serde(rename="additionalProperties")] pub additional_properties: Option>, /// The value type for this schema. A list of values can be found here: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Additional information about this property. pub annotations: JsonSchemaAnnotations, @@ -662,7 +662,7 @@ pub struct DirectoryListItems { /// The kind for this response. pub kind: String, /// The URL for the discovery REST document. - #[serde(alias="discoveryRestUrl")] + #[serde(rename="discoveryRestUrl")] pub discovery_rest_url: String, /// The description of this API. pub description: String, @@ -673,14 +673,14 @@ pub struct DirectoryListItems { /// True if this version is the preferred version to use. pub preferred: bool, /// A link to the discovery document. - #[serde(alias="discoveryLink")] + #[serde(rename="discoveryLink")] pub discovery_link: String, /// The version of the API. pub version: String, /// The title of this API. pub title: String, /// A link to human readable documentation for the API. - #[serde(alias="documentationLink")] + #[serde(rename="documentationLink")] pub documentation_link: String, /// The id of this API. pub id: String, @@ -743,10 +743,10 @@ impl Part for DirectoryListItemsIcons {} #[derive(Default, Clone, Debug, Deserialize)] pub struct RestMethodRequest { /// parameter name. - #[serde(alias="parameterName")] + #[serde(rename="parameterName")] pub parameter_name: String, /// Schema ID for the request schema. - #[serde(alias="$ref")] + #[serde(rename="$ref")] pub ref_: String, } diff --git a/gen/dns1_beta1/Cargo.toml b/gen/dns1_beta1/Cargo.toml index 3a7c0a9419..f312167860 100644 --- a/gen/dns1_beta1/Cargo.toml +++ b/gen/dns1_beta1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dns1_beta1" -version = "0.1.3+20150114" +version = "0.1.4+20150114" authors = ["Sebastian Thiel "] description = "A complete library to interact with dns (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dns1_beta1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/dns1_beta1/README.md b/gen/dns1_beta1/README.md index bdd662058b..428e56cfba 100644 --- a/gen/dns1_beta1/README.md +++ b/gen/dns1_beta1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-dns1_beta1` library allows access to all features of the *Google dns* service. -This documentation was generated from *dns* crate version *0.1.3+20150114*, where *20150114* is the exact revision of the *dns:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *dns* crate version *0.1.4+20150114*, where *20150114* is the exact revision of the *dns:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *dns* *v1_beta1* API can be found at the [official documentation site](https://developers.google.com/cloud-dns). diff --git a/gen/dns1_beta1/src/lib.rs b/gen/dns1_beta1/src/lib.rs index 149dc05671..4ae784c316 100644 --- a/gen/dns1_beta1/src/lib.rs +++ b/gen/dns1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dns* crate version *0.1.3+20150114*, where *20150114* is the exact revision of the *dns:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *dns* crate version *0.1.4+20150114*, where *20150114* is the exact revision of the *dns:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *dns* *v1_beta1* API can be found at the //! [official documentation site](https://developers.google.com/cloud-dns). @@ -317,7 +317,7 @@ impl<'a, C, NC, A> Dns Dns { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -336,7 +336,7 @@ impl<'a, C, NC, A> Dns } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -369,18 +369,18 @@ pub struct ManagedZone { /// A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the managed zone's function. pub description: Option, /// Delegate your managed_zone to these virtual name servers; defined by the server (output only) - #[serde(alias="nameServers")] + #[serde(rename="nameServers")] pub name_servers: Option>, /// The time that this resource was created on the server. This is in RFC3339 text format. Output only. - #[serde(alias="creationTime")] + #[serde(rename="creationTime")] pub creation_time: Option, /// Unique identifier for the resource; defined by the server (output only) pub id: Option, /// The DNS name of this managed zone, for instance "example.com.". - #[serde(alias="dnsName")] + #[serde(rename="dnsName")] pub dns_name: Option, /// Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet is a set of DNS name servers that all host the same ManagedZones. Most users will leave this field unset. - #[serde(alias="nameServerSet")] + #[serde(rename="nameServerSet")] pub name_server_set: Option, /// User assigned name for this resource. Must be unique within the project. The name must be 1-32 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes. pub name: Option, @@ -407,7 +407,7 @@ pub struct ResourceRecordSet { /// Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet". pub kind: Option, /// One of A, AAAA, SOA, MX, NS, TXT - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// For example, www.example.com. pub name: Option, @@ -425,24 +425,24 @@ impl Resource for ResourceRecordSet {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Quota { /// Maximum allowed number of ResourceRecordSets per zone in the project. - #[serde(alias="rrsetsPerManagedZone")] + #[serde(rename="rrsetsPerManagedZone")] pub rrsets_per_managed_zone: i32, /// Identifies what kind of resource this is. Value: the fixed string "dns#quota". pub kind: String, /// Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest. - #[serde(alias="rrsetAdditionsPerChange")] + #[serde(rename="rrsetAdditionsPerChange")] pub rrset_additions_per_change: i32, /// Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. - #[serde(alias="totalRrdataSizePerChange")] + #[serde(rename="totalRrdataSizePerChange")] pub total_rrdata_size_per_change: i32, /// Maximum allowed number of ResourceRecords per ResourceRecordSet. - #[serde(alias="resourceRecordsPerRrset")] + #[serde(rename="resourceRecordsPerRrset")] pub resource_records_per_rrset: i32, /// Maximum allowed number of ResourceRecordSets to delete per ChangesCreateRequest. - #[serde(alias="rrsetDeletionsPerChange")] + #[serde(rename="rrsetDeletionsPerChange")] pub rrset_deletions_per_change: i32, /// Maximum allowed number of managed zones in the project. - #[serde(alias="managedZones")] + #[serde(rename="managedZones")] pub managed_zones: i32, } @@ -488,7 +488,7 @@ pub struct ChangesListResponse { /// The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. /// /// In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a "snapshot" of collections larger than the maximum page size. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Type of resource. pub kind: String, @@ -513,12 +513,12 @@ pub struct ManagedZonesListResponse { /// The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. /// /// In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// Type of resource. pub kind: String, /// The managed zone resources. - #[serde(alias="managedZones")] + #[serde(rename="managedZones")] pub managed_zones: Vec, } @@ -545,7 +545,7 @@ pub struct Change { /// Identifies what kind of resource this is. Value: the fixed string "dns#change". pub kind: Option, /// The time that this operation was started by the server. This is in RFC3339 text format. - #[serde(alias="startTime")] + #[serde(rename="startTime")] pub start_time: Option, /// Which ResourceRecordSets to add? pub additions: Option>, @@ -572,7 +572,7 @@ pub struct ResourceRecordSetsListResponse { /// The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. /// /// In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// The resource record set resources. pub rrsets: Vec, diff --git a/gen/doubleclickbidmanager1/Cargo.toml b/gen/doubleclickbidmanager1/Cargo.toml index 9aeccd2721..5b2b7e6aae 100644 --- a/gen/doubleclickbidmanager1/Cargo.toml +++ b/gen/doubleclickbidmanager1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-doubleclickbidmanager1" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with DoubleClick Bid Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/doubleclickbidmanager1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/doubleclickbidmanager1/README.md b/gen/doubleclickbidmanager1/README.md index 48287fad83..8ee5b04bd3 100644 --- a/gen/doubleclickbidmanager1/README.md +++ b/gen/doubleclickbidmanager1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-doubleclickbidmanager1` library allows access to all features of the *Google DoubleClick Bid Manager* service. -This documentation was generated from *DoubleClick Bid Manager* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *DoubleClick Bid Manager* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *DoubleClick Bid Manager* *v1* API can be found at the [official documentation site](https://developers.google.com/bid-manager/). diff --git a/gen/doubleclickbidmanager1/src/lib.rs b/gen/doubleclickbidmanager1/src/lib.rs index 29b4f20793..6d8f128ea0 100644 --- a/gen/doubleclickbidmanager1/src/lib.rs +++ b/gen/doubleclickbidmanager1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *DoubleClick Bid Manager* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *DoubleClick Bid Manager* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *DoubleClick Bid Manager* *v1* API can be found at the //! [official documentation site](https://developers.google.com/bid-manager/). @@ -279,7 +279,7 @@ impl<'a, C, NC, A> DoubleClickBidManager DoubleClickBidManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -295,7 +295,7 @@ impl<'a, C, NC, A> DoubleClickBidManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -321,10 +321,10 @@ impl<'a, C, NC, A> DoubleClickBidManager #[derive(Default, Clone, Debug, Serialize)] pub struct DownloadLineItemsRequest { /// Filter type used to filter line items to fetch. - #[serde(alias="filterType")] + #[serde(rename="filterType")] pub filter_type: Option, /// Ids of the specified filter type used to filter line items to fetch. If omitted, all the line items will be returned. - #[serde(alias="filterIds")] + #[serde(rename="filterIds")] pub filter_ids: Option>, /// Format in which the line items will be returned. Default to CSV. pub format: Option, @@ -340,7 +340,7 @@ impl RequestValue for DownloadLineItemsRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReportFailure { /// Error code that shows why the report was not created. - #[serde(alias="errorCode")] + #[serde(rename="errorCode")] pub error_code: String, } @@ -358,13 +358,13 @@ pub struct Parameters { /// Filters used to match traffic data in your report. pub filters: Vec, /// Report type. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Data is grouped by the filters listed in this field. - #[serde(alias="groupBys")] + #[serde(rename="groupBys")] pub group_bys: Vec, /// Whether to include data from Invite Media. - #[serde(alias="includeInviteData")] + #[serde(rename="includeInviteData")] pub include_invite_data: bool, } @@ -378,10 +378,10 @@ impl Part for Parameters {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ReportKey { /// Query ID. - #[serde(alias="queryId")] + #[serde(rename="queryId")] pub query_id: String, /// Report ID. - #[serde(alias="reportId")] + #[serde(rename="reportId")] pub report_id: String, } @@ -400,10 +400,10 @@ impl Part for ReportKey {} #[derive(Default, Clone, Debug, Serialize)] pub struct UploadLineItemsRequest { /// Line items in CSV to upload. Refer to Entity Write File Format for more information on file format. - #[serde(alias="lineItems")] + #[serde(rename="lineItems")] pub line_items: Option, /// Set to true to get upload status without actually persisting the line items. - #[serde(alias="dryRun")] + #[serde(rename="dryRun")] pub dry_run: Option, /// Format the line items are in. Default to CSV. pub format: Option, @@ -441,13 +441,13 @@ pub struct ReportMetadata { /// Report status. pub status: ReportStatus, /// The ending time for the data that is shown in the report. - #[serde(alias="reportDataEndTimeMs")] + #[serde(rename="reportDataEndTimeMs")] pub report_data_end_time_ms: String, /// The path to the location in Google Cloud Storage where the report is stored. - #[serde(alias="googleCloudStoragePath")] + #[serde(rename="googleCloudStoragePath")] pub google_cloud_storage_path: String, /// The starting time for the data that is shown in the report. - #[serde(alias="reportDataStartTimeMs")] + #[serde(rename="reportDataStartTimeMs")] pub report_data_start_time_ms: String, } @@ -461,15 +461,15 @@ impl Part for ReportMetadata {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct QuerySchedule { /// Datetime to periodically run the query until. - #[serde(alias="endTimeMs")] + #[serde(rename="endTimeMs")] pub end_time_ms: String, /// How often the query is run. pub frequency: String, /// 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(alias="nextRunMinuteOfDay")] + #[serde(rename="nextRunMinuteOfDay")] pub next_run_minute_of_day: i32, /// Canonical timezone code for report generation time. Defaults to America/New_York. - #[serde(alias="nextRunTimezoneCode")] + #[serde(rename="nextRunTimezoneCode")] pub next_run_timezone_code: String, } @@ -488,16 +488,16 @@ impl Part for QuerySchedule {} #[derive(Default, Clone, Debug, Serialize)] pub struct RunQueryRequest { /// 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(alias="reportDataEndTimeMs")] + #[serde(rename="reportDataEndTimeMs")] pub report_data_end_time_ms: Option, /// Canonical timezone code for report data time. Defaults to America/New_York. - #[serde(alias="timezoneCode")] + #[serde(rename="timezoneCode")] pub timezone_code: Option, /// The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. - #[serde(alias="reportDataStartTimeMs")] + #[serde(rename="reportDataStartTimeMs")] pub report_data_start_time_ms: Option, /// Report data range used to generate the report. - #[serde(alias="dataRange")] + #[serde(rename="dataRange")] pub data_range: Option, } @@ -516,7 +516,7 @@ impl RequestValue for RunQueryRequest {} #[derive(Default, Clone, Debug, Deserialize)] pub struct UploadLineItemsResponse { /// Status of upload. - #[serde(alias="uploadStatus")] + #[serde(rename="uploadStatus")] pub upload_status: UploadStatus, } @@ -530,33 +530,33 @@ impl ResponseResult for UploadLineItemsResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct QueryMetadata { /// The path to the location in Google Cloud Storage where the latest report is stored. - #[serde(alias="googleCloudStoragePathForLatestReport")] + #[serde(rename="googleCloudStoragePathForLatestReport")] pub google_cloud_storage_path_for_latest_report: String, /// Range of report data. - #[serde(alias="dataRange")] + #[serde(rename="dataRange")] pub data_range: String, /// Whether to send an email notification when a report is ready. Default to false. - #[serde(alias="sendNotification")] + #[serde(rename="sendNotification")] pub send_notification: bool, /// Locale of the generated reports. Valid values are cs CZECH de GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE /// /// An locale string not in the list above will generate reports in English. pub locale: String, /// The path in Google Drive for the latest report. - #[serde(alias="googleDrivePathForLatestReport")] + #[serde(rename="googleDrivePathForLatestReport")] pub google_drive_path_for_latest_report: String, /// Format of the generated report. pub format: String, /// List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification. - #[serde(alias="shareEmailAddress")] + #[serde(rename="shareEmailAddress")] pub share_email_address: Vec, /// Number of reports that have been generated for the query. - #[serde(alias="reportCount")] + #[serde(rename="reportCount")] pub report_count: i32, /// Whether the latest report is currently running. pub running: bool, /// The time when the latest report started to run. - #[serde(alias="latestReportRunTimeMs")] + #[serde(rename="latestReportRunTimeMs")] pub latest_report_run_time_ms: String, /// Query title. It is used to name the reports generated from this query. pub title: String, @@ -576,7 +576,7 @@ pub struct ReportStatus { /// The state of the report. pub state: String, /// The time when this report either completed successfully or failed. - #[serde(alias="finishTimeMs")] + #[serde(rename="finishTimeMs")] pub finish_time_ms: String, /// The file type of the report. pub format: String, @@ -616,15 +616,15 @@ pub struct RowStatus { /// Reasons why the entity can't be uploaded. pub errors: Vec, /// Entity name. - #[serde(alias="entityName")] + #[serde(rename="entityName")] pub entity_name: String, /// Whether the stored entity is changed as a result of upload. pub changed: bool, /// Entity Id. - #[serde(alias="entityId")] + #[serde(rename="entityId")] pub entity_id: String, /// Row number. - #[serde(alias="rowNumber")] + #[serde(rename="rowNumber")] pub row_number: i32, } @@ -670,18 +670,18 @@ pub struct Query { /// Information on how often and when to run a query. pub schedule: Option, /// Canonical timezone code for report data time. Defaults to America/New_York. - #[serde(alias="timezoneCode")] + #[serde(rename="timezoneCode")] pub timezone_code: Option, /// The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. - #[serde(alias="reportDataEndTimeMs")] + #[serde(rename="reportDataEndTimeMs")] pub report_data_end_time_ms: Option, /// Query ID. - #[serde(alias="queryId")] + #[serde(rename="queryId")] pub query_id: Option, /// Query parameters. pub params: Option, /// The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. - #[serde(alias="reportDataStartTimeMs")] + #[serde(rename="reportDataStartTimeMs")] pub report_data_start_time_ms: Option, /// Query metadata. pub metadata: Option, @@ -703,7 +703,7 @@ impl ResponseResult for Query {} #[derive(Default, Clone, Debug, Deserialize)] pub struct DownloadLineItemsResponse { /// Retrieved line items in CSV format. Refer to Entity Write File Format for more information on file format. - #[serde(alias="lineItems")] + #[serde(rename="lineItems")] pub line_items: String, } @@ -717,7 +717,7 @@ impl ResponseResult for DownloadLineItemsResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FilterPair { /// Filter type. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Filter value. pub value: String, @@ -735,7 +735,7 @@ pub struct UploadStatus { /// Reasons why upload can't be completed. pub errors: Vec, /// Per-row upload status. - #[serde(alias="rowStatus")] + #[serde(rename="rowStatus")] pub row_status: Vec, } diff --git a/gen/doubleclicksearch2/Cargo.toml b/gen/doubleclicksearch2/Cargo.toml index 8598128ce0..52f29c2852 100644 --- a/gen/doubleclicksearch2/Cargo.toml +++ b/gen/doubleclicksearch2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-doubleclicksearch2" -version = "0.1.3+20150303" +version = "0.1.4+20150303" authors = ["Sebastian Thiel "] description = "A complete library to interact with doubleclicksearch (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/doubleclicksearch2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/doubleclicksearch2/README.md b/gen/doubleclicksearch2/README.md index 8ae990d832..0c6eab9e29 100644 --- a/gen/doubleclicksearch2/README.md +++ b/gen/doubleclicksearch2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-doubleclicksearch2` library allows access to all features of the *Google doubleclicksearch* service. -This documentation was generated from *doubleclicksearch* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *doubleclicksearch* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *doubleclicksearch* *v2* API can be found at the [official documentation site](https://developers.google.com/doubleclick-search/). diff --git a/gen/doubleclicksearch2/src/lib.rs b/gen/doubleclicksearch2/src/lib.rs index ecdc2780fa..d9c2003ce6 100644 --- a/gen/doubleclicksearch2/src/lib.rs +++ b/gen/doubleclicksearch2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *doubleclicksearch* crate version *0.1.3+20150303*, where *20150303* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *doubleclicksearch* crate version *0.1.4+20150303*, where *20150303* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *doubleclicksearch* *v2* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-search/). @@ -307,7 +307,7 @@ impl<'a, C, NC, A> Doubleclicksearch Doubleclicksearch { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -323,7 +323,7 @@ impl<'a, C, NC, A> Doubleclicksearch } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -374,78 +374,78 @@ impl Part for CustomMetric {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Conversion { /// Custom dimensions for the conversion, which can be used to filter data in a report. - #[serde(alias="customDimension")] + #[serde(rename="customDimension")] pub custom_dimension: Vec, /// DS ad group ID. - #[serde(alias="adGroupId")] + #[serde(rename="adGroupId")] pub ad_group_id: String, /// The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID). - #[serde(alias="segmentationId")] + #[serde(rename="segmentationId")] pub segmentation_id: String, /// Attribution model name. This field is ignored. - #[serde(alias="attributionModel")] + #[serde(rename="attributionModel")] pub attribution_model: String, /// DS campaign ID. - #[serde(alias="campaignId")] + #[serde(rename="campaignId")] pub campaign_id: String, /// The revenue amount of this TRANSACTION conversion, in micros. - #[serde(alias="revenueMicros")] + #[serde(rename="revenueMicros")] pub revenue_micros: String, /// DS advertiser ID. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: String, /// The quantity of this conversion, in millis. - #[serde(alias="quantityMillis")] + #[serde(rename="quantityMillis")] pub quantity_millis: String, /// The number of conversions, formatted in millis (conversions multiplied by 1000). This field is ignored. - #[serde(alias="countMillis")] + #[serde(rename="countMillis")] pub count_millis: String, /// DS criterion (keyword) ID. - #[serde(alias="criterionId")] + #[serde(rename="criterionId")] pub criterion_id: String, /// The time at which the conversion took place, in epoch millis UTC. - #[serde(alias="conversionTimestamp")] + #[serde(rename="conversionTimestamp")] pub conversion_timestamp: String, /// The advertiser-provided order id for the conversion. - #[serde(alias="floodlightOrderId")] + #[serde(rename="floodlightOrderId")] pub floodlight_order_id: String, /// The segmentation type of this conversion (for example, FLOODLIGHT). - #[serde(alias="segmentationType")] + #[serde(rename="segmentationType")] pub segmentation_type: String, /// DS click ID for the conversion. - #[serde(alias="clickId")] + #[serde(rename="clickId")] pub click_id: String, /// Custom metrics for the conversion. - #[serde(alias="customMetric")] + #[serde(rename="customMetric")] pub custom_metric: Vec, /// DS conversion ID. - #[serde(alias="dsConversionId")] + #[serde(rename="dsConversionId")] pub ds_conversion_id: String, /// DS engine account ID. - #[serde(alias="engineAccountId")] + #[serde(rename="engineAccountId")] pub engine_account_id: String, /// The time at which the conversion was last modified, in epoch millis UTC. - #[serde(alias="conversionModifiedTimestamp")] + #[serde(rename="conversionModifiedTimestamp")] pub conversion_modified_timestamp: String, /// The currency code for the conversion's revenue. Should be in ISO 4217 alphabetic (3-char) format. - #[serde(alias="currencyCode")] + #[serde(rename="currencyCode")] pub currency_code: String, /// The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name). - #[serde(alias="segmentationName")] + #[serde(rename="segmentationName")] pub segmentation_name: String, /// The state of the conversion, that is, either ACTIVE or REMOVED. Note: state DELETED is deprecated. pub state: String, /// DS ad ID. - #[serde(alias="adId")] + #[serde(rename="adId")] pub ad_id: String, /// DS agency ID. - #[serde(alias="agencyId")] + #[serde(rename="agencyId")] pub agency_id: String, /// Advertiser-provided ID for the conversion, also known as the order ID. - #[serde(alias="conversionId")] + #[serde(rename="conversionId")] pub conversion_id: String, /// The type of the conversion, that is, either ACTION or TRANSACTION. An ACTION conversion is an action by the user that has no monetarily quantifiable value, while a TRANSACTION conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (ACTION) versus ecommerce purchases (TRANSACTION). - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -471,7 +471,7 @@ pub struct ReportFiles { /// Use this url to download the report file. pub url: String, /// The size of this report file in bytes. - #[serde(alias="byteCount")] + #[serde(rename="byteCount")] pub byte_count: i64, } @@ -486,25 +486,25 @@ impl Part for ReportFiles {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportRequestReportScope { /// DS advertiser ID. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: String, /// DS ad group ID. - #[serde(alias="adGroupId")] + #[serde(rename="adGroupId")] pub ad_group_id: String, /// DS keyword ID. - #[serde(alias="keywordId")] + #[serde(rename="keywordId")] pub keyword_id: String, /// DS ad ID. - #[serde(alias="adId")] + #[serde(rename="adId")] pub ad_id: String, /// DS agency ID. - #[serde(alias="agencyId")] + #[serde(rename="agencyId")] pub agency_id: String, /// DS engine account ID. - #[serde(alias="engineAccountId")] + #[serde(rename="engineAccountId")] pub engine_account_id: String, /// DS campaign ID. - #[serde(alias="campaignId")] + #[serde(rename="campaignId")] pub campaign_id: String, } @@ -539,7 +539,7 @@ pub struct ReportRequestOrderBy { /// Column to perform the sort on. This can be a DoubleClick Search-defined column or a saved column. pub column: ReportApiColumnSpec, /// The sort direction, which is either ascending or descending. - #[serde(alias="sortOrder")] + #[serde(rename="sortOrder")] pub sort_order: String, } @@ -554,32 +554,32 @@ impl Part for ReportRequestOrderBy {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportApiColumnSpec { /// Synchronous report only. Set to true to group by this column. Defaults to false. - #[serde(alias="groupByColumn")] + #[serde(rename="groupByColumn")] pub group_by_column: bool, /// Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with startDate. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI. - #[serde(alias="savedColumnName")] + #[serde(rename="savedColumnName")] pub saved_column_name: String, /// Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive. /// If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report. - #[serde(alias="customDimensionName")] + #[serde(rename="customDimensionName")] pub custom_dimension_name: String, /// Text used to identify this column in the report output; defaults to columnName or savedColumnName when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name. - #[serde(alias="headerText")] + #[serde(rename="headerText")] pub header_text: String, /// Name of a DoubleClick Search column to include in the report. - #[serde(alias="columnName")] + #[serde(rename="columnName")] pub column_name: String, /// The platform that is used to provide data for the custom dimension. Acceptable values are "Floodlight". - #[serde(alias="platformSource")] + #[serde(rename="platformSource")] pub platform_source: String, /// Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with endDate. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, /// Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive. - #[serde(alias="customMetricName")] + #[serde(rename="customMetricName")] pub custom_metric_name: String, } @@ -593,22 +593,22 @@ impl Part for ReportApiColumnSpec {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Availability { /// DS advertiser ID. - #[serde(alias="advertiserId")] + #[serde(rename="advertiserId")] pub advertiser_id: String, /// The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID). - #[serde(alias="segmentationId")] + #[serde(rename="segmentationId")] pub segmentation_id: String, /// The segmentation type that this availability is for (its default value is FLOODLIGHT). - #[serde(alias="segmentationType")] + #[serde(rename="segmentationType")] pub segmentation_type: String, /// DS agency ID. - #[serde(alias="agencyId")] + #[serde(rename="agencyId")] pub agency_id: String, /// The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name). - #[serde(alias="segmentationName")] + #[serde(rename="segmentationName")] pub segmentation_name: String, /// The time by which all conversions have been uploaded, in epoch millis UTC. - #[serde(alias="availabilityTimestamp")] + #[serde(rename="availabilityTimestamp")] pub availability_timestamp: String, } @@ -628,44 +628,44 @@ impl Part for Availability {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportRequest { /// Synchronous report only. A list of columns and directions defining sorting to be performed on the report rows. - #[serde(alias="orderBy")] + #[serde(rename="orderBy")] pub order_by: Option>, /// The reportScope is a set of IDs that are used to determine which subset of entities will be returned in the report. The full lineage of IDs from the lowest scoped level desired up through agency is required. - #[serde(alias="reportScope")] + #[serde(rename="reportScope")] pub report_scope: Option, /// Asynchronous report only. The maximum number of rows per report file. A large report is split into many files based on this field. Acceptable values are 1000000 to 100000000, inclusive. - #[serde(alias="maxRowsPerFile")] + #[serde(rename="maxRowsPerFile")] pub max_rows_per_file: Option, /// Specifies the currency in which monetary will be returned. Possible values are: usd, agency (valid if the report is scoped to agency or lower), advertiser (valid if the report is scoped to * advertiser or lower), or account (valid if the report is scoped to engine account or lower). - #[serde(alias="statisticsCurrency")] + #[serde(rename="statisticsCurrency")] pub statistics_currency: Option, /// If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range. - #[serde(alias="timeRange")] + #[serde(rename="timeRange")] pub time_range: Option, /// Synchronous report only. Zero-based index of the first row to return. Acceptable values are 0 to 50000, inclusive. Defaults to 0. - #[serde(alias="startRow")] + #[serde(rename="startRow")] pub start_row: Option, /// Synchronous report only. The maxinum number of rows to return; additional rows are dropped. Acceptable values are 0 to 10000, inclusive. Defaults to 10000. - #[serde(alias="rowCount")] + #[serde(rename="rowCount")] pub row_count: Option, /// Determines the type of rows that are returned in the report. For example, if you specify reportType: keyword, each row in the report will contain data about a keyword. See the Types of Reports reference for the columns that are available for each type. - #[serde(alias="reportType")] + #[serde(rename="reportType")] pub report_type: Option, /// The columns to include in the report. This includes both DoubleClick Search columns and saved columns. For DoubleClick Search columns, only the columnName parameter is required. For saved columns only the savedColumnName parameter is required. Both columnName and savedColumnName cannot be set in the same stanza. pub columns: Option>, /// A list of filters to be applied to the report. pub filters: Option>, /// Determines if removed entities should be included in the report. Defaults to false. - #[serde(alias="includeRemovedEntities")] + #[serde(rename="includeRemovedEntities")] pub include_removed_entities: Option, /// Determines if removed entities should be included in the report. Defaults to false. Deprecated, please use includeRemovedEntities instead. - #[serde(alias="includeDeletedEntities")] + #[serde(rename="includeDeletedEntities")] pub include_deleted_entities: Option, /// If true, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to false. - #[serde(alias="verifySingleTimeZone")] + #[serde(rename="verifySingleTimeZone")] pub verify_single_time_zone: Option, /// Format that the report should be returned in. Currently csv or tsv is supported. - #[serde(alias="downloadFormat")] + #[serde(rename="downloadFormat")] pub download_format: Option, } @@ -695,16 +695,16 @@ pub struct Report { /// The request that created the report. Optional fields not specified in the original request are filled with default values. pub request: ReportRequest, /// Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded. - #[serde(alias="isReportReady")] + #[serde(rename="isReportReady")] pub is_report_ready: bool, /// The number of report rows generated by the report, not including headers. - #[serde(alias="rowCount")] + #[serde(rename="rowCount")] pub row_count: i32, /// If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset. - #[serde(alias="statisticsTimeZone")] + #[serde(rename="statisticsTimeZone")] pub statistics_time_zone: String, /// The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the statisticsCurrency field of the report request. - #[serde(alias="statisticsCurrencyCode")] + #[serde(rename="statisticsCurrencyCode")] pub statistics_currency_code: String, /// Asynchronous report only. Id of the report. pub id: String, @@ -721,16 +721,16 @@ impl ResponseResult for Report {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ReportRequestTimeRange { /// Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See additional references on how changed metrics reports work. - #[serde(alias="changedMetricsSinceTimestamp")] + #[serde(rename="changedMetricsSinceTimestamp")] pub changed_metrics_since_timestamp: String, /// Inclusive date in YYYY-MM-DD format. - #[serde(alias="endDate")] + #[serde(rename="endDate")] pub end_date: String, /// Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See additional references on how changed attribute reports work. - #[serde(alias="changedAttributesSinceTimestamp")] + #[serde(rename="changedAttributesSinceTimestamp")] pub changed_attributes_since_timestamp: String, /// Inclusive date in YYYY-MM-DD format. - #[serde(alias="startDate")] + #[serde(rename="startDate")] pub start_date: String, } @@ -770,12 +770,12 @@ impl ResponseResult for SavedColumnList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct SavedColumn { /// The name of the saved column. - #[serde(alias="savedColumnName")] + #[serde(rename="savedColumnName")] pub saved_column_name: Option, /// Identifies this as a SavedColumn resource. Value: the fixed string doubleclicksearch#savedColumn. pub kind: Option, /// The type of data this saved column will produce. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, } diff --git a/gen/drive2/Cargo.toml b/gen/drive2/Cargo.toml index 6dfd38901b..5744fc8d58 100644 --- a/gen/drive2/Cargo.toml +++ b/gen/drive2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-drive2" -version = "0.1.3+20150326" +version = "0.1.4+20150326" authors = ["Sebastian Thiel "] description = "A complete library to interact with drive (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/drive2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/drive2/README.md b/gen/drive2/README.md index 4bbc5bc9e9..7ecc90b34e 100644 --- a/gen/drive2/README.md +++ b/gen/drive2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-drive2` library allows access to all features of the *Google drive* service. -This documentation was generated from *drive* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *drive* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *drive* *v2* API can be found at the [official documentation site](https://developers.google.com/drive/). diff --git a/gen/drive2/src/lib.rs b/gen/drive2/src/lib.rs index 9eb0fc3f91..a4cb7f5bcc 100644 --- a/gen/drive2/src/lib.rs +++ b/gen/drive2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *drive* crate version *0.1.3+20150326*, where *20150326* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *drive* crate version *0.1.4+20150326*, where *20150326* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *drive* *v2* API can be found at the //! [official documentation site](https://developers.google.com/drive/). @@ -411,7 +411,7 @@ impl<'a, C, NC, A> Drive Drive { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -457,7 +457,7 @@ impl<'a, C, NC, A> Drive } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -484,17 +484,17 @@ impl<'a, C, NC, A> Drive #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ParentReference { /// Whether or not the parent is the root folder. - #[serde(alias="isRoot")] + #[serde(rename="isRoot")] pub is_root: Option, /// This is always drive#parentReference. pub kind: Option, /// The ID of the parent. pub id: Option, /// A link back to this reference. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// A link to the parent. - #[serde(alias="parentLink")] + #[serde(rename="parentLink")] pub parent_link: Option, } @@ -523,7 +523,7 @@ pub struct Comment { /// - "resolved" - The comment has been resolved by one of its replies. pub status: Option, /// A link back to this comment. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// This is always drive#comment. pub kind: Option, @@ -532,30 +532,30 @@ pub struct Comment { /// Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed. pub deleted: Option, /// The date when this comment was first created. - #[serde(alias="createdDate")] + #[serde(rename="createdDate")] pub created_date: Option, /// HTML formatted content for this comment. - #[serde(alias="htmlContent")] + #[serde(rename="htmlContent")] pub html_content: Option, /// The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content. pub content: Option, /// The date when this comment or any of its replies were last modified. - #[serde(alias="modifiedDate")] + #[serde(rename="modifiedDate")] pub modified_date: Option, /// The context of the file which is being commented on. pub context: Option, /// Replies to this post. pub replies: Option>, /// The ID of the comment. - #[serde(alias="commentId")] + #[serde(rename="commentId")] pub comment_id: Option, /// A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties. pub anchor: Option, /// The title of the file which this comment is addressing. - #[serde(alias="fileTitle")] + #[serde(rename="fileTitle")] pub file_title: Option, /// The file which this comment is addressing. - #[serde(alias="fileId")] + #[serde(rename="fileId")] pub file_id: Option, } @@ -576,73 +576,73 @@ impl ResponseResult for Comment {} #[derive(Default, Clone, Debug, Deserialize)] pub struct About { /// The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/). - #[serde(alias="languageCode")] + #[serde(rename="languageCode")] pub language_code: String, /// The amount of storage quota used by different Google services. - #[serde(alias="quotaBytesByService")] + #[serde(rename="quotaBytesByService")] pub quota_bytes_by_service: Vec, /// List of additional features enabled on this account. pub features: Vec, /// The number of quota bytes used by Google Drive. - #[serde(alias="quotaBytesUsed")] + #[serde(rename="quotaBytesUsed")] pub quota_bytes_used: String, /// This is always drive#about. pub kind: String, /// Information about supported additional roles per file type. The most specific type takes precedence. - #[serde(alias="additionalRoleInfo")] + #[serde(rename="additionalRoleInfo")] pub additional_role_info: Vec, /// The palette of allowable folder colors as RGB hex strings. - #[serde(alias="folderColorPalette")] + #[serde(rename="folderColorPalette")] pub folder_color_palette: Vec, /// The authenticated user. pub user: User, /// The type of the user's storage quota. Possible values are: /// - LIMITED /// - UNLIMITED - #[serde(alias="quotaType")] + #[serde(rename="quotaType")] pub quota_type: String, /// The number of quota bytes used by all Google apps (Drive, Picasa, etc.). - #[serde(alias="quotaBytesUsedAggregate")] + #[serde(rename="quotaBytesUsedAggregate")] pub quota_bytes_used_aggregate: String, /// List of max upload sizes for each file type. The most specific type takes precedence. - #[serde(alias="maxUploadSizes")] + #[serde(rename="maxUploadSizes")] pub max_upload_sizes: Vec, /// The current user's ID as visible in the permissions collection. - #[serde(alias="permissionId")] + #[serde(rename="permissionId")] pub permission_id: String, /// The name of the current user. pub name: String, /// The total number of quota bytes. - #[serde(alias="quotaBytesTotal")] + #[serde(rename="quotaBytesTotal")] pub quota_bytes_total: String, /// The number of remaining change ids. - #[serde(alias="remainingChangeIds")] + #[serde(rename="remainingChangeIds")] pub remaining_change_ids: String, /// The ETag of the item. pub etag: String, /// The allowable import formats. - #[serde(alias="importFormats")] + #[serde(rename="importFormats")] pub import_formats: Vec, /// The id of the root folder. - #[serde(alias="rootFolderId")] + #[serde(rename="rootFolderId")] pub root_folder_id: String, /// The largest change id. - #[serde(alias="largestChangeId")] + #[serde(rename="largestChangeId")] pub largest_change_id: String, /// The number of quota bytes used by trashed items. - #[serde(alias="quotaBytesUsedInTrash")] + #[serde(rename="quotaBytesUsedInTrash")] pub quota_bytes_used_in_trash: String, /// The allowable export formats. - #[serde(alias="exportFormats")] + #[serde(rename="exportFormats")] pub export_formats: Vec, /// The domain sharing policy for the current user. - #[serde(alias="domainSharingPolicy")] + #[serde(rename="domainSharingPolicy")] pub domain_sharing_policy: String, /// A link back to this item. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// A boolean indicating whether the authenticated app is installed by the authenticated user. - #[serde(alias="isCurrentAppInstalled")] + #[serde(rename="isCurrentAppInstalled")] pub is_current_app_installed: bool, } @@ -656,7 +656,7 @@ impl ResponseResult for About {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FileThumbnail { /// The MIME type of the thumbnail. - #[serde(alias="mimeType")] + #[serde(rename="mimeType")] pub mime_type: String, /// The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5. pub image: String, @@ -689,59 +689,59 @@ impl Part for FileThumbnail {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct File { /// The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type. - #[serde(alias="mimeType")] + #[serde(rename="mimeType")] pub mime_type: Option, /// Last time this file was viewed by the user (formatted RFC 3339 timestamp). - #[serde(alias="lastViewedByMeDate")] + #[serde(rename="lastViewedByMeDate")] pub last_viewed_by_me_date: Option, /// Whether this file is in the Application Data folder. - #[serde(alias="appDataContents")] + #[serde(rename="appDataContents")] pub app_data_contents: Option, /// A short-lived link to the file's thumbnail. Typically lasts on the order of hours. - #[serde(alias="thumbnailLink")] + #[serde(rename="thumbnailLink")] pub thumbnail_link: Option, /// A group of labels for the file. pub labels: Option, /// Indexable text attributes for the file (can only be written) - #[serde(alias="indexableText")] + #[serde(rename="indexableText")] pub indexable_text: Option, /// Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed. - #[serde(alias="explicitlyTrashed")] + #[serde(rename="explicitlyTrashed")] pub explicitly_trashed: Option, /// ETag of the file. pub etag: Option, /// Name of the last user to modify this file. - #[serde(alias="lastModifyingUserName")] + #[serde(rename="lastModifyingUserName")] pub last_modifying_user_name: Option, /// Whether writers can share the document with other users. - #[serde(alias="writersCanShare")] + #[serde(rename="writersCanShare")] pub writers_can_share: Option, /// Time at which this file was shared with the user (formatted RFC 3339 timestamp). - #[serde(alias="sharedWithMeDate")] + #[serde(rename="sharedWithMeDate")] pub shared_with_me_date: Option, /// User that shared the item with the current user, if available. - #[serde(alias="sharingUser")] + #[serde(rename="sharingUser")] pub sharing_user: Option, /// Metadata about video media. This will only be present for video types. - #[serde(alias="videoMediaMetadata")] + #[serde(rename="videoMediaMetadata")] pub video_media_metadata: Option, /// The last user to modify this file. - #[serde(alias="lastModifyingUser")] + #[serde(rename="lastModifyingUser")] pub last_modifying_user: Option, /// Whether the file can be copied by the current user. pub copyable: Option, /// Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. - #[serde(alias="folderColorRgb")] + #[serde(rename="folderColorRgb")] pub folder_color_rgb: Option, /// Name(s) of the owner(s) of this file. - #[serde(alias="ownerNames")] + #[serde(rename="ownerNames")] pub owner_names: Option>, /// The type of file. This is always drive#file. pub kind: Option, /// The ID of the file. pub id: Option, /// A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting. - #[serde(alias="webViewLink")] + #[serde(rename="webViewLink")] pub web_view_link: Option, /// A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user. pub version: Option, @@ -749,83 +749,83 @@ pub struct File { /// Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder. pub parents: Option>, /// Links for exporting Google Docs to specific formats. - #[serde(alias="exportLinks")] + #[serde(rename="exportLinks")] pub export_links: Option>, /// Whether the file has been shared. pub shared: Option, /// A link to the file's icon. - #[serde(alias="iconLink")] + #[serde(rename="iconLink")] pub icon_link: Option, /// Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google. pub thumbnail: Option, /// A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used. - #[serde(alias="openWithLinks")] + #[serde(rename="openWithLinks")] pub open_with_links: Option>, /// A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used. - #[serde(alias="defaultOpenWithLink")] + #[serde(rename="defaultOpenWithLink")] pub default_open_with_link: Option, /// A short description of the file. pub description: Option, /// A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials. - #[serde(alias="webContentLink")] + #[serde(rename="webContentLink")] pub web_content_link: Option, /// Whether the file can be edited by the current user. pub editable: Option, /// A link for embedding the file. - #[serde(alias="embedLink")] + #[serde(rename="embedLink")] pub embed_link: Option, /// Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp). - #[serde(alias="markedViewedByMeDate")] + #[serde(rename="markedViewedByMeDate")] pub marked_viewed_by_me_date: Option, /// The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive. - #[serde(alias="fileExtension")] + #[serde(rename="fileExtension")] pub file_extension: Option, /// The size of the file in bytes. This is only populated for files with content stored in Drive. - #[serde(alias="fileSize")] + #[serde(rename="fileSize")] pub file_size: Option, /// Create time for this file (formatted RFC 3339 timestamp). - #[serde(alias="createdDate")] + #[serde(rename="createdDate")] pub created_date: Option, /// The list of properties. pub properties: Option>, /// An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive. - #[serde(alias="md5Checksum")] + #[serde(rename="md5Checksum")] pub md5_checksum: Option, /// The list of permissions for users with access to this file. pub permissions: Option>, /// Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content. - #[serde(alias="imageMediaMetadata")] + #[serde(rename="imageMediaMetadata")] pub image_media_metadata: Option, /// The owner(s) of this file. pub owners: Option>, /// A link for opening the file in a relevant Google editor or viewer. - #[serde(alias="alternateLink")] + #[serde(rename="alternateLink")] pub alternate_link: Option, /// The title of this file. pub title: Option, /// Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date. - #[serde(alias="modifiedByMeDate")] + #[serde(rename="modifiedByMeDate")] pub modified_by_me_date: Option, /// Short lived download URL for the file. This is only populated for files with content stored in Drive. - #[serde(alias="downloadUrl")] + #[serde(rename="downloadUrl")] pub download_url: Option, /// The permissions for the authenticated user on this file. - #[serde(alias="userPermission")] + #[serde(rename="userPermission")] pub user_permission: Option, /// The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive. - #[serde(alias="originalFilename")] + #[serde(rename="originalFilename")] pub original_filename: Option, /// The number of quota bytes used by this file. - #[serde(alias="quotaBytesUsed")] + #[serde(rename="quotaBytesUsed")] pub quota_bytes_used: Option, /// The ID of the file's head revision. This will only be populated for files with content stored in Drive. - #[serde(alias="headRevisionId")] + #[serde(rename="headRevisionId")] pub head_revision_id: Option, /// A link back to this file. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set. - #[serde(alias="modifiedDate")] + #[serde(rename="modifiedDate")] pub modified_date: Option, } @@ -841,10 +841,10 @@ impl ResponseResult for File {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AboutAdditionalRoleInfo { /// The supported additional roles per primary role. - #[serde(alias="roleSets")] + #[serde(rename="roleSets")] pub role_sets: Vec, /// The content type that this additional role info applies to. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, } @@ -864,22 +864,22 @@ impl Part for AboutAdditionalRoleInfo {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ChangeList { /// The page token for the next page of changes. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// This is always drive#changeList. pub kind: String, /// The ETag of the list. pub etag: String, /// The current largest change ID. - #[serde(alias="largestChangeId")] + #[serde(rename="largestChangeId")] pub largest_change_id: String, /// The actual list of changes. pub items: Vec, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// A link to the next page of changes. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -904,7 +904,7 @@ pub struct PropertyList { /// The ETag of the list. pub etag: String, /// The link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -952,10 +952,10 @@ impl Part for FileIndexableText {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AboutAdditionalRoleInfoRoleSets { /// A primary permission role. - #[serde(alias="primaryRole")] + #[serde(rename="primaryRole")] pub primary_role: String, /// The supported additional roles with the primary role. - #[serde(alias="additionalRoles")] + #[serde(rename="additionalRoles")] pub additional_roles: Vec, } @@ -975,17 +975,17 @@ impl Part for AboutAdditionalRoleInfoRoleSets {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CommentReplyList { /// The token to use to request the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of reply. pub items: Vec, /// This is always drive#commentReplyList. pub kind: String, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// A link to the next page of replies. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -1026,7 +1026,7 @@ pub struct RevisionList { /// The ETag of the list. pub etag: String, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1040,7 +1040,7 @@ impl ResponseResult for RevisionList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AboutMaxUploadSizes { /// The file type. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// The max upload size for this type. pub size: String, @@ -1092,7 +1092,7 @@ impl Part for FileLabels {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Property { /// The link back to this property. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// This is always drive#property. pub kind: Option, @@ -1124,12 +1124,12 @@ impl ResponseResult for Property {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Channel { /// A version-specific identifier for the watched resource. - #[serde(alias="resourceUri")] + #[serde(rename="resourceUri")] pub resource_uri: Option, /// Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel". pub kind: Option, /// An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. - #[serde(alias="resourceId")] + #[serde(rename="resourceId")] pub resource_id: Option, /// A UUID or similar unique string that identifies this channel. pub id: Option, @@ -1142,7 +1142,7 @@ pub struct Channel { /// The address where notifications are delivered for this channel. pub address: Option, /// The type of delivery mechanism used for this channel. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// A Boolean value to indicate whether payload is wanted. Optional. pub payload: Option, @@ -1169,53 +1169,53 @@ impl ResponseResult for Channel {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Revision { /// The MIME type of the revision. - #[serde(alias="mimeType")] + #[serde(rename="mimeType")] pub mime_type: Option, /// A link to the published revision. - #[serde(alias="publishedLink")] + #[serde(rename="publishedLink")] pub published_link: Option, /// Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs. - #[serde(alias="publishedOutsideDomain")] + #[serde(rename="publishedOutsideDomain")] pub published_outside_domain: Option, /// Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs. - #[serde(alias="publishAuto")] + #[serde(rename="publishAuto")] pub publish_auto: Option, /// The size of the revision in bytes. This will only be populated on files with content stored in Drive. - #[serde(alias="fileSize")] + #[serde(rename="fileSize")] pub file_size: Option, /// Name of the last user to modify this revision. - #[serde(alias="lastModifyingUserName")] + #[serde(rename="lastModifyingUserName")] pub last_modifying_user_name: Option, /// The ID of the revision. pub id: Option, /// An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive. - #[serde(alias="md5Checksum")] + #[serde(rename="md5Checksum")] pub md5_checksum: Option, /// Short term download URL for the file. This will only be populated on files with content stored in Drive. - #[serde(alias="downloadUrl")] + #[serde(rename="downloadUrl")] pub download_url: Option, /// This is always drive#revision. pub kind: Option, /// The last user to modify this revision. - #[serde(alias="lastModifyingUser")] + #[serde(rename="lastModifyingUser")] pub last_modifying_user: Option, /// Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. pub pinned: Option, /// The ETag of the revision. pub etag: Option, /// The original filename when this revision was created. This will only be populated on files with content stored in Drive. - #[serde(alias="originalFilename")] + #[serde(rename="originalFilename")] pub original_filename: Option, /// Links for exporting Google Docs to specific formats. - #[serde(alias="exportLinks")] + #[serde(rename="exportLinks")] pub export_links: Option>, /// Whether this revision is published. This is only populated and can only be modified for Google Docs. pub published: Option, /// A link back to this revision. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, /// Last time this revision was modified (formatted RFC 3339 timestamp). - #[serde(alias="modifiedDate")] + #[serde(rename="modifiedDate")] pub modified_date: Option, } @@ -1236,17 +1236,17 @@ impl ResponseResult for Revision {} #[derive(Default, Clone, Debug, Deserialize)] pub struct CommentList { /// The token to use to request the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of comments. pub items: Vec, /// This is always drive#commentList. pub kind: String, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// A link to the next page of comments. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -1271,7 +1271,7 @@ pub struct ParentList { /// The ETag of the list. pub etag: String, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1296,7 +1296,7 @@ pub struct PermissionList { /// The ETag of the list. pub etag: String, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, } @@ -1310,10 +1310,10 @@ impl ResponseResult for PermissionList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AboutQuotaBytesByService { /// The service's name, e.g. DRIVE, GMAIL, or PHOTOS. - #[serde(alias="serviceName")] + #[serde(rename="serviceName")] pub service_name: String, /// The storage quota bytes used by the service. - #[serde(alias="bytesUsed")] + #[serde(rename="bytesUsed")] pub bytes_used: String, } @@ -1339,7 +1339,7 @@ impl Part for AboutQuotaBytesByService {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Permission { /// Whether the link is required for this permission. - #[serde(alias="withLink")] + #[serde(rename="withLink")] pub with_link: Option, /// The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain. pub domain: Option, @@ -1350,18 +1350,18 @@ pub struct Permission { /// The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified. pub value: Option, /// Additional roles for this user. Only commenter is currently allowed. - #[serde(alias="additionalRoles")] + #[serde(rename="additionalRoles")] pub additional_roles: Option>, /// The authkey parameter required for this permission. - #[serde(alias="authKey")] + #[serde(rename="authKey")] pub auth_key: Option, /// The ETag of the permission. pub etag: Option, /// The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group. - #[serde(alias="emailAddress")] + #[serde(rename="emailAddress")] pub email_address: Option, /// A link to the profile photo, if available. - #[serde(alias="photoLink")] + #[serde(rename="photoLink")] pub photo_link: Option, /// The primary role for this user. Allowed values are: /// - owner @@ -1373,12 +1373,12 @@ pub struct Permission { /// - group /// - domain /// - anyone - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified. pub id: Option, /// A link back to this permission. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -1394,16 +1394,16 @@ impl ResponseResult for Permission {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct FileImageMediaMetadata { /// The exposure bias of the photo (APEX value). - #[serde(alias="exposureBias")] + #[serde(rename="exposureBias")] pub exposure_bias: f32, /// The length of the exposure, in seconds. - #[serde(alias="exposureTime")] + #[serde(rename="exposureTime")] pub exposure_time: f32, /// The smallest f-number of the lens at the focal length used to create the photo (APEX value). - #[serde(alias="maxApertureValue")] + #[serde(rename="maxApertureValue")] pub max_aperture_value: f32, /// The color space of the photo. - #[serde(alias="colorSpace")] + #[serde(rename="colorSpace")] pub color_space: String, /// The height of the image in pixels. pub height: i32, @@ -1416,35 +1416,35 @@ pub struct FileImageMediaMetadata { /// The rotation in clockwise degrees from the image's original orientation. pub rotation: i32, /// The white balance mode used to create the photo. - #[serde(alias="whiteBalance")] + #[serde(rename="whiteBalance")] pub white_balance: String, /// The model of the camera used to create the photo. - #[serde(alias="cameraModel")] + #[serde(rename="cameraModel")] pub camera_model: String, /// Whether a flash was used to create the photo. - #[serde(alias="flashUsed")] + #[serde(rename="flashUsed")] pub flash_used: bool, /// The make of the camera used to create the photo. - #[serde(alias="cameraMake")] + #[serde(rename="cameraMake")] pub camera_make: String, /// The focal length used to create the photo, in millimeters. - #[serde(alias="focalLength")] + #[serde(rename="focalLength")] pub focal_length: f32, /// The exposure mode used to create the photo. - #[serde(alias="exposureMode")] + #[serde(rename="exposureMode")] pub exposure_mode: String, /// The distance to the subject of the photo, in meters. - #[serde(alias="subjectDistance")] + #[serde(rename="subjectDistance")] pub subject_distance: i32, /// The width of the image in pixels. pub width: i32, /// The metering mode used to create the photo. - #[serde(alias="meteringMode")] + #[serde(rename="meteringMode")] pub metering_mode: String, /// Geographic location information stored in the image. pub location: FileImageMediaMetadataLocation, /// The ISO speed used to create the photo. - #[serde(alias="isoSpeed")] + #[serde(rename="isoSpeed")] pub iso_speed: i32, /// The type of sensor used to create the photo. pub sensor: String, @@ -1467,70 +1467,70 @@ impl Part for FileImageMediaMetadata {} #[derive(Default, Clone, Debug, Deserialize)] pub struct App { /// The list of secondary mime types. - #[serde(alias="secondaryMimeTypes")] + #[serde(rename="secondaryMimeTypes")] pub secondary_mime_types: Vec, /// Whether the app is selected as the default handler for the types it supports. - #[serde(alias="useByDefault")] + #[serde(rename="useByDefault")] pub use_by_default: bool, /// Whether the app is installed. pub installed: bool, /// A link to the product listing for this app. - #[serde(alias="productUrl")] + #[serde(rename="productUrl")] pub product_url: String, /// Whether this app supports importing Google Docs. - #[serde(alias="supportsImport")] + #[serde(rename="supportsImport")] pub supports_import: bool, /// Whether this app supports creating new objects. - #[serde(alias="supportsCreate")] + #[serde(rename="supportsCreate")] pub supports_create: bool, /// A long description of the app. - #[serde(alias="longDescription")] + #[serde(rename="longDescription")] pub long_description: String, /// A short description of the app. - #[serde(alias="shortDescription")] + #[serde(rename="shortDescription")] pub short_description: String, /// The ID of the app. pub id: String, /// Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive. - #[serde(alias="hasDriveWideScope")] + #[serde(rename="hasDriveWideScope")] pub has_drive_wide_scope: bool, /// The type of object this app creates (e.g. Chart). If empty, the app name should be used instead. - #[serde(alias="objectType")] + #[serde(rename="objectType")] pub object_type: String, /// This is always drive#app. pub kind: String, /// The list of primary file extensions. - #[serde(alias="primaryFileExtensions")] + #[serde(rename="primaryFileExtensions")] pub primary_file_extensions: Vec, /// The list of primary mime types. - #[serde(alias="primaryMimeTypes")] + #[serde(rename="primaryMimeTypes")] pub primary_mime_types: Vec, /// The url to create a new file with this app. - #[serde(alias="createUrl")] + #[serde(rename="createUrl")] pub create_url: String, /// The various icons for the app. pub icons: Vec, /// Whether this app supports creating new files when offline. - #[serde(alias="supportsOfflineCreate")] + #[serde(rename="supportsOfflineCreate")] pub supports_offline_create: bool, /// The list of secondary file extensions. - #[serde(alias="secondaryFileExtensions")] + #[serde(rename="secondaryFileExtensions")] pub secondary_file_extensions: Vec, /// The name of the app. pub name: String, /// Whether the app is authorized to access data on the user's Drive. pub authorized: bool, /// Whether this app supports opening more than one file. - #[serde(alias="supportsMultiOpen")] + #[serde(rename="supportsMultiOpen")] pub supports_multi_open: bool, /// The template url to create a new file with this app in a given folder. The template will contain {folderId} to be replaced by the folder to create the new file in. - #[serde(alias="createInFolderTemplate")] + #[serde(rename="createInFolderTemplate")] pub create_in_folder_template: String, /// The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids. See Open Files for the full documentation. - #[serde(alias="openUrlTemplate")] + #[serde(rename="openUrlTemplate")] pub open_url_template: String, /// The ID of the product listing for this app. - #[serde(alias="productId")] + #[serde(rename="productId")] pub product_id: String, } @@ -1568,7 +1568,7 @@ impl Part for FileImageMediaMetadataLocation {} #[derive(Default, Clone, Debug, Deserialize)] pub struct FileList { /// The page token for the next page of files. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// This is always drive#fileList. pub kind: String, @@ -1577,10 +1577,10 @@ pub struct FileList { /// The actual list of files. pub items: Vec, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// A link to the next page of files. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -1599,7 +1599,7 @@ impl ResponseResult for FileList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ChildList { /// The page token for the next page of children. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// This is always drive#childList. pub kind: String, @@ -1608,10 +1608,10 @@ pub struct ChildList { /// The actual list of children. pub items: Vec, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// A link to the next page of children. - #[serde(alias="nextLink")] + #[serde(rename="nextLink")] pub next_link: String, } @@ -1639,7 +1639,7 @@ pub struct CommentReply { /// Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. pub deleted: Option, /// HTML formatted content for this reply. - #[serde(alias="htmlContent")] + #[serde(rename="htmlContent")] pub html_content: Option, /// The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). pub content: Option, @@ -1648,13 +1648,13 @@ pub struct CommentReply { /// - "reopen" - To reopen (un-resolve) a comment. pub verb: Option, /// The ID of the reply. - #[serde(alias="replyId")] + #[serde(rename="replyId")] pub reply_id: Option, /// The date when this reply was last modified. - #[serde(alias="modifiedDate")] + #[serde(rename="modifiedDate")] pub modified_date: Option, /// The date when this reply was first created. - #[serde(alias="createdDate")] + #[serde(rename="createdDate")] pub created_date: Option, } @@ -1683,10 +1683,10 @@ impl Part for UserPicture {} #[derive(Default, Clone, Debug, Deserialize)] pub struct AboutFeatures { /// The name of the feature. - #[serde(alias="featureName")] + #[serde(rename="featureName")] pub feature_name: String, /// The request limit rate for this feature, in queries per second. - #[serde(alias="featureRate")] + #[serde(rename="featureRate")] pub feature_rate: f64, } @@ -1705,16 +1705,16 @@ pub struct User { /// This is always drive#user. pub kind: String, /// Whether this user is the same as the authenticated user for whom the request was made. - #[serde(alias="isAuthenticatedUser")] + #[serde(rename="isAuthenticatedUser")] pub is_authenticated_user: bool, /// A plain text displayable name for this user. - #[serde(alias="displayName")] + #[serde(rename="displayName")] pub display_name: String, /// The email address of the user. - #[serde(alias="emailAddress")] + #[serde(rename="emailAddress")] pub email_address: String, /// The user's ID as visible in the permissions collection. - #[serde(alias="permissionId")] + #[serde(rename="permissionId")] pub permission_id: String, } @@ -1739,10 +1739,10 @@ pub struct AppList { /// The ETag of the list. pub etag: String, /// A link back to this list. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// List of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest). - #[serde(alias="defaultAppIds")] + #[serde(rename="defaultAppIds")] pub default_app_ids: Vec, } @@ -1761,7 +1761,7 @@ pub struct AppIcons { /// - documentShared - icon for a shared file associated with the app pub category: String, /// URL for the icon. - #[serde(alias="iconUrl")] + #[serde(rename="iconUrl")] pub icon_url: String, /// Size of the icon. Represented as the maximum of the width and height. pub size: i32, @@ -1778,7 +1778,7 @@ impl Part for AppIcons {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct CommentContext { /// The MIME type of the context snippet. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. pub value: String, @@ -1803,12 +1803,12 @@ pub struct ChildReference { /// This is always drive#childReference. pub kind: Option, /// A link to the child. - #[serde(alias="childLink")] + #[serde(rename="childLink")] pub child_link: Option, /// The ID of the child. pub id: Option, /// A link back to this reference. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: Option, } @@ -1825,7 +1825,7 @@ pub struct FileVideoMediaMetadata { /// The width of the video in pixels. pub width: i32, /// The duration of the video in milliseconds. - #[serde(alias="durationMillis")] + #[serde(rename="durationMillis")] pub duration_millis: String, /// The height of the video in pixels. pub height: i32, @@ -1865,7 +1865,7 @@ impl Part for AboutExportFormats {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Change { /// The time of this modification. - #[serde(alias="modificationDate")] + #[serde(rename="modificationDate")] pub modification_date: String, /// This is always drive#change. pub kind: String, @@ -1876,10 +1876,10 @@ pub struct Change { /// The ID of the change. pub id: String, /// A link back to this change. - #[serde(alias="selfLink")] + #[serde(rename="selfLink")] pub self_link: String, /// The ID of the file associated with this change. - #[serde(alias="fileId")] + #[serde(rename="fileId")] pub file_id: String, } diff --git a/gen/fitness1/Cargo.toml b/gen/fitness1/Cargo.toml index 7b68c891b8..0b46ca45e7 100644 --- a/gen/fitness1/Cargo.toml +++ b/gen/fitness1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-fitness1" -version = "0.1.3+20150222" +version = "0.1.4+20150222" authors = ["Sebastian Thiel "] description = "A complete library to interact with fitness (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fitness1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/fitness1/README.md b/gen/fitness1/README.md index dc0e0e9a80..e54721d8a7 100644 --- a/gen/fitness1/README.md +++ b/gen/fitness1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-fitness1` library allows access to all features of the *Google fitness* service. -This documentation was generated from *fitness* crate version *0.1.3+20150222*, where *20150222* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *fitness* crate version *0.1.4+20150222*, where *20150222* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *fitness* *v1* API can be found at the [official documentation site](https://developers.google.com/fit/rest/). diff --git a/gen/fitness1/src/lib.rs b/gen/fitness1/src/lib.rs index e6fed6d494..3da9aa281a 100644 --- a/gen/fitness1/src/lib.rs +++ b/gen/fitness1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *fitness* crate version *0.1.3+20150222*, where *20150222* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *fitness* crate version *0.1.4+20150222*, where *20150222* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *fitness* *v1* API can be found at the //! [official documentation site](https://developers.google.com/fit/rest/). @@ -331,7 +331,7 @@ impl<'a, C, NC, A> Fitness Fitness { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -341,7 +341,7 @@ impl<'a, C, NC, A> Fitness } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -379,10 +379,10 @@ impl Part for DataType {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Value { /// Floating point value. When this is set, intVal must not be set. - #[serde(alias="fpVal")] + #[serde(rename="fpVal")] pub fp_val: f64, /// Integer value. When this is set, fpVal must not be set. - #[serde(alias="intVal")] + #[serde(rename="intVal")] pub int_val: i32, } @@ -402,16 +402,16 @@ impl Part for Value {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Dataset { /// The smallest start time of all data points in this possibly partial representation of the dataset. Time is in nanoseconds from epoch. This should also match the first part of the dataset identifier. - #[serde(alias="minStartTimeNs")] + #[serde(rename="minStartTimeNs")] pub min_start_time_ns: Option, /// This token will be set when a dataset is received in response to a GET request and the dataset is too large to be included in a single response. Provide this value in a subsequent GET request to return the next page of data points within this dataset. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: Option, /// The largest end time of all data points in this possibly partial representation of the dataset. Time is in nanoseconds from epoch. This should also match the first part of the dataset identifier. - #[serde(alias="maxEndTimeNs")] + #[serde(rename="maxEndTimeNs")] pub max_end_time_ns: Option, /// The data stream ID of the data source that created the points in this dataset. - #[serde(alias="dataSourceId")] + #[serde(rename="dataSourceId")] pub data_source_id: Option, /// A partial list of data points contained in the dataset, ordered by largest endTimeNanos first. This list is considered complete when retrieving a small dataset and partial when patching a dataset or retrieving a dataset that is too large to include in a single response. pub point: Option>, @@ -433,7 +433,7 @@ impl ResponseResult for Dataset {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ListDataSourcesResponse { /// A previously created data source. - #[serde(alias="dataSource")] + #[serde(rename="dataSource")] pub data_source: Vec, } @@ -447,14 +447,14 @@ impl ResponseResult for ListDataSourcesResponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Application { /// Package name for this application. This is used as a unique identifier when created by Android applications, but cannot be specified by REST clients. REST clients will have their developer project number reflected into the Data Source data stream IDs, instead of the packageName. - #[serde(alias="packageName")] + #[serde(rename="packageName")] pub package_name: String, /// Version of the application. You should update this field whenever the application changes in a way that affects the computation of the data. pub version: String, /// The name of this application. This is required for REST clients, but we do not enforce uniqueness of this name. It is provided as a matter of convenience for other developers who would like to identify which REST created an Application or Data Source. pub name: String, /// An optional URI that can be used to link back to the application. - #[serde(alias="detailsUrl")] + #[serde(rename="detailsUrl")] pub details_url: String, } @@ -473,20 +473,20 @@ impl Part for Application {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct Session { /// A timestamp that indicates when the session was last modified. - #[serde(alias="modifiedTimeMillis")] + #[serde(rename="modifiedTimeMillis")] pub modified_time_millis: Option, /// An end time, in milliseconds since epoch, inclusive. - #[serde(alias="endTimeMillis")] + #[serde(rename="endTimeMillis")] pub end_time_millis: Option, /// A description for this session. pub description: Option, /// The type of activity this session represents. - #[serde(alias="activityType")] + #[serde(rename="activityType")] pub activity_type: Option, /// The application that created the session. pub application: Option, /// A start time, in milliseconds since epoch, inclusive. - #[serde(alias="startTimeMillis")] + #[serde(rename="startTimeMillis")] pub start_time_millis: Option, /// A client-generated identifier that is unique across all sessions owned by this particular user. pub id: Option, @@ -510,10 +510,10 @@ impl ResponseResult for Session {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ListSessionsResponse { /// The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// If includeDeleted is set to true in the request, this list will contain sessions deleted with original end times that are within the startTime and endTime frame. - #[serde(alias="deletedSession")] + #[serde(rename="deletedSession")] pub deleted_session: Vec, /// Sessions with an end time that is between startTime and endTime of the request. pub session: Vec, @@ -539,7 +539,7 @@ pub struct Device { /// Version string for the device hardware/software. pub version: String, /// A constant representing the type of the device. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// 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. pub uid: String, @@ -580,29 +580,29 @@ impl Part for DataTypeField {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct DataPoint { /// Used for version checking during transformation; that is, a datapoint can only replace another datapoint that has an older computation time stamp. - #[serde(alias="computationTimeMillis")] + #[serde(rename="computationTimeMillis")] pub computation_time_millis: String, /// Indicates the last time this data point was modified. Useful only in contexts where we are listing the data changes, rather than representing the current state of the data. - #[serde(alias="modifiedTimeMillis")] + #[serde(rename="modifiedTimeMillis")] pub modified_time_millis: String, /// The start time of the interval represented by this data point, in nanoseconds since epoch. - #[serde(alias="startTimeNanos")] + #[serde(rename="startTimeNanos")] pub start_time_nanos: String, /// The data type defining the format of the values in this data point. - #[serde(alias="dataTypeName")] + #[serde(rename="dataTypeName")] pub data_type_name: String, /// Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source. /// /// Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field. pub value: Vec, /// The end time of the interval represented by this data point, in nanoseconds since epoch. - #[serde(alias="endTimeNanos")] + #[serde(rename="endTimeNanos")] pub end_time_nanos: String, /// If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally. - #[serde(alias="originDataSourceId")] + #[serde(rename="originDataSourceId")] pub origin_data_source_id: String, /// The raw timestamp from the original SensorEvent. - #[serde(alias="rawTimestampNanos")] + #[serde(rename="rawTimestampNanos")] pub raw_timestamp_nanos: String, } @@ -634,10 +634,10 @@ pub struct DataSource { /// An end-user visible name for this data source. pub name: Option, /// The stream name uniquely identifies this particular data source among other data sources of the same type from the same underlying producer. Setting the stream name is optional, but should be done whenever an application exposes two streams for the same data type, or when a device has two equivalent sensors. - #[serde(alias="dataStreamName")] + #[serde(rename="dataStreamName")] pub data_stream_name: Option, /// The data type defines the schema for a stream of data being collected by, inserted into, or queried from the Fitness API. - #[serde(alias="dataType")] + #[serde(rename="dataType")] pub data_type: Option, /// A unique identifier for the data stream produced by this data source. The identifier includes: /// @@ -654,10 +654,10 @@ pub struct DataSource { /// When any of the optional fields that comprise of the data stream ID are blank, they will be omitted from the data stream ID. The minnimum viable data stream ID would be: type:dataType.name:developer project number /// /// Finally, the developer project number 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 developer project number in clear and normal form. - #[serde(alias="dataStreamId")] + #[serde(rename="dataStreamId")] pub data_stream_id: Option, /// A constant describing the type of this data source. Indicates whether this data source produces raw or derived data. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, } diff --git a/gen/freebase1/Cargo.toml b/gen/freebase1/Cargo.toml index 283c4b25a3..4cf284f4c9 100644 --- a/gen/freebase1/Cargo.toml +++ b/gen/freebase1/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-freebase1" -version = "0.1.3+20150330" +version = "0.1.4+20150330" authors = ["Sebastian Thiel "] description = "A complete library to interact with freebase (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/freebase1" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/freebase1/README.md b/gen/freebase1/README.md index 273fff8b62..2422c336e6 100644 --- a/gen/freebase1/README.md +++ b/gen/freebase1/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-freebase1` library allows access to all features of the *Google freebase* service. -This documentation was generated from *freebase* crate version *0.1.3+20150330*, where *20150330* is the exact revision of the *freebase:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *freebase* crate version *0.1.4+20150330*, where *20150330* is the exact revision of the *freebase:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *freebase* *v1* API can be found at the [official documentation site](https://developers.google.com/freebase/). diff --git a/gen/freebase1/src/lib.rs b/gen/freebase1/src/lib.rs index e3b50a1f59..a300398d15 100644 --- a/gen/freebase1/src/lib.rs +++ b/gen/freebase1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *freebase* crate version *0.1.3+20150330*, where *20150330* is the exact revision of the *freebase:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *freebase* crate version *0.1.4+20150330*, where *20150330* is the exact revision of the *freebase:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *freebase* *v1* API can be found at the //! [official documentation site](https://developers.google.com/freebase/). @@ -290,7 +290,7 @@ impl<'a, C, NC, A> Freebase Freebase { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -300,7 +300,7 @@ impl<'a, C, NC, A> Freebase } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -387,7 +387,7 @@ pub struct ReconcileGet { /// If filled, then the listed candidates are potential matches, and such should be evaluated by a more discerning algorithm or human. The matches are ordered by confidence. pub candidate: Vec, /// If filled, this entity is guaranteed to match at requested confidence probability (default 99%). - #[serde(alias="match")] + #[serde(rename="match")] pub match_: ReconcileCandidate, } diff --git a/gen/freebase1_sandbox/Cargo.toml b/gen/freebase1_sandbox/Cargo.toml index 182997311d..a782490a13 100644 --- a/gen/freebase1_sandbox/Cargo.toml +++ b/gen/freebase1_sandbox/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-freebase1_sandbox" -version = "0.1.3+20150330" +version = "0.1.4+20150330" authors = ["Sebastian Thiel "] description = "A complete library to interact with freebase (protocol v1sandbox)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/freebase1_sandbox" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/freebase1_sandbox/README.md b/gen/freebase1_sandbox/README.md index d226e3125d..ee6685195e 100644 --- a/gen/freebase1_sandbox/README.md +++ b/gen/freebase1_sandbox/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-freebase1_sandbox` library allows access to all features of the *Google freebase* service. -This documentation was generated from *freebase* crate version *0.1.3+20150330*, where *20150330* is the exact revision of the *freebase:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *freebase* crate version *0.1.4+20150330*, where *20150330* is the exact revision of the *freebase:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *freebase* *v1_sandbox* API can be found at the [official documentation site](https://developers.google.com/freebase/). diff --git a/gen/freebase1_sandbox/src/lib.rs b/gen/freebase1_sandbox/src/lib.rs index dde5d8bb8e..de7e894296 100644 --- a/gen/freebase1_sandbox/src/lib.rs +++ b/gen/freebase1_sandbox/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *freebase* crate version *0.1.3+20150330*, where *20150330* is the exact revision of the *freebase:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *freebase* crate version *0.1.4+20150330*, where *20150330* is the exact revision of the *freebase:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *freebase* *v1_sandbox* API can be found at the //! [official documentation site](https://developers.google.com/freebase/). @@ -290,7 +290,7 @@ impl<'a, C, NC, A> Freebase Freebase { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -300,7 +300,7 @@ impl<'a, C, NC, A> Freebase } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -387,7 +387,7 @@ pub struct ReconcileGet { /// If filled, then the listed candidates are potential matches, and such should be evaluated by a more discerning algorithm or human. The matches are ordered by confidence. pub candidate: Vec, /// If filled, this entity is guaranteed to match at requested confidence probability (default 99%). - #[serde(alias="match")] + #[serde(rename="match")] pub match_: ReconcileCandidate, } diff --git a/gen/fusiontables2/Cargo.toml b/gen/fusiontables2/Cargo.toml index b14bcf44bb..f1c81b534a 100644 --- a/gen/fusiontables2/Cargo.toml +++ b/gen/fusiontables2/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-fusiontables2" -version = "0.1.3+20150226" +version = "0.1.4+20150226" authors = ["Sebastian Thiel "] description = "A complete library to interact with fusiontables (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fusiontables2" @@ -18,5 +18,5 @@ hyper = "*" mime = "*" yup-oauth2 = "*" url = "*" -serde = "*" +serde = ">= 0.3.0" serde_macros = "*" diff --git a/gen/fusiontables2/README.md b/gen/fusiontables2/README.md index deb24b2019..5335da37dc 100644 --- a/gen/fusiontables2/README.md +++ b/gen/fusiontables2/README.md @@ -5,7 +5,7 @@ DO NOT EDIT ! --> The `google-fusiontables2` library allows access to all features of the *Google fusiontables* service. -This documentation was generated from *fusiontables* crate version *0.1.3+20150226*, where *20150226* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +This documentation was generated from *fusiontables* crate version *0.1.4+20150226*, where *20150226* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. Everything else about the *fusiontables* *v2* API can be found at the [official documentation site](https://developers.google.com/fusiontables). diff --git a/gen/fusiontables2/src/lib.rs b/gen/fusiontables2/src/lib.rs index d1bbc76b4a..3f9e7518cd 100644 --- a/gen/fusiontables2/src/lib.rs +++ b/gen/fusiontables2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *fusiontables* crate version *0.1.3+20150226*, where *20150226* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.3*. +//! This documentation was generated from *fusiontables* crate version *0.1.4+20150226*, where *20150226* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.4*. //! //! Everything else about the *fusiontables* *v2* API can be found at the //! [official documentation site](https://developers.google.com/fusiontables). @@ -332,7 +332,7 @@ impl<'a, C, NC, A> Fusiontables Fusiontables { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/0.1.3".to_string(), + _user_agent: "google-api-rust-client/0.1.4".to_string(), _m: PhantomData } } @@ -357,7 +357,7 @@ impl<'a, C, NC, A> Fusiontables } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/0.1.3`. + /// It defaults to `google-api-rust-client/0.1.4`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -390,10 +390,10 @@ pub struct Task { /// Type of the resource. This is always "fusiontables#task". pub kind: String, /// Type of background task. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: String, /// Identifier for the task. - #[serde(alias="taskId")] + #[serde(rename="taskId")] pub task_id: String, } @@ -417,36 +417,36 @@ pub struct Column { /// Column graph predicate. /// Used to map table to graph data model (subject,predicate,object) /// See W3C Graph-based Data Model. - #[serde(alias="graphPredicate")] + #[serde(rename="graphPredicate")] pub graph_predicate: Option, /// The kind of item this is. For a column, this is always fusiontables#column. pub kind: Option, /// List of valid values used to validate data and supply a drop-down list of values in the web application. - #[serde(alias="validValues")] + #[serde(rename="validValues")] pub valid_values: Option>, /// Column description. pub description: Option, /// Identifier of the base column. If present, this column is derived from the specified base column. - #[serde(alias="baseColumn")] + #[serde(rename="baseColumn")] pub base_column: Option, /// Identifier for the column. - #[serde(alias="columnId")] + #[serde(rename="columnId")] pub column_id: Option, /// JSON object containing custom column properties. - #[serde(alias="columnPropertiesJson")] + #[serde(rename="columnPropertiesJson")] pub column_properties_json: Option, /// Format pattern. /// Acceptable values are DT_DATE_MEDIUMe.g Dec 24, 2008 DT_DATE_SHORTfor example 12/24/08 DT_DATE_TIME_MEDIUMfor example Dec 24, 2008 8:30:45 PM DT_DATE_TIME_SHORTfor example 12/24/08 8:30 PM DT_DAY_MONTH_2_DIGIT_YEARfor example 24/12/08 DT_DAY_MONTH_2_DIGIT_YEAR_TIMEfor example 24/12/08 20:30 DT_DAY_MONTH_2_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/08 8:30 PM DT_DAY_MONTH_4_DIGIT_YEARfor example 24/12/2008 DT_DAY_MONTH_4_DIGIT_YEAR_TIMEfor example 24/12/2008 20:30 DT_DAY_MONTH_4_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/2008 8:30 PM DT_ISO_YEAR_MONTH_DAYfor example 2008-12-24 DT_ISO_YEAR_MONTH_DAY_TIMEfor example 2008-12-24 20:30:45 DT_MONTH_DAY_4_DIGIT_YEARfor example 12/24/2008 DT_TIME_LONGfor example 8:30:45 PM UTC-6 DT_TIME_MEDIUMfor example 8:30:45 PM DT_TIME_SHORTfor example 8:30 PM DT_YEAR_ONLYfor example 2008 HIGHLIGHT_UNTYPED_CELLSHighlight cell data that does not match the data type NONENo formatting (default) NUMBER_CURRENCYfor example $1234.56 NUMBER_DEFAULTfor example 1,234.56 NUMBER_INTEGERfor example 1235 NUMBER_NO_SEPARATORfor example 1234.56 NUMBER_PERCENTfor example 123,456% NUMBER_SCIENTIFICfor example 1E3 STRING_EIGHT_LINE_IMAGEDisplays thumbnail images as tall as eight lines of text STRING_FOUR_LINE_IMAGEDisplays thumbnail images as tall as four lines of text STRING_JSON_TEXTAllows JSON editing of text in UI STRING_LINKTreats cell as a link (must start with http:// or https://) STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line of text STRING_VIDEO_OR_MAPDisplay a video or map thumbnail - #[serde(alias="formatPattern")] + #[serde(rename="formatPattern")] pub format_pattern: Option, /// JSON schema for interpreting JSON in this column. - #[serde(alias="columnJsonSchema")] + #[serde(rename="columnJsonSchema")] pub column_json_schema: Option, /// Type of the column. - #[serde(alias="type")] + #[serde(rename="type")] pub type_: Option, /// If true, data entered via the web application is validated. - #[serde(alias="validateData")] + #[serde(rename="validateData")] pub validate_data: Option, /// Name of the column. pub name: Option, @@ -488,7 +488,7 @@ pub struct StyleFunction { /// Gradient function that interpolates a range of colors based on column value. pub gradient: StyleFunctionGradient, /// Name of the column whose value is used in the style. - #[serde(alias="columnName")] + #[serde(rename="columnName")] pub column_name: String, /// Bucket function that assigns a style based on the range a column value falls into. pub buckets: Vec, @@ -511,14 +511,14 @@ impl Part for StyleFunction {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TaskList { /// Token used to access the next page of this result. No token is displayed if there are no more pages left. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of all requested tasks. pub items: Vec, /// Type of the resource. This is always "fusiontables#taskList". pub kind: String, /// Total number of tasks for the table. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -562,15 +562,15 @@ pub struct Template { /// The kind of item this is. For a template, this is always fusiontables#template. pub kind: Option, /// Identifier for the table for which the template is defined. - #[serde(alias="tableId")] + #[serde(rename="tableId")] pub table_id: Option, /// Optional name assigned to a template. pub name: Option, /// Identifier for the template, unique within the context of a particular table. - #[serde(alias="templateId")] + #[serde(rename="templateId")] pub template_id: Option, /// List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified. - #[serde(alias="automaticColumnNames")] + #[serde(rename="automaticColumnNames")] pub automatic_column_names: Option>, } @@ -585,10 +585,10 @@ impl ResponseResult for Template {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct ColumnBaseColumn { /// Offset to the entry in the list of base tables in the table definition. - #[serde(alias="tableIndex")] + #[serde(rename="tableIndex")] pub table_index: i32, /// The id of the column in the base table from which this column is derived. - #[serde(alias="columnId")] + #[serde(rename="columnId")] pub column_id: i32, } @@ -608,14 +608,14 @@ impl Part for ColumnBaseColumn {} #[derive(Default, Clone, Debug, Deserialize)] pub struct ColumnList { /// Token used to access the next page of this result. No token is displayed if there are no more pages left. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of all requested columns. pub items: Vec, /// The kind of item this is. For a column list, this is always fusiontables#columnList. pub kind: String, /// Total number of columns for the table. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -634,7 +634,7 @@ impl ResponseResult for ColumnList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct Import { /// The number of rows received from the import request. - #[serde(alias="numRowsReceived")] + #[serde(rename="numRowsReceived")] pub num_rows_received: String, /// The kind of item this is. For an import, this is always fusiontables#import. pub kind: String, @@ -650,19 +650,19 @@ impl ResponseResult for Import {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct LineStyle { /// Width of the line in pixels. - #[serde(alias="strokeWeight")] + #[serde(rename="strokeWeight")] pub stroke_weight: i32, /// Column-value or bucket styler that is used to determine the width of the line. - #[serde(alias="strokeWeightStyler")] + #[serde(rename="strokeWeightStyler")] pub stroke_weight_styler: StyleFunction, /// Color of the line in #RRGGBB format. - #[serde(alias="strokeColor")] + #[serde(rename="strokeColor")] pub stroke_color: String, /// Opacity of the line : 0.0 (transparent) to 1.0 (opaque). - #[serde(alias="strokeOpacity")] + #[serde(rename="strokeOpacity")] pub stroke_opacity: f64, /// Column-value, gradient or buckets styler that is used to determine the line color and opacity. - #[serde(alias="strokeColorStyler")] + #[serde(rename="strokeColorStyler")] pub stroke_color_styler: StyleFunction, } @@ -676,28 +676,28 @@ impl Part for LineStyle {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct PolygonStyle { /// Column-value, gradient or buckets styler that is used to determine the border color and opacity. - #[serde(alias="strokeColorStyler")] + #[serde(rename="strokeColorStyler")] pub stroke_color_styler: StyleFunction, /// Width of the polyon border in pixels. - #[serde(alias="strokeWeight")] + #[serde(rename="strokeWeight")] pub stroke_weight: i32, /// Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). - #[serde(alias="strokeOpacity")] + #[serde(rename="strokeOpacity")] pub stroke_opacity: f64, /// Column-value or bucket styler that is used to determine the width of the polygon border. - #[serde(alias="strokeWeightStyler")] + #[serde(rename="strokeWeightStyler")] pub stroke_weight_styler: StyleFunction, /// Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. - #[serde(alias="fillColorStyler")] + #[serde(rename="fillColorStyler")] pub fill_color_styler: StyleFunction, /// Color of the interior of the polygon in #RRGGBB format. - #[serde(alias="fillColor")] + #[serde(rename="fillColor")] pub fill_color: String, /// Color of the polygon border in #RRGGBB format. - #[serde(alias="strokeColor")] + #[serde(rename="strokeColor")] pub stroke_color: String, /// Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). - #[serde(alias="fillOpacity")] + #[serde(rename="fillOpacity")] pub fill_opacity: f64, } @@ -716,14 +716,14 @@ impl Part for PolygonStyle {} #[derive(Default, Clone, Debug, Deserialize)] pub struct StyleSettingList { /// Token used to access the next page of this result. No token is displayed if there are no more styles left. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// All requested style settings. pub items: Vec, /// The kind of item this is. For a style list, this is always fusiontables#styleSettingList . pub kind: String, /// Total number of styles for the table. - #[serde(alias="totalItems")] + #[serde(rename="totalItems")] pub total_items: i32, } @@ -760,10 +760,10 @@ impl ResponseResult for Sqlresponse {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct PointStyle { /// Column or a bucket value from which the icon name is to be determined. - #[serde(alias="iconStyler")] + #[serde(rename="iconStyler")] pub icon_styler: StyleFunction, /// Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 - #[serde(alias="iconName")] + #[serde(rename="iconName")] pub icon_name: String, } @@ -785,23 +785,23 @@ impl Part for PointStyle {} #[derive(Default, Clone, Debug, Serialize, Deserialize)] pub struct StyleSetting { /// Style definition for points in the table. - #[serde(alias="markerOptions")] + #[serde(rename="markerOptions")] pub marker_options: Option, /// The kind of item this is. A StyleSetting contains the style definitions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. pub kind: Option, /// Identifier for the table. - #[serde(alias="tableId")] + #[serde(rename="tableId")] pub table_id: Option, /// Optional name for the style setting. pub name: Option, /// Style definition for polygons in the table. - #[serde(alias="polygonOptions")] + #[serde(rename="polygonOptions")] pub polygon_options: Option, /// Style definition for lines in the table. - #[serde(alias="polylineOptions")] + #[serde(rename="polylineOptions")] pub polyline_options: Option, /// Identifier for the style setting (unique only within tables). - #[serde(alias="styleId")] + #[serde(rename="styleId")] pub style_id: Option, } @@ -821,7 +821,7 @@ impl ResponseResult for StyleSetting {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TableList { /// Token used to access the next page of this result. No token is displayed if there are no more pages left. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of all requested tables. pub items: Vec, @@ -844,14 +844,14 @@ impl ResponseResult for TableList {} #[derive(Default, Clone, Debug, Deserialize)] pub struct TemplateList { /// Token used to access the next page of this result. No token is displayed if there are no more pages left. - #[serde(alias="nextPageToken")] + #[serde(rename="nextPageToken")] pub next_page_token: String, /// List of all requested templates. pub items: Vec