From 08a9ac6bef87c2579ae0ed69b682062515e49fd9 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 18 Dec 2019 00:37:51 +0000 Subject: [PATCH] Autogenerated update (2019-12-18) Update: - androidmanagement_v1 - bigqueryreservation_v1alpha2 - bigqueryreservation_v1beta1 - dataflow_v1b3 - dataproc_v1 - dataproc_v1beta2 - iam_v1 - language_v1beta2 - recommender_v1beta1 - sheets_v4 - vision_v1 --- generated/google/apis/androidmanagement_v1.rb | 2 +- .../apis/androidmanagement_v1/classes.rb | 188 +++++++++++++++ .../androidmanagement_v1/representations.rb | 67 ++++++ .../apis/androidmanagement_v1/service.rb | 7 +- .../apis/bigqueryreservation_v1alpha2.rb | 2 +- .../bigqueryreservation_v1alpha2/classes.rb | 6 + .../representations.rb | 1 + .../apis/bigqueryreservation_v1beta1.rb | 2 +- .../bigqueryreservation_v1beta1/classes.rb | 6 + .../representations.rb | 1 + generated/google/apis/dataflow_v1b3.rb | 2 +- .../google/apis/dataflow_v1b3/classes.rb | 69 ++++++ .../apis/dataflow_v1b3/representations.rb | 34 +++ generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 116 +++++---- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 116 +++++---- generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 224 +++++++----------- .../google/apis/iam_v1/representations.rb | 6 - generated/google/apis/iam_v1/service.rb | 32 +-- generated/google/apis/language_v1beta2.rb | 2 +- .../google/apis/language_v1beta2/classes.rb | 15 ++ .../apis/language_v1beta2/representations.rb | 2 + generated/google/apis/recommender_v1beta1.rb | 2 +- .../apis/recommender_v1beta1/classes.rb | 6 + generated/google/apis/sheets_v4.rb | 2 +- generated/google/apis/sheets_v4/classes.rb | 189 ++++++++++++++- .../google/apis/sheets_v4/representations.rb | 47 ++++ generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/vision_v1/service.rb | 2 +- 31 files changed, 887 insertions(+), 269 deletions(-) diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index de978a026..7f88785aa 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20191207' + REVISION = '20191214' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index d8f117b36..3fe98be22 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -22,6 +22,28 @@ module Google module Apis module AndroidmanagementV1 + # Security policies set to the most secure values by default. To maintain the + # security posture of a device, we don't recommend overriding any of the default + # values. + class AdvancedSecurityOverrides + include Google::Apis::Core::Hashable + + # The policy for untrusted apps (apps from unknown sources) enforced on the + # device. Replaces install_unknown_sources_allowed (deprecated). + # Corresponds to the JSON property `untrustedAppsPolicy` + # @return [String] + attr_accessor :untrusted_apps_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @untrusted_apps_policy = args[:untrusted_apps_policy] if args.key?(:untrusted_apps_policy) + end + end + # Configuration for an always-on VPN connection. class AlwaysOnVpnPackage include Google::Apis::Core::Hashable @@ -586,6 +608,47 @@ module Google end end + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: + # A full date, with non-zero year, month and day values + # A month and day value, with a zero year, e.g. an anniversary + # A year on its own, with zero month and day values + # A year and month value, with a zero day, e.g. a credit card expiration + # dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year by itself or a year and month where the day is not + # significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + # A device owned by an enterprise. Unless otherwise noted, all fields are read- # only and can't be modified by enterprises.devices.patch. class Device @@ -1152,6 +1215,53 @@ module Google end end + # A system freeze period. When a device’s clock is within the freeze period, all + # incoming system updates (including security patches) are blocked and won’t be + # installed. When a device is outside the freeze period, normal update behavior + # applies. Leap years are ignored in freeze period calculations, in particular: * + # If Feb. 29th is set as the start or end date of a freeze period, the freeze + # period will start or end on Feb. 28th instead. * When a device’s system clock + # reads Feb. 29th, it’s treated as Feb. 28th. * When calculating the number of + # days in a freeze period or the time between two freeze periods, Feb. 29th is + # ignored and not counted as a day. + class FreezePeriod + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: + # A full date, with non-zero year, month and day values + # A month and day value, with a zero year, e.g. an anniversary + # A year on its own, with zero month and day values + # A year and month value, with a zero day, e.g. a credit card expiration + # dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp. + # Corresponds to the JSON property `endDate` + # @return [Google::Apis::AndroidmanagementV1::Date] + attr_accessor :end_date + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: + # A full date, with non-zero year, month and day values + # A month and day value, with a zero year, e.g. an anniversary + # A year on its own, with zero month and day values + # A year and month value, with a zero day, e.g. a credit card expiration + # dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp. + # Corresponds to the JSON property `startDate` + # @return [Google::Apis::AndroidmanagementV1::Date] + attr_accessor :start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) + end + end + # Information about device hardware. The fields related to temperature # thresholds are only available if hardwareStatusEnabled is true in the device's # policy. @@ -1367,6 +1477,49 @@ module Google end end + # Settings controlling the behavior of a device in kiosk mode. To enable kiosk + # mode, set kioskCustomLauncherEnabled to true or specify an app in the policy + # with installType KIOSK. + class KioskCustomization + include Google::Apis::Core::Hashable + + # Sets the behavior of a device in kiosk mode when a user presses and holds ( + # long-presses) the Power button. + # Corresponds to the JSON property `powerButtonActions` + # @return [String] + attr_accessor :power_button_actions + + # Specifies whether system info and notifications are disabled in kiosk mode. + # Corresponds to the JSON property `statusBar` + # @return [String] + attr_accessor :status_bar + + # Specifies whether system error dialogs for crashed or unresponsive apps are + # blocked in kiosk mode. When blocked, the system will force-stop the app as if + # the user chooses the "close app" option on the UI. + # Corresponds to the JSON property `systemErrorWarnings` + # @return [String] + attr_accessor :system_error_warnings + + # Specifies which navigation features are enabled (e.g. Home, Overview buttons) + # in kiosk mode. + # Corresponds to the JSON property `systemNavigation` + # @return [String] + attr_accessor :system_navigation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @power_button_actions = args[:power_button_actions] if args.key?(:power_button_actions) + @status_bar = args[:status_bar] if args.key?(:status_bar) + @system_error_warnings = args[:system_error_warnings] if args.key?(:system_error_warnings) + @system_navigation = args[:system_navigation] if args.key?(:system_navigation) + end + end + # An action to launch an app. class LaunchAppAction include Google::Apis::Core::Hashable @@ -1945,6 +2098,15 @@ module Google # @return [String] attr_accessor :password_scope + # The length of time after a device or work profile is unlocked using a strong + # form of authentication (password, PIN, pattern) that it can be unlocked using + # any other authentication method (e.g. fingerprint, trust agents, face). After + # the specified time period elapses, only strong forms of authentication can be + # used to unlock the device or work profile. + # Corresponds to the JSON property `requirePasswordUnlock` + # @return [String] + attr_accessor :require_password_unlock + def initialize(**args) update!(**args) end @@ -1963,6 +2125,7 @@ module Google @password_minimum_upper_case = args[:password_minimum_upper_case] if args.key?(:password_minimum_upper_case) @password_quality = args[:password_quality] if args.key?(:password_quality) @password_scope = args[:password_scope] if args.key?(:password_scope) + @require_password_unlock = args[:require_password_unlock] if args.key?(:require_password_unlock) end end @@ -2056,6 +2219,13 @@ module Google attr_accessor :adjust_volume_disabled alias_method :adjust_volume_disabled?, :adjust_volume_disabled + # Security policies set to the most secure values by default. To maintain the + # security posture of a device, we don't recommend overriding any of the default + # values. + # Corresponds to the JSON property `advancedSecurityOverrides` + # @return [Google::Apis::AndroidmanagementV1::AdvancedSecurityOverrides] + attr_accessor :advanced_security_overrides + # Configuration for an always-on VPN connection. # Corresponds to the JSON property `alwaysOnVpnPackage` # @return [Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage] @@ -2243,6 +2413,13 @@ module Google attr_accessor :kiosk_custom_launcher_enabled alias_method :kiosk_custom_launcher_enabled?, :kiosk_custom_launcher_enabled + # Settings controlling the behavior of a device in kiosk mode. To enable kiosk + # mode, set kioskCustomLauncherEnabled to true or specify an app in the policy + # with installType KIOSK. + # Corresponds to the JSON property `kioskCustomization` + # @return [Google::Apis::AndroidmanagementV1::KioskCustomization] + attr_accessor :kiosk_customization + # The degree of location detection enabled. The user may change the value unless # the user is otherwise blocked from accessing device settings. # Corresponds to the JSON property `locationMode` @@ -2534,6 +2711,7 @@ module Google @account_types_with_management_disabled = args[:account_types_with_management_disabled] if args.key?(:account_types_with_management_disabled) @add_user_disabled = args[:add_user_disabled] if args.key?(:add_user_disabled) @adjust_volume_disabled = args[:adjust_volume_disabled] if args.key?(:adjust_volume_disabled) + @advanced_security_overrides = args[:advanced_security_overrides] if args.key?(:advanced_security_overrides) @always_on_vpn_package = args[:always_on_vpn_package] if args.key?(:always_on_vpn_package) @android_device_policy_tracks = args[:android_device_policy_tracks] if args.key?(:android_device_policy_tracks) @app_auto_update_policy = args[:app_auto_update_policy] if args.key?(:app_auto_update_policy) @@ -2563,6 +2741,7 @@ module Google @keyguard_disabled = args[:keyguard_disabled] if args.key?(:keyguard_disabled) @keyguard_disabled_features = args[:keyguard_disabled_features] if args.key?(:keyguard_disabled_features) @kiosk_custom_launcher_enabled = args[:kiosk_custom_launcher_enabled] if args.key?(:kiosk_custom_launcher_enabled) + @kiosk_customization = args[:kiosk_customization] if args.key?(:kiosk_customization) @location_mode = args[:location_mode] if args.key?(:location_mode) @long_support_message = args[:long_support_message] if args.key?(:long_support_message) @maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock) @@ -3085,6 +3264,14 @@ module Google # @return [Fixnum] attr_accessor :end_minutes + # An annually repeating time period in which over-the-air (OTA) system updates + # are postponed to freeze the OS version running on a device. To prevent + # freezing the device indefinitely, each freeze period must be separated by at + # least 60 days. + # Corresponds to the JSON property `freezePeriods` + # @return [Array] + attr_accessor :freeze_periods + # If the type is WINDOWED, the start of the maintenance window, measured as the # number of minutes after midnight in the device's local time. This value must # be between 0 and 1439, inclusive. @@ -3104,6 +3291,7 @@ module Google # Update properties of this object def update!(**args) @end_minutes = args[:end_minutes] if args.key?(:end_minutes) + @freeze_periods = args[:freeze_periods] if args.key?(:freeze_periods) @start_minutes = args[:start_minutes] if args.key?(:start_minutes) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/androidmanagement_v1/representations.rb b/generated/google/apis/androidmanagement_v1/representations.rb index 4119f4f9e..85655d3ce 100644 --- a/generated/google/apis/androidmanagement_v1/representations.rb +++ b/generated/google/apis/androidmanagement_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module AndroidmanagementV1 + class AdvancedSecurityOverrides + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AlwaysOnVpnPackage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Device class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +154,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FreezePeriod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HardwareInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -160,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class KioskCustomization + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LaunchAppAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -388,6 +412,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AdvancedSecurityOverrides + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :untrusted_apps_policy, as: 'untrustedAppsPolicy' + end + end + class AlwaysOnVpnPackage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -528,6 +559,15 @@ module Google end end + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + class Device # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -654,6 +694,16 @@ module Google end end + class FreezePeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate', class: Google::Apis::AndroidmanagementV1::Date, decorator: Google::Apis::AndroidmanagementV1::Date::Representation + + property :start_date, as: 'startDate', class: Google::Apis::AndroidmanagementV1::Date, decorator: Google::Apis::AndroidmanagementV1::Date::Representation + + end + end + class HardwareInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -699,6 +749,16 @@ module Google end end + class KioskCustomization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :power_button_actions, as: 'powerButtonActions' + property :status_bar, as: 'statusBar' + property :system_error_warnings, as: 'systemErrorWarnings' + property :system_navigation, as: 'systemNavigation' + end + end + class LaunchAppAction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -855,6 +915,7 @@ module Google property :password_minimum_upper_case, as: 'passwordMinimumUpperCase' property :password_quality, as: 'passwordQuality' property :password_scope, as: 'passwordScope' + property :require_password_unlock, as: 'requirePasswordUnlock' end end @@ -881,6 +942,8 @@ module Google collection :account_types_with_management_disabled, as: 'accountTypesWithManagementDisabled' property :add_user_disabled, as: 'addUserDisabled' property :adjust_volume_disabled, as: 'adjustVolumeDisabled' + property :advanced_security_overrides, as: 'advancedSecurityOverrides', class: Google::Apis::AndroidmanagementV1::AdvancedSecurityOverrides, decorator: Google::Apis::AndroidmanagementV1::AdvancedSecurityOverrides::Representation + property :always_on_vpn_package, as: 'alwaysOnVpnPackage', class: Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage, decorator: Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage::Representation collection :android_device_policy_tracks, as: 'androidDevicePolicyTracks' @@ -915,6 +978,8 @@ module Google property :keyguard_disabled, as: 'keyguardDisabled' collection :keyguard_disabled_features, as: 'keyguardDisabledFeatures' property :kiosk_custom_launcher_enabled, as: 'kioskCustomLauncherEnabled' + property :kiosk_customization, as: 'kioskCustomization', class: Google::Apis::AndroidmanagementV1::KioskCustomization, decorator: Google::Apis::AndroidmanagementV1::KioskCustomization::Representation + property :location_mode, as: 'locationMode' property :long_support_message, as: 'longSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation @@ -1100,6 +1165,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :end_minutes, as: 'endMinutes' + collection :freeze_periods, as: 'freezePeriods', class: Google::Apis::AndroidmanagementV1::FreezePeriod, decorator: Google::Apis::AndroidmanagementV1::FreezePeriod::Representation + property :start_minutes, as: 'startMinutes' property :type, as: 'type' end diff --git a/generated/google/apis/androidmanagement_v1/service.rb b/generated/google/apis/androidmanagement_v1/service.rb index bc1731794..92e5d6bca 100644 --- a/generated/google/apis/androidmanagement_v1/service.rb +++ b/generated/google/apis/androidmanagement_v1/service.rb @@ -196,6 +196,10 @@ module Google # deviceId`. # @param [Array, String] wipe_data_flags # Optional flags that control the device wiping behavior. + # @param [String] wipe_reason_message + # Optional short message displayed to the user before wiping the work profile on + # personal devices. This has no effect on company owned devices. The maximum + # message length is 200 characters. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -213,12 +217,13 @@ 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_enterprise_device(name, wipe_data_flags: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_enterprise_device(name, wipe_data_flags: nil, wipe_reason_message: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation command.response_class = Google::Apis::AndroidmanagementV1::Empty command.params['name'] = name unless name.nil? command.query['wipeDataFlags'] = wipe_data_flags unless wipe_data_flags.nil? + command.query['wipeReasonMessage'] = wipe_reason_message unless wipe_reason_message.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/bigqueryreservation_v1alpha2.rb b/generated/google/apis/bigqueryreservation_v1alpha2.rb index 575e84594..22b3cc554 100644 --- a/generated/google/apis/bigqueryreservation_v1alpha2.rb +++ b/generated/google/apis/bigqueryreservation_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1alpha2 VERSION = 'V1alpha2' - REVISION = '20191029' + REVISION = '20191211' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb b/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb index 8e9cfdb78..5b32b8602 100644 --- a/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb @@ -306,6 +306,11 @@ module Google # @return [String] attr_accessor :reservation + # Output only. State of the ReservationGrant. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + def initialize(**args) update!(**args) end @@ -316,6 +321,7 @@ module Google @job_type = args[:job_type] if args.key?(:job_type) @name = args[:name] if args.key?(:name) @reservation = args[:reservation] if args.key?(:reservation) + @state = args[:state] if args.key?(:state) end end diff --git a/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb b/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb index 8a5172331..53d96e57f 100644 --- a/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +++ b/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb @@ -169,6 +169,7 @@ module Google property :job_type, as: 'jobType' property :name, as: 'name' property :reservation, as: 'reservation' + property :state, as: 'state' end end diff --git a/generated/google/apis/bigqueryreservation_v1beta1.rb b/generated/google/apis/bigqueryreservation_v1beta1.rb index bc1a077ad..d3d7d20d6 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1beta1 VERSION = 'V1beta1' - REVISION = '20191203' + REVISION = '20191211' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb index 77671320a..056aa73c3 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb @@ -44,6 +44,11 @@ module Google # @return [String] attr_accessor :name + # Output only. State of the assignment. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + def initialize(**args) update!(**args) end @@ -53,6 +58,7 @@ module Google @assignee = args[:assignee] if args.key?(:assignee) @job_type = args[:job_type] if args.key?(:job_type) @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) end end diff --git a/generated/google/apis/bigqueryreservation_v1beta1/representations.rb b/generated/google/apis/bigqueryreservation_v1beta1/representations.rb index 1810955bf..752ea365f 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/representations.rb @@ -112,6 +112,7 @@ module Google property :assignee, as: 'assignee' property :job_type, as: 'jobType' property :name, as: 'name' + property :state, as: 'state' end end diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 1fcda019d..f482810bc 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20190927' + REVISION = '20191204' # 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/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 7bed9fc42..2c2d00ee5 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -1483,6 +1483,11 @@ module Google # @return [Google::Apis::DataflowV1b3::TemplateMetadata] attr_accessor :metadata + # RuntimeMetadata describing a runtime environment. + # Corresponds to the JSON property `runtimeMetadata` + # @return [Google::Apis::DataflowV1b3::RuntimeMetadata] + attr_accessor :runtime_metadata + # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is # used by [gRPC](https://github.com/grpc). Each `Status` message contains @@ -1493,6 +1498,11 @@ module Google # @return [Google::Apis::DataflowV1b3::Status] attr_accessor :status + # Template Type. + # Corresponds to the JSON property `templateType` + # @return [String] + attr_accessor :template_type + def initialize(**args) update!(**args) end @@ -1500,7 +1510,9 @@ module Google # Update properties of this object def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) + @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata) @status = args[:status] if args.key?(:status) + @template_type = args[:template_type] if args.key?(:template_type) end end @@ -2895,6 +2907,12 @@ module Google # @return [String] attr_accessor :name + # Optional. The type of the parameter. + # Used for selecting input picker. + # Corresponds to the JSON property `paramType` + # @return [String] + attr_accessor :param_type + # Optional. Regexes that the parameter must match. # Corresponds to the JSON property `regexes` # @return [Array] @@ -2910,6 +2928,7 @@ module Google @is_optional = args[:is_optional] if args.key?(:is_optional) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) + @param_type = args[:param_type] if args.key?(:param_type) @regexes = args[:regexes] if args.key?(:regexes) end end @@ -3436,6 +3455,56 @@ module Google end end + # RuntimeMetadata describing a runtime environment. + class RuntimeMetadata + include Google::Apis::Core::Hashable + + # The parameters for the template. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # SDK Information. + # Corresponds to the JSON property `sdkInfo` + # @return [Google::Apis::DataflowV1b3::SdkInfo] + attr_accessor :sdk_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameters = args[:parameters] if args.key?(:parameters) + @sdk_info = args[:sdk_info] if args.key?(:sdk_info) + end + end + + # SDK Information. + class SdkInfo + include Google::Apis::Core::Hashable + + # Required. The SDK Language. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # Optional. The SDK version. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language = args[:language] if args.key?(:language) + @version = args[:version] if args.key?(:version) + end + end + # The version of the SDK used to run the job. class SdkVersion include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index b91acc3a4..7c8e67fec 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -508,6 +508,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RuntimeMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SdkInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SdkVersion class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1246,8 +1258,11 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::TemplateMetadata, decorator: Google::Apis::DataflowV1b3::TemplateMetadata::Representation + property :runtime_metadata, as: 'runtimeMetadata', class: Google::Apis::DataflowV1b3::RuntimeMetadata, decorator: Google::Apis::DataflowV1b3::RuntimeMetadata::Representation + property :status, as: 'status', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation + property :template_type, as: 'templateType' end end @@ -1615,6 +1630,7 @@ module Google property :is_optional, as: 'isOptional' property :label, as: 'label' property :name, as: 'name' + property :param_type, as: 'paramType' collection :regexes, as: 'regexes' end end @@ -1751,6 +1767,24 @@ module Google end end + class RuntimeMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :parameters, as: 'parameters', class: Google::Apis::DataflowV1b3::ParameterMetadata, decorator: Google::Apis::DataflowV1b3::ParameterMetadata::Representation + + property :sdk_info, as: 'sdkInfo', class: Google::Apis::DataflowV1b3::SdkInfo, decorator: Google::Apis::DataflowV1b3::SdkInfo::Representation + + end + end + + class SdkInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language, as: 'language' + property :version, as: 'version' + end + end + class SdkVersion # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 6bd2f1a2a..54aab6503 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20191120' + REVISION = '20191210' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index ee2e203e6..af598688a 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -247,6 +247,22 @@ module Google # For example, my-other-app@appspot.gserviceaccount.com. # group:`emailid`: An email address that represents a Google group. For example, # admins@example.com. + # deleted:user:`emailid`?uid=`uniqueid`: An email address (plus unique + # identifier) representing a user that has been recently deleted. For example, + # alice@example.com?uid=123456789012345678901. If the user is recovered, this + # value reverts to user:`emailid` and the recovered user retains the role in + # the binding. + # deleted:serviceAccount:`emailid`?uid=`uniqueid`: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, my-other-app@appspot.gserviceaccount.com?uid= + # 123456789012345678901. If the service account is undeleted, this value + # reverts to serviceAccount:`emailid` and the undeleted service account retains + # the role in the binding. + # deleted:group:`emailid`?uid=`uniqueid`: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, admins@example.com?uid=123456789012345678901. If the group is + # recovered, this value reverts to group:`emailid` and the recovered group + # retains the role in the binding. # domain:`domain`: The G Suite domain (primary) that represents all the users # of that domain. For example, google.com or example.com. # Corresponds to the JSON property `members` @@ -2190,14 +2206,15 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy is a collection - # of bindings. A binding binds one or more members to a single role. Members can - # be user accounts, service accounts, Google groups, and domains (such as G - # Suite). A role is a named list of permissions (defined by IAM or configured by - # users). A binding can optionally specify a condition, which is a logic - # expression that further constrains the role binding based on attributes about - # the request and/or target resource.JSON Example + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources.A Policy is a collection of bindings. A + # binding binds one or more members to a single role. Members can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # role is a named list of permissions; each role can be an IAM predefined role + # or a user-created custom role.Optionally, a binding can specify a condition, + # which is a logical expression that allows access to a resource only if the + # expression evaluates to true. A condition can add constraints based on + # attributes of the request, the resource, or both.JSON example: # ` # "bindings": [ # ` @@ -2215,13 +2232,14 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # YAML Example + # YAML example: # bindings: # - members: # - user:mike@example.com @@ -2236,14 +2254,16 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # For a description of IAM and its features, see the IAM developer's guide ( - # https://cloud.google.com/iam/docs). + # - etag: BwWWja0YfJA= + # - version: 3 + # For a description of IAM and its features, see the IAM documentation (https:// + # cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of members to a role. Optionally may specify a condition - # that determines when binding is in effect. bindings with no members will - # result in an error. + # Associates a list of members to a role. Optionally, may specify a condition + # that determines how and when the bindings are applied. Each of the bindings + # must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -2254,23 +2274,29 @@ module Google # perform policy updates in order to avoid race conditions: An etag is returned # in the response to getIamPolicy, and systems are expected to put that etag in # the request to setIamPolicy to ensure that their change will be applied to the - # same version of the policy.If no etag is provided in the call to setIamPolicy, - # then the existing policy is overwritten. Due to blind-set semantics of an etag- - # less policy, 'setIamPolicy' will not fail even if the incoming policy version - # does not meet the requirements for modifying the stored policy. + # same version of the policy.Important: If you use IAM Conditions, you must + # include the etag field whenever you call setIamPolicy. If you omit this field, + # then IAM allows you to overwrite a version 3 policy with a version 1 policy, + # and all of the conditions in the version 3 policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests - # specifying an invalid value will be rejected.Operations affecting conditional - # bindings must specify version 3. This can be either setting a conditional - # policy, modifying a conditional binding, or removing a binding (conditional or - # unconditional) from the stored conditional policy. Operations on non- - # conditional policies may specify any valid value or leave the field unset.If - # no etag is provided in the call to setIamPolicy, version compliance checks - # against the stored policy is skipped. + # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that + # specify an invalid value are rejected.Any operation that affects conditional + # role bindings must specify version 3. This requirement applies to the + # following operations: + # Getting a policy that includes a conditional role binding + # Adding a conditional role binding to a policy + # Changing a conditional role binding in a policy + # Removing any role binding, with or without a condition, from a policy that + # includes conditionsImportant: If you use IAM Conditions, you must include the + # etag field whenever you call setIamPolicy. If you omit this field, then IAM + # allows you to overwrite a version 3 policy with a version 1 policy, and all of + # the conditions in the version 3 policy are lost.If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2465,14 +2491,15 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy is a collection - # of bindings. A binding binds one or more members to a single role. Members can - # be user accounts, service accounts, Google groups, and domains (such as G - # Suite). A role is a named list of permissions (defined by IAM or configured by - # users). A binding can optionally specify a condition, which is a logic - # expression that further constrains the role binding based on attributes about - # the request and/or target resource.JSON Example + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources.A Policy is a collection of bindings. A + # binding binds one or more members to a single role. Members can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # role is a named list of permissions; each role can be an IAM predefined role + # or a user-created custom role.Optionally, a binding can specify a condition, + # which is a logical expression that allows access to a resource only if the + # expression evaluates to true. A condition can add constraints based on + # attributes of the request, the resource, or both.JSON example: # ` # "bindings": [ # ` @@ -2490,13 +2517,14 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # YAML Example + # YAML example: # bindings: # - members: # - user:mike@example.com @@ -2511,8 +2539,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # For a description of IAM and its features, see the IAM developer's guide ( - # https://cloud.google.com/iam/docs). + # - etag: BwWWja0YfJA= + # - version: 3 + # For a description of IAM and its features, see the IAM documentation (https:// + # cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DataprocV1::Policy] attr_accessor :policy diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 69fa1d71a..9e1dd0a59 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20191120' + REVISION = '20191210' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index ef0206a01..50c224bef 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -246,6 +246,22 @@ module Google # For example, my-other-app@appspot.gserviceaccount.com. # group:`emailid`: An email address that represents a Google group. For example, # admins@example.com. + # deleted:user:`emailid`?uid=`uniqueid`: An email address (plus unique + # identifier) representing a user that has been recently deleted. For example, + # alice@example.com?uid=123456789012345678901. If the user is recovered, this + # value reverts to user:`emailid` and the recovered user retains the role in + # the binding. + # deleted:serviceAccount:`emailid`?uid=`uniqueid`: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, my-other-app@appspot.gserviceaccount.com?uid= + # 123456789012345678901. If the service account is undeleted, this value + # reverts to serviceAccount:`emailid` and the undeleted service account retains + # the role in the binding. + # deleted:group:`emailid`?uid=`uniqueid`: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, admins@example.com?uid=123456789012345678901. If the group is + # recovered, this value reverts to group:`emailid` and the recovered group + # retains the role in the binding. # domain:`domain`: The G Suite domain (primary) that represents all the users # of that domain. For example, google.com or example.com. # Corresponds to the JSON property `members` @@ -2248,14 +2264,15 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy is a collection - # of bindings. A binding binds one or more members to a single role. Members can - # be user accounts, service accounts, Google groups, and domains (such as G - # Suite). A role is a named list of permissions (defined by IAM or configured by - # users). A binding can optionally specify a condition, which is a logic - # expression that further constrains the role binding based on attributes about - # the request and/or target resource.JSON Example + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources.A Policy is a collection of bindings. A + # binding binds one or more members to a single role. Members can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # role is a named list of permissions; each role can be an IAM predefined role + # or a user-created custom role.Optionally, a binding can specify a condition, + # which is a logical expression that allows access to a resource only if the + # expression evaluates to true. A condition can add constraints based on + # attributes of the request, the resource, or both.JSON example: # ` # "bindings": [ # ` @@ -2273,13 +2290,14 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # YAML Example + # YAML example: # bindings: # - members: # - user:mike@example.com @@ -2294,14 +2312,16 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # For a description of IAM and its features, see the IAM developer's guide ( - # https://cloud.google.com/iam/docs). + # - etag: BwWWja0YfJA= + # - version: 3 + # For a description of IAM and its features, see the IAM documentation (https:// + # cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of members to a role. Optionally may specify a condition - # that determines when binding is in effect. bindings with no members will - # result in an error. + # Associates a list of members to a role. Optionally, may specify a condition + # that determines how and when the bindings are applied. Each of the bindings + # must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -2312,23 +2332,29 @@ module Google # perform policy updates in order to avoid race conditions: An etag is returned # in the response to getIamPolicy, and systems are expected to put that etag in # the request to setIamPolicy to ensure that their change will be applied to the - # same version of the policy.If no etag is provided in the call to setIamPolicy, - # then the existing policy is overwritten. Due to blind-set semantics of an etag- - # less policy, 'setIamPolicy' will not fail even if the incoming policy version - # does not meet the requirements for modifying the stored policy. + # same version of the policy.Important: If you use IAM Conditions, you must + # include the etag field whenever you call setIamPolicy. If you omit this field, + # then IAM allows you to overwrite a version 3 policy with a version 1 policy, + # and all of the conditions in the version 3 policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests - # specifying an invalid value will be rejected.Operations affecting conditional - # bindings must specify version 3. This can be either setting a conditional - # policy, modifying a conditional binding, or removing a binding (conditional or - # unconditional) from the stored conditional policy. Operations on non- - # conditional policies may specify any valid value or leave the field unset.If - # no etag is provided in the call to setIamPolicy, version compliance checks - # against the stored policy is skipped. + # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that + # specify an invalid value are rejected.Any operation that affects conditional + # role bindings must specify version 3. This requirement applies to the + # following operations: + # Getting a policy that includes a conditional role binding + # Adding a conditional role binding to a policy + # Changing a conditional role binding in a policy + # Removing any role binding, with or without a condition, from a policy that + # includes conditionsImportant: If you use IAM Conditions, you must include the + # etag field whenever you call setIamPolicy. If you omit this field, then IAM + # allows you to overwrite a version 3 policy with a version 1 policy, and all of + # the conditions in the version 3 policy are lost.If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2584,14 +2610,15 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy is a collection - # of bindings. A binding binds one or more members to a single role. Members can - # be user accounts, service accounts, Google groups, and domains (such as G - # Suite). A role is a named list of permissions (defined by IAM or configured by - # users). A binding can optionally specify a condition, which is a logic - # expression that further constrains the role binding based on attributes about - # the request and/or target resource.JSON Example + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources.A Policy is a collection of bindings. A + # binding binds one or more members to a single role. Members can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # role is a named list of permissions; each role can be an IAM predefined role + # or a user-created custom role.Optionally, a binding can specify a condition, + # which is a logical expression that allows access to a resource only if the + # expression evaluates to true. A condition can add constraints based on + # attributes of the request, the resource, or both.JSON example: # ` # "bindings": [ # ` @@ -2609,13 +2636,14 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # YAML Example + # YAML example: # bindings: # - members: # - user:mike@example.com @@ -2630,8 +2658,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # For a description of IAM and its features, see the IAM developer's guide ( - # https://cloud.google.com/iam/docs). + # - etag: BwWWja0YfJA= + # - version: 3 + # For a description of IAM and its features, see the IAM documentation (https:// + # cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DataprocV1beta2::Policy] attr_accessor :policy diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 61eb3dcca..7d949768b 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 = '20191115' + REVISION = '20191213' # 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 70c63f5bf..44182e7d3 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -225,6 +225,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -481,16 +498,10 @@ module Google end end - # The request to lint a Cloud IAM policy object. LintPolicy is currently - # functional only for `lint_object` of type `condition`. + # The request to lint a Cloud IAM policy object. class LintPolicyRequest include Google::Apis::Core::Hashable - # Associates `members` with a `role`. - # Corresponds to the JSON property `binding` - # @return [Google::Apis::IamV1::Binding] - attr_accessor :binding - # Represents an expression text. Example: # title: "User account presence" # description: "Determines whether the request has a user account" @@ -499,13 +510,6 @@ module Google # @return [Google::Apis::IamV1::Expr] attr_accessor :condition - # `context` contains additional *permission-controlled* data that any - # lint unit may depend on, in form of ``key: value`` pairs. Currently, this - # field is non-operational and it will not be used during the lint operation. - # Corresponds to the JSON property `context` - # @return [Hash] - attr_accessor :context - # The full resource name of the policy this lint request is about. # The name follows the Google Cloud Platform (GCP) resource format. # For example, a GCP project with ID `my-project` will be named @@ -517,71 +521,14 @@ module Google # @return [String] attr_accessor :full_resource_name - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": ["user:eve@example.com"], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", - # ` - # ` - # ] - # ` - # **YAML Example** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::IamV1::Policy] - attr_accessor :policy - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @binding = args[:binding] if args.key?(:binding) @condition = args[:condition] if args.key?(:condition) - @context = args[:context] if args.key?(:context) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) - @policy = args[:policy] if args.key?(:policy) end end @@ -590,14 +537,7 @@ module Google class LintPolicyResponse include Google::Apis::Core::Hashable - # List of lint results sorted by a composite key, - # descending order of severity and ascending order of binding_ordinal. - # There is no certain order among the same keys. - # For cross-binding results (only if the input object to lint is - # instance of google.iam.v1.Policy), there will be a - # google.iam.admin.v1.LintResult for each of the involved bindings, - # and the associated debug_message may enumerate the other involved - # binding ordinal number(s). + # List of lint results sorted by `severity` in descending order. # Corresponds to the JSON property `lintResults` # @return [Array] attr_accessor :lint_results @@ -616,31 +556,17 @@ module Google class LintResult include Google::Apis::Core::Hashable - # 0-based index ordinality of the binding in the input object associated - # with this result. - # This field is populated only if the input object to lint is of type - # google.iam.v1.Policy, which can comprise more than one binding. - # It is set to -1 if the result is not associated with any particular - # binding and only targets the policy as a whole, such as results about - # policy size violations. - # Corresponds to the JSON property `bindingOrdinal` - # @return [Fixnum] - attr_accessor :binding_ordinal - # Human readable debug message associated with the issue. # Corresponds to the JSON property `debugMessage` # @return [String] attr_accessor :debug_message # The name of the field for which this lint result is about. - # For nested messages, `field_name` consists of names of the embedded fields + # For nested messages `field_name` consists of names of the embedded fields # separated by period character. The top-level qualifier is the input object - # to lint in the request. For instance, if the lint request is on a - # google.iam.v1.Policy and this lint result is about a condition - # expression of one of the input policy bindings, the field would be - # populated as `policy.bindings.condition.expression`. - # This field does not identify the ordinality of the repetitive fields (for - # instance bindings in a policy). + # to lint in the request. For example, the `field_name` value + # `condition.expression` identifies a lint result for the `expression` field + # of the provided condition. # Corresponds to the JSON property `fieldName` # @return [String] attr_accessor :field_name @@ -674,7 +600,6 @@ module Google # Update properties of this object def update!(**args) - @binding_ordinal = args[:binding_ordinal] if args.key?(:binding_ordinal) @debug_message = args[:debug_message] if args.key?(:debug_message) @field_name = args[:field_name] if args.key?(:field_name) @level = args[:level] if args.key?(:level) @@ -884,16 +809,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -911,13 +838,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -932,8 +861,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -942,9 +873,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -956,26 +887,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1441,16 +1377,18 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -1468,13 +1406,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -1489,8 +1429,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::IamV1::Policy] attr_accessor :policy @@ -1519,7 +1461,7 @@ module Google class SignBlobRequest include Google::Apis::Core::Hashable - # The bytes to sign. + # Required. The bytes to sign. # Corresponds to the JSON property `bytesToSign` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1565,7 +1507,7 @@ module Google class SignJwtRequest include Google::Apis::Core::Hashable - # The JWT payload to sign, a JSON JWT Claim set. + # Required. The JWT payload to sign, a JSON JWT Claim set. # Corresponds to the JSON property `payload` # @return [String] attr_accessor :payload diff --git a/generated/google/apis/iam_v1/representations.rb b/generated/google/apis/iam_v1/representations.rb index 6f3f3f97b..e870eb06a 100644 --- a/generated/google/apis/iam_v1/representations.rb +++ b/generated/google/apis/iam_v1/representations.rb @@ -410,14 +410,9 @@ module Google class LintPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :binding, as: 'binding', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation - property :condition, as: 'condition', class: Google::Apis::IamV1::Expr, decorator: Google::Apis::IamV1::Expr::Representation - hash :context, as: 'context' property :full_resource_name, as: 'fullResourceName' - property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation - end end @@ -432,7 +427,6 @@ module Google class LintResult # @private class Representation < Google::Apis::Core::JsonRepresentation - property :binding_ordinal, as: 'bindingOrdinal' property :debug_message, as: 'debugMessage' property :field_name, as: 'fieldName' property :level, as: 'level' diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index 40f67f81b..c1e160046 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -50,21 +50,11 @@ module Google end # Lints a Cloud IAM policy object or its sub fields. Currently supports - # google.iam.v1.Policy, google.iam.v1.Binding and # google.iam.v1.Binding.condition. # Each lint operation consists of multiple lint validation units. - # Validation units have the following properties: - # - Each unit inspects the input object in regard to a particular - # linting aspect and issues a google.iam.admin.v1.LintResult - # disclosing the result. - # - Domain of discourse of each unit can be either - # google.iam.v1.Policy, google.iam.v1.Binding, or - # google.iam.v1.Binding.condition depending on the purpose of the - # validation. - # - A unit may require additional data (like the list of all possible - # enumerable values of a particular attribute used in the policy instance) - # which shall be provided by the caller. Refer to the comments of - # google.iam.admin.v1.LintPolicyRequest.context for more details. + # Each unit inspects the input object in regard to a particular linting + # aspect and issues a google.iam.admin.v1.LintResult disclosing the + # result. # The set of applicable validation units is determined by the Cloud IAM # server and is not configurable. # Regardless of any lint issues or their severities, successful calls to @@ -867,7 +857,7 @@ module Google # Deletes a ServiceAccount. # @param [String] name - # The resource name of the service account in the following format: + # Required. The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -995,7 +985,7 @@ module Google # Gets a ServiceAccount. # @param [String] name - # The resource name of the service account in the following format: + # Required. The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -1218,7 +1208,7 @@ module Google # method of the Cloud IAM Service Account Credentials API instead. # Signs a blob using a service account's system-managed private key. # @param [String] name - # The resource name of the service account in the following format: + # Required. The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -1262,7 +1252,7 @@ module Google # an expiry time of one hour by default. If you request an expiry time of # more than one hour, the request will fail. # @param [String] name - # The resource name of the service account in the following format: + # Required. The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -1416,7 +1406,7 @@ module Google # Creates a ServiceAccountKey # and returns it. # @param [String] name - # The resource name of the service account in the following format: + # Required. The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -1453,7 +1443,7 @@ module Google # Deletes a ServiceAccountKey. # @param [String] name - # The resource name of the service account key in the following format: + # Required. The resource name of the service account key in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -1488,7 +1478,7 @@ module Google # Gets the ServiceAccountKey # by key id. # @param [String] name - # The resource name of the service account key in the following format: + # Required. The resource name of the service account key in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the @@ -1526,7 +1516,7 @@ module Google # Lists ServiceAccountKeys. # @param [String] name - # The resource name of the service account in the following format: + # Required. The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from # the account. The `ACCOUNT` value can be the `email` address or the diff --git a/generated/google/apis/language_v1beta2.rb b/generated/google/apis/language_v1beta2.rb index c0e689113..1915ba10c 100644 --- a/generated/google/apis/language_v1beta2.rb +++ b/generated/google/apis/language_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta2 VERSION = 'V1beta2' - REVISION = '20190704' + REVISION = '20191214' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta2/classes.rb b/generated/google/apis/language_v1beta2/classes.rb index d552879c5..362008317 100644 --- a/generated/google/apis/language_v1beta2/classes.rb +++ b/generated/google/apis/language_v1beta2/classes.rb @@ -442,6 +442,13 @@ module Google class Document include Google::Apis::Core::Hashable + # Indicates how detected boilerplate(e.g. advertisements, copyright + # declarations, banners) should be handled for this document. If not + # specified, boilerplate will be treated the same as content. + # Corresponds to the JSON property `boilerplateHandling` + # @return [String] + attr_accessor :boilerplate_handling + # The content of the input in string format. # Cloud audit logging exempt since it is based on user data. # Corresponds to the JSON property `content` @@ -468,6 +475,12 @@ module Google # @return [String] attr_accessor :language + # The web URI where the document comes from. This URI is not used for + # fetching the content, but as a hint for analyzing the document. + # Corresponds to the JSON property `referenceWebUri` + # @return [String] + attr_accessor :reference_web_uri + # Required. If the type is not set or is `TYPE_UNSPECIFIED`, # returns an `INVALID_ARGUMENT` error. # Corresponds to the JSON property `type` @@ -480,9 +493,11 @@ module Google # Update properties of this object def update!(**args) + @boilerplate_handling = args[:boilerplate_handling] if args.key?(:boilerplate_handling) @content = args[:content] if args.key?(:content) @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) @language = args[:language] if args.key?(:language) + @reference_web_uri = args[:reference_web_uri] if args.key?(:reference_web_uri) @type = args[:type] if args.key?(:type) end end diff --git a/generated/google/apis/language_v1beta2/representations.rb b/generated/google/apis/language_v1beta2/representations.rb index 4efcb445d..aad3a7a42 100644 --- a/generated/google/apis/language_v1beta2/representations.rb +++ b/generated/google/apis/language_v1beta2/representations.rb @@ -305,9 +305,11 @@ module Google class Document # @private class Representation < Google::Apis::Core::JsonRepresentation + property :boilerplate_handling, as: 'boilerplateHandling' property :content, as: 'content' property :gcs_content_uri, as: 'gcsContentUri' property :language, as: 'language' + property :reference_web_uri, as: 'referenceWebUri' property :type, as: 'type' end end diff --git a/generated/google/apis/recommender_v1beta1.rb b/generated/google/apis/recommender_v1beta1.rb index d19c1d4cf..9f967c34b 100644 --- a/generated/google/apis/recommender_v1beta1.rb +++ b/generated/google/apis/recommender_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/recommender/docs/ module RecommenderV1beta1 VERSION = 'V1beta1' - REVISION = '20191118' + REVISION = '20191216' # 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/recommender_v1beta1/classes.rb b/generated/google/apis/recommender_v1beta1/classes.rb index 6f13b5afb..26c319768 100644 --- a/generated/google/apis/recommender_v1beta1/classes.rb +++ b/generated/google/apis/recommender_v1beta1/classes.rb @@ -109,6 +109,8 @@ module Google # State properties to include with this state. Overwrites any existing # `state_metadata`. + # Keys must match the regex /^a-z0-9`0,62`$/. + # Values must match the regex /^[a-zA-Z0-9_./-]`0,255`$/. # Corresponds to the JSON property `stateMetadata` # @return [Hash] attr_accessor :state_metadata @@ -135,6 +137,8 @@ module Google # State properties to include with this state. Overwrites any existing # `state_metadata`. + # Keys must match the regex /^a-z0-9`0,62`$/. + # Values must match the regex /^[a-zA-Z0-9_./-]`0,255`$/. # Corresponds to the JSON property `stateMetadata` # @return [Hash] attr_accessor :state_metadata @@ -161,6 +165,8 @@ module Google # State properties to include with this state. Overwrites any existing # `state_metadata`. + # Keys must match the regex /^a-z0-9`0,62`$/. + # Values must match the regex /^[a-zA-Z0-9_./-]`0,255`$/. # Corresponds to the JSON property `stateMetadata` # @return [Hash] attr_accessor :state_metadata diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index b1331e72f..b45b99bea 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20191115' + REVISION = '20191213' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index 795f149cc..fabb3ebe7 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -3587,6 +3587,133 @@ module Google end end + # A color value. + class ColorStyle + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. + # Note: this proto does not carry information about the absolute color space + # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, + # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color + # space. + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `rgbColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :rgb_color + + # Theme color. + # Corresponds to the JSON property `themeColor` + # @return [String] + attr_accessor :theme_color + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rgb_color = args[:rgb_color] if args.key?(:rgb_color) + @theme_color = args[:theme_color] if args.key?(:theme_color) + end + end + # The value of the condition. class ConditionValue include Google::Apis::Core::Hashable @@ -8017,7 +8144,7 @@ module Google # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest] attr_accessor :update_sheet_properties - # Updates a slicer’s specifications. + # Updates a slicer's specifications. # (This does not move or resize a slicer. To move or resize a slicer use # UpdateEmbeddedObjectPositionRequest. # Corresponds to the JSON property `updateSlicerSpec` @@ -9345,6 +9472,11 @@ module Google # @return [String] attr_accessor :locale + # Represents spreadsheet theme + # Corresponds to the JSON property `spreadsheetTheme` + # @return [Google::Apis::SheetsV4::SpreadsheetTheme] + attr_accessor :spreadsheet_theme + # The time zone of the spreadsheet, in CLDR format such as # `America/New_York`. If the time zone isn't recognized, this may # be a custom time zone such as `GMT-07:00`. @@ -9367,11 +9499,38 @@ module Google @default_format = args[:default_format] if args.key?(:default_format) @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings) @locale = args[:locale] if args.key?(:locale) + @spreadsheet_theme = args[:spreadsheet_theme] if args.key?(:spreadsheet_theme) @time_zone = args[:time_zone] if args.key?(:time_zone) @title = args[:title] if args.key?(:title) end end + # Represents spreadsheet theme + class SpreadsheetTheme + include Google::Apis::Core::Hashable + + # / Name of the primary font family. + # Corresponds to the JSON property `primaryFontFamily` + # @return [String] + attr_accessor :primary_font_family + + # The spreadsheet theme color pairs. For update users need to give all pairs + # of theme colors. + # Corresponds to the JSON property `themeColors` + # @return [Array] + attr_accessor :theme_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @primary_font_family = args[:primary_font_family] if args.key?(:primary_font_family) + @theme_colors = args[:theme_colors] if args.key?(:theme_colors) + end + end + # The format of a run of text in a cell. # Absent values indicate that the field isn't specified. class TextFormat @@ -9676,6 +9835,32 @@ module Google end end + # A pair mapping a spreadsheet theme color type to the concrete color it + # represents. + class ThemeColorPair + include Google::Apis::Core::Hashable + + # A color value. + # Corresponds to the JSON property `color` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :color + + # The type of the spreadsheet theme color. + # Corresponds to the JSON property `colorType` + # @return [String] + attr_accessor :color_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @color = args[:color] if args.key?(:color) + @color_type = args[:color_type] if args.key?(:color_type) + end + end + # A color scale for a treemap chart. class TreemapChartColorScale include Google::Apis::Core::Hashable @@ -10999,7 +11184,7 @@ module Google end end - # Updates a slicer’s specifications. + # Updates a slicer's specifications. # (This does not move or resize a slicer. To move or resize a slicer use # UpdateEmbeddedObjectPositionRequest. class UpdateSlicerSpecRequest diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index a84dc7324..18fd8a94b 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -400,6 +400,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ColorStyle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ConditionValue class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1006,6 +1012,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SpreadsheetTheme + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TextFormat class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1036,6 +1048,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ThemeColorPair + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TreemapChartColorScale class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1909,6 +1927,15 @@ module Google end end + class ColorStyle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rgb_color, as: 'rgbColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :theme_color, as: 'themeColor' + end + end + class ConditionValue # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3124,11 +3151,22 @@ module Google property :iterative_calculation_settings, as: 'iterativeCalculationSettings', class: Google::Apis::SheetsV4::IterativeCalculationSettings, decorator: Google::Apis::SheetsV4::IterativeCalculationSettings::Representation property :locale, as: 'locale' + property :spreadsheet_theme, as: 'spreadsheetTheme', class: Google::Apis::SheetsV4::SpreadsheetTheme, decorator: Google::Apis::SheetsV4::SpreadsheetTheme::Representation + property :time_zone, as: 'timeZone' property :title, as: 'title' end end + class SpreadsheetTheme + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :primary_font_family, as: 'primaryFontFamily' + collection :theme_colors, as: 'themeColors', class: Google::Apis::SheetsV4::ThemeColorPair, decorator: Google::Apis::SheetsV4::ThemeColorPair::Representation + + end + end + class TextFormat # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3177,6 +3215,15 @@ module Google end end + class ThemeColorPair + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + + property :color_type, as: 'colorType' + end + end + class TreemapChartColorScale # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 2a9523203..6970e8494 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20191105' + REVISION = '20191213' # 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/vision_v1/service.rb b/generated/google/apis/vision_v1/service.rb index 317671483..889418802 100644 --- a/generated/google/apis/vision_v1/service.rb +++ b/generated/google/apis/vision_v1/service.rb @@ -877,7 +877,7 @@ module Google # @param [String] name # Required. Resource name of the ProductSet to get. # Format is: - # `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` + # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user