From 23dc0d24b6540992007cdc5cfc21ba12a7914dbc Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 4 Jul 2019 00:37:48 +0000 Subject: [PATCH] Autogenerated update (2019-07-04) Update: - androidpublisher_v3 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - content_v2 - content_v2_1 - dialogflow_v2 - iam_v1 - servicemanagement_v1 - toolresults_v1beta3 --- generated/google/apis/androidpublisher_v3.rb | 2 +- .../apis/androidpublisher_v3/classes.rb | 50 +++ .../androidpublisher_v3/representations.rb | 18 + .../google/apis/cloudresourcemanager_v1.rb | 2 +- .../apis/cloudresourcemanager_v1/classes.rb | 28 ++ .../representations.rb | 15 + .../apis/cloudresourcemanager_v1beta1.rb | 2 +- .../cloudresourcemanager_v1beta1/classes.rb | 28 ++ .../representations.rb | 15 + .../google/apis/cloudresourcemanager_v2.rb | 2 +- .../apis/cloudresourcemanager_v2/classes.rb | 28 ++ .../representations.rb | 15 + .../apis/cloudresourcemanager_v2beta1.rb | 2 +- .../cloudresourcemanager_v2beta1/classes.rb | 28 ++ .../representations.rb | 15 + generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 43 +- .../google/apis/content_v2/representations.rb | 18 + generated/google/apis/content_v2/service.rb | 9 +- generated/google/apis/content_v2_1.rb | 2 +- generated/google/apis/content_v2_1/classes.rb | 43 +- .../apis/content_v2_1/representations.rb | 18 + generated/google/apis/content_v2_1/service.rb | 19 +- generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 402 ++++++++++++++++++ .../apis/dialogflow_v2/representations.rb | 173 ++++++++ generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 2 +- generated/google/apis/iam_v1/service.rb | 357 +++++++++++++--- generated/google/apis/servicemanagement_v1.rb | 2 +- .../apis/servicemanagement_v1/classes.rb | 28 ++ .../servicemanagement_v1/representations.rb | 15 + generated/google/apis/toolresults_v1beta3.rb | 2 +- .../apis/toolresults_v1beta3/classes.rb | 8 + .../toolresults_v1beta3/representations.rb | 1 + 35 files changed, 1319 insertions(+), 79 deletions(-) diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index 617f7f83e..93da3a211 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20190618' + REVISION = '20190702' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index 62c2c2db8..f79f621a7 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -922,6 +922,50 @@ module Google end end + # Contains the introductory price information for a subscription. + class IntroductoryPriceInfo + include Google::Apis::Core::Hashable + + # Introductory price of the subscription, not including tax. The currency is the + # same as price_currency_code. Price is expressed in micro-units, where 1,000, + # 000 micro-units represents one unit of the currency. For example, if the + # subscription price is €1.99, price_amount_micros is 1990000. + # Corresponds to the JSON property `introductoryPriceAmountMicros` + # @return [Fixnum] + attr_accessor :introductory_price_amount_micros + + # ISO 4217 currency code for the introductory subscription price. For example, + # if the price is specified in British pounds sterling, price_currency_code is " + # GBP". + # Corresponds to the JSON property `introductoryPriceCurrencyCode` + # @return [String] + attr_accessor :introductory_price_currency_code + + # The number of billing period to offer introductory pricing. + # Corresponds to the JSON property `introductoryPriceCycles` + # @return [Fixnum] + attr_accessor :introductory_price_cycles + + # Introductory price period, specified in ISO 8601 format. Common values are ( + # but not limited to) "P1W" (one week), "P1M" (one month), "P3M" (three months), + # "P6M" (six months), and "P1Y" (one year). + # Corresponds to the JSON property `introductoryPricePeriod` + # @return [String] + attr_accessor :introductory_price_period + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @introductory_price_amount_micros = args[:introductory_price_amount_micros] if args.key?(:introductory_price_amount_micros) + @introductory_price_currency_code = args[:introductory_price_currency_code] if args.key?(:introductory_price_currency_code) + @introductory_price_cycles = args[:introductory_price_cycles] if args.key?(:introductory_price_cycles) + @introductory_price_period = args[:introductory_price_period] if args.key?(:introductory_price_period) + end + end + # class Listing include Google::Apis::Core::Hashable @@ -1556,6 +1600,11 @@ module Google # @return [String] attr_accessor :given_name + # Contains the introductory price information for a subscription. + # Corresponds to the JSON property `introductoryPriceInfo` + # @return [Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo] + attr_accessor :introductory_price_info + # This kind represents a subscriptionPurchase object in the androidpublisher # service. # Corresponds to the JSON property `kind` @@ -1661,6 +1710,7 @@ module Google @expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis) @family_name = args[:family_name] if args.key?(:family_name) @given_name = args[:given_name] if args.key?(:given_name) + @introductory_price_info = args[:introductory_price_info] if args.key?(:introductory_price_info) @kind = args[:kind] if args.key?(:kind) @linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token) @order_id = args[:order_id] if args.key?(:order_id) diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb index 216cef585..8b33774b6 100644 --- a/generated/google/apis/androidpublisher_v3/representations.rb +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -184,6 +184,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class IntroductoryPriceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Listing class Representation < Google::Apis::Core::JsonRepresentation; end @@ -638,6 +644,16 @@ module Google end end + class IntroductoryPriceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :introductory_price_amount_micros, :numeric_string => true, as: 'introductoryPriceAmountMicros' + property :introductory_price_currency_code, as: 'introductoryPriceCurrencyCode' + property :introductory_price_cycles, as: 'introductoryPriceCycles' + property :introductory_price_period, as: 'introductoryPricePeriod' + end + end + class Listing # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -820,6 +836,8 @@ module Google property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis' property :family_name, as: 'familyName' property :given_name, as: 'givenName' + property :introductory_price_info, as: 'introductoryPriceInfo', class: Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo, decorator: Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo::Representation + property :kind, as: 'kind' property :linked_purchase_token, as: 'linkedPurchaseToken' property :order_id, as: 'orderId' diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index cc44a3cdf..81649ec15 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20190610' + REVISION = '20190701' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index 3c0a475c0..c0c453abc 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -568,12 +568,18 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::CloudresourcemanagerV1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) end end @@ -596,6 +602,28 @@ module Google end end + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) + end + end + # A Lien represents an encumbrance on the actions that can be performed on a # resource. class Lien diff --git a/generated/google/apis/cloudresourcemanager_v1/representations.rb b/generated/google/apis/cloudresourcemanager_v1/representations.rb index 4e3ef32a7..1d1a9d340 100644 --- a/generated/google/apis/cloudresourcemanager_v1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1/representations.rb @@ -124,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Lien class Representation < Google::Apis::Core::JsonRepresentation; end @@ -408,6 +414,8 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV1::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV1::GetPolicyOptions::Representation + end end @@ -418,6 +426,13 @@ module Google end end + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' + end + end + class Lien # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index ac96b0f3e..a662a9a30 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20190610' + REVISION = '20190701' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 1857b7334..43ad6fba7 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -372,12 +372,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::CloudresourcemanagerV1beta1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index 83c5f4e6b..48828b997 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListOrganizationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -245,6 +251,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV1beta1::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index fc4e62ad6..a6121c0f2 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20190619' + REVISION = '20190701' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb index 302a0ad03..8bc0ba10c 100644 --- a/generated/google/apis/cloudresourcemanager_v2/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb @@ -351,12 +351,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::CloudresourcemanagerV2::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/cloudresourcemanager_v2/representations.rb b/generated/google/apis/cloudresourcemanager_v2/representations.rb index ba7440f6e..6fdcdf028 100644 --- a/generated/google/apis/cloudresourcemanager_v2/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v2/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListFoldersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -210,6 +216,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV2::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV2::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index 450af4d0e..53cf7b6f4 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20190619' + REVISION = '20190701' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb index 52f9acac4..d10ac897d 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb @@ -351,12 +351,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::CloudresourcemanagerV2beta1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb index d33ceed96..48713091e 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListFoldersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -210,6 +216,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV2beta1::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV2beta1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 0c2aa80c0..0a129c9f0 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20190607' + REVISION = '20190702' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index d34b8d514..05a9b230a 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -1505,6 +1505,25 @@ module Google end end + # + class BusinessDayConfig + include Google::Apis::Core::Hashable + + # Regular business days. May not be empty. + # Corresponds to the JSON property `businessDays` + # @return [Array] + attr_accessor :business_days + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @business_days = args[:business_days] if args.key?(:business_days) + end + end + # class CarrierRate include Google::Apis::Core::Hashable @@ -2448,6 +2467,12 @@ module Google # @return [Google::Apis::ContentV2::CutoffTime] attr_accessor :cutoff_time + # The business days during which orders can be handled. If not provided, Monday + # to Friday business days will be assumed. + # Corresponds to the JSON property `handlingBusinessDayConfig` + # @return [Google::Apis::ContentV2::BusinessDayConfig] + attr_accessor :handling_business_day_config + # Holiday cutoff definitions. If configured, they specify order cutoff times for # holiday-specific shipping. # Corresponds to the JSON property `holidayCutoffs` @@ -2475,14 +2500,20 @@ module Google attr_accessor :min_handling_time_in_days # Minimum number of business days that is spent in transit. 0 means same day - # delivery, 1 means next day delivery. Either `min,max`transitTimeInDays or + # delivery, 1 means next day delivery. Either `min,max`TransitTimeInDays or # transitTimeTable must be set, but not both. # Corresponds to the JSON property `minTransitTimeInDays` # @return [Fixnum] attr_accessor :min_transit_time_in_days + # The business days during which orders can be in-transit. If not provided, + # Monday to Friday business days will be assumed. + # Corresponds to the JSON property `transitBusinessDayConfig` + # @return [Google::Apis::ContentV2::BusinessDayConfig] + attr_accessor :transit_business_day_config + # Transit time table, number of business days spent in transit based on row and - # column dimensions. Either `min,max`transitTimeInDays or transitTimeTable can + # column dimensions. Either `min,max`TransitTimeInDays or transitTimeTable can # be set, but not both. # Corresponds to the JSON property `transitTimeTable` # @return [Google::Apis::ContentV2::TransitTable] @@ -2495,11 +2526,13 @@ module Google # Update properties of this object def update!(**args) @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time) + @handling_business_day_config = args[:handling_business_day_config] if args.key?(:handling_business_day_config) @holiday_cutoffs = args[:holiday_cutoffs] if args.key?(:holiday_cutoffs) @max_handling_time_in_days = args[:max_handling_time_in_days] if args.key?(:max_handling_time_in_days) @max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days) @min_handling_time_in_days = args[:min_handling_time_in_days] if args.key?(:min_handling_time_in_days) @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days) + @transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config) @transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table) end end @@ -9595,6 +9628,11 @@ module Google # @return [Fixnum] attr_accessor :batch_id + # The ContentAPI feed id. + # Corresponds to the JSON property `feedId` + # @return [Fixnum] + attr_accessor :feed_id + # The ID of the managing account. # Corresponds to the JSON property `merchantId` # @return [Fixnum] @@ -9624,6 +9662,7 @@ module Google # Update properties of this object def update!(**args) @batch_id = args[:batch_id] if args.key?(:batch_id) + @feed_id = args[:feed_id] if args.key?(:feed_id) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @request_method = args[:request_method] if args.key?(:request_method) @product = args[:product] if args.key?(:product) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 554f81e5e..8aa3f939c 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -256,6 +256,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BusinessDayConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CarrierRate class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2055,6 +2061,13 @@ module Google end end + class BusinessDayConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :business_days, as: 'businessDays' + end + end + class CarrierRate # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2318,12 +2331,16 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2::CutoffTime, decorator: Google::Apis::ContentV2::CutoffTime::Representation + property :handling_business_day_config, as: 'handlingBusinessDayConfig', class: Google::Apis::ContentV2::BusinessDayConfig, decorator: Google::Apis::ContentV2::BusinessDayConfig::Representation + collection :holiday_cutoffs, as: 'holidayCutoffs', class: Google::Apis::ContentV2::HolidayCutoff, decorator: Google::Apis::ContentV2::HolidayCutoff::Representation property :max_handling_time_in_days, as: 'maxHandlingTimeInDays' property :max_transit_time_in_days, as: 'maxTransitTimeInDays' property :min_handling_time_in_days, as: 'minHandlingTimeInDays' property :min_transit_time_in_days, as: 'minTransitTimeInDays' + property :transit_business_day_config, as: 'transitBusinessDayConfig', class: Google::Apis::ContentV2::BusinessDayConfig, decorator: Google::Apis::ContentV2::BusinessDayConfig::Representation + property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2::TransitTable, decorator: Google::Apis::ContentV2::TransitTable::Representation end @@ -4269,6 +4286,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :batch_id, as: 'batchId' + property :feed_id, :numeric_string => true, as: 'feedId' property :merchant_id, :numeric_string => true, as: 'merchantId' property :request_method, as: 'method' property :product, as: 'product', class: Google::Apis::ContentV2::Product, decorator: Google::Apis::ContentV2::Product::Representation diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index 431a998fd..fc295aadf 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -2696,11 +2696,10 @@ module Google # @param [String] placed_date_start # Obtains orders placed after this date (inclusively), in ISO 8601 format. # @param [Array, String] statuses - # Obtains orders that match any of the specified statuses. Multiple values can - # be specified with comma separation. Additionally, please note that active is a - # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut - # for shipped, partiallyDelivered, delivered, partiallyReturned, returned, and - # canceled. + # Obtains orders that match any of the specified statuses. Please note that + # active is a shortcut for pendingShipment and partiallyShipped, and completed + # is a shortcut for shipped, partiallyDelivered, delivered, partiallyReturned, + # returned, and canceled. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index c8022d849..84641aa5c 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20190607' + REVISION = '20190702' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index f99d7c34a..77d6fa5c5 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -1366,6 +1366,25 @@ module Google end end + # + class BusinessDayConfig + include Google::Apis::Core::Hashable + + # Regular business days. May not be empty. + # Corresponds to the JSON property `businessDays` + # @return [Array] + attr_accessor :business_days + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @business_days = args[:business_days] if args.key?(:business_days) + end + end + # class CarrierRate include Google::Apis::Core::Hashable @@ -2256,6 +2275,12 @@ module Google # @return [Google::Apis::ContentV2_1::CutoffTime] attr_accessor :cutoff_time + # The business days during which orders can be handled. If not provided, Monday + # to Friday business days will be assumed. + # Corresponds to the JSON property `handlingBusinessDayConfig` + # @return [Google::Apis::ContentV2_1::BusinessDayConfig] + attr_accessor :handling_business_day_config + # Holiday cutoff definitions. If configured, they specify order cutoff times for # holiday-specific shipping. # Corresponds to the JSON property `holidayCutoffs` @@ -2283,14 +2308,20 @@ module Google attr_accessor :min_handling_time_in_days # Minimum number of business days that is spent in transit. 0 means same day - # delivery, 1 means next day delivery. Either `min,max`transitTimeInDays or + # delivery, 1 means next day delivery. Either `min,max`TransitTimeInDays or # transitTimeTable must be set, but not both. # Corresponds to the JSON property `minTransitTimeInDays` # @return [Fixnum] attr_accessor :min_transit_time_in_days + # The business days during which orders can be in-transit. If not provided, + # Monday to Friday business days will be assumed. + # Corresponds to the JSON property `transitBusinessDayConfig` + # @return [Google::Apis::ContentV2_1::BusinessDayConfig] + attr_accessor :transit_business_day_config + # Transit time table, number of business days spent in transit based on row and - # column dimensions. Either `min,max`transitTimeInDays or transitTimeTable can + # column dimensions. Either `min,max`TransitTimeInDays or transitTimeTable can # be set, but not both. # Corresponds to the JSON property `transitTimeTable` # @return [Google::Apis::ContentV2_1::TransitTable] @@ -2303,11 +2334,13 @@ module Google # Update properties of this object def update!(**args) @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time) + @handling_business_day_config = args[:handling_business_day_config] if args.key?(:handling_business_day_config) @holiday_cutoffs = args[:holiday_cutoffs] if args.key?(:holiday_cutoffs) @max_handling_time_in_days = args[:max_handling_time_in_days] if args.key?(:max_handling_time_in_days) @max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days) @min_handling_time_in_days = args[:min_handling_time_in_days] if args.key?(:min_handling_time_in_days) @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days) + @transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config) @transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table) end end @@ -7628,6 +7661,11 @@ module Google # @return [Fixnum] attr_accessor :batch_id + # The ContentAPI feed id. + # Corresponds to the JSON property `feedId` + # @return [Fixnum] + attr_accessor :feed_id + # The ID of the managing account. # Corresponds to the JSON property `merchantId` # @return [Fixnum] @@ -7657,6 +7695,7 @@ module Google # Update properties of this object def update!(**args) @batch_id = args[:batch_id] if args.key?(:batch_id) + @feed_id = args[:feed_id] if args.key?(:feed_id) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @method_prop = args[:method_prop] if args.key?(:method_prop) @product = args[:product] if args.key?(:product) diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 6e79de8db..b76d3412e 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -244,6 +244,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BusinessDayConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CarrierRate class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1782,6 +1788,13 @@ module Google end end + class BusinessDayConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :business_days, as: 'businessDays' + end + end + class CarrierRate # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2033,12 +2046,16 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2_1::CutoffTime, decorator: Google::Apis::ContentV2_1::CutoffTime::Representation + property :handling_business_day_config, as: 'handlingBusinessDayConfig', class: Google::Apis::ContentV2_1::BusinessDayConfig, decorator: Google::Apis::ContentV2_1::BusinessDayConfig::Representation + collection :holiday_cutoffs, as: 'holidayCutoffs', class: Google::Apis::ContentV2_1::HolidayCutoff, decorator: Google::Apis::ContentV2_1::HolidayCutoff::Representation property :max_handling_time_in_days, as: 'maxHandlingTimeInDays' property :max_transit_time_in_days, as: 'maxTransitTimeInDays' property :min_handling_time_in_days, as: 'minHandlingTimeInDays' property :min_transit_time_in_days, as: 'minTransitTimeInDays' + property :transit_business_day_config, as: 'transitBusinessDayConfig', class: Google::Apis::ContentV2_1::BusinessDayConfig, decorator: Google::Apis::ContentV2_1::BusinessDayConfig::Representation + property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2_1::TransitTable, decorator: Google::Apis::ContentV2_1::TransitTable::Representation end @@ -3502,6 +3519,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :batch_id, as: 'batchId' + property :feed_id, :numeric_string => true, as: 'feedId' property :merchant_id, :numeric_string => true, as: 'merchantId' property :method_prop, as: 'method' property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index dd9cb5e03..3e5aa1eca 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -2185,11 +2185,10 @@ module Google # @param [String] placed_date_start # Obtains orders placed after this date (inclusively), in ISO 8601 format. # @param [Array, String] statuses - # Obtains orders that match any of the specified statuses. Multiple values can - # be specified with comma separation. Additionally, please note that active is a - # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut - # for shipped, partiallyDelivered, delivered, partiallyReturned, returned, and - # canceled. + # Obtains orders that match any of the specified statuses. Please note that + # active is a shortcut for pendingShipment and partiallyShipped, and completed + # is a shortcut for shipped, partiallyDelivered, delivered, partiallyReturned, + # returned, and canceled. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2813,6 +2812,8 @@ module Google # multi-client account. # @param [String] product_id # The REST ID of the product. + # @param [Fixnum] feed_id + # The Content API Supplemental Feed ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2832,10 +2833,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/products/{productId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? + command.query['feedId'] = feed_id unless feed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -2886,6 +2888,8 @@ module Google # The ID of the account that contains the product. This account cannot be a # multi-client account. # @param [Google::Apis::ContentV2_1::Product] product_object + # @param [Fixnum] feed_id + # The Content API Supplemental Feed ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2905,13 +2909,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_product(merchant_id, product_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/products', options) command.request_representation = Google::Apis::ContentV2_1::Product::Representation command.request_object = product_object command.response_representation = Google::Apis::ContentV2_1::Product::Representation command.response_class = Google::Apis::ContentV2_1::Product command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['feedId'] = feed_id unless feed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 370ea28a3..7435efd0f 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20190626' + REVISION = '20190629' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 603c83850..4267251f0 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -3182,6 +3182,35 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies] attr_accessor :quick_replies + # Carousel Rich Business Messaging (RBM) rich card. + # Rich cards allow you to respond to users with more vivid content, e.g. + # with media and suggestions. + # For more details about RBM rich cards, please see: + # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send- + # messages#rich-cards. + # If you want to show a single card with more control over the layout, + # please use RbmStandaloneCard instead. + # Corresponds to the JSON property `rbmCarouselRichCard` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard] + attr_accessor :rbm_carousel_rich_card + + # Standalone Rich Business Messaging (RBM) rich card. + # Rich cards allow you to respond to users with more vivid content, e.g. + # with media and suggestions. + # For more details about RBM rich cards, please see: + # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send- + # messages#rich-cards. + # You can group multiple rich cards into one using RbmCarouselCard but + # carousel cards will give you less control over the card layout. + # Corresponds to the JSON property `rbmStandaloneRichCard` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard] + attr_accessor :rbm_standalone_rich_card + + # Rich Business Messaging (RBM) text response with suggestions. + # Corresponds to the JSON property `rbmText` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmText] + attr_accessor :rbm_text + # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one @@ -3234,6 +3263,9 @@ module Google @payload = args[:payload] if args.key?(:payload) @platform = args[:platform] if args.key?(:platform) @quick_replies = args[:quick_replies] if args.key?(:quick_replies) + @rbm_carousel_rich_card = args[:rbm_carousel_rich_card] if args.key?(:rbm_carousel_rich_card) + @rbm_standalone_rich_card = args[:rbm_standalone_rich_card] if args.key?(:rbm_standalone_rich_card) + @rbm_text = args[:rbm_text] if args.key?(:rbm_text) @simple_responses = args[:simple_responses] if args.key?(:simple_responses) @suggestions = args[:suggestions] if args.key?(:suggestions) @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio) @@ -3591,6 +3623,376 @@ module Google end end + # Rich Business Messaging (RBM) Card content + class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent + include Google::Apis::Core::Hashable + + # Optional. Description of the card (at most 2000 bytes). + # At least one of the title, description or media must be set. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Rich Business Messaging (RBM) Media displayed in Cards + # The following media-types are currently supported: + # ## Image Types + # image/jpeg + # image/jpg' + # image/gif + # image/png + # ## Video Types + # video/h263 + # video/m4v + # video/mp4 + # video/mpeg + # video/mpeg4 + # video/webm + # Corresponds to the JSON property `media` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia] + attr_accessor :media + + # Optional. List of suggestions to include in the card. + # Corresponds to the JSON property `suggestions` + # @return [Array] + attr_accessor :suggestions + + # Optional. Title of the card (at most 200 bytes). + # At least one of the title, description or media must be set. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @media = args[:media] if args.key?(:media) + @suggestions = args[:suggestions] if args.key?(:suggestions) + @title = args[:title] if args.key?(:title) + end + end + + # Rich Business Messaging (RBM) Media displayed in Cards + # The following media-types are currently supported: + # ## Image Types + # image/jpeg + # image/jpg' + # image/gif + # image/png + # ## Video Types + # video/h263 + # video/m4v + # video/mp4 + # video/mpeg + # video/mpeg4 + # video/webm + class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia + include Google::Apis::Core::Hashable + + # Required. Publicly reachable URI of the file. The RBM platform + # determines the MIME type of the file from the content-type field in + # the HTTP headers when the platform fetches the file. The content-type + # field must be present and accurate in the HTTP response from the URL. + # Corresponds to the JSON property `fileUri` + # @return [String] + attr_accessor :file_uri + + # Required for cards with vertical orientation. The height of the media + # within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + # For a standalone card with horizontal layout, height is not + # customizable, and this field is ignored. + # Corresponds to the JSON property `height` + # @return [String] + attr_accessor :height + + # Optional. Publicly reachable URI of the thumbnail.If you don't + # provide a thumbnail URI, the RBM platform displays a blank + # placeholder thumbnail until the user's device downloads the file. + # Depending on the user's setting, the file may not download + # automatically and may require the user to tap a download button. + # Corresponds to the JSON property `thumbnailUri` + # @return [String] + attr_accessor :thumbnail_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_uri = args[:file_uri] if args.key?(:file_uri) + @height = args[:height] if args.key?(:height) + @thumbnail_uri = args[:thumbnail_uri] if args.key?(:thumbnail_uri) + end + end + + # Carousel Rich Business Messaging (RBM) rich card. + # Rich cards allow you to respond to users with more vivid content, e.g. + # with media and suggestions. + # For more details about RBM rich cards, please see: + # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send- + # messages#rich-cards. + # If you want to show a single card with more control over the layout, + # please use RbmStandaloneCard instead. + class GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard + include Google::Apis::Core::Hashable + + # Required. The cards in the carousel. A carousel must have at least + # 2 cards and at most 10. + # Corresponds to the JSON property `cardContents` + # @return [Array] + attr_accessor :card_contents + + # Required. The width of the cards in the carousel. + # Corresponds to the JSON property `cardWidth` + # @return [String] + attr_accessor :card_width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @card_contents = args[:card_contents] if args.key?(:card_contents) + @card_width = args[:card_width] if args.key?(:card_width) + end + end + + # Standalone Rich Business Messaging (RBM) rich card. + # Rich cards allow you to respond to users with more vivid content, e.g. + # with media and suggestions. + # For more details about RBM rich cards, please see: + # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send- + # messages#rich-cards. + # You can group multiple rich cards into one using RbmCarouselCard but + # carousel cards will give you less control over the card layout. + class GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard + include Google::Apis::Core::Hashable + + # Rich Business Messaging (RBM) Card content + # Corresponds to the JSON property `cardContent` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent] + attr_accessor :card_content + + # Required. Orientation of the card. + # Corresponds to the JSON property `cardOrientation` + # @return [String] + attr_accessor :card_orientation + + # Required if orientation is horizontal. + # Image preview alignment for standalone cards with horizontal layout. + # Corresponds to the JSON property `thumbnailImageAlignment` + # @return [String] + attr_accessor :thumbnail_image_alignment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @card_content = args[:card_content] if args.key?(:card_content) + @card_orientation = args[:card_orientation] if args.key?(:card_orientation) + @thumbnail_image_alignment = args[:thumbnail_image_alignment] if args.key?(:thumbnail_image_alignment) + end + end + + # Rich Business Messaging (RBM) suggested client-side action that the user + # can choose from the card. + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction + include Google::Apis::Core::Hashable + + # Opens the user's default dialer app with the specified phone number + # but does not dial automatically (https://goo.gl/ergbB2). + # Corresponds to the JSON property `dial` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial] + attr_accessor :dial + + # Opens the user's default web browser app to the specified uri + # (https://goo.gl/6GLJD2). If the user has an app installed that is + # registered as the default handler for the URL, then this app will be + # opened instead, and its icon will be used in the suggested action UI. + # Corresponds to the JSON property `openUrl` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri] + attr_accessor :open_url + + # Opaque payload that the Dialogflow receives in a user event + # when the user taps the suggested action. This data will be also + # forwarded to webhook to allow performing custom business logic. + # Corresponds to the JSON property `postbackData` + # @return [String] + attr_accessor :postback_data + + # Opens the device's location chooser so the user can pick a location + # to send back to the agent (https://goo.gl/GXotJW). + # Corresponds to the JSON property `shareLocation` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation] + attr_accessor :share_location + + # Text to display alongside the action. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dial = args[:dial] if args.key?(:dial) + @open_url = args[:open_url] if args.key?(:open_url) + @postback_data = args[:postback_data] if args.key?(:postback_data) + @share_location = args[:share_location] if args.key?(:share_location) + @text = args[:text] if args.key?(:text) + end + end + + # Opens the user's default dialer app with the specified phone number + # but does not dial automatically (https://goo.gl/ergbB2). + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial + include Google::Apis::Core::Hashable + + # Required. The phone number to fill in the default dialer app. + # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + # format. An example of a correctly formatted phone number: + # +15556767888. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + + # Opens the user's default web browser app to the specified uri + # (https://goo.gl/6GLJD2). If the user has an app installed that is + # registered as the default handler for the URL, then this app will be + # opened instead, and its icon will be used in the suggested action UI. + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri + include Google::Apis::Core::Hashable + + # Required. The uri to open on the user device + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Opens the device's location chooser so the user can pick a location + # to send back to the agent (https://goo.gl/GXotJW). + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Rich Business Messaging (RBM) suggested reply that the user can click + # instead of typing in their own response. + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply + include Google::Apis::Core::Hashable + + # Opaque payload that the Dialogflow receives in a user event + # when the user taps the suggested reply. This data will be also + # forwarded to webhook to allow performing custom business logic. + # Corresponds to the JSON property `postbackData` + # @return [String] + attr_accessor :postback_data + + # Suggested reply text. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @postback_data = args[:postback_data] if args.key?(:postback_data) + @text = args[:text] if args.key?(:text) + end + end + + # Rich Business Messaging (RBM) suggestion. Suggestions allow user to + # easily select/click a predefined response or perform an action (like + # opening a web uri). + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion + include Google::Apis::Core::Hashable + + # Rich Business Messaging (RBM) suggested client-side action that the user + # can choose from the card. + # Corresponds to the JSON property `action` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction] + attr_accessor :action + + # Rich Business Messaging (RBM) suggested reply that the user can click + # instead of typing in their own response. + # Corresponds to the JSON property `reply` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply] + attr_accessor :reply + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @reply = args[:reply] if args.key?(:reply) + end + end + + # Rich Business Messaging (RBM) text response with suggestions. + class GoogleCloudDialogflowV2beta1IntentMessageRbmText + include Google::Apis::Core::Hashable + + # Optional. One or more suggestions to show to the user. + # Corresponds to the JSON property `rbmSuggestion` + # @return [Array] + attr_accessor :rbm_suggestion + + # Required. Text sent and displayed to the user. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rbm_suggestion = args[:rbm_suggestion] if args.key?(:rbm_suggestion) + @text = args[:text] if args.key?(:text) + end + end + # Additional info about the select item for when it is triggered in a # dialog. class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index d0d93aa1e..2fd74af0c 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -556,6 +556,72 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmText + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1521,6 +1587,12 @@ module Google property :platform, as: 'platform' property :quick_replies, as: 'quickReplies', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies::Representation + property :rbm_carousel_rich_card, as: 'rbmCarouselRichCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard::Representation + + property :rbm_standalone_rich_card, as: 'rbmStandaloneRichCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard::Representation + + property :rbm_text, as: 'rbmText', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmText::Representation + property :simple_responses, as: 'simpleResponses', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses::Representation property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation @@ -1649,6 +1721,107 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :media, as: 'media', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia::Representation + + collection :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_uri, as: 'fileUri' + property :height, as: 'height' + property :thumbnail_uri, as: 'thumbnailUri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :card_contents, as: 'cardContents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent::Representation + + property :card_width, as: 'cardWidth' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :card_content, as: 'cardContent', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent::Representation + + property :card_orientation, as: 'cardOrientation' + property :thumbnail_image_alignment, as: 'thumbnailImageAlignment' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dial, as: 'dial', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial::Representation + + property :open_url, as: 'openUrl', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri::Representation + + property :postback_data, as: 'postbackData' + property :share_location, as: 'shareLocation', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :phone_number, as: 'phoneNumber' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :postback_data, as: 'postbackData' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction::Representation + + property :reply, as: 'reply', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageRbmText + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rbm_suggestion, as: 'rbmSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion::Representation + + property :text, as: 'text' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index db1f0dcf5..e10002ae3 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20190607' + REVISION = '20190627' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index b4042dd11..15237708a 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -304,7 +304,7 @@ module Google # @return [Google::Apis::IamV1::Role] attr_accessor :role - # The role id to use for this role. + # The role ID to use for this role. # Corresponds to the JSON property `roleId` # @return [String] attr_accessor :role_id diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index e8f6536f2..43ff3724e 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -131,9 +131,24 @@ module Google # Creates a new Role. # @param [String] parent - # The resource name of the parent resource in one of the following formats: - # `organizations/`ORGANIZATION_ID`` - # `projects/`PROJECT_ID`` + # The `parent` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `parent` value format is described below: + # * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): + # `projects/`PROJECT_ID``. This method creates project-level + # [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles` + # * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/ + # create): + # `organizations/`ORGANIZATION_ID``. This method creates organization-level + # [custom roles](/iam/docs/understanding-custom-roles). Example request + # URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Google::Apis::IamV1::CreateRoleRequest] create_role_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -172,9 +187,25 @@ module Google # within 7 days. After 7 days the Role is deleted and all Bindings associated # with the role are removed. # @param [String] name - # The resource name of the role in one of the following formats: - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method deletes only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/ + # delete): + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # deletes only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [String] etag # Used to perform a consistent read-modify-write. # @param [String] fields @@ -207,10 +238,31 @@ module Google # Gets a Role definition. # @param [String] name - # The resource name of the role in one of the following formats: - # `roles/`ROLE_NAME`` - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`roles`](/iam/reference/rest/v1/roles), + # [`projects`](/iam/reference/rest/v1/projects.roles), or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/`ROLE_NAME``. + # This method returns results from all + # [predefined roles](/iam/docs/understanding-roles#predefined_roles) in + # Cloud IAM. Example request URL: + # `https://iam.googleapis.com/v1/roles/`ROLE_NAME`` + # * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method returns only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get) + # : + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # returns only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -240,10 +292,30 @@ module Google # Lists the Roles defined on a resource. # @param [String] parent - # The resource name of the parent resource in one of the following formats: - # `` (empty string) -- this refers to curated roles. - # `organizations/`ORGANIZATION_ID`` - # `projects/`PROJECT_ID`` + # The `parent` parameter's value depends on the target resource for the + # request, namely + # [`roles`](/iam/reference/rest/v1/roles), + # [`projects`](/iam/reference/rest/v1/projects.roles), or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `parent` value format is described below: + # * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string. + # This method doesn't require a resource; it simply returns all + # [predefined roles](/iam/docs/understanding-roles#predefined_roles) in + # Cloud IAM. Example request URL: + # `https://iam.googleapis.com/v1/roles` + # * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list): + # `projects/`PROJECT_ID``. This method lists all project-level + # [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles` + # * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/ + # list): + # `organizations/`ORGANIZATION_ID``. This method lists all + # organization-level [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Fixnum] page_size # Optional limit on the number of roles to include in the response. # @param [String] page_token @@ -288,10 +360,25 @@ module Google # Updates a Role definition. # @param [String] name - # The resource name of the role in one of the following formats: - # `roles/`ROLE_NAME`` - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method updates only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/ + # patch): + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # updates only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Google::Apis::IamV1::Role] role_object # @param [String] update_mask # A mask describing which fields in the Role have changed. @@ -327,9 +414,26 @@ module Google # Undelete a Role, bringing it back in its previous state. # @param [String] name - # The resource name of the role in one of the following formats: - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete) + # : + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method undeletes + # only [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations. + # roles/undelete): + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # undeletes only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Google::Apis::IamV1::UndeleteRoleRequest] undelete_role_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -393,9 +497,24 @@ module Google # Creates a new Role. # @param [String] parent - # The resource name of the parent resource in one of the following formats: - # `organizations/`ORGANIZATION_ID`` - # `projects/`PROJECT_ID`` + # The `parent` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `parent` value format is described below: + # * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): + # `projects/`PROJECT_ID``. This method creates project-level + # [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles` + # * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/ + # create): + # `organizations/`ORGANIZATION_ID``. This method creates organization-level + # [custom roles](/iam/docs/understanding-custom-roles). Example request + # URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Google::Apis::IamV1::CreateRoleRequest] create_role_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -434,9 +553,25 @@ module Google # within 7 days. After 7 days the Role is deleted and all Bindings associated # with the role are removed. # @param [String] name - # The resource name of the role in one of the following formats: - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method deletes only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/ + # delete): + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # deletes only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [String] etag # Used to perform a consistent read-modify-write. # @param [String] fields @@ -469,10 +604,31 @@ module Google # Gets a Role definition. # @param [String] name - # The resource name of the role in one of the following formats: - # `roles/`ROLE_NAME`` - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`roles`](/iam/reference/rest/v1/roles), + # [`projects`](/iam/reference/rest/v1/projects.roles), or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/`ROLE_NAME``. + # This method returns results from all + # [predefined roles](/iam/docs/understanding-roles#predefined_roles) in + # Cloud IAM. Example request URL: + # `https://iam.googleapis.com/v1/roles/`ROLE_NAME`` + # * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method returns only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get) + # : + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # returns only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -502,10 +658,30 @@ module Google # Lists the Roles defined on a resource. # @param [String] parent - # The resource name of the parent resource in one of the following formats: - # `` (empty string) -- this refers to curated roles. - # `organizations/`ORGANIZATION_ID`` - # `projects/`PROJECT_ID`` + # The `parent` parameter's value depends on the target resource for the + # request, namely + # [`roles`](/iam/reference/rest/v1/roles), + # [`projects`](/iam/reference/rest/v1/projects.roles), or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `parent` value format is described below: + # * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string. + # This method doesn't require a resource; it simply returns all + # [predefined roles](/iam/docs/understanding-roles#predefined_roles) in + # Cloud IAM. Example request URL: + # `https://iam.googleapis.com/v1/roles` + # * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list): + # `projects/`PROJECT_ID``. This method lists all project-level + # [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles` + # * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/ + # list): + # `organizations/`ORGANIZATION_ID``. This method lists all + # organization-level [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Fixnum] page_size # Optional limit on the number of roles to include in the response. # @param [String] page_token @@ -550,10 +726,25 @@ module Google # Updates a Role definition. # @param [String] name - # The resource name of the role in one of the following formats: - # `roles/`ROLE_NAME`` - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method updates only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/ + # patch): + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # updates only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Google::Apis::IamV1::Role] role_object # @param [String] update_mask # A mask describing which fields in the Role have changed. @@ -589,9 +780,26 @@ module Google # Undelete a Role, bringing it back in its previous state. # @param [String] name - # The resource name of the role in one of the following formats: - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`projects`](/iam/reference/rest/v1/projects.roles) or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete) + # : + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method undeletes + # only [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations. + # roles/undelete): + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # undeletes only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Google::Apis::IamV1::UndeleteRoleRequest] undelete_role_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -835,6 +1043,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -852,11 +1065,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_service_account_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::IamV1::Policy::Representation command.response_class = Google::Apis::IamV1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1348,10 +1562,31 @@ module Google # Gets a Role definition. # @param [String] name - # The resource name of the role in one of the following formats: - # `roles/`ROLE_NAME`` - # `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME`` - # `projects/`PROJECT_ID`/roles/`ROLE_NAME`` + # The `name` parameter's value depends on the target resource for the + # request, namely + # [`roles`](/iam/reference/rest/v1/roles), + # [`projects`](/iam/reference/rest/v1/projects.roles), or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `name` value format is described below: + # * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/`ROLE_NAME``. + # This method returns results from all + # [predefined roles](/iam/docs/understanding-roles#predefined_roles) in + # Cloud IAM. Example request URL: + # `https://iam.googleapis.com/v1/roles/`ROLE_NAME`` + # * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get): + # `projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID``. This method returns only + # [custom roles](/iam/docs/understanding-custom-roles) that have been + # created at the project level. Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles/`CUSTOM_ROLE_ID`` + # * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get) + # : + # `organizations/`ORGANIZATION_ID`/roles/`CUSTOM_ROLE_ID``. This method + # returns only [custom roles](/iam/docs/understanding-custom-roles) that + # have been created at the organization level. Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles/` + # CUSTOM_ROLE_ID`` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1385,10 +1620,30 @@ module Google # @param [String] page_token # Optional pagination token returned in an earlier ListRolesResponse. # @param [String] parent - # The resource name of the parent resource in one of the following formats: - # `` (empty string) -- this refers to curated roles. - # `organizations/`ORGANIZATION_ID`` - # `projects/`PROJECT_ID`` + # The `parent` parameter's value depends on the target resource for the + # request, namely + # [`roles`](/iam/reference/rest/v1/roles), + # [`projects`](/iam/reference/rest/v1/projects.roles), or + # [`organizations`](/iam/reference/rest/v1/organizations.roles). Each + # resource type's `parent` value format is described below: + # * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string. + # This method doesn't require a resource; it simply returns all + # [predefined roles](/iam/docs/understanding-roles#predefined_roles) in + # Cloud IAM. Example request URL: + # `https://iam.googleapis.com/v1/roles` + # * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list): + # `projects/`PROJECT_ID``. This method lists all project-level + # [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/projects/`PROJECT_ID`/roles` + # * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/ + # list): + # `organizations/`ORGANIZATION_ID``. This method lists all + # organization-level [custom roles](/iam/docs/understanding-custom-roles). + # Example request URL: + # `https://iam.googleapis.com/v1/organizations/`ORGANIZATION_ID`/roles` + # Note: Wildcard (*) values are invalid; you must specify a complete project + # ID or organization ID. # @param [Boolean] show_deleted # Include Roles that have been deleted. # @param [String] view diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index ebf31976a..6ecbe3146 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20190614' + REVISION = '20190628' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index 8ba46712b..02aafdcde 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -1621,12 +1621,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::ServicemanagementV1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index b8a126bf6..6843c27d2 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -256,6 +256,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Http class Representation < Google::Apis::Core::JsonRepresentation; end @@ -901,6 +907,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::ServicemanagementV1::GetPolicyOptions, decorator: Google::Apis::ServicemanagementV1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 1858621e2..6ea45e3a6 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20190701' + REVISION = '20190702' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb index 3512df54d..df3b98e9e 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -994,6 +994,13 @@ module Google attr_accessor :aborted_by_user alias_method :aborted_by_user?, :aborted_by_user + # If results are being provided to the user in certain cases of infrastructure + # failures + # Corresponds to the JSON property `hasErrorLogs` + # @return [Boolean] + attr_accessor :has_error_logs + alias_method :has_error_logs?, :has_error_logs + # If the test runner could not determine success or failure because the test # depends on a component other than the system under test which failed. # For example, a mobile test requires provisioning a device where the test @@ -1010,6 +1017,7 @@ module Google # Update properties of this object def update!(**args) @aborted_by_user = args[:aborted_by_user] if args.key?(:aborted_by_user) + @has_error_logs = args[:has_error_logs] if args.key?(:has_error_logs) @infrastructure_failure = args[:infrastructure_failure] if args.key?(:infrastructure_failure) end end diff --git a/generated/google/apis/toolresults_v1beta3/representations.rb b/generated/google/apis/toolresults_v1beta3/representations.rb index 5c9710dc3..6132c1c4a 100644 --- a/generated/google/apis/toolresults_v1beta3/representations.rb +++ b/generated/google/apis/toolresults_v1beta3/representations.rb @@ -575,6 +575,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :aborted_by_user, as: 'abortedByUser' + property :has_error_logs, as: 'hasErrorLogs' property :infrastructure_failure, as: 'infrastructureFailure' end end