From b4892f8e559889b229c58a2d867c89bca3731fe5 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 9 Oct 2020 00:38:36 +0000 Subject: [PATCH] Autogenerated update (2020-10-09) Update: - dns_v1 - dns_v1beta2 - fitness_v1 - monitoring_v3 - realtimebidding_v1 - remotebuildexecution_v1 - remotebuildexecution_v2 - run_v1 - smartdevicemanagement_v1 - sts_v1 - sts_v1beta - youtube_v3 --- api_names_out.yaml | 16 +++ generated/google/apis/dns_v1.rb | 2 +- generated/google/apis/dns_v1/service.rb | 20 +-- generated/google/apis/dns_v1beta2.rb | 2 +- generated/google/apis/dns_v1beta2/service.rb | 20 +-- generated/google/apis/fitness_v1.rb | 14 +- generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 48 +++++++ .../apis/monitoring_v3/representations.rb | 18 +++ generated/google/apis/realtimebidding_v1.rb | 2 +- .../google/apis/realtimebidding_v1/classes.rb | 104 +++++++------- .../realtimebidding_v1/representations.rb | 40 +++--- .../google/apis/remotebuildexecution_v1.rb | 2 +- .../apis/remotebuildexecution_v1/classes.rb | 6 + .../representations.rb | 1 + .../google/apis/remotebuildexecution_v2.rb | 2 +- .../apis/remotebuildexecution_v2/classes.rb | 6 + .../representations.rb | 1 + generated/google/apis/run_v1.rb | 2 +- generated/google/apis/run_v1/classes.rb | 7 +- .../google/apis/smartdevicemanagement_v1.rb | 2 +- .../apis/smartdevicemanagement_v1/classes.rb | 14 +- .../representations.rb | 1 - .../apis/smartdevicemanagement_v1/service.rb | 5 +- generated/google/apis/sts_v1.rb | 2 +- generated/google/apis/sts_v1/classes.rb | 19 +-- generated/google/apis/sts_v1beta.rb | 2 +- generated/google/apis/sts_v1beta/classes.rb | 136 +++++++++--------- generated/google/apis/sts_v1beta/service.rb | 4 +- generated/google/apis/youtube_v3.rb | 2 +- 30 files changed, 304 insertions(+), 198 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index af2c0bfdb..b0c871ab3 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -114744,6 +114744,7 @@ "/monitoring:v3/CollectdValueError/index": index "/monitoring:v3/Condition": condition "/monitoring:v3/Condition/conditionAbsent": condition_absent +"/monitoring:v3/Condition/conditionMonitoringQueryLanguage": condition_monitoring_query_language "/monitoring:v3/Condition/conditionThreshold": condition_threshold "/monitoring:v3/Condition/displayName": display_name "/monitoring:v3/Condition/name": name @@ -114983,6 +114984,10 @@ "/monitoring:v3/MonitoredResourceMetadata/systemLabels/system_label": system_label "/monitoring:v3/MonitoredResourceMetadata/userLabels": user_labels "/monitoring:v3/MonitoredResourceMetadata/userLabels/user_label": user_label +"/monitoring:v3/MonitoringQueryLanguageCondition": monitoring_query_language_condition +"/monitoring:v3/MonitoringQueryLanguageCondition/duration": duration +"/monitoring:v3/MonitoringQueryLanguageCondition/query": query +"/monitoring:v3/MonitoringQueryLanguageCondition/trigger": trigger "/monitoring:v3/MutationRecord": mutation_record "/monitoring:v3/MutationRecord/mutateTime": mutate_time "/monitoring:v3/MutationRecord/mutatedBy": mutated_by @@ -121572,7 +121577,9 @@ "/realtimebidding:v1/Creative/video": video "/realtimebidding:v1/CreativeServingDecision": creative_serving_decision "/realtimebidding:v1/CreativeServingDecision/adTechnologyProviders": ad_technology_providers +"/realtimebidding:v1/CreativeServingDecision/chinaPolicyCompliance": china_policy_compliance "/realtimebidding:v1/CreativeServingDecision/chinaServingStatus": china_serving_status +"/realtimebidding:v1/CreativeServingDecision/dealsPolicyCompliance": deals_policy_compliance "/realtimebidding:v1/CreativeServingDecision/dealsServingStatus": deals_serving_status "/realtimebidding:v1/CreativeServingDecision/detectedAdvertisers": detected_advertisers "/realtimebidding:v1/CreativeServingDecision/detectedAdvertisers/detected_advertiser": detected_advertiser @@ -121591,7 +121598,10 @@ "/realtimebidding:v1/CreativeServingDecision/detectedVendorIds": detected_vendor_ids "/realtimebidding:v1/CreativeServingDecision/detectedVendorIds/detected_vendor_id": detected_vendor_id "/realtimebidding:v1/CreativeServingDecision/lastStatusUpdate": last_status_update +"/realtimebidding:v1/CreativeServingDecision/networkPolicyCompliance": network_policy_compliance "/realtimebidding:v1/CreativeServingDecision/openAuctionServingStatus": open_auction_serving_status +"/realtimebidding:v1/CreativeServingDecision/platformPolicyCompliance": platform_policy_compliance +"/realtimebidding:v1/CreativeServingDecision/russiaPolicyCompliance": russia_policy_compliance "/realtimebidding:v1/CreativeServingDecision/russiaServingStatus": russia_serving_status "/realtimebidding:v1/Date": date "/realtimebidding:v1/Date/day": day @@ -121665,6 +121675,10 @@ "/realtimebidding:v1/NativeContent/starRating": star_rating "/realtimebidding:v1/NativeContent/videoUrl": video_url "/realtimebidding:v1/OpenUserListRequest": open_user_list_request +"/realtimebidding:v1/PolicyCompliance": policy_compliance +"/realtimebidding:v1/PolicyCompliance/status": status +"/realtimebidding:v1/PolicyCompliance/topics": topics +"/realtimebidding:v1/PolicyCompliance/topics/topic": topic "/realtimebidding:v1/PolicyTopicEntry": policy_topic_entry "/realtimebidding:v1/PolicyTopicEntry/evidences": evidences "/realtimebidding:v1/PolicyTopicEntry/evidences/evidence": evidence @@ -122846,6 +122860,7 @@ "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandDurations/uploadStartTime": upload_start_time "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandEvents": google_devtools_remotebuildbot_command_events "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandEvents/dockerCacheHit": docker_cache_hit +"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandEvents/dockerImageName": docker_image_name "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandEvents/inputCacheMiss": input_cache_miss "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandEvents/numErrors": num_errors "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildbotCommandEvents/numWarnings": num_warnings @@ -123764,6 +123779,7 @@ "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandDurations/uploadStartTime": upload_start_time "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandEvents": google_devtools_remotebuildbot_command_events "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandEvents/dockerCacheHit": docker_cache_hit +"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandEvents/dockerImageName": docker_image_name "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandEvents/inputCacheMiss": input_cache_miss "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandEvents/numErrors": num_errors "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildbotCommandEvents/numWarnings": num_warnings diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index a8bc29f81..203bf8dfe 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see http://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20200806' + REVISION = '20200927' # 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/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb index 0fa2e8d8d..c08e4e6d6 100644 --- a/generated/google/apis/dns_v1/service.rb +++ b/generated/google/apis/dns_v1/service.rb @@ -52,7 +52,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Google::Apis::DnsV1::Change] change_object # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the @@ -93,7 +93,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] change_id # The identifier of the requested change, from a previous # ResourceRecordSetsChangeResponse. @@ -135,7 +135,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Fixnum] max_results # Optional. Maximum number of results to be returned. If unspecified, the server # will decide how many results to return. @@ -183,7 +183,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] dns_key_id # The identifier of the requested DnsKey. # @param [String] client_operation_id @@ -229,7 +229,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] digest_type # An optional comma-separated list of digest types to compute and display for # key signing keys. If omitted, the recommended digest type will be computed and @@ -397,7 +397,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the # client. Must be unique for operation resources in the Operations collection. @@ -433,7 +433,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the # client. Must be unique for operation resources in the Operations collection. @@ -512,7 +512,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the @@ -553,7 +553,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the @@ -856,7 +856,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Fixnum] max_results # Optional. Maximum number of results to be returned. If unspecified, the server # will decide how many results to return. diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb index c67120eb4..2e4b5b085 100644 --- a/generated/google/apis/dns_v1beta2.rb +++ b/generated/google/apis/dns_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see http://developers.google.com/cloud-dns module DnsV1beta2 VERSION = 'V1beta2' - REVISION = '20200806' + REVISION = '20200927' # 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/dns_v1beta2/service.rb b/generated/google/apis/dns_v1beta2/service.rb index 5f3748748..6bbc5b89c 100644 --- a/generated/google/apis/dns_v1beta2/service.rb +++ b/generated/google/apis/dns_v1beta2/service.rb @@ -52,7 +52,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Google::Apis::DnsV1beta2::Change] change_object # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the @@ -93,7 +93,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] change_id # The identifier of the requested change, from a previous # ResourceRecordSetsChangeResponse. @@ -135,7 +135,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Fixnum] max_results # Optional. Maximum number of results to be returned. If unspecified, the server # will decide how many results to return. @@ -183,7 +183,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] dns_key_id # The identifier of the requested DnsKey. # @param [String] client_operation_id @@ -229,7 +229,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] digest_type # An optional comma-separated list of digest types to compute and display for # key signing keys. If omitted, the recommended digest type will be computed and @@ -397,7 +397,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the # client. Must be unique for operation resources in the Operations collection. @@ -433,7 +433,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the # client. Must be unique for operation resources in the Operations collection. @@ -512,7 +512,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the @@ -553,7 +553,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [String] client_operation_id # For mutating operation requests only. An optional identifier specified by the @@ -856,7 +856,7 @@ module Google # Identifies the project addressed by this request. # @param [String] managed_zone # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. + # name or ID. # @param [Fixnum] max_results # Optional. Maximum number of results to be returned. If unspecified, the server # will decide how many results to return. diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index 3064345a0..cdfd2abef 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/v1/get-started module FitnessV1 VERSION = 'V1' - REVISION = '20200907' + REVISION = '20201006' # Use Google Fit to see and store your physical activity data AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' @@ -57,6 +57,12 @@ module Google # See and add to info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app. AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write' + # See your heart rate data in Google Fit. I consent to Google sharing my heart rate information with this app. + AUTH_FITNESS_HEART_RATE_READ = 'https://www.googleapis.com/auth/fitness.heart_rate.read' + + # See and add to your heart rate data in Google Fit. I consent to Google sharing my heart rate information with this app. + AUTH_FITNESS_HEART_RATE_WRITE = 'https://www.googleapis.com/auth/fitness.heart_rate.write' + # See your Google Fit speed and distance data AUTH_FITNESS_LOCATION_READ = 'https://www.googleapis.com/auth/fitness.location.read' @@ -80,6 +86,12 @@ module Google # See and add info about your reproductive health in Google Fit. I consent to Google sharing my reproductive health information with this app. AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write' + + # See your sleep data in Google Fit. I consent to Google sharing my sleep information with this app. + AUTH_FITNESS_SLEEP_READ = 'https://www.googleapis.com/auth/fitness.sleep.read' + + # See and add to your sleep data in Google Fit. I consent to Google sharing my sleep information with this app. + AUTH_FITNESS_SLEEP_WRITE = 'https://www.googleapis.com/auth/fitness.sleep.write' end end end diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 64a4d907b..376d0ec46 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20200927' + REVISION = '20201005' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 83e14f3b0..c044df60d 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -645,6 +645,12 @@ module Google # @return [Google::Apis::MonitoringV3::MetricAbsence] attr_accessor :condition_absent + # A condition type that allows alert policies to be defined using Monitoring + # Query Language. + # Corresponds to the JSON property `conditionMonitoringQueryLanguage` + # @return [Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition] + attr_accessor :condition_monitoring_query_language + # A condition type that compares a collection of time series against a threshold. # Corresponds to the JSON property `conditionThreshold` # @return [Google::Apis::MonitoringV3::MetricThreshold] @@ -682,6 +688,7 @@ module Google # Update properties of this object def update!(**args) @condition_absent = args[:condition_absent] if args.key?(:condition_absent) + @condition_monitoring_query_language = args[:condition_monitoring_query_language] if args.key?(:condition_monitoring_query_language) @condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @@ -2640,6 +2647,47 @@ module Google end end + # A condition type that allows alert policies to be defined using Monitoring + # Query Language. + class MonitoringQueryLanguageCondition + include Google::Apis::Core::Hashable + + # The amount of time that a time series must violate the threshold to be + # considered failing. Currently, only values that are a multiple of a minute--e. + # g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, + # an error will be returned. When choosing a duration, it is useful to keep in + # mind the frequency of the underlying time series data (which may also be + # affected by any alignments specified in the aggregations field); a good + # duration is long enough so that a single outlier does not generate spurious + # alerts, but short enough that unhealthy states are detected and alerted on + # quickly. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Monitoring Query Language query that outputs a boolean stream. + # Corresponds to the JSON property `query` + # @return [String] + attr_accessor :query + + # Specifies how many time series must fail a predicate to trigger a condition. + # If not specified, then a `count: 1` trigger is used. + # Corresponds to the JSON property `trigger` + # @return [Google::Apis::MonitoringV3::Trigger] + attr_accessor :trigger + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @query = args[:query] if args.key?(:query) + @trigger = args[:trigger] if args.key?(:trigger) + end + end + # Describes a change made to a configuration. class MutationRecord include Google::Apis::Core::Hashable diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb index 5f8848ccd..712ebe831 100644 --- a/generated/google/apis/monitoring_v3/representations.rb +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -394,6 +394,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MonitoringQueryLanguageCondition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MutationRecord class Representation < Google::Apis::Core::JsonRepresentation; end @@ -744,6 +750,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation + property :condition_monitoring_query_language, as: 'conditionMonitoringQueryLanguage', class: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition::Representation + property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation property :display_name, as: 'displayName' @@ -1225,6 +1233,16 @@ module Google end end + class MonitoringQueryLanguageCondition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :query, as: 'query' + property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation + + end + end + class MutationRecord # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/realtimebidding_v1.rb b/generated/google/apis/realtimebidding_v1.rb index 0ff495985..f7169cf1e 100644 --- a/generated/google/apis/realtimebidding_v1.rb +++ b/generated/google/apis/realtimebidding_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/ module RealtimebiddingV1 VERSION = 'V1' - REVISION = '20201006' + REVISION = '20201008' # See, create, edit, and delete your Authorized Buyers and Open Bidding account entities AUTH_REALTIME_BIDDING = 'https://www.googleapis.com/auth/realtime-bidding' diff --git a/generated/google/apis/realtimebidding_v1/classes.rb b/generated/google/apis/realtimebidding_v1/classes.rb index 0143f0cb5..cd7f26c22 100644 --- a/generated/google/apis/realtimebidding_v1/classes.rb +++ b/generated/google/apis/realtimebidding_v1/classes.rb @@ -236,15 +236,15 @@ module Google class CreativeServingDecision include Google::Apis::Core::Hashable - # Serving status of the creative for a transaction type or a region. - # Corresponds to the JSON property `chinaServingStatus` - # @return [Google::Apis::RealtimebiddingV1::ServingStatus] - attr_accessor :china_serving_status + # Policy compliance of the creative for a transaction type or a region. + # Corresponds to the JSON property `chinaPolicyCompliance` + # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance] + attr_accessor :china_policy_compliance - # Serving status of the creative for a transaction type or a region. - # Corresponds to the JSON property `dealsServingStatus` - # @return [Google::Apis::RealtimebiddingV1::ServingStatus] - attr_accessor :deals_serving_status + # Policy compliance of the creative for a transaction type or a region. + # Corresponds to the JSON property `dealsPolicyCompliance` + # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance] + attr_accessor :deals_policy_compliance # Detected advertisers and brands. # Corresponds to the JSON property `detectedAdvertisers` @@ -313,15 +313,20 @@ module Google # @return [String] attr_accessor :last_status_update - # Serving status of the creative for a transaction type or a region. - # Corresponds to the JSON property `openAuctionServingStatus` - # @return [Google::Apis::RealtimebiddingV1::ServingStatus] - attr_accessor :open_auction_serving_status + # Policy compliance of the creative for a transaction type or a region. + # Corresponds to the JSON property `networkPolicyCompliance` + # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance] + attr_accessor :network_policy_compliance - # Serving status of the creative for a transaction type or a region. - # Corresponds to the JSON property `russiaServingStatus` - # @return [Google::Apis::RealtimebiddingV1::ServingStatus] - attr_accessor :russia_serving_status + # Policy compliance of the creative for a transaction type or a region. + # Corresponds to the JSON property `platformPolicyCompliance` + # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance] + attr_accessor :platform_policy_compliance + + # Policy compliance of the creative for a transaction type or a region. + # Corresponds to the JSON property `russiaPolicyCompliance` + # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance] + attr_accessor :russia_policy_compliance def initialize(**args) update!(**args) @@ -329,8 +334,8 @@ module Google # Update properties of this object def update!(**args) - @china_serving_status = args[:china_serving_status] if args.key?(:china_serving_status) - @deals_serving_status = args[:deals_serving_status] if args.key?(:deals_serving_status) + @china_policy_compliance = args[:china_policy_compliance] if args.key?(:china_policy_compliance) + @deals_policy_compliance = args[:deals_policy_compliance] if args.key?(:deals_policy_compliance) @detected_advertisers = args[:detected_advertisers] if args.key?(:detected_advertisers) @detected_attributes = args[:detected_attributes] if args.key?(:detected_attributes) @detected_click_through_urls = args[:detected_click_through_urls] if args.key?(:detected_click_through_urls) @@ -340,8 +345,9 @@ module Google @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories) @detected_vendor_ids = args[:detected_vendor_ids] if args.key?(:detected_vendor_ids) @last_status_update = args[:last_status_update] if args.key?(:last_status_update) - @open_auction_serving_status = args[:open_auction_serving_status] if args.key?(:open_auction_serving_status) - @russia_serving_status = args[:russia_serving_status] if args.key?(:russia_serving_status) + @network_policy_compliance = args[:network_policy_compliance] if args.key?(:network_policy_compliance) + @platform_policy_compliance = args[:platform_policy_compliance] if args.key?(:platform_policy_compliance) + @russia_policy_compliance = args[:russia_policy_compliance] if args.key?(:russia_policy_compliance) end end @@ -896,6 +902,35 @@ module Google end end + # Policy compliance of the creative for a transaction type or a region. + class PolicyCompliance + include Google::Apis::Core::Hashable + + # Serving status for the given transaction type (e.g., open auction, deals) or + # region (e.g., China, Russia). Can be used to filter the response of the + # creatives.list method. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Topics related to the policy compliance for this transaction type (e.g., open + # auction, deals) or region (e.g., China, Russia). Topics may be present only if + # status is DISAPPROVED. + # Corresponds to the JSON property `topics` + # @return [Array] + attr_accessor :topics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @status = args[:status] if args.key?(:status) + @topics = args[:topics] if args.key?(:topics) + end + end + # Each policy topic entry will represent a violation of a policy topic for a # creative, with the policy topic information and optional evidence for the # policy violation. @@ -989,35 +1024,6 @@ module Google end end - # Serving status of the creative for a transaction type or a region. - class ServingStatus - include Google::Apis::Core::Hashable - - # Serving status for the given transaction type (e.g., open auction, deals) or - # region (e.g., China, Russia). Can be used to filter the response of the - # creatives.list method. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # Policy topics related to the serving decision for this transaction type (e.g., - # open auction, deals) or region (e.g., China, Russia). Topics may be present - # only if status is DISAPPROVED. - # Corresponds to the JSON property `topics` - # @return [Array] - attr_accessor :topics - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @status = args[:status] if args.key?(:status) - @topics = args[:topics] if args.key?(:topics) - end - end - # The URL-level breakdown for the download size. class UrlDownloadSize include Google::Apis::Core::Hashable diff --git a/generated/google/apis/realtimebidding_v1/representations.rb b/generated/google/apis/realtimebidding_v1/representations.rb index 987354465..3bbfb897c 100644 --- a/generated/google/apis/realtimebidding_v1/representations.rb +++ b/generated/google/apis/realtimebidding_v1/representations.rb @@ -148,6 +148,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PolicyCompliance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PolicyTopicEntry class Representation < Google::Apis::Core::JsonRepresentation; end @@ -160,12 +166,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ServingStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class UrlDownloadSize class Representation < Google::Apis::Core::JsonRepresentation; end @@ -257,9 +257,9 @@ module Google class CreativeServingDecision # @private class Representation < Google::Apis::Core::JsonRepresentation - property :china_serving_status, as: 'chinaServingStatus', class: Google::Apis::RealtimebiddingV1::ServingStatus, decorator: Google::Apis::RealtimebiddingV1::ServingStatus::Representation + property :china_policy_compliance, as: 'chinaPolicyCompliance', class: Google::Apis::RealtimebiddingV1::PolicyCompliance, decorator: Google::Apis::RealtimebiddingV1::PolicyCompliance::Representation - property :deals_serving_status, as: 'dealsServingStatus', class: Google::Apis::RealtimebiddingV1::ServingStatus, decorator: Google::Apis::RealtimebiddingV1::ServingStatus::Representation + property :deals_policy_compliance, as: 'dealsPolicyCompliance', class: Google::Apis::RealtimebiddingV1::PolicyCompliance, decorator: Google::Apis::RealtimebiddingV1::PolicyCompliance::Representation collection :detected_advertisers, as: 'detectedAdvertisers', class: Google::Apis::RealtimebiddingV1::AdvertiserAndBrand, decorator: Google::Apis::RealtimebiddingV1::AdvertiserAndBrand::Representation @@ -271,9 +271,11 @@ module Google collection :detected_sensitive_categories, as: 'detectedSensitiveCategories' collection :detected_vendor_ids, as: 'detectedVendorIds' property :last_status_update, as: 'lastStatusUpdate' - property :open_auction_serving_status, as: 'openAuctionServingStatus', class: Google::Apis::RealtimebiddingV1::ServingStatus, decorator: Google::Apis::RealtimebiddingV1::ServingStatus::Representation + property :network_policy_compliance, as: 'networkPolicyCompliance', class: Google::Apis::RealtimebiddingV1::PolicyCompliance, decorator: Google::Apis::RealtimebiddingV1::PolicyCompliance::Representation - property :russia_serving_status, as: 'russiaServingStatus', class: Google::Apis::RealtimebiddingV1::ServingStatus, decorator: Google::Apis::RealtimebiddingV1::ServingStatus::Representation + property :platform_policy_compliance, as: 'platformPolicyCompliance', class: Google::Apis::RealtimebiddingV1::PolicyCompliance, decorator: Google::Apis::RealtimebiddingV1::PolicyCompliance::Representation + + property :russia_policy_compliance, as: 'russiaPolicyCompliance', class: Google::Apis::RealtimebiddingV1::PolicyCompliance, decorator: Google::Apis::RealtimebiddingV1::PolicyCompliance::Representation end end @@ -436,6 +438,15 @@ module Google end end + class PolicyCompliance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + collection :topics, as: 'topics', class: Google::Apis::RealtimebiddingV1::PolicyTopicEntry, decorator: Google::Apis::RealtimebiddingV1::PolicyTopicEntry::Representation + + end + end + class PolicyTopicEntry # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -466,15 +477,6 @@ module Google end end - class ServingStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status' - collection :topics, as: 'topics', class: Google::Apis::RealtimebiddingV1::PolicyTopicEntry, decorator: Google::Apis::RealtimebiddingV1::PolicyTopicEntry::Representation - - end - end - class UrlDownloadSize # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/remotebuildexecution_v1.rb b/generated/google/apis/remotebuildexecution_v1.rb index 1e9690f9d..72b1755f5 100644 --- a/generated/google/apis/remotebuildexecution_v1.rb +++ b/generated/google/apis/remotebuildexecution_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1 VERSION = 'V1' - REVISION = '20200901' + REVISION = '20201006' # 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/remotebuildexecution_v1/classes.rb b/generated/google/apis/remotebuildexecution_v1/classes.rb index e4f5ba4e3..6e9056d89 100644 --- a/generated/google/apis/remotebuildexecution_v1/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1/classes.rb @@ -1483,6 +1483,11 @@ module Google attr_accessor :docker_cache_hit alias_method :docker_cache_hit?, :docker_cache_hit + # Docker Image name. + # Corresponds to the JSON property `dockerImageName` + # @return [String] + attr_accessor :docker_image_name + # The input cache miss ratio. # Corresponds to the JSON property `inputCacheMiss` # @return [Float] @@ -1505,6 +1510,7 @@ module Google # Update properties of this object def update!(**args) @docker_cache_hit = args[:docker_cache_hit] if args.key?(:docker_cache_hit) + @docker_image_name = args[:docker_image_name] if args.key?(:docker_image_name) @input_cache_miss = args[:input_cache_miss] if args.key?(:input_cache_miss) @num_errors = args[:num_errors] if args.key?(:num_errors) @num_warnings = args[:num_warnings] if args.key?(:num_warnings) diff --git a/generated/google/apis/remotebuildexecution_v1/representations.rb b/generated/google/apis/remotebuildexecution_v1/representations.rb index 02e01a853..28404de9f 100644 --- a/generated/google/apis/remotebuildexecution_v1/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1/representations.rb @@ -701,6 +701,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :docker_cache_hit, as: 'dockerCacheHit' + property :docker_image_name, as: 'dockerImageName' property :input_cache_miss, as: 'inputCacheMiss' property :num_errors, :numeric_string => true, as: 'numErrors' property :num_warnings, :numeric_string => true, as: 'numWarnings' diff --git a/generated/google/apis/remotebuildexecution_v2.rb b/generated/google/apis/remotebuildexecution_v2.rb index 037cc37b1..086a9dbfa 100644 --- a/generated/google/apis/remotebuildexecution_v2.rb +++ b/generated/google/apis/remotebuildexecution_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV2 VERSION = 'V2' - REVISION = '20200901' + REVISION = '20201006' # 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/remotebuildexecution_v2/classes.rb b/generated/google/apis/remotebuildexecution_v2/classes.rb index 8e160daa0..b7d15b03d 100644 --- a/generated/google/apis/remotebuildexecution_v2/classes.rb +++ b/generated/google/apis/remotebuildexecution_v2/classes.rb @@ -2137,6 +2137,11 @@ module Google attr_accessor :docker_cache_hit alias_method :docker_cache_hit?, :docker_cache_hit + # Docker Image name. + # Corresponds to the JSON property `dockerImageName` + # @return [String] + attr_accessor :docker_image_name + # The input cache miss ratio. # Corresponds to the JSON property `inputCacheMiss` # @return [Float] @@ -2159,6 +2164,7 @@ module Google # Update properties of this object def update!(**args) @docker_cache_hit = args[:docker_cache_hit] if args.key?(:docker_cache_hit) + @docker_image_name = args[:docker_image_name] if args.key?(:docker_image_name) @input_cache_miss = args[:input_cache_miss] if args.key?(:input_cache_miss) @num_errors = args[:num_errors] if args.key?(:num_errors) @num_warnings = args[:num_warnings] if args.key?(:num_warnings) diff --git a/generated/google/apis/remotebuildexecution_v2/representations.rb b/generated/google/apis/remotebuildexecution_v2/representations.rb index 4e7907868..24e310430 100644 --- a/generated/google/apis/remotebuildexecution_v2/representations.rb +++ b/generated/google/apis/remotebuildexecution_v2/representations.rb @@ -989,6 +989,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :docker_cache_hit, as: 'dockerCacheHit' + property :docker_image_name, as: 'dockerImageName' property :input_cache_miss, as: 'inputCacheMiss' property :num_errors, :numeric_string => true, as: 'numErrors' property :num_warnings, :numeric_string => true, as: 'numWarnings' diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index 29c8dcf02..62b6a0a3c 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20200918' + REVISION = '20201002' # 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/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index cff26452e..7308cf36e 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -1111,7 +1111,7 @@ module Google attr_accessor :key # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: - # supported Mode bits to use on this file, must be a value between 0 and 0777. + # supported Mode bits to use on this file, must be a value between 0000 and 0777. # If not specified, the volume defaultMode will be used. This might be in # conflict with other options that affect the file mode, like fsGroup, and the # result can be other mode bits set. @@ -2414,9 +2414,12 @@ module Google # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: # supported Mode bits to use on created files by default. Must be a value - # between 0 and 0777. Defaults to 0644. Directories within the path are not + # between 0000 and 0777. Defaults to 0644. Directories within the path are not # affected by this setting. This might be in conflict with other options that # affect the file mode, like fsGroup, and the result can be other mode bits set. + # NOTE: This is an integer representation of the mode bits. So, the integer + # value should look exactly as the chmod numeric notation, i.e. Unix chmod "777" + # (a=rwx) should have the integer value 777. # Corresponds to the JSON property `defaultMode` # @return [Fixnum] attr_accessor :default_mode diff --git a/generated/google/apis/smartdevicemanagement_v1.rb b/generated/google/apis/smartdevicemanagement_v1.rb index 3343b3321..ce0f67428 100644 --- a/generated/google/apis/smartdevicemanagement_v1.rb +++ b/generated/google/apis/smartdevicemanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/nest/device-access module SmartdevicemanagementV1 VERSION = 'V1' - REVISION = '20200910' + REVISION = '20201003' # See and/or control the devices that you selected AUTH_SDM_SERVICE = 'https://www.googleapis.com/auth/sdm.service' diff --git a/generated/google/apis/smartdevicemanagement_v1/classes.rb b/generated/google/apis/smartdevicemanagement_v1/classes.rb index ed0e23dae..56a0d05c8 100644 --- a/generated/google/apis/smartdevicemanagement_v1/classes.rb +++ b/generated/google/apis/smartdevicemanagement_v1/classes.rb @@ -27,13 +27,6 @@ module Google class GoogleHomeEnterpriseSdmV1Device include Google::Apis::Core::Hashable - # Output only. The name of the structure/room where the device is assigned to. - # For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ - # ABC/rooms/123" - # Corresponds to the JSON property `assignee` - # @return [String] - attr_accessor :assignee - # Required. The resource name of the device. For example: "enterprises/XYZ/ # devices/123". # Corresponds to the JSON property `name` @@ -64,7 +57,6 @@ module Google # Update properties of this object def update!(**args) - @assignee = args[:assignee] if args.key?(:assignee) @name = args[:name] if args.key?(:name) @parent_relations = args[:parent_relations] if args.key?(:parent_relations) @traits = args[:traits] if args.key?(:traits) @@ -146,7 +138,8 @@ module Google class GoogleHomeEnterpriseSdmV1ListRoomsResponse include Google::Apis::Core::Hashable - # The pagination token to retrieve the next page of results. + # The pagination token to retrieve the next page of results. If this field is + # omitted, there are no subsequent pages. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -171,7 +164,8 @@ module Google class GoogleHomeEnterpriseSdmV1ListStructuresResponse include Google::Apis::Core::Hashable - # The pagination token to retrieve the next page of results. + # The pagination token to retrieve the next page of results. If this field is + # omitted, there are no subsequent pages. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token diff --git a/generated/google/apis/smartdevicemanagement_v1/representations.rb b/generated/google/apis/smartdevicemanagement_v1/representations.rb index 8eae9aead..abc04a692 100644 --- a/generated/google/apis/smartdevicemanagement_v1/representations.rb +++ b/generated/google/apis/smartdevicemanagement_v1/representations.rb @@ -85,7 +85,6 @@ module Google class GoogleHomeEnterpriseSdmV1Device # @private class Representation < Google::Apis::Core::JsonRepresentation - property :assignee, as: 'assignee' property :name, as: 'name' collection :parent_relations, as: 'parentRelations', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation::Representation diff --git a/generated/google/apis/smartdevicemanagement_v1/service.rb b/generated/google/apis/smartdevicemanagement_v1/service.rb index 72af7f900..669cd125e 100644 --- a/generated/google/apis/smartdevicemanagement_v1/service.rb +++ b/generated/google/apis/smartdevicemanagement_v1/service.rb @@ -124,8 +124,6 @@ module Google # If unspecified, server will pick an appropriate default. # @param [String] page_token # Optional token of the page to retrieve. - # @param [String] view - # Additional details that need to be provided for the device. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -143,7 +141,7 @@ 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 list_enterprise_devices(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_enterprise_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/devices', options) command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse::Representation command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse @@ -151,7 +149,6 @@ module Google command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? - command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/sts_v1.rb b/generated/google/apis/sts_v1.rb index 012b26ebb..2c061dec6 100644 --- a/generated/google/apis/sts_v1.rb +++ b/generated/google/apis/sts_v1.rb @@ -26,7 +26,7 @@ module Google # @see http://cloud.google.com/iam/docs/workload-identity-federation module StsV1 VERSION = 'V1' - REVISION = '20200908' + REVISION = '20201004' end end end diff --git a/generated/google/apis/sts_v1/classes.rb b/generated/google/apis/sts_v1/classes.rb index dcf4e8b59..5dc3a744d 100644 --- a/generated/google/apis/sts_v1/classes.rb +++ b/generated/google/apis/sts_v1/classes.rb @@ -27,7 +27,7 @@ module Google include Google::Apis::Core::Hashable # Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token- - # exchange`, which indicates a token exchange is requested. + # exchange`, which indicates a token exchange. # Corresponds to the JSON property `grantType` # @return [String] attr_accessor :grant_type @@ -45,10 +45,10 @@ module Google # @return [String] attr_accessor :requested_token_type - # Required. Input subject token. You can use a Google-issued OAuth 2.0 access - # token with this field to obtain an access token with new security attributes - # applied, such as an AccessBoundary. Applying additional security attributes on - # access tokens that already contain security attributes is not allowed. + # Required. The input token. You can use a Google-issued OAuth 2.0 access token + # with this field to obtain an access token with new security attributes applied, + # such as a Credential Access Boundary. If an access token already contains + # security attributes, you cannot apply additional security attributes. # Corresponds to the JSON property `subjectToken` # @return [String] attr_accessor :subject_token @@ -84,10 +84,11 @@ module Google # @return [String] attr_accessor :access_token - # The expiration time of `access_token` in seconds, measured from the time of - # issuance. This field is absent when the `subject_token` in the request is a - # Google-issued, short-lived access token. In this case, the expiration time of - # the `access_token` is the same as the `subject_token`. + # The amount of time, in seconds, between the time when the `access_token` was + # issued and the time when the `access_token` will expire. This field is absent + # when the `subject_token` in the request is a Google-issued, short-lived access + # token. In this case, the `access_token` has the same expiration time as the ` + # subject_token`. # Corresponds to the JSON property `expires_in` # @return [Fixnum] attr_accessor :expires_in diff --git a/generated/google/apis/sts_v1beta.rb b/generated/google/apis/sts_v1beta.rb index 445b07a64..9d92b491a 100644 --- a/generated/google/apis/sts_v1beta.rb +++ b/generated/google/apis/sts_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see http://cloud.google.com/iam/docs/workload-identity-federation module StsV1beta VERSION = 'V1beta' - REVISION = '20200919' + REVISION = '20201004' end end end diff --git a/generated/google/apis/sts_v1beta/classes.rb b/generated/google/apis/sts_v1beta/classes.rb index 99888f221..af716aa80 100644 --- a/generated/google/apis/sts_v1beta/classes.rb +++ b/generated/google/apis/sts_v1beta/classes.rb @@ -26,16 +26,15 @@ module Google class GoogleIdentityStsV1betaExchangeTokenRequest include Google::Apis::Core::Hashable - # The full resource name of the identity provider; for example: `https://iam. - # googleapis.com/projects/`PROJECT_ID`/workloadIdentityPools/`POOL_ID`/providers/ - # `PROVIDER_ID``. Required when exchanging an external credential for a Google - # access token. + # The full resource name of the identity provider. For example, `//iam. + # googleapis.com/projects//workloadIdentityPools//providers/`. Required when + # exchanging an external credential for a Google access token. # Corresponds to the JSON property `audience` # @return [String] attr_accessor :audience # Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token- - # exchange`, which indicates a token exchange is requested. + # exchange`, which indicates a token exchange. # Corresponds to the JSON property `grantType` # @return [String] attr_accessor :grant_type @@ -47,8 +46,8 @@ module Google # @return [String] attr_accessor :options - # Required. An identifier for the type of requested security token. Must be `urn: - # ietf:params:oauth:token-type:access_token`. + # Required. The type of security token. Must be `urn:ietf:params:oauth:token- + # type:access_token`, which indicates an OAuth 2.0 access token. # Corresponds to the JSON property `requestedTokenType` # @return [String] attr_accessor :requested_token_type @@ -60,71 +59,68 @@ module Google # @return [String] attr_accessor :scope - # Required. The input token. This is a either an external credential issued by a - # WorkloadIdentityPoolProvider, or a short-lived access token issued by Google. - # If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523]( - # https://tools.ietf.org/html/rfc7523), and `subject_token_type` must be `urn: - # ietf:params:oauth:token-type:jwt`. The following headers are required: - **` - # kid`**: The identifier of the signing key securing the JWT. - **`alg`**: The - # cryptographic algorithm securing the JWT. Must be `RS256`. The following - # payload fields are required. For more information, see [RFC 7523, Section 3]( - # https://tools.ietf.org/html/rfc7523#section-3). - **`iss`**: The issuer of the - # token. The issuer must provide a discovery document at `/.well-known/openid- - # configuration`, formatted according to section 4.2 of the [OIDC 1.0 Discovery - # specification](https://openid.net/specs/openid-connect-discovery-1_0.html# - # ProviderConfigurationResponse). - **`iat`**: The issue time, in seconds, since - # epoch. Must be in the past. - **`exp`**: The expiration time, in seconds, - # since epoch. Must be fewer than 48 hours after `iat`. Shorter expiration times - # are more. secure. If possible, we recommend setting an expiration time fewer - # than 6 hours. - **`sub`**: The identity asserted in the JWT. - **`aud`**: - # Configured by the mapper policy. The default value is the service account's - # unique ID. Example header: ``` ` "alg": "RS256", "kid": "us-east-11" ` ``` - # Example payload: ``` ` "iss": "https://accounts.google.com", "iat": 1517963104, - # "exp": 1517966704, "aud": "113475438248934895348", "sub": " + # Required. The input token. This token is a either an external credential + # issued by a workload identity pool provider, or a short-lived access token + # issued by Google. If the token is an OIDC JWT, it must use the JWT format + # defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the ` + # subject_token_type` must be `urn:ietf:params:oauth:token-type:jwt`. The + # following headers are required: - `kid`: The identifier of the signing key + # securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must + # be `RS256`. The following payload fields are required. For more information, + # see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - ` + # iss`: The issuer of the token. The issuer must provide a discovery document at + # `/.well-known/openid-configuration`, formatted according to section 4.2 of the + # [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect- + # discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in + # seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration + # time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`. + # Shorter expiration times are more secure. If possible, we recommend setting + # an expiration time less than 6 hours. - `sub`: The identity asserted in the + # JWT. - `aud`: Configured by the mapper policy. The default value is the + # service account's unique ID. Example header: ``` ` "alg": "RS256", "kid": "us- + # east-11" ` ``` Example payload: ``` ` "iss": "https://accounts.google.com", " + # iat": 1517963104, "exp": 1517966704, "aud": "113475438248934895348", "sub": " # 113475438248934895348", "my_claims": ` "additional_claim": "value" ` ` ``` If ` # subject_token` is an AWS token, it must be a serialized, [signed](https://docs. # aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) request to the # AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/ # APIReference/API_GetCallerIdentity) method. Format the request as URL-encoded # JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token- - # type:aws4_request`. The following parameters are required: - **`url`**: The - # URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts. - # amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints - # are also supported. - **`method`:** The HTTP request method: `POST`. - **` - # headers`**: The HTTP request headers, which must include: - **`Authorization`** - # : The request signature. - **`x-amz-date`**`: The time you will send the - # request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/ - # latest/gr/sigv4_elements.html#sigv4_elements_date) string. This is typically - # set to the current time, and used to prevent replay attacks. - **`host`**: The - # hostname of the `url` field; for example, `sts.amazonaws.com`. - **`x-goog- - # cloud-target-resource`**: The full, canonical resource name of the - # WorkloadIdentityPoolProvider, with or without the HTTPS prefix. For example: `` - # ` //iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ - # https://iam.googleapis.com/projects//locations//workloadIdentityPools// - # providers/ ``` Signing this header as part of the signature is recommended to - # ensure data integrity. If you are using temporary security credentials - # provided by AWS, you must also include the header `x-amz-security-token`, with - # the value `[SESSION_TOKEN]`. The following is an example of a signed, - # serialized request: ``` ` "headers":[ `"key": "x-amz-date", "value": " - # 20200815T015049Z"`, `"key": "Authorization", "value": "AWS4-HMAC-SHA256+ - # Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target- - # resource,+Signature=$signature"`, `"key": "x-goog-cloud-target-resource", " - # value": "//iam.googleapis.com/projects//locations//workloadIdentityPools// - # providers/"`, `"key": "host", "value": "sts.amazonaws.com"` . ], "method":" - # POST", "url":"https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011- - # 06-15" ` ``` You can also use a Google-issued OAuth 2.0 access token with this - # field to obtain an access token with new security attributes applied, such as - # an AccessBoundary. In this case, set `subject_token_type` to `urn:ietf:params: - # oauth:token-type:access_token`. Applying additional security attributes on - # access tokens that already contain security attributes is not allowed. + # type:aws4_request`. The following parameters are required: - `url`: The URL of + # the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws. + # com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also + # supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP + # request headers, which must include: - `Authorization`: The request signature. + # - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 + # Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html# + # sigv4_elements_date) string. This is typically set to the current time and + # used to prevent replay attacks. - `host`: The hostname of the `url` field; for + # example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, + # canonical resource name of the workload identity pool provider, with or + # without an `https:` prefix. To help ensure data integrity, we recommend + # including this header in the `SignedHeaders` field of the signed request. For + # example: //iam.googleapis.com/projects//locations//workloadIdentityPools// + # providers/ https://iam.googleapis.com/projects//locations// + # workloadIdentityPools//providers/ If you are using temporary security + # credentials provided by AWS, you must also include the header `x-amz-security- + # token`, with the value ``. The following example shows a signed, serialized + # request: ``` ` "headers":[ `"key": "x-amz-date", "value": "20200815T015049Z"`, + # `"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+ + # SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$ + # signature"`, `"key": "x-goog-cloud-target-resource", "value": "//iam. + # googleapis.com/projects//locations//workloadIdentityPools//providers/"`, `"key" + # : "host", "value": "sts.amazonaws.com"` . ], "method":"POST", "url":"https:// + # sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" ` ``` You can + # also use a Google-issued OAuth 2.0 access token with this field to obtain an + # access token with new security attributes applied, such as a Credential Access + # Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth: + # token-type:access_token`. If an access token already contains security + # attributes, you cannot apply additional security attributes. # Corresponds to the JSON property `subjectToken` # @return [String] attr_accessor :subject_token - # Required. An identifier that indicates the type of the security token in the ` - # subject_token` parameter. Supported values are `urn:ietf:params:oauth:token- - # type:jwt`, `urn:ietf:params:aws:token-type:aws4_request` and `urn:ietf:params: - # oauth:token-type:access_token`. + # Required. `urn:ietf:params:oauth:token-type:access_token`. # Corresponds to the JSON property `subjectTokenType` # @return [String] attr_accessor :subject_token_type @@ -150,18 +146,18 @@ module Google include Google::Apis::Core::Hashable # An OAuth 2.0 security token, issued by Google, in response to the token - # exchange request. Tokens can vary in size (mainly depending on the size of - # mapped claims), currently up to the 12288 bytes (12 KB) size limit. Google - # reserves the right to change token size, including increasing these limits. - # Your application must support variable token sizes accordingly. + # exchange request. Tokens can vary in size, depending in part on the size of + # mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the + # right to change the token size and the maximum length at any time. # Corresponds to the JSON property `access_token` # @return [String] attr_accessor :access_token - # The expiration time of `access_token`, in seconds, from the time of issuance. - # This field is absent when the `subject_token` in the request is a Google- - # issued, short-lived access token. In this case, the expiration time of the ` - # access_token` is the same as the `subject_token`. + # The amount of time, in seconds, between the time when the `access_token` was + # issued and the time when the `access_token` will expire. This field is absent + # when the `subject_token` in the request is a Google-issued, short-lived access + # token. In this case, the `access_token` has the same expiration time as the ` + # subject_token`. # Corresponds to the JSON property `expires_in` # @return [Fixnum] attr_accessor :expires_in diff --git a/generated/google/apis/sts_v1beta/service.rb b/generated/google/apis/sts_v1beta/service.rb index f5349e8a5..a37c8bae9 100644 --- a/generated/google/apis/sts_v1beta/service.rb +++ b/generated/google/apis/sts_v1beta/service.rb @@ -49,8 +49,8 @@ module Google end # Exchanges a credential for a Google OAuth 2.0 access token. The token asserts - # an external identity within a WorkloadIdentityPool, or applies an Access - # Boundary on a Google access token. + # an external identity within a workload identity pool, or it applies a + # Credential Access Boundary to a Google access token. # @param [Google::Apis::StsV1beta::GoogleIdentityStsV1betaExchangeTokenRequest] google_identity_sts_v1beta_exchange_token_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 9468e4560..a2c1acb4a 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20200930' + REVISION = '20201007' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'