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
This commit is contained in:
Google APIs 2019-12-18 00:37:51 +00:00
parent 10b70fa899
commit 08a9ac6bef
31 changed files with 887 additions and 269 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management # @see https://developers.google.com/android/management
module AndroidmanagementV1 module AndroidmanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20191207' REVISION = '20191214'
# Manage Android devices and apps for your customers # Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -22,6 +22,28 @@ module Google
module Apis module Apis
module AndroidmanagementV1 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. # Configuration for an always-on VPN connection.
class AlwaysOnVpnPackage class AlwaysOnVpnPackage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -586,6 +608,47 @@ module Google
end end
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- # A device owned by an enterprise. Unless otherwise noted, all fields are read-
# only and can't be modified by enterprises.devices.patch. # only and can't be modified by enterprises.devices.patch.
class Device class Device
@ -1152,6 +1215,53 @@ module Google
end end
end end
# A system freeze period. When a devices clock is within the freeze period, all
# incoming system updates (including security patches) are blocked and wont 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 devices system clock
# reads Feb. 29th, its 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 # Information about device hardware. The fields related to temperature
# thresholds are only available if hardwareStatusEnabled is true in the device's # thresholds are only available if hardwareStatusEnabled is true in the device's
# policy. # policy.
@ -1367,6 +1477,49 @@ module Google
end end
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. # An action to launch an app.
class LaunchAppAction class LaunchAppAction
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1945,6 +2098,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :password_scope 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) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1963,6 +2125,7 @@ module Google
@password_minimum_upper_case = args[:password_minimum_upper_case] if args.key?(:password_minimum_upper_case) @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_quality = args[:password_quality] if args.key?(:password_quality)
@password_scope = args[:password_scope] if args.key?(:password_scope) @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
end end
@ -2056,6 +2219,13 @@ module Google
attr_accessor :adjust_volume_disabled attr_accessor :adjust_volume_disabled
alias_method :adjust_volume_disabled?, :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. # Configuration for an always-on VPN connection.
# Corresponds to the JSON property `alwaysOnVpnPackage` # Corresponds to the JSON property `alwaysOnVpnPackage`
# @return [Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage] # @return [Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage]
@ -2243,6 +2413,13 @@ module Google
attr_accessor :kiosk_custom_launcher_enabled attr_accessor :kiosk_custom_launcher_enabled
alias_method :kiosk_custom_launcher_enabled?, :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 degree of location detection enabled. The user may change the value unless
# the user is otherwise blocked from accessing device settings. # the user is otherwise blocked from accessing device settings.
# Corresponds to the JSON property `locationMode` # 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) @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) @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) @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) @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) @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) @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 = args[:keyguard_disabled] if args.key?(:keyguard_disabled)
@keyguard_disabled_features = args[:keyguard_disabled_features] if args.key?(:keyguard_disabled_features) @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_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) @location_mode = args[:location_mode] if args.key?(:location_mode)
@long_support_message = args[:long_support_message] if args.key?(:long_support_message) @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) @maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock)
@ -3085,6 +3264,14 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :end_minutes 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<Google::Apis::AndroidmanagementV1::FreezePeriod>]
attr_accessor :freeze_periods
# If the type is WINDOWED, the start of the maintenance window, measured as the # 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 # number of minutes after midnight in the device's local time. This value must
# be between 0 and 1439, inclusive. # be between 0 and 1439, inclusive.
@ -3104,6 +3291,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@end_minutes = args[:end_minutes] if args.key?(:end_minutes) @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) @start_minutes = args[:start_minutes] if args.key?(:start_minutes)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
end end

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module AndroidmanagementV1 module AndroidmanagementV1
class AdvancedSecurityOverrides
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AlwaysOnVpnPackage class AlwaysOnVpnPackage
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -100,6 +106,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device class Device
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,6 +154,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FreezePeriod
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HardwareInfo class HardwareInfo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class KioskCustomization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LaunchAppAction class LaunchAppAction
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -388,6 +412,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AdvancedSecurityOverrides
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :untrusted_apps_policy, as: 'untrustedAppsPolicy'
end
end
class AlwaysOnVpnPackage class AlwaysOnVpnPackage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -528,6 +559,15 @@ module Google
end end
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 class Device
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -654,6 +694,16 @@ module Google
end end
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 class HardwareInfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -699,6 +749,16 @@ module Google
end end
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 class LaunchAppAction
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -855,6 +915,7 @@ module Google
property :password_minimum_upper_case, as: 'passwordMinimumUpperCase' property :password_minimum_upper_case, as: 'passwordMinimumUpperCase'
property :password_quality, as: 'passwordQuality' property :password_quality, as: 'passwordQuality'
property :password_scope, as: 'passwordScope' property :password_scope, as: 'passwordScope'
property :require_password_unlock, as: 'requirePasswordUnlock'
end end
end end
@ -881,6 +942,8 @@ module Google
collection :account_types_with_management_disabled, as: 'accountTypesWithManagementDisabled' collection :account_types_with_management_disabled, as: 'accountTypesWithManagementDisabled'
property :add_user_disabled, as: 'addUserDisabled' property :add_user_disabled, as: 'addUserDisabled'
property :adjust_volume_disabled, as: 'adjustVolumeDisabled' 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 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' collection :android_device_policy_tracks, as: 'androidDevicePolicyTracks'
@ -915,6 +978,8 @@ module Google
property :keyguard_disabled, as: 'keyguardDisabled' property :keyguard_disabled, as: 'keyguardDisabled'
collection :keyguard_disabled_features, as: 'keyguardDisabledFeatures' collection :keyguard_disabled_features, as: 'keyguardDisabledFeatures'
property :kiosk_custom_launcher_enabled, as: 'kioskCustomLauncherEnabled' 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 :location_mode, as: 'locationMode'
property :long_support_message, as: 'longSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation property :long_support_message, as: 'longSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
@ -1100,6 +1165,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_minutes, as: 'endMinutes' 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 :start_minutes, as: 'startMinutes'
property :type, as: 'type' property :type, as: 'type'
end end

View File

@ -196,6 +196,10 @@ module Google
# deviceId`. # deviceId`.
# @param [Array<String>, String] wipe_data_flags # @param [Array<String>, String] wipe_data_flags
# Optional flags that control the device wiping behavior. # 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 # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @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::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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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 = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Empty command.response_class = Google::Apis::AndroidmanagementV1::Empty
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['wipeDataFlags'] = wipe_data_flags unless wipe_data_flags.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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryreservationV1alpha2 module BigqueryreservationV1alpha2
VERSION = 'V1alpha2' VERSION = 'V1alpha2'
REVISION = '20191029' REVISION = '20191211'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -306,6 +306,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :reservation attr_accessor :reservation
# Output only. State of the ReservationGrant.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -316,6 +321,7 @@ module Google
@job_type = args[:job_type] if args.key?(:job_type) @job_type = args[:job_type] if args.key?(:job_type)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@reservation = args[:reservation] if args.key?(:reservation) @reservation = args[:reservation] if args.key?(:reservation)
@state = args[:state] if args.key?(:state)
end end
end end

View File

@ -169,6 +169,7 @@ module Google
property :job_type, as: 'jobType' property :job_type, as: 'jobType'
property :name, as: 'name' property :name, as: 'name'
property :reservation, as: 'reservation' property :reservation, as: 'reservation'
property :state, as: 'state'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryreservationV1beta1 module BigqueryreservationV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20191203' REVISION = '20191211'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -44,6 +44,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Output only. State of the assignment.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -53,6 +58,7 @@ module Google
@assignee = args[:assignee] if args.key?(:assignee) @assignee = args[:assignee] if args.key?(:assignee)
@job_type = args[:job_type] if args.key?(:job_type) @job_type = args[:job_type] if args.key?(:job_type)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@state = args[:state] if args.key?(:state)
end end
end end

View File

@ -112,6 +112,7 @@ module Google
property :assignee, as: 'assignee' property :assignee, as: 'assignee'
property :job_type, as: 'jobType' property :job_type, as: 'jobType'
property :name, as: 'name' property :name, as: 'name'
property :state, as: 'state'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow # @see https://cloud.google.com/dataflow
module DataflowV1b3 module DataflowV1b3
VERSION = 'V1b3' VERSION = 'V1b3'
REVISION = '20190927' REVISION = '20191204'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1483,6 +1483,11 @@ module Google
# @return [Google::Apis::DataflowV1b3::TemplateMetadata] # @return [Google::Apis::DataflowV1b3::TemplateMetadata]
attr_accessor :metadata 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 # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # used by [gRPC](https://github.com/grpc). Each `Status` message contains
@ -1493,6 +1498,11 @@ module Google
# @return [Google::Apis::DataflowV1b3::Status] # @return [Google::Apis::DataflowV1b3::Status]
attr_accessor :status attr_accessor :status
# Template Type.
# Corresponds to the JSON property `templateType`
# @return [String]
attr_accessor :template_type
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1500,7 +1510,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@metadata = args[:metadata] if args.key?(:metadata) @metadata = args[:metadata] if args.key?(:metadata)
@runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@template_type = args[:template_type] if args.key?(:template_type)
end end
end end
@ -2895,6 +2907,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :name 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. # Optional. Regexes that the parameter must match.
# Corresponds to the JSON property `regexes` # Corresponds to the JSON property `regexes`
# @return [Array<String>] # @return [Array<String>]
@ -2910,6 +2928,7 @@ module Google
@is_optional = args[:is_optional] if args.key?(:is_optional) @is_optional = args[:is_optional] if args.key?(:is_optional)
@label = args[:label] if args.key?(:label) @label = args[:label] if args.key?(:label)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@param_type = args[:param_type] if args.key?(:param_type)
@regexes = args[:regexes] if args.key?(:regexes) @regexes = args[:regexes] if args.key?(:regexes)
end end
end end
@ -3436,6 +3455,56 @@ module Google
end end
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<Google::Apis::DataflowV1b3::ParameterMetadata>]
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. # The version of the SDK used to run the job.
class SdkVersion class SdkVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -508,6 +508,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end 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 SdkVersion
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1246,8 +1258,11 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::TemplateMetadata, decorator: Google::Apis::DataflowV1b3::TemplateMetadata::Representation 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 :status, as: 'status', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation
property :template_type, as: 'templateType'
end end
end end
@ -1615,6 +1630,7 @@ module Google
property :is_optional, as: 'isOptional' property :is_optional, as: 'isOptional'
property :label, as: 'label' property :label, as: 'label'
property :name, as: 'name' property :name, as: 'name'
property :param_type, as: 'paramType'
collection :regexes, as: 'regexes' collection :regexes, as: 'regexes'
end end
end end
@ -1751,6 +1767,24 @@ module Google
end end
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 class SdkVersion
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1 module DataprocV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20191120' REVISION = '20191210'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -247,6 +247,22 @@ module Google
# For example, my-other-app@appspot.gserviceaccount.com. # For example, my-other-app@appspot.gserviceaccount.com.
# group:`emailid`: An email address that represents a Google group. For example, # group:`emailid`: An email address that represents a Google group. For example,
# admins@example.com. # 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 # domain:`domain`: The G Suite domain (primary) that represents all the users
# of that domain. For example, google.com or example.com. # of that domain. For example, google.com or example.com.
# Corresponds to the JSON property `members` # Corresponds to the JSON property `members`
@ -2190,14 +2206,15 @@ module Google
end end
end end
# Defines an Identity and Access Management (IAM) policy. It is used to specify # An Identity and Access Management (IAM) policy, which specifies access
# access control policies for Cloud Platform resources.A Policy is a collection # controls for Google Cloud resources.A Policy is a collection of bindings. A
# of bindings. A binding binds one or more members to a single role. Members can # binding binds one or more members to a single role. Members can be user
# be user accounts, service accounts, Google groups, and domains (such as G # accounts, service accounts, Google groups, and domains (such as G Suite). A
# Suite). A role is a named list of permissions (defined by IAM or configured by # role is a named list of permissions; each role can be an IAM predefined role
# users). A binding can optionally specify a condition, which is a logic # or a user-created custom role.Optionally, a binding can specify a condition,
# expression that further constrains the role binding based on attributes about # which is a logical expression that allows access to a resource only if the
# the request and/or target resource.JSON Example # expression evaluates to true. A condition can add constraints based on
# attributes of the request, the resource, or both.JSON example:
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -2215,13 +2232,14 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
# timestamp('2020-10-01T00:00:00.000Z')",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# YAML Example # YAML example:
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -2236,14 +2254,16 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # 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')
# For a description of IAM and its features, see the IAM developer's guide ( # - etag: BwWWja0YfJA=
# https://cloud.google.com/iam/docs). # - version: 3
# For a description of IAM and its features, see the IAM documentation (https://
# cloud.google.com/iam/docs/).
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Associates a list of members to a role. Optionally may specify a condition # 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 # that determines how and when the bindings are applied. Each of the bindings
# result in an error. # must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::DataprocV1::Binding>] # @return [Array<Google::Apis::DataprocV1::Binding>]
attr_accessor :bindings attr_accessor :bindings
@ -2254,23 +2274,29 @@ module Google
# perform policy updates in order to avoid race conditions: An etag is returned # 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 # 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 # 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, # same version of the policy.Important: If you use IAM Conditions, you must
# then the existing policy is overwritten. Due to blind-set semantics of an etag- # include the etag field whenever you call setIamPolicy. If you omit this field,
# less policy, 'setIamPolicy' will not fail even if the incoming policy version # then IAM allows you to overwrite a version 3 policy with a version 1 policy,
# does not meet the requirements for modifying the stored policy. # and all of the conditions in the version 3 policy are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy.Valid values are 0, 1, and 3. Requests # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that
# specifying an invalid value will be rejected.Operations affecting conditional # specify an invalid value are rejected.Any operation that affects conditional
# bindings must specify version 3. This can be either setting a conditional # role bindings must specify version 3. This requirement applies to the
# policy, modifying a conditional binding, or removing a binding (conditional or # following operations:
# unconditional) from the stored conditional policy. Operations on non- # Getting a policy that includes a conditional role binding
# conditional policies may specify any valid value or leave the field unset.If # Adding a conditional role binding to a policy
# no etag is provided in the call to setIamPolicy, version compliance checks # Changing a conditional role binding in a policy
# against the stored policy is skipped. # 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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -2465,14 +2491,15 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to specify # An Identity and Access Management (IAM) policy, which specifies access
# access control policies for Cloud Platform resources.A Policy is a collection # controls for Google Cloud resources.A Policy is a collection of bindings. A
# of bindings. A binding binds one or more members to a single role. Members can # binding binds one or more members to a single role. Members can be user
# be user accounts, service accounts, Google groups, and domains (such as G # accounts, service accounts, Google groups, and domains (such as G Suite). A
# Suite). A role is a named list of permissions (defined by IAM or configured by # role is a named list of permissions; each role can be an IAM predefined role
# users). A binding can optionally specify a condition, which is a logic # or a user-created custom role.Optionally, a binding can specify a condition,
# expression that further constrains the role binding based on attributes about # which is a logical expression that allows access to a resource only if the
# the request and/or target resource.JSON Example # expression evaluates to true. A condition can add constraints based on
# attributes of the request, the resource, or both.JSON example:
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -2490,13 +2517,14 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
# timestamp('2020-10-01T00:00:00.000Z')",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# YAML Example # YAML example:
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -2511,8 +2539,10 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # 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')
# For a description of IAM and its features, see the IAM developer's guide ( # - etag: BwWWja0YfJA=
# https://cloud.google.com/iam/docs). # - 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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::DataprocV1::Policy] # @return [Google::Apis::DataprocV1::Policy]
attr_accessor :policy attr_accessor :policy

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1beta2 module DataprocV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20191120' REVISION = '20191210'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -246,6 +246,22 @@ module Google
# For example, my-other-app@appspot.gserviceaccount.com. # For example, my-other-app@appspot.gserviceaccount.com.
# group:`emailid`: An email address that represents a Google group. For example, # group:`emailid`: An email address that represents a Google group. For example,
# admins@example.com. # 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 # domain:`domain`: The G Suite domain (primary) that represents all the users
# of that domain. For example, google.com or example.com. # of that domain. For example, google.com or example.com.
# Corresponds to the JSON property `members` # Corresponds to the JSON property `members`
@ -2248,14 +2264,15 @@ module Google
end end
end end
# Defines an Identity and Access Management (IAM) policy. It is used to specify # An Identity and Access Management (IAM) policy, which specifies access
# access control policies for Cloud Platform resources.A Policy is a collection # controls for Google Cloud resources.A Policy is a collection of bindings. A
# of bindings. A binding binds one or more members to a single role. Members can # binding binds one or more members to a single role. Members can be user
# be user accounts, service accounts, Google groups, and domains (such as G # accounts, service accounts, Google groups, and domains (such as G Suite). A
# Suite). A role is a named list of permissions (defined by IAM or configured by # role is a named list of permissions; each role can be an IAM predefined role
# users). A binding can optionally specify a condition, which is a logic # or a user-created custom role.Optionally, a binding can specify a condition,
# expression that further constrains the role binding based on attributes about # which is a logical expression that allows access to a resource only if the
# the request and/or target resource.JSON Example # expression evaluates to true. A condition can add constraints based on
# attributes of the request, the resource, or both.JSON example:
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -2273,13 +2290,14 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
# timestamp('2020-10-01T00:00:00.000Z')",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# YAML Example # YAML example:
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -2294,14 +2312,16 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # 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')
# For a description of IAM and its features, see the IAM developer's guide ( # - etag: BwWWja0YfJA=
# https://cloud.google.com/iam/docs). # - version: 3
# For a description of IAM and its features, see the IAM documentation (https://
# cloud.google.com/iam/docs/).
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Associates a list of members to a role. Optionally may specify a condition # 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 # that determines how and when the bindings are applied. Each of the bindings
# result in an error. # must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::DataprocV1beta2::Binding>] # @return [Array<Google::Apis::DataprocV1beta2::Binding>]
attr_accessor :bindings attr_accessor :bindings
@ -2312,23 +2332,29 @@ module Google
# perform policy updates in order to avoid race conditions: An etag is returned # 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 # 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 # 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, # same version of the policy.Important: If you use IAM Conditions, you must
# then the existing policy is overwritten. Due to blind-set semantics of an etag- # include the etag field whenever you call setIamPolicy. If you omit this field,
# less policy, 'setIamPolicy' will not fail even if the incoming policy version # then IAM allows you to overwrite a version 3 policy with a version 1 policy,
# does not meet the requirements for modifying the stored policy. # and all of the conditions in the version 3 policy are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy.Valid values are 0, 1, and 3. Requests # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that
# specifying an invalid value will be rejected.Operations affecting conditional # specify an invalid value are rejected.Any operation that affects conditional
# bindings must specify version 3. This can be either setting a conditional # role bindings must specify version 3. This requirement applies to the
# policy, modifying a conditional binding, or removing a binding (conditional or # following operations:
# unconditional) from the stored conditional policy. Operations on non- # Getting a policy that includes a conditional role binding
# conditional policies may specify any valid value or leave the field unset.If # Adding a conditional role binding to a policy
# no etag is provided in the call to setIamPolicy, version compliance checks # Changing a conditional role binding in a policy
# against the stored policy is skipped. # 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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -2584,14 +2610,15 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to specify # An Identity and Access Management (IAM) policy, which specifies access
# access control policies for Cloud Platform resources.A Policy is a collection # controls for Google Cloud resources.A Policy is a collection of bindings. A
# of bindings. A binding binds one or more members to a single role. Members can # binding binds one or more members to a single role. Members can be user
# be user accounts, service accounts, Google groups, and domains (such as G # accounts, service accounts, Google groups, and domains (such as G Suite). A
# Suite). A role is a named list of permissions (defined by IAM or configured by # role is a named list of permissions; each role can be an IAM predefined role
# users). A binding can optionally specify a condition, which is a logic # or a user-created custom role.Optionally, a binding can specify a condition,
# expression that further constrains the role binding based on attributes about # which is a logical expression that allows access to a resource only if the
# the request and/or target resource.JSON Example # expression evaluates to true. A condition can add constraints based on
# attributes of the request, the resource, or both.JSON example:
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -2609,13 +2636,14 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
# timestamp('2020-10-01T00:00:00.000Z')",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# YAML Example # YAML example:
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -2630,8 +2658,10 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # 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')
# For a description of IAM and its features, see the IAM developer's guide ( # - etag: BwWWja0YfJA=
# https://cloud.google.com/iam/docs). # - 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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::DataprocV1beta2::Policy] # @return [Google::Apis::DataprocV1beta2::Policy]
attr_accessor :policy attr_accessor :policy

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20191115' REVISION = '20191213'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -225,6 +225,23 @@ module Google
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group. # * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`. # 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 # * `domain:`domain``: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`. # users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members` # Corresponds to the JSON property `members`
@ -481,16 +498,10 @@ module Google
end end
end end
# The request to lint a Cloud IAM policy object. LintPolicy is currently # The request to lint a Cloud IAM policy object.
# functional only for `lint_object` of type `condition`.
class LintPolicyRequest class LintPolicyRequest
include Google::Apis::Core::Hashable 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: # Represents an expression text. Example:
# title: "User account presence" # title: "User account presence"
# description: "Determines whether the request has a user account" # description: "Determines whether the request has a user account"
@ -499,13 +510,6 @@ module Google
# @return [Google::Apis::IamV1::Expr] # @return [Google::Apis::IamV1::Expr]
attr_accessor :condition 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<String,Object>]
attr_accessor :context
# The full resource name of the policy this lint request is about. # The full resource name of the policy this lint request is about.
# The name follows the Google Cloud Platform (GCP) resource format. # The name follows the Google Cloud Platform (GCP) resource format.
# For example, a GCP project with ID `my-project` will be named # For example, a GCP project with ID `my-project` will be named
@ -517,71 +521,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :full_resource_name 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@binding = args[:binding] if args.key?(:binding)
@condition = args[:condition] if args.key?(:condition) @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) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
@policy = args[:policy] if args.key?(:policy)
end end
end end
@ -590,14 +537,7 @@ module Google
class LintPolicyResponse class LintPolicyResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of lint results sorted by a composite <severity, binding_ordinal> key, # List of lint results sorted by `severity` in descending order.
# 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).
# Corresponds to the JSON property `lintResults` # Corresponds to the JSON property `lintResults`
# @return [Array<Google::Apis::IamV1::LintResult>] # @return [Array<Google::Apis::IamV1::LintResult>]
attr_accessor :lint_results attr_accessor :lint_results
@ -616,31 +556,17 @@ module Google
class LintResult class LintResult
include Google::Apis::Core::Hashable 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. # Human readable debug message associated with the issue.
# Corresponds to the JSON property `debugMessage` # Corresponds to the JSON property `debugMessage`
# @return [String] # @return [String]
attr_accessor :debug_message attr_accessor :debug_message
# The name of the field for which this lint result is about. # 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 # 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 # to lint in the request. For example, the `field_name` value
# google.iam.v1.Policy and this lint result is about a condition # `condition.expression` identifies a lint result for the `expression` field
# expression of one of the input policy bindings, the field would be # of the provided condition.
# populated as `policy.bindings.condition.expression`.
# This field does not identify the ordinality of the repetitive fields (for
# instance bindings in a policy).
# Corresponds to the JSON property `fieldName` # Corresponds to the JSON property `fieldName`
# @return [String] # @return [String]
attr_accessor :field_name attr_accessor :field_name
@ -674,7 +600,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@binding_ordinal = args[:binding_ordinal] if args.key?(:binding_ordinal)
@debug_message = args[:debug_message] if args.key?(:debug_message) @debug_message = args[:debug_message] if args.key?(:debug_message)
@field_name = args[:field_name] if args.key?(:field_name) @field_name = args[:field_name] if args.key?(:field_name)
@level = args[:level] if args.key?(:level) @level = args[:level] if args.key?(:level)
@ -884,16 +809,18 @@ module Google
end end
end end
# Defines an Identity and Access Management (IAM) policy. It is used to # An Identity and Access Management (IAM) policy, which specifies access
# specify access control policies for Cloud Platform resources. # controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # 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, # `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 # 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 # permissions; each `role` can be an IAM predefined role or a user-created
# optionally specify a `condition`, which is a logic expression that further # custom role.
# constrains the role binding based on attributes about the request and/or # Optionally, a `binding` can specify a `condition`, which is a logical
# target resource. # expression that allows access to a resource only if the expression evaluates
# **JSON Example** # to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -911,13 +838,15 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# timestamp('2020-10-01T00:00:00.000Z')", # ",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# **YAML Example** # **YAML example:**
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -932,8 +861,10 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # 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
# For a description of IAM and its features, see the # 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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -942,9 +873,9 @@ module Google
# @return [Array<Google::Apis::IamV1::AuditConfig>] # @return [Array<Google::Apis::IamV1::AuditConfig>]
attr_accessor :audit_configs attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Optionally may specify a # Associates a list of `members` to a `role`. Optionally, may specify a
# `condition` that determines when binding is in effect. # `condition` that determines how and when the `bindings` are applied. Each
# `bindings` with no members will result in an error. # of the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::IamV1::Binding>] # @return [Array<Google::Apis::IamV1::Binding>]
attr_accessor :bindings attr_accessor :bindings
@ -956,26 +887,31 @@ module Google
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to # 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. # 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 # **Important:** If you use IAM Conditions, you must include the `etag` field
# policy is overwritten. Due to blind-set semantics of an etag-less policy, # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
# 'setIamPolicy' will not fail even if the incoming policy version does not # you to overwrite a version `3` policy with a version `1` policy, and all of
# meet the requirements for modifying the stored policy. # the conditions in the version `3` policy are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
# rejected. # are rejected.
# Operations affecting conditional bindings must specify version 3. This can # Any operation that affects conditional role bindings must specify version
# be either setting a conditional policy, modifying a conditional binding, # `3`. This requirement applies to the following operations:
# or removing a binding (conditional or unconditional) from the stored # * Getting a policy that includes a conditional role binding
# conditional policy. # * Adding a conditional role binding to a policy
# Operations on non-conditional policies may specify any valid value or # * Changing a conditional role binding in a policy
# leave the field unset. # * Removing any role binding, with or without a condition, from a policy
# If no etag is provided in the call to `setIamPolicy`, version compliance # that includes conditions
# checks against the stored policy is skipped. # **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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -1441,16 +1377,18 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to # An Identity and Access Management (IAM) policy, which specifies access
# specify access control policies for Cloud Platform resources. # controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # 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, # `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 # 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 # permissions; each `role` can be an IAM predefined role or a user-created
# optionally specify a `condition`, which is a logic expression that further # custom role.
# constrains the role binding based on attributes about the request and/or # Optionally, a `binding` can specify a `condition`, which is a logical
# target resource. # expression that allows access to a resource only if the expression evaluates
# **JSON Example** # to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -1468,13 +1406,15 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# timestamp('2020-10-01T00:00:00.000Z')", # ",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# **YAML Example** # **YAML example:**
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -1489,8 +1429,10 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # 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
# For a description of IAM and its features, see the # 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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::IamV1::Policy] # @return [Google::Apis::IamV1::Policy]
attr_accessor :policy attr_accessor :policy
@ -1519,7 +1461,7 @@ module Google
class SignBlobRequest class SignBlobRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The bytes to sign. # Required. The bytes to sign.
# Corresponds to the JSON property `bytesToSign` # Corresponds to the JSON property `bytesToSign`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -1565,7 +1507,7 @@ module Google
class SignJwtRequest class SignJwtRequest
include Google::Apis::Core::Hashable 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` # Corresponds to the JSON property `payload`
# @return [String] # @return [String]
attr_accessor :payload attr_accessor :payload

View File

@ -410,14 +410,9 @@ module Google
class LintPolicyRequest class LintPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 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 :full_resource_name, as: 'fullResourceName'
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
end end
end end
@ -432,7 +427,6 @@ module Google
class LintResult class LintResult
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :binding_ordinal, as: 'bindingOrdinal'
property :debug_message, as: 'debugMessage' property :debug_message, as: 'debugMessage'
property :field_name, as: 'fieldName' property :field_name, as: 'fieldName'
property :level, as: 'level' property :level, as: 'level'

View File

@ -50,21 +50,11 @@ module Google
end end
# Lints a Cloud IAM policy object or its sub fields. Currently supports # 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. # google.iam.v1.Binding.condition.
# Each lint operation consists of multiple lint validation units. # 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
# - Each unit inspects the input object in regard to a particular # aspect and issues a google.iam.admin.v1.LintResult disclosing the
# linting aspect and issues a google.iam.admin.v1.LintResult # result.
# 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.
# The set of applicable validation units is determined by the Cloud IAM # The set of applicable validation units is determined by the Cloud IAM
# server and is not configurable. # server and is not configurable.
# Regardless of any lint issues or their severities, successful calls to # Regardless of any lint issues or their severities, successful calls to
@ -867,7 +857,7 @@ module Google
# Deletes a ServiceAccount. # Deletes a ServiceAccount.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # the account. The `ACCOUNT` value can be the `email` address or the
@ -995,7 +985,7 @@ module Google
# Gets a ServiceAccount. # Gets a ServiceAccount.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # 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. # method of the Cloud IAM Service Account Credentials API instead.
# Signs a blob using a service account's system-managed private key. # Signs a blob using a service account's system-managed private key.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # 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 # an expiry time of one hour by default. If you request an expiry time of
# more than one hour, the request will fail. # more than one hour, the request will fail.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # the account. The `ACCOUNT` value can be the `email` address or the
@ -1416,7 +1406,7 @@ module Google
# Creates a ServiceAccountKey # Creates a ServiceAccountKey
# and returns it. # and returns it.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # the account. The `ACCOUNT` value can be the `email` address or the
@ -1453,7 +1443,7 @@ module Google
# Deletes a ServiceAccountKey. # Deletes a ServiceAccountKey.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # the account. The `ACCOUNT` value can be the `email` address or the
@ -1488,7 +1478,7 @@ module Google
# Gets the ServiceAccountKey # Gets the ServiceAccountKey
# by key id. # by key id.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # 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 # the account. The `ACCOUNT` value can be the `email` address or the
@ -1526,7 +1516,7 @@ module Google
# Lists ServiceAccountKeys. # Lists ServiceAccountKeys.
# @param [String] name # @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``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from # 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 # the account. The `ACCOUNT` value can be the `email` address or the

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/ # @see https://cloud.google.com/natural-language/
module LanguageV1beta2 module LanguageV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20190704' REVISION = '20191214'
# Apply machine learning models to reveal the structure and meaning of text # Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -442,6 +442,13 @@ module Google
class Document class Document
include Google::Apis::Core::Hashable 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. # The content of the input in string format.
# Cloud audit logging exempt since it is based on user data. # Cloud audit logging exempt since it is based on user data.
# Corresponds to the JSON property `content` # Corresponds to the JSON property `content`
@ -468,6 +475,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :language 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`, # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
# returns an `INVALID_ARGUMENT` error. # returns an `INVALID_ARGUMENT` error.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
@ -480,9 +493,11 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@boilerplate_handling = args[:boilerplate_handling] if args.key?(:boilerplate_handling)
@content = args[:content] if args.key?(:content) @content = args[:content] if args.key?(:content)
@gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
@language = args[:language] if args.key?(:language) @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) @type = args[:type] if args.key?(:type)
end end
end end

View File

@ -305,9 +305,11 @@ module Google
class Document class Document
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :boilerplate_handling, as: 'boilerplateHandling'
property :content, as: 'content' property :content, as: 'content'
property :gcs_content_uri, as: 'gcsContentUri' property :gcs_content_uri, as: 'gcsContentUri'
property :language, as: 'language' property :language, as: 'language'
property :reference_web_uri, as: 'referenceWebUri'
property :type, as: 'type' property :type, as: 'type'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/recommender/docs/ # @see https://cloud.google.com/recommender/docs/
module RecommenderV1beta1 module RecommenderV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20191118' REVISION = '20191216'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -109,6 +109,8 @@ module Google
# State properties to include with this state. Overwrites any existing # State properties to include with this state. Overwrites any existing
# `state_metadata`. # `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` # Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :state_metadata attr_accessor :state_metadata
@ -135,6 +137,8 @@ module Google
# State properties to include with this state. Overwrites any existing # State properties to include with this state. Overwrites any existing
# `state_metadata`. # `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` # Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :state_metadata attr_accessor :state_metadata
@ -161,6 +165,8 @@ module Google
# State properties to include with this state. Overwrites any existing # State properties to include with this state. Overwrites any existing
# `state_metadata`. # `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` # Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :state_metadata attr_accessor :state_metadata

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/ # @see https://developers.google.com/sheets/
module SheetsV4 module SheetsV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20191115' REVISION = '20191213'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -3587,6 +3587,133 @@ module Google
end end
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. # The value of the condition.
class ConditionValue class ConditionValue
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -8017,7 +8144,7 @@ module Google
# @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest] # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
attr_accessor :update_sheet_properties attr_accessor :update_sheet_properties
# Updates a slicers specifications. # Updates a slicer's specifications.
# (This does not move or resize a slicer. To move or resize a slicer use # (This does not move or resize a slicer. To move or resize a slicer use
# UpdateEmbeddedObjectPositionRequest. # UpdateEmbeddedObjectPositionRequest.
# Corresponds to the JSON property `updateSlicerSpec` # Corresponds to the JSON property `updateSlicerSpec`
@ -9345,6 +9472,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :locale 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 # The time zone of the spreadsheet, in CLDR format such as
# `America/New_York`. If the time zone isn't recognized, this may # `America/New_York`. If the time zone isn't recognized, this may
# be a custom time zone such as `GMT-07:00`. # 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) @default_format = args[:default_format] if args.key?(:default_format)
@iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings) @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
@locale = args[:locale] if args.key?(:locale) @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) @time_zone = args[:time_zone] if args.key?(:time_zone)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
end end
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<Google::Apis::SheetsV4::ThemeColorPair>]
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. # The format of a run of text in a cell.
# Absent values indicate that the field isn't specified. # Absent values indicate that the field isn't specified.
class TextFormat class TextFormat
@ -9676,6 +9835,32 @@ module Google
end end
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. # A color scale for a treemap chart.
class TreemapChartColorScale class TreemapChartColorScale
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -10999,7 +11184,7 @@ module Google
end end
end end
# Updates a slicers specifications. # Updates a slicer's specifications.
# (This does not move or resize a slicer. To move or resize a slicer use # (This does not move or resize a slicer. To move or resize a slicer use
# UpdateEmbeddedObjectPositionRequest. # UpdateEmbeddedObjectPositionRequest.
class UpdateSlicerSpecRequest class UpdateSlicerSpecRequest

View File

@ -400,6 +400,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ColorStyle
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConditionValue class ConditionValue
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1006,6 +1012,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SpreadsheetTheme
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextFormat class TextFormat
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1036,6 +1048,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ThemeColorPair
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TreemapChartColorScale class TreemapChartColorScale
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1909,6 +1927,15 @@ module Google
end end
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 class ConditionValue
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :iterative_calculation_settings, as: 'iterativeCalculationSettings', class: Google::Apis::SheetsV4::IterativeCalculationSettings, decorator: Google::Apis::SheetsV4::IterativeCalculationSettings::Representation
property :locale, as: 'locale' 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 :time_zone, as: 'timeZone'
property :title, as: 'title' property :title, as: 'title'
end end
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 class TextFormat
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -3177,6 +3215,15 @@ module Google
end end
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 class TreemapChartColorScale
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20191105' REVISION = '20191213'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -877,7 +877,7 @@ module Google
# @param [String] name # @param [String] name
# Required. Resource name of the ProductSet to get. # Required. Resource name of the ProductSet to get.
# Format is: # 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 # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user