diff --git a/generated/google/apis/alertcenter_v1beta1.rb b/generated/google/apis/alertcenter_v1beta1.rb index 98e14ff4f..661c74bf0 100644 --- a/generated/google/apis/alertcenter_v1beta1.rb +++ b/generated/google/apis/alertcenter_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/admin-sdk/alertcenter/ module AlertcenterV1beta1 VERSION = 'V1beta1' - REVISION = '20200116' + REVISION = '20200201' # See and delete your domain's G Suite alerts, and send alert feedback AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts' diff --git a/generated/google/apis/alertcenter_v1beta1/classes.rb b/generated/google/apis/alertcenter_v1beta1/classes.rb index 073a44cd9..43607a4dc 100644 --- a/generated/google/apis/alertcenter_v1beta1/classes.rb +++ b/generated/google/apis/alertcenter_v1beta1/classes.rb @@ -717,6 +717,26 @@ module Google end end + # Alerts that get triggered on violations of Data Loss Prevention (DLP) rules. + class DlpRuleViolation + include Google::Apis::Core::Hashable + + # Common alert information about violated rules that are configured by G Suite + # administrators. + # Corresponds to the JSON property `ruleViolationInfo` + # @return [Google::Apis::AlertcenterV1beta1::RuleViolationInfo] + attr_accessor :rule_violation_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rule_violation_info = args[:rule_violation_info] if args.key?(:rule_violation_info) + end + end + # Domain ID of Gmail phishing alerts. class DomainId include Google::Apis::Core::Hashable @@ -1037,6 +1057,31 @@ module Google end end + # Proto that contains match information from the condition part of the rule. + class MatchInfo + include Google::Apis::Core::Hashable + + # Detector provided by Google. + # Corresponds to the JSON property `predefinedDetector` + # @return [Google::Apis::AlertcenterV1beta1::PredefinedDetectorInfo] + attr_accessor :predefined_detector + + # Detector defined by administrators. + # Corresponds to the JSON property `userDefinedDetector` + # @return [Google::Apis::AlertcenterV1beta1::UserDefinedDetectorInfo] + attr_accessor :user_defined_detector + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @predefined_detector = args[:predefined_detector] if args.key?(:predefined_detector) + @user_defined_detector = args[:user_defined_detector] if args.key?(:user_defined_detector) + end + end + # Settings for callback notifications. # For more details see [G Suite Alert # Notification](/admin-sdk/alertcenter/guides/notifications). @@ -1102,6 +1147,25 @@ module Google end end + # Detector provided by Google. + class PredefinedDetectorInfo + include Google::Apis::Core::Hashable + + # Name that uniquely identifies the detector. + # Corresponds to the JSON property `detectorName` + # @return [String] + attr_accessor :detector_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detector_name = args[:detector_name] if args.key?(:detector_name) + end + end + # Requests for one application that needs default SQL setup. class RequestInfo include Google::Apis::Core::Hashable @@ -1135,6 +1199,131 @@ module Google end end + # Proto that contains resource information. + class ResourceInfo + include Google::Apis::Core::Hashable + + # Drive file ID. + # Corresponds to the JSON property `documentId` + # @return [String] + attr_accessor :document_id + + # Title of the resource, e.g. email subject, or document title. + # Corresponds to the JSON property `resourceTitle` + # @return [String] + attr_accessor :resource_title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document_id = args[:document_id] if args.key?(:document_id) + @resource_title = args[:resource_title] if args.key?(:resource_title) + end + end + + # Proto that contains rule information. + class RuleInfo + include Google::Apis::Core::Hashable + + # User provided name of the rule. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Resource name that uniquely identifies the rule. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @resource_name = args[:resource_name] if args.key?(:resource_name) + end + end + + # Common alert information about violated rules that are configured by G Suite + # administrators. + class RuleViolationInfo + include Google::Apis::Core::Hashable + + # Source of the data. + # Corresponds to the JSON property `dataSource` + # @return [String] + attr_accessor :data_source + + # List of matches that were found in the resource content. + # Corresponds to the JSON property `matchInfo` + # @return [Array] + attr_accessor :match_info + + # Resource recipients. + # For Drive, they are grantees that the Drive file was shared with at the + # time of rule triggering. Valid values include user emails, group emails, + # domains, or 'anyone' if the file was publicly accessible. If the file was + # private the recipients list will be empty. + # For Gmail, they are emails of the users or groups that the Gmail message + # was sent to. + # Corresponds to the JSON property `recipients` + # @return [Array] + attr_accessor :recipients + + # Proto that contains resource information. + # Corresponds to the JSON property `resourceInfo` + # @return [Google::Apis::AlertcenterV1beta1::ResourceInfo] + attr_accessor :resource_info + + # Proto that contains rule information. + # Corresponds to the JSON property `ruleInfo` + # @return [Google::Apis::AlertcenterV1beta1::RuleInfo] + attr_accessor :rule_info + + # Actions suppressed due to other actions with higher priority. + # Corresponds to the JSON property `suppressedActionTypes` + # @return [Array] + attr_accessor :suppressed_action_types + + # Trigger of the rule. + # Corresponds to the JSON property `trigger` + # @return [String] + attr_accessor :trigger + + # Actions applied as a consequence of the rule being triggered. + # Corresponds to the JSON property `triggeredActionTypes` + # @return [Array] + attr_accessor :triggered_action_types + + # Email of the user who caused the violation. Value could be empty if not + # applicable, for example, a violation found by drive continuous scan. + # Corresponds to the JSON property `triggeringUserEmail` + # @return [String] + attr_accessor :triggering_user_email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_source = args[:data_source] if args.key?(:data_source) + @match_info = args[:match_info] if args.key?(:match_info) + @recipients = args[:recipients] if args.key?(:recipients) + @resource_info = args[:resource_info] if args.key?(:resource_info) + @rule_info = args[:rule_info] if args.key?(:rule_info) + @suppressed_action_types = args[:suppressed_action_types] if args.key?(:suppressed_action_types) + @trigger = args[:trigger] if args.key?(:trigger) + @triggered_action_types = args[:triggered_action_types] if args.key?(:triggered_action_types) + @triggering_user_email = args[:triggering_user_email] if args.key?(:triggering_user_email) + end + end + # Customer-level settings. class Settings include Google::Apis::Core::Hashable @@ -1349,6 +1538,31 @@ module Google @email_address = args[:email_address] if args.key?(:email_address) end end + + # Detector defined by administrators. + class UserDefinedDetectorInfo + include Google::Apis::Core::Hashable + + # Display name of the detector. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Resource name that uniquely identifies the detector. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @resource_name = args[:resource_name] if args.key?(:resource_name) + end + end end end end diff --git a/generated/google/apis/alertcenter_v1beta1/representations.rb b/generated/google/apis/alertcenter_v1beta1/representations.rb index 626dd3b39..0f0587693 100644 --- a/generated/google/apis/alertcenter_v1beta1/representations.rb +++ b/generated/google/apis/alertcenter_v1beta1/representations.rb @@ -124,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DlpRuleViolation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DomainId class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,6 +190,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MatchInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Notification class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,12 +208,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PredefinedDetectorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RequestInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ResourceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RuleInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RuleViolationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Settings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +280,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UserDefinedDetectorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountWarning # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -425,6 +467,14 @@ module Google end end + class DlpRuleViolation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rule_violation_info, as: 'ruleViolationInfo', class: Google::Apis::AlertcenterV1beta1::RuleViolationInfo, decorator: Google::Apis::AlertcenterV1beta1::RuleViolationInfo::Representation + + end + end + class DomainId # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -520,6 +570,16 @@ module Google end end + class MatchInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :predefined_detector, as: 'predefinedDetector', class: Google::Apis::AlertcenterV1beta1::PredefinedDetectorInfo, decorator: Google::Apis::AlertcenterV1beta1::PredefinedDetectorInfo::Representation + + property :user_defined_detector, as: 'userDefinedDetector', class: Google::Apis::AlertcenterV1beta1::UserDefinedDetectorInfo, decorator: Google::Apis::AlertcenterV1beta1::UserDefinedDetectorInfo::Representation + + end + end + class Notification # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -541,6 +601,13 @@ module Google end end + class PredefinedDetectorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detector_name, as: 'detectorName' + end + end + class RequestInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -550,6 +617,40 @@ module Google end end + class ResourceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document_id, as: 'documentId' + property :resource_title, as: 'resourceTitle' + end + end + + class RuleInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :resource_name, as: 'resourceName' + end + end + + class RuleViolationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_source, as: 'dataSource' + collection :match_info, as: 'matchInfo', class: Google::Apis::AlertcenterV1beta1::MatchInfo, decorator: Google::Apis::AlertcenterV1beta1::MatchInfo::Representation + + collection :recipients, as: 'recipients' + property :resource_info, as: 'resourceInfo', class: Google::Apis::AlertcenterV1beta1::ResourceInfo, decorator: Google::Apis::AlertcenterV1beta1::ResourceInfo::Representation + + property :rule_info, as: 'ruleInfo', class: Google::Apis::AlertcenterV1beta1::RuleInfo, decorator: Google::Apis::AlertcenterV1beta1::RuleInfo::Representation + + collection :suppressed_action_types, as: 'suppressedActionTypes' + property :trigger, as: 'trigger' + collection :triggered_action_types, as: 'triggeredActionTypes' + property :triggering_user_email, as: 'triggeringUserEmail' + end + end + class Settings # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -612,6 +713,14 @@ module Google property :email_address, as: 'emailAddress' end end + + class UserDefinedDetectorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :resource_name, as: 'resourceName' + end + end end end end diff --git a/generated/google/apis/cloudidentity_v1.rb b/generated/google/apis/cloudidentity_v1.rb index 0e56778fa..0a55e490d 100644 --- a/generated/google/apis/cloudidentity_v1.rb +++ b/generated/google/apis/cloudidentity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1 VERSION = 'V1' - REVISION = '20200110' + REVISION = '20200203' # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' diff --git a/generated/google/apis/cloudidentity_v1/classes.rb b/generated/google/apis/cloudidentity_v1/classes.rb index dce6ef14b..d8204a328 100644 --- a/generated/google/apis/cloudidentity_v1/classes.rb +++ b/generated/google/apis/cloudidentity_v1/classes.rb @@ -54,6 +54,563 @@ module Google end end + # Resource representing the Android specific attributes of a Device. + class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes + include Google::Apis::Core::Hashable + + # Baseband version of Android device. + # Corresponds to the JSON property `basebandVersion` + # @return [String] + attr_accessor :baseband_version + + # Device bootloader version. Example: 0.6.7. + # Corresponds to the JSON property `bootloaderVersion` + # @return [String] + attr_accessor :bootloader_version + + # Build number of Android device. + # Corresponds to the JSON property `buildNumber` + # @return [String] + attr_accessor :build_number + + # Whether developer options is enabled on device. + # Corresponds to the JSON property `enabledDeveloperOptions` + # @return [Boolean] + attr_accessor :enabled_developer_options + alias_method :enabled_developer_options?, :enabled_developer_options + + # Whether applications from unknown sources can be installed on device. + # Corresponds to the JSON property `enabledUnknownSources` + # @return [Boolean] + attr_accessor :enabled_unknown_sources + alias_method :enabled_unknown_sources?, :enabled_unknown_sources + + # Whether adb (USB debugging) is enabled on device. + # Corresponds to the JSON property `enabledUsbDebugging` + # @return [Boolean] + attr_accessor :enabled_usb_debugging + alias_method :enabled_usb_debugging?, :enabled_usb_debugging + + # Device encryption state. + # Corresponds to the JSON property `encryptionState` + # @return [String] + attr_accessor :encryption_state + + # Device hardware. Example: Sprout. + # Corresponds to the JSON property `hardware` + # @return [String] + attr_accessor :hardware + + # Kernel version of Android device. + # Corresponds to the JSON property `kernelVersion` + # @return [String] + attr_accessor :kernel_version + + # Domain name for Google accounts on device. Type for other accounts on + # device. Will only be populated if |ownership_privilege| is + # |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in + # to the device policy app if that account's domain has only one account. + # Examples: "com.example", "xyz.com". + # Corresponds to the JSON property `otherAccounts` + # @return [Array] + attr_accessor :other_accounts + + # Whether this account is on an owner/primary profile. + # For phones, only true for owner profiles. Android 4+ devices + # can have secondary or restricted user profiles. + # Corresponds to the JSON property `ownerProfileAccount` + # @return [Boolean] + attr_accessor :owner_profile_account + alias_method :owner_profile_account?, :owner_profile_account + + # Ownership privileges on device. + # Corresponds to the JSON property `ownershipPrivilege` + # @return [String] + attr_accessor :ownership_privilege + + # OS security patch update time on device. + # Corresponds to the JSON property `securityPatchTime` + # @return [String] + attr_accessor :security_patch_time + + # Whether device supports Android work profiles. If false, this service + # will not block access to corp data even if an administrator turns on the + # "Enforce Work Profile" policy. + # Corresponds to the JSON property `supportsWorkProfile` + # @return [Boolean] + attr_accessor :supports_work_profile + alias_method :supports_work_profile?, :supports_work_profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @baseband_version = args[:baseband_version] if args.key?(:baseband_version) + @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version) + @build_number = args[:build_number] if args.key?(:build_number) + @enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options) + @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources) + @enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging) + @encryption_state = args[:encryption_state] if args.key?(:encryption_state) + @hardware = args[:hardware] if args.key?(:hardware) + @kernel_version = args[:kernel_version] if args.key?(:kernel_version) + @other_accounts = args[:other_accounts] if args.key?(:other_accounts) + @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account) + @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege) + @security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time) + @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile) + end + end + + # Response message for approving the device to access user data. + class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + + # Response message for blocking the device from accessing user data. + class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + + # Response message for cancelling an unfinished device wipe. + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse + include Google::Apis::Core::Hashable + + # Resource representing a Device. + # Corresponds to the JSON property `device` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device] + attr_accessor :device + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device = args[:device] if args.key?(:device) + end + end + + # Response message for cancelling an unfinished user account wipe. + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + + # Resource representing a Device. + class GoogleAppsCloudidentityDevicesV1alpha1Device + include Google::Apis::Core::Hashable + + # Resource representing the Android specific attributes of a Device. + # Corresponds to the JSON property `androidSpecificAttributes` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes] + attr_accessor :android_specific_attributes + + # Asset tag of the device. + # Corresponds to the JSON property `assetTag` + # @return [String] + attr_accessor :asset_tag + + # Output only. Device brand. Example: Samsung. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # Output only. Represents whether the Device is compromised. + # Corresponds to the JSON property `compromisedState` + # @return [String] + attr_accessor :compromised_state + + # Output only. When the Company-Owned device was imported. This field is empty + # for BYOD + # devices. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. Type of device. + # Corresponds to the JSON property `deviceType` + # @return [String] + attr_accessor :device_type + + # Output only. IMEI number of device if GSM device; empty otherwise. + # Corresponds to the JSON property `imei` + # @return [String] + attr_accessor :imei + + # Most recent time when device synced with this service. + # Corresponds to the JSON property `lastSyncTime` + # @return [String] + attr_accessor :last_sync_time + + # Output only. Management state of the device + # Corresponds to the JSON property `managementState` + # @return [String] + attr_accessor :management_state + + # Output only. Device manufacturer. Example: Motorola. + # Corresponds to the JSON property `manufacturer` + # @return [String] + attr_accessor :manufacturer + + # Output only. MEID number of device if CDMA device; empty otherwise. + # Corresponds to the JSON property `meid` + # @return [String] + attr_accessor :meid + + # Output only. Model name of device. Example: Pixel 3. + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) + # of the Device in format: `devices/`device_id``, where device_id is + # the unique id assigned to the Device. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Mobile or network operator of device, if available. + # Corresponds to the JSON property `networkOperator` + # @return [String] + attr_accessor :network_operator + + # Output only. OS version of the device. Example: Android 8.1.0. + # Corresponds to the JSON property `osVersion` + # @return [String] + attr_accessor :os_version + + # Whether the device is owned by the company or an individual + # Corresponds to the JSON property `ownerType` + # @return [String] + attr_accessor :owner_type + + # Output only. OS release version. Example: 6.0. + # Corresponds to the JSON property `releaseVersion` + # @return [String] + attr_accessor :release_version + + # Serial Number of device. Example: HT82V1A01076. + # Corresponds to the JSON property `serialNumber` + # @return [String] + attr_accessor :serial_number + + # WiFi MAC addresses of device. + # Corresponds to the JSON property `wifiMacAddresses` + # @return [Array] + attr_accessor :wifi_mac_addresses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes) + @asset_tag = args[:asset_tag] if args.key?(:asset_tag) + @brand = args[:brand] if args.key?(:brand) + @compromised_state = args[:compromised_state] if args.key?(:compromised_state) + @create_time = args[:create_time] if args.key?(:create_time) + @device_type = args[:device_type] if args.key?(:device_type) + @imei = args[:imei] if args.key?(:imei) + @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time) + @management_state = args[:management_state] if args.key?(:management_state) + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @meid = args[:meid] if args.key?(:meid) + @model = args[:model] if args.key?(:model) + @name = args[:name] if args.key?(:name) + @network_operator = args[:network_operator] if args.key?(:network_operator) + @os_version = args[:os_version] if args.key?(:os_version) + @owner_type = args[:owner_type] if args.key?(:owner_type) + @release_version = args[:release_version] if args.key?(:release_version) + @serial_number = args[:serial_number] if args.key?(:serial_number) + @wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses) + end + end + + # Resource representing a user's use of a Device + class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser + include Google::Apis::Core::Hashable + + # Compromised State of the DeviceUser object + # Corresponds to the JSON property `compromisedState` + # @return [String] + attr_accessor :compromised_state + + # Output only. Most recent time when user registered with this service. + # Corresponds to the JSON property `firstSyncTime` + # @return [String] + attr_accessor :first_sync_time + + # Output only. Default locale used on device, in IETF BCP-47 format. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Output only. Last time when user synced with policies. + # Corresponds to the JSON property `lastSyncTime` + # @return [String] + attr_accessor :last_sync_time + + # Output only. Management state of the user on the device. + # Corresponds to the JSON property `managementState` + # @return [String] + attr_accessor :management_state + + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of + # the DeviceUser in format: `devices/`device_id`/deviceUsers/`user_id``, + # where user_id is the ID of the user associated with the user session. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Password state of the DeviceUser object + # Corresponds to the JSON property `passwordState` + # @return [String] + attr_accessor :password_state + + # Output only. User agent on the device for this specific user + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # Email address of the user registered on the device. + # Corresponds to the JSON property `userEmail` + # @return [String] + attr_accessor :user_email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compromised_state = args[:compromised_state] if args.key?(:compromised_state) + @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time) + @language_code = args[:language_code] if args.key?(:language_code) + @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time) + @management_state = args[:management_state] if args.key?(:management_state) + @name = args[:name] if args.key?(:name) + @password_state = args[:password_state] if args.key?(:password_state) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @user_email = args[:user_email] if args.key?(:user_email) + end + end + + # Next ID to use: 7 + class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp + include Google::Apis::Core::Hashable + + # Output only. Name of the app displayed to the user + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of + # the EndpointApp in format: + # `devices/`device`/deviceUsers/`device_user`/endpointApps/`endpoint_app``, + # where client_app_id is the ID of the app associated with the Device. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Full package name of the installed app + # Corresponds to the JSON property `packageName` + # @return [String] + attr_accessor :package_name + + # Output only. Names of all permissions granted to the installed app + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Output only. Version code of the installed app + # Corresponds to the JSON property `versionCode` + # @return [Fixnum] + attr_accessor :version_code + + # Output only. Version name of the installed app + # Corresponds to the JSON property `versionName` + # @return [String] + attr_accessor :version_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @package_name = args[:package_name] if args.key?(:package_name) + @permissions = args[:permissions] if args.key?(:permissions) + @version_code = args[:version_code] if args.key?(:version_code) + @version_name = args[:version_name] if args.key?(:version_name) + end + end + + # Response message that is returned in LRO result of ListDeviceUsers Operation. + class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse + include Google::Apis::Core::Hashable + + # Devices meeting the list restrictions. + # Corresponds to the JSON property `deviceUsers` + # @return [Array] + attr_accessor :device_users + + # Token to retrieve the next page of results. Empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_users = args[:device_users] if args.key?(:device_users) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message that is returned in LRO result of ListDevices Operation. + class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse + include Google::Apis::Core::Hashable + + # Devices meeting the list restrictions. + # Corresponds to the JSON property `devices` + # @return [Array] + attr_accessor :devices + + # Token to retrieve the next page of results. Empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @devices = args[:devices] if args.key?(:devices) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for listing all apps on the device. + class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse + include Google::Apis::Core::Hashable + + # The list of matching EndpointApps found as a result of the request. + # Corresponds to the JSON property `endpointApps` + # @return [Array] + attr_accessor :endpoint_apps + + # Token to retrieve the next page of results. Empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @endpoint_apps = args[:endpoint_apps] if args.key?(:endpoint_apps) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for wiping all data on the device. + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse + include Google::Apis::Core::Hashable + + # Resource representing a Device. + # Corresponds to the JSON property `device` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device] + attr_accessor :device + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device = args[:device] if args.key?(:device) + end + end + + # Response message for wiping the user's account from the device. + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + # Resource representing a Group. class Group include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudidentity_v1/representations.rb b/generated/google/apis/cloudidentity_v1/representations.rb index 6a972091f..aee0bb0e6 100644 --- a/generated/google/apis/cloudidentity_v1/representations.rb +++ b/generated/google/apis/cloudidentity_v1/representations.rb @@ -28,6 +28,84 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1Device + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Group class Representation < Google::Apis::Core::JsonRepresentation; end @@ -96,6 +174,154 @@ module Google end end + class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :baseband_version, as: 'basebandVersion' + property :bootloader_version, as: 'bootloaderVersion' + property :build_number, as: 'buildNumber' + property :enabled_developer_options, as: 'enabledDeveloperOptions' + property :enabled_unknown_sources, as: 'enabledUnknownSources' + property :enabled_usb_debugging, as: 'enabledUsbDebugging' + property :encryption_state, as: 'encryptionState' + property :hardware, as: 'hardware' + property :kernel_version, as: 'kernelVersion' + collection :other_accounts, as: 'otherAccounts' + property :owner_profile_account, as: 'ownerProfileAccount' + property :ownership_privilege, as: 'ownershipPrivilege' + property :security_patch_time, as: 'securityPatchTime' + property :supports_work_profile, as: 'supportsWorkProfile' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device, as: 'device', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1Device + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_specific_attributes, as: 'androidSpecificAttributes', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes::Representation + + property :asset_tag, as: 'assetTag' + property :brand, as: 'brand' + property :compromised_state, as: 'compromisedState' + property :create_time, as: 'createTime' + property :device_type, as: 'deviceType' + property :imei, as: 'imei' + property :last_sync_time, as: 'lastSyncTime' + property :management_state, as: 'managementState' + property :manufacturer, as: 'manufacturer' + property :meid, as: 'meid' + property :model, as: 'model' + property :name, as: 'name' + property :network_operator, as: 'networkOperator' + property :os_version, as: 'osVersion' + property :owner_type, as: 'ownerType' + property :release_version, as: 'releaseVersion' + property :serial_number, as: 'serialNumber' + collection :wifi_mac_addresses, as: 'wifiMacAddresses' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compromised_state, as: 'compromisedState' + property :first_sync_time, as: 'firstSyncTime' + property :language_code, as: 'languageCode' + property :last_sync_time, as: 'lastSyncTime' + property :management_state, as: 'managementState' + property :name, as: 'name' + property :password_state, as: 'passwordState' + property :user_agent, as: 'userAgent' + property :user_email, as: 'userEmail' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + property :package_name, as: 'packageName' + collection :permissions, as: 'permissions' + property :version_code, as: 'versionCode' + property :version_name, as: 'versionName' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :device_users, as: 'deviceUsers', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :devices, as: 'devices', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :endpoint_apps, as: 'endpointApps', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1EndpointApp, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1EndpointApp::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device, as: 'device', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + class Group # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudidentity_v1/service.rb b/generated/google/apis/cloudidentity_v1/service.rb index 554531d7f..4c1e9558b 100644 --- a/generated/google/apis/cloudidentity_v1/service.rb +++ b/generated/google/apis/cloudidentity_v1/service.rb @@ -79,7 +79,8 @@ module Google # Deletes a Group. # @param [String] name - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Group in the format: `groups/`group_id``, where `group_id` is the unique ID # assigned to the Group. # @param [String] fields @@ -111,7 +112,8 @@ module Google # Retrieves a Group. # @param [String] name - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Group in the format: `groups/`group_id``, where `group_id` is the unique ID # assigned to the Group. # @param [String] fields @@ -148,8 +150,7 @@ module Google # @param [String] page_token # The next_page_token value returned from a previous list request, if any. # @param [String] parent - # `Required`. May be made Optional in the future. - # Customer ID to list all groups from. + # Required. Customer ID to list all groups from. # @param [String] view # Group resource view to be returned. Defaults to [View.BASIC](). # @param [String] fields @@ -231,7 +232,7 @@ module Google # Must be left blank while creating a Group. # @param [Google::Apis::CloudidentityV1::Group] group_object # @param [String] update_mask - # Editable fields: `display_name`, `description` + # Required. Editable fields: `display_name`, `description` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -269,7 +270,8 @@ module Google # @param [String] page_token # The next_page_token value returned from a previous search request, if any. # @param [String] query - # `Required`. Query string for performing search on groups. Users can search + # Required. `Required`. Query string for performing search on groups. Users can + # search # on parent and label attributes of groups. # EXACT match ('==') is supported on parent, and CONTAINS match ('in') is # supported on labels. @@ -307,7 +309,8 @@ module Google # Creates a Membership. # @param [String] parent - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Group to create Membership within. Format: `groups/`group_id``, where # `group_id` is the unique ID assigned to the Group. # @param [Google::Apis::CloudidentityV1::Membership] membership_object @@ -342,7 +345,8 @@ module Google # Deletes a Membership. # @param [String] name - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Membership to be deleted. # Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is # the unique ID assigned to the Group to which Membership belongs to, and @@ -376,7 +380,8 @@ module Google # Retrieves a Membership. # @param [String] name - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Membership to be retrieved. # Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is # the unique id assigned to the Group to which Membership belongs to, and @@ -410,7 +415,8 @@ module Google # Lists Memberships within a Group. # @param [String] parent - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Group to list Memberships within. # Format: `groups/`group_id``, where `group_id` is the unique ID assigned to # the Group. @@ -455,7 +461,8 @@ module Google # name](https://cloud.google.com/apis/design/resource_names) of a Membership # within a Group by member's EntityKey. # @param [String] parent - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the # Group to lookup Membership within. # Format: `groups/`group_id``, where `group_id` is the unique ID assigned to # the Group. diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index f996f27a2..c2eca55e4 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 VERSION = 'V1beta1' - REVISION = '20200110' + REVISION = '20200203' # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index 8c27588fd..caf55a206 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -30,8 +30,8 @@ module Google include Google::Apis::Core::Hashable # The ID of the entity. - # For Google-managed entities, the `id` must be the email address of a group - # or user. + # For Google-managed entities, the `id` must be the email address of an + # existing group or user. # For external-identity-mapped entities, the `id` must be a string conforming # to the Identity Source's requirements. # Must be unique within a `namespace`. @@ -60,6 +60,563 @@ module Google end end + # Resource representing the Android specific attributes of a Device. + class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes + include Google::Apis::Core::Hashable + + # Baseband version of Android device. + # Corresponds to the JSON property `basebandVersion` + # @return [String] + attr_accessor :baseband_version + + # Device bootloader version. Example: 0.6.7. + # Corresponds to the JSON property `bootloaderVersion` + # @return [String] + attr_accessor :bootloader_version + + # Build number of Android device. + # Corresponds to the JSON property `buildNumber` + # @return [String] + attr_accessor :build_number + + # Whether developer options is enabled on device. + # Corresponds to the JSON property `enabledDeveloperOptions` + # @return [Boolean] + attr_accessor :enabled_developer_options + alias_method :enabled_developer_options?, :enabled_developer_options + + # Whether applications from unknown sources can be installed on device. + # Corresponds to the JSON property `enabledUnknownSources` + # @return [Boolean] + attr_accessor :enabled_unknown_sources + alias_method :enabled_unknown_sources?, :enabled_unknown_sources + + # Whether adb (USB debugging) is enabled on device. + # Corresponds to the JSON property `enabledUsbDebugging` + # @return [Boolean] + attr_accessor :enabled_usb_debugging + alias_method :enabled_usb_debugging?, :enabled_usb_debugging + + # Device encryption state. + # Corresponds to the JSON property `encryptionState` + # @return [String] + attr_accessor :encryption_state + + # Device hardware. Example: Sprout. + # Corresponds to the JSON property `hardware` + # @return [String] + attr_accessor :hardware + + # Kernel version of Android device. + # Corresponds to the JSON property `kernelVersion` + # @return [String] + attr_accessor :kernel_version + + # Domain name for Google accounts on device. Type for other accounts on + # device. Will only be populated if |ownership_privilege| is + # |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in + # to the device policy app if that account's domain has only one account. + # Examples: "com.example", "xyz.com". + # Corresponds to the JSON property `otherAccounts` + # @return [Array] + attr_accessor :other_accounts + + # Whether this account is on an owner/primary profile. + # For phones, only true for owner profiles. Android 4+ devices + # can have secondary or restricted user profiles. + # Corresponds to the JSON property `ownerProfileAccount` + # @return [Boolean] + attr_accessor :owner_profile_account + alias_method :owner_profile_account?, :owner_profile_account + + # Ownership privileges on device. + # Corresponds to the JSON property `ownershipPrivilege` + # @return [String] + attr_accessor :ownership_privilege + + # OS security patch update time on device. + # Corresponds to the JSON property `securityPatchTime` + # @return [String] + attr_accessor :security_patch_time + + # Whether device supports Android work profiles. If false, this service + # will not block access to corp data even if an administrator turns on the + # "Enforce Work Profile" policy. + # Corresponds to the JSON property `supportsWorkProfile` + # @return [Boolean] + attr_accessor :supports_work_profile + alias_method :supports_work_profile?, :supports_work_profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @baseband_version = args[:baseband_version] if args.key?(:baseband_version) + @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version) + @build_number = args[:build_number] if args.key?(:build_number) + @enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options) + @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources) + @enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging) + @encryption_state = args[:encryption_state] if args.key?(:encryption_state) + @hardware = args[:hardware] if args.key?(:hardware) + @kernel_version = args[:kernel_version] if args.key?(:kernel_version) + @other_accounts = args[:other_accounts] if args.key?(:other_accounts) + @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account) + @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege) + @security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time) + @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile) + end + end + + # Response message for approving the device to access user data. + class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + + # Response message for blocking the device from accessing user data. + class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + + # Response message for cancelling an unfinished device wipe. + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse + include Google::Apis::Core::Hashable + + # Resource representing a Device. + # Corresponds to the JSON property `device` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device] + attr_accessor :device + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device = args[:device] if args.key?(:device) + end + end + + # Response message for cancelling an unfinished user account wipe. + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + + # Resource representing a Device. + class GoogleAppsCloudidentityDevicesV1alpha1Device + include Google::Apis::Core::Hashable + + # Resource representing the Android specific attributes of a Device. + # Corresponds to the JSON property `androidSpecificAttributes` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes] + attr_accessor :android_specific_attributes + + # Asset tag of the device. + # Corresponds to the JSON property `assetTag` + # @return [String] + attr_accessor :asset_tag + + # Output only. Device brand. Example: Samsung. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # Output only. Represents whether the Device is compromised. + # Corresponds to the JSON property `compromisedState` + # @return [String] + attr_accessor :compromised_state + + # Output only. When the Company-Owned device was imported. This field is empty + # for BYOD + # devices. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. Type of device. + # Corresponds to the JSON property `deviceType` + # @return [String] + attr_accessor :device_type + + # Output only. IMEI number of device if GSM device; empty otherwise. + # Corresponds to the JSON property `imei` + # @return [String] + attr_accessor :imei + + # Most recent time when device synced with this service. + # Corresponds to the JSON property `lastSyncTime` + # @return [String] + attr_accessor :last_sync_time + + # Output only. Management state of the device + # Corresponds to the JSON property `managementState` + # @return [String] + attr_accessor :management_state + + # Output only. Device manufacturer. Example: Motorola. + # Corresponds to the JSON property `manufacturer` + # @return [String] + attr_accessor :manufacturer + + # Output only. MEID number of device if CDMA device; empty otherwise. + # Corresponds to the JSON property `meid` + # @return [String] + attr_accessor :meid + + # Output only. Model name of device. Example: Pixel 3. + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) + # of the Device in format: `devices/`device_id``, where device_id is + # the unique id assigned to the Device. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Mobile or network operator of device, if available. + # Corresponds to the JSON property `networkOperator` + # @return [String] + attr_accessor :network_operator + + # Output only. OS version of the device. Example: Android 8.1.0. + # Corresponds to the JSON property `osVersion` + # @return [String] + attr_accessor :os_version + + # Whether the device is owned by the company or an individual + # Corresponds to the JSON property `ownerType` + # @return [String] + attr_accessor :owner_type + + # Output only. OS release version. Example: 6.0. + # Corresponds to the JSON property `releaseVersion` + # @return [String] + attr_accessor :release_version + + # Serial Number of device. Example: HT82V1A01076. + # Corresponds to the JSON property `serialNumber` + # @return [String] + attr_accessor :serial_number + + # WiFi MAC addresses of device. + # Corresponds to the JSON property `wifiMacAddresses` + # @return [Array] + attr_accessor :wifi_mac_addresses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes) + @asset_tag = args[:asset_tag] if args.key?(:asset_tag) + @brand = args[:brand] if args.key?(:brand) + @compromised_state = args[:compromised_state] if args.key?(:compromised_state) + @create_time = args[:create_time] if args.key?(:create_time) + @device_type = args[:device_type] if args.key?(:device_type) + @imei = args[:imei] if args.key?(:imei) + @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time) + @management_state = args[:management_state] if args.key?(:management_state) + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @meid = args[:meid] if args.key?(:meid) + @model = args[:model] if args.key?(:model) + @name = args[:name] if args.key?(:name) + @network_operator = args[:network_operator] if args.key?(:network_operator) + @os_version = args[:os_version] if args.key?(:os_version) + @owner_type = args[:owner_type] if args.key?(:owner_type) + @release_version = args[:release_version] if args.key?(:release_version) + @serial_number = args[:serial_number] if args.key?(:serial_number) + @wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses) + end + end + + # Resource representing a user's use of a Device + class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser + include Google::Apis::Core::Hashable + + # Compromised State of the DeviceUser object + # Corresponds to the JSON property `compromisedState` + # @return [String] + attr_accessor :compromised_state + + # Output only. Most recent time when user registered with this service. + # Corresponds to the JSON property `firstSyncTime` + # @return [String] + attr_accessor :first_sync_time + + # Output only. Default locale used on device, in IETF BCP-47 format. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Output only. Last time when user synced with policies. + # Corresponds to the JSON property `lastSyncTime` + # @return [String] + attr_accessor :last_sync_time + + # Output only. Management state of the user on the device. + # Corresponds to the JSON property `managementState` + # @return [String] + attr_accessor :management_state + + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of + # the DeviceUser in format: `devices/`device_id`/deviceUsers/`user_id``, + # where user_id is the ID of the user associated with the user session. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Password state of the DeviceUser object + # Corresponds to the JSON property `passwordState` + # @return [String] + attr_accessor :password_state + + # Output only. User agent on the device for this specific user + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # Email address of the user registered on the device. + # Corresponds to the JSON property `userEmail` + # @return [String] + attr_accessor :user_email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compromised_state = args[:compromised_state] if args.key?(:compromised_state) + @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time) + @language_code = args[:language_code] if args.key?(:language_code) + @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time) + @management_state = args[:management_state] if args.key?(:management_state) + @name = args[:name] if args.key?(:name) + @password_state = args[:password_state] if args.key?(:password_state) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @user_email = args[:user_email] if args.key?(:user_email) + end + end + + # Next ID to use: 7 + class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp + include Google::Apis::Core::Hashable + + # Output only. Name of the app displayed to the user + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of + # the EndpointApp in format: + # `devices/`device`/deviceUsers/`device_user`/endpointApps/`endpoint_app``, + # where client_app_id is the ID of the app associated with the Device. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Full package name of the installed app + # Corresponds to the JSON property `packageName` + # @return [String] + attr_accessor :package_name + + # Output only. Names of all permissions granted to the installed app + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Output only. Version code of the installed app + # Corresponds to the JSON property `versionCode` + # @return [Fixnum] + attr_accessor :version_code + + # Output only. Version name of the installed app + # Corresponds to the JSON property `versionName` + # @return [String] + attr_accessor :version_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @package_name = args[:package_name] if args.key?(:package_name) + @permissions = args[:permissions] if args.key?(:permissions) + @version_code = args[:version_code] if args.key?(:version_code) + @version_name = args[:version_name] if args.key?(:version_name) + end + end + + # Response message that is returned in LRO result of ListDeviceUsers Operation. + class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse + include Google::Apis::Core::Hashable + + # Devices meeting the list restrictions. + # Corresponds to the JSON property `deviceUsers` + # @return [Array] + attr_accessor :device_users + + # Token to retrieve the next page of results. Empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_users = args[:device_users] if args.key?(:device_users) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message that is returned in LRO result of ListDevices Operation. + class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse + include Google::Apis::Core::Hashable + + # Devices meeting the list restrictions. + # Corresponds to the JSON property `devices` + # @return [Array] + attr_accessor :devices + + # Token to retrieve the next page of results. Empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @devices = args[:devices] if args.key?(:devices) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for listing all apps on the device. + class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse + include Google::Apis::Core::Hashable + + # The list of matching EndpointApps found as a result of the request. + # Corresponds to the JSON property `endpointApps` + # @return [Array] + attr_accessor :endpoint_apps + + # Token to retrieve the next page of results. Empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @endpoint_apps = args[:endpoint_apps] if args.key?(:endpoint_apps) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for wiping all data on the device. + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse + include Google::Apis::Core::Hashable + + # Resource representing a Device. + # Corresponds to the JSON property `device` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device] + attr_accessor :device + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device = args[:device] if args.key?(:device) + end + end + + # Response message for wiping the user's account from the device. + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse + include Google::Apis::Core::Hashable + + # Resource representing a user's use of a Device + # Corresponds to the JSON property `deviceUser` + # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser] + attr_accessor :device_user + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_user = args[:device_user] if args.key?(:device_user) + end + end + # A group within the Cloud Identity Groups API. # A `Group` is a collection of entities, where each entity is either a user or # another group. @@ -97,10 +654,9 @@ module Google # Required. The labels that apply to the `Group`. # Must not contain more than one entry. Must contain the entry - # `'system/groups/external': ''` if the `Group` is an - # external-identity-mapped group or # `'cloudidentity.googleapis.com/groups.discussion_forum': ''` if the `Group` - # is a Google Group. + # is a Google Group or `'system/groups/external': ''` if the `Group` is an + # external-identity-mapped group. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -145,6 +701,32 @@ module Google end end + # The response message for GroupsService.ListGroups. + class ListGroupsResponse + include Google::Apis::Core::Hashable + + # The `Group`s under the specified `parent`. + # Corresponds to the JSON property `groups` + # @return [Array] + attr_accessor :groups + + # A continuation token to retrieve the next page of results, or empty if + # there are no more results available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @groups = args[:groups] if args.key?(:groups) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for MembershipsService.ListMemberships. class ListMembershipsResponse include Google::Apis::Core::Hashable @@ -175,7 +757,8 @@ module Google class LookupGroupNameResponse include Google::Apis::Core::Hashable - # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # Output only. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of # the looked-up `Group`. # Corresponds to the JSON property `name` # @return [String] @@ -239,6 +822,14 @@ module Google # @return [String] attr_accessor :name + # A unique identifier for an entity in the Cloud Identity Groups API. + # An entity can represent either a group with an optional `namespace` or a user + # without a `namespace`. The combination of `id` and `namespace` must be + # unique; however, the same `id` can be used with different `namespace`s. + # Corresponds to the JSON property `preferredMemberKey` + # @return [Google::Apis::CloudidentityV1beta1::EntityKey] + attr_accessor :preferred_member_key + # The `MembershipRole`s that apply to the `Membership`. # If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. # Must not contain duplicate `MembershipRole`s with the same `name`. @@ -260,6 +851,7 @@ module Google @create_time = args[:create_time] if args.key?(:create_time) @member_key = args[:member_key] if args.key?(:member_key) @name = args[:name] if args.key?(:name) + @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key) @roles = args[:roles] if args.key?(:roles) @update_time = args[:update_time] if args.key?(:update_time) end @@ -286,6 +878,70 @@ module Google end end + # The request message for MembershipsService.ModifyMembershipRoles. + class ModifyMembershipRolesRequest + include Google::Apis::Core::Hashable + + # The `MembershipRole`s to be added. + # Adding or removing roles in the same request as updating roles is not + # supported. + # Must not be set if `update_roles_params` is set. + # Corresponds to the JSON property `addRoles` + # @return [Array] + attr_accessor :add_roles + + # The `name`s of the `MembershipRole`s to be removed. + # Adding or removing roles in the same request as updating roles is not + # supported. + # It is not possible to remove the `MEMBER` `MembershipRole`. If you wish to + # delete a `Membership`, call MembershipsService.DeleteMembership + # instead. + # Must not contain `MEMBER`. Must not be set if `update_roles_params` is set. + # Corresponds to the JSON property `removeRoles` + # @return [Array] + attr_accessor :remove_roles + + # The `MembershipRole`s to be updated. + # Updating roles in the same request as adding or removing roles is not + # supported. + # Must not be set if either `add_roles` or `remove_roles` is set. + # Corresponds to the JSON property `updateRolesParams` + # @return [Array] + attr_accessor :update_roles_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @add_roles = args[:add_roles] if args.key?(:add_roles) + @remove_roles = args[:remove_roles] if args.key?(:remove_roles) + @update_roles_params = args[:update_roles_params] if args.key?(:update_roles_params) + end + end + + # The response message for MembershipsService.ModifyMembershipRoles. + class ModifyMembershipRolesResponse + include Google::Apis::Core::Hashable + + # A membership within the Cloud Identity Groups API. + # A `Membership` defines a relationship between a `Group` and an entity + # belonging to that `Group`, referred to as a "member". + # Corresponds to the JSON property `membership` + # @return [Google::Apis::CloudidentityV1beta1::Membership] + attr_accessor :membership + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @membership = args[:membership] if args.key?(:membership) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -414,6 +1070,33 @@ module Google @message = args[:message] if args.key?(:message) end end + + # The details of an update to a `MembershipRole`. + class UpdateMembershipRolesParams + include Google::Apis::Core::Hashable + + # The fully-qualified names of fields to update. + # May only contain the field `expiry_detail`. + # Corresponds to the JSON property `fieldMask` + # @return [String] + attr_accessor :field_mask + + # A membership role within the Cloud Identity Groups API. + # A `MembershipRole` defines the privileges granted to a `Membership`. + # Corresponds to the JSON property `membershipRole` + # @return [Google::Apis::CloudidentityV1beta1::MembershipRole] + attr_accessor :membership_role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field_mask = args[:field_mask] if args.key?(:field_mask) + @membership_role = args[:membership_role] if args.key?(:membership_role) + end + end end end end diff --git a/generated/google/apis/cloudidentity_v1beta1/representations.rb b/generated/google/apis/cloudidentity_v1beta1/representations.rb index a9bdf5927..375f8581e 100644 --- a/generated/google/apis/cloudidentity_v1beta1/representations.rb +++ b/generated/google/apis/cloudidentity_v1beta1/representations.rb @@ -28,12 +28,96 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1Device + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Group class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListGroupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListMembershipsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -64,6 +148,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ModifyMembershipRolesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ModifyMembershipRolesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateMembershipRolesParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EntityKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -90,6 +192,154 @@ module Google end end + class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :baseband_version, as: 'basebandVersion' + property :bootloader_version, as: 'bootloaderVersion' + property :build_number, as: 'buildNumber' + property :enabled_developer_options, as: 'enabledDeveloperOptions' + property :enabled_unknown_sources, as: 'enabledUnknownSources' + property :enabled_usb_debugging, as: 'enabledUsbDebugging' + property :encryption_state, as: 'encryptionState' + property :hardware, as: 'hardware' + property :kernel_version, as: 'kernelVersion' + collection :other_accounts, as: 'otherAccounts' + property :owner_profile_account, as: 'ownerProfileAccount' + property :ownership_privilege, as: 'ownershipPrivilege' + property :security_patch_time, as: 'securityPatchTime' + property :supports_work_profile, as: 'supportsWorkProfile' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1Device + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_specific_attributes, as: 'androidSpecificAttributes', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes::Representation + + property :asset_tag, as: 'assetTag' + property :brand, as: 'brand' + property :compromised_state, as: 'compromisedState' + property :create_time, as: 'createTime' + property :device_type, as: 'deviceType' + property :imei, as: 'imei' + property :last_sync_time, as: 'lastSyncTime' + property :management_state, as: 'managementState' + property :manufacturer, as: 'manufacturer' + property :meid, as: 'meid' + property :model, as: 'model' + property :name, as: 'name' + property :network_operator, as: 'networkOperator' + property :os_version, as: 'osVersion' + property :owner_type, as: 'ownerType' + property :release_version, as: 'releaseVersion' + property :serial_number, as: 'serialNumber' + collection :wifi_mac_addresses, as: 'wifiMacAddresses' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compromised_state, as: 'compromisedState' + property :first_sync_time, as: 'firstSyncTime' + property :language_code, as: 'languageCode' + property :last_sync_time, as: 'lastSyncTime' + property :management_state, as: 'managementState' + property :name, as: 'name' + property :password_state, as: 'passwordState' + property :user_agent, as: 'userAgent' + property :user_email, as: 'userEmail' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + property :package_name, as: 'packageName' + collection :permissions, as: 'permissions' + property :version_code, as: 'versionCode' + property :version_name, as: 'versionName' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :device_users, as: 'deviceUsers', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :devices, as: 'devices', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :endpoint_apps, as: 'endpointApps', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1EndpointApp, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1EndpointApp::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation + + end + end + + class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation + + end + end + class Group # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -107,6 +357,15 @@ module Google end end + class ListGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :groups, as: 'groups', class: Google::Apis::CloudidentityV1beta1::Group, decorator: Google::Apis::CloudidentityV1beta1::Group::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListMembershipsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -137,6 +396,8 @@ module Google property :member_key, as: 'memberKey', class: Google::Apis::CloudidentityV1beta1::EntityKey, decorator: Google::Apis::CloudidentityV1beta1::EntityKey::Representation property :name, as: 'name' + property :preferred_member_key, as: 'preferredMemberKey', class: Google::Apis::CloudidentityV1beta1::EntityKey, decorator: Google::Apis::CloudidentityV1beta1::EntityKey::Representation + collection :roles, as: 'roles', class: Google::Apis::CloudidentityV1beta1::MembershipRole, decorator: Google::Apis::CloudidentityV1beta1::MembershipRole::Representation property :update_time, as: 'updateTime' @@ -150,6 +411,25 @@ module Google end end + class ModifyMembershipRolesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :add_roles, as: 'addRoles', class: Google::Apis::CloudidentityV1beta1::MembershipRole, decorator: Google::Apis::CloudidentityV1beta1::MembershipRole::Representation + + collection :remove_roles, as: 'removeRoles' + collection :update_roles_params, as: 'updateRolesParams', class: Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams, decorator: Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams::Representation + + end + end + + class ModifyMembershipRolesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :membership, as: 'membership', class: Google::Apis::CloudidentityV1beta1::Membership, decorator: Google::Apis::CloudidentityV1beta1::Membership::Representation + + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -179,6 +459,15 @@ module Google property :message, as: 'message' end end + + class UpdateMembershipRolesParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field_mask, as: 'fieldMask' + property :membership_role, as: 'membershipRole', class: Google::Apis::CloudidentityV1beta1::MembershipRole, decorator: Google::Apis::CloudidentityV1beta1::MembershipRole::Representation + + end + end end end end diff --git a/generated/google/apis/cloudidentity_v1beta1/service.rb b/generated/google/apis/cloudidentity_v1beta1/service.rb index 389c3eaa1..3d695d283 100644 --- a/generated/google/apis/cloudidentity_v1beta1/service.rb +++ b/generated/google/apis/cloudidentity_v1beta1/service.rb @@ -49,6 +49,8 @@ module Google # Creates a `Group`. # @param [Google::Apis::CloudidentityV1beta1::Group] group_object + # @param [String] initial_group_config + # Required. The initial configuration option for the `Group`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -66,12 +68,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_group(group_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_group(group_object = nil, initial_group_config: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/groups', options) command.request_representation = Google::Apis::CloudidentityV1beta1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation command.response_class = Google::Apis::CloudidentityV1beta1::Operation + command.query['initialGroupConfig'] = initial_group_config unless initial_group_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -79,7 +82,8 @@ module Google # Deletes a `Group`. # @param [String] name - # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of # the `Group` to retrieve. # Must be of the form `groups/`group_id``. # @param [String] fields @@ -111,7 +115,8 @@ module Google # Retrieves a `Group`. # @param [String] name - # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of # the `Group` to retrieve. # Must be of the form `groups/`group_id``. # @param [String] fields @@ -141,13 +146,61 @@ module Google execute_or_queue_command(command, &block) end + # Lists the `Group`s within a customer or namespace. + # @param [Fixnum] page_size + # The maximum number of results to return. + # Note that the number of results returned may be less than this value even + # if there are more available results. To fetch all results, clients must + # continue calling this method repeatedly until the response no longer + # contains a `next_page_token`. + # If unspecified, defaults to 200 for `View.BASIC` and to 50 for `View.FULL`. + # Must not be greater than 1000 for `View.BASIC` or 500 for `View.FULL`. + # @param [String] page_token + # The `next_page_token` value returned from a previous list request, if any. + # @param [String] parent + # Required. The parent resource under which to list all `Group`s. + # Must be of the form `identitysources/`identity_source_id`` for external- + # identity-mapped groups or `customers/`customer_id`` for Google Groups. + # @param [String] view + # The level of detail to be returned. + # If unspecified, defaults to `View.BASIC`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudidentityV1beta1::ListGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudidentityV1beta1::ListGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_groups(page_size: nil, page_token: nil, parent: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/groups', options) + command.response_representation = Google::Apis::CloudidentityV1beta1::ListGroupsResponse::Representation + command.response_class = Google::Apis::CloudidentityV1beta1::ListGroupsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['parent'] = parent unless parent.nil? + command.query['view'] = view unless view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Looks up the [resource # name](https://cloud.google.com/apis/design/resource_names) of a `Group` by # its `EntityKey`. # @param [String] group_key_id # The ID of the entity. - # For Google-managed entities, the `id` must be the email address of a group - # or user. + # For Google-managed entities, the `id` must be the email address of an + # existing group or user. # For external-identity-mapped entities, the `id` must be a string conforming # to the Identity Source's requirements. # Must be unique within a `namespace`. @@ -194,7 +247,7 @@ module Google # Shall be of the form `groups/`group_id``. # @param [Google::Apis::CloudidentityV1beta1::Group] group_object # @param [String] update_mask - # The fully-qualified names of fields to update. + # Required. The fully-qualified names of fields to update. # May only contain the following fields: `display_name`, `description`. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -241,13 +294,12 @@ module Google # The `next_page_token` value returned from a previous search request, if # any. # @param [String] query - # The search query. - # Only queries on the parent and labels of `Group`s are supported. + # Required. The search query. # Must be specified in [Common Expression # Language](https://opensource.google/projects/cel). May only contain - # equality operators on the parent (e.g. `parent == - # 'customers/`customer_id`'`) and inclusion operators on labels (e.g., - # `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). + # equality operators on the parent and inclusion operators on labels (e.g., + # `parent == 'customers/`customer_id`' && + # 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). # @param [String] view # The level of detail to be returned. # If unspecified, defaults to `View.BASIC`. @@ -283,7 +335,7 @@ module Google # Creates a `Membership`. # @param [String] parent - # The parent `Group` resource under which to create the `Membership`. + # Required. The parent `Group` resource under which to create the `Membership`. # Must be of the form `groups/`group_id``. # @param [Google::Apis::CloudidentityV1beta1::Membership] membership_object # @param [String] fields @@ -317,7 +369,8 @@ module Google # Deletes a `Membership`. # @param [String] name - # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of # the `Membership` to delete. # Must be of the form `groups/`group_id`/memberships/`membership_id``. # @param [String] fields @@ -349,7 +402,8 @@ module Google # Retrieves a `Membership`. # @param [String] name - # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of # the `Membership` to retrieve. # Must be of the form `groups/`group_id`/memberships/`membership_id``. # @param [String] fields @@ -381,7 +435,8 @@ module Google # Lists the `Membership`s within a `Group`. # @param [String] parent - # The parent `Group` resource under which to lookup the `Membership` name. + # Required. The parent `Group` resource under which to lookup the `Membership` + # name. # Must be of the form `groups/`group_id``. # @param [Fixnum] page_size # The maximum number of results to return. @@ -433,12 +488,13 @@ module Google # name](https://cloud.google.com/apis/design/resource_names) of a # `Membership` by its `EntityKey`. # @param [String] parent - # The parent `Group` resource under which to lookup the `Membership` name. + # Required. The parent `Group` resource under which to lookup the `Membership` + # name. # Must be of the form `groups/`group_id``. # @param [String] member_key_id # The ID of the entity. - # For Google-managed entities, the `id` must be the email address of a group - # or user. + # For Google-managed entities, the `id` must be the email address of an + # existing group or user. # For external-identity-mapped entities, the `id` must be a string conforming # to the Identity Source's requirements. # Must be unique within a `namespace`. @@ -477,6 +533,42 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Modifies the `MembershipRole`s of a `Membership`. + # @param [String] name + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of + # the `Membership` whose roles are to be modified. + # Must be of the form `groups/`group_id`/memberships/`membership_id``. + # @param [Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest] modify_membership_roles_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def modify_membership_roles(name, modify_membership_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:modifyMembershipRoles', options) + command.request_representation = Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest::Representation + command.request_object = modify_membership_roles_request_object + command.response_representation = Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesResponse::Representation + command.response_class = Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index efb900fa6..a7d0ab71d 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20200104' + REVISION = '20200131' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index a2d278268..af37bc432 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -222,10 +222,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudkmsV1::Expr] attr_accessor :condition @@ -686,34 +704,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` @@ -1176,6 +1210,14 @@ module Google class LocationMetadata include Google::Apis::Core::Hashable + # Indicates whether CryptoKeys with + # protection_level + # EXTERNAL can be created in this location. + # Corresponds to the JSON property `ekmAvailable` + # @return [Boolean] + attr_accessor :ekm_available + alias_method :ekm_available?, :ekm_available + # Indicates whether CryptoKeys with # protection_level # HSM can be created in this location. @@ -1190,6 +1232,7 @@ module Google # Update properties of this object def update!(**args) + @ekm_available = args[:ekm_available] if args.key?(:ekm_available) @hsm_available = args[:hsm_available] if args.key?(:hsm_available) end end diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index d55da27e3..e70de87f8 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -514,6 +514,7 @@ module Google class LocationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation + property :ekm_available, as: 'ekmAvailable' property :hsm_available, as: 'hsmAvailable' end end diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index b3481fdb1..ce21da5b8 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20200121' + REVISION = '20200128' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index e0cc419bf..d35be0aac 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -159,6 +159,12 @@ module Google class AutoprovisioningNodePoolDefaults include Google::Apis::Core::Hashable + # NodeManagement defines the set of node management services turned on for the + # node pool. + # Corresponds to the JSON property `management` + # @return [Google::Apis::ContainerV1::NodeManagement] + attr_accessor :management + # Scopes that are used by NAP when creating node pools. If oauth_scopes are # specified, service_account should be empty. # Corresponds to the JSON property `oauthScopes` @@ -171,14 +177,38 @@ module Google # @return [String] attr_accessor :service_account + # These upgrade settings control the level of parallelism and the level of + # disruption caused by an upgrade. + # maxUnavailable controls the number of nodes that can be simultaneously + # unavailable. + # maxSurge controls the number of additional nodes that can be added to the + # node pool temporarily for the time of the upgrade to increase the number of + # available nodes. + # (maxUnavailable + maxSurge) determines the level of parallelism (how many + # nodes are being upgraded at the same time). + # Note: upgrades inevitably introduce some disruption since workloads need to + # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + # this holds true. (Disruption stays within the limits of + # PodDisruptionBudget, if it is configured.) + # Consider a hypothetical node pool with 5 nodes having maxSurge=2, + # maxUnavailable=1. This means the upgrade process upgrades 3 nodes + # simultaneously. It creates 2 additional (upgraded) nodes, then it brings + # down 3 old (not yet upgraded) nodes at the same time. This ensures that + # there are always at least 4 nodes available. + # Corresponds to the JSON property `upgradeSettings` + # @return [Google::Apis::ContainerV1::UpgradeSettings] + attr_accessor :upgrade_settings + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @management = args[:management] if args.key?(:management) @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) @service_account = args[:service_account] if args.key?(:service_account) + @upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings) end end @@ -2111,8 +2141,9 @@ module Google # @return [Google::Apis::ContainerV1::SandboxConfig] attr_accessor :sandbox_config - # The Google Cloud Platform Service Account to be used by the node VMs. If - # no Service Account is specified, the "default" service account is used. + # The Google Cloud Platform Service Account to be used by the node VMs. + # Specify the email address of the Service Account; otherwise, if no Service + # Account is specified, the "default" service account is used. # Corresponds to the JSON property `serviceAccount` # @return [String] attr_accessor :service_account diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index 004fc490c..a532fa493 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -551,8 +551,12 @@ module Google class AutoprovisioningNodePoolDefaults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation + collection :oauth_scopes, as: 'oauthScopes' property :service_account, as: 'serviceAccount' + property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1::UpgradeSettings, decorator: Google::Apis::ContainerV1::UpgradeSettings::Representation + end end diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 39256c269..6d8c46bd0 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20200121' + REVISION = '20200128' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index c517a3328..64e115f49 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -63,6 +63,12 @@ module Google # @return [Google::Apis::ContainerV1beta1::DnsCacheConfig] attr_accessor :dns_cache_config + # Configuration for the GCE PD CSI driver. This option can only be enabled + # at cluster creation time. + # Corresponds to the JSON property `gcePersistentDiskCsiDriverConfig` + # @return [Google::Apis::ContainerV1beta1::GcePersistentDiskCsiDriverConfig] + attr_accessor :gce_persistent_disk_csi_driver_config + # Configuration options for the horizontal pod autoscaling feature, which # increases or decreases the number of replica pods a replication controller # has based on the resource usage of the existing pods. @@ -106,6 +112,7 @@ module Google def update!(**args) @cloud_run_config = args[:cloud_run_config] if args.key?(:cloud_run_config) @dns_cache_config = args[:dns_cache_config] if args.key?(:dns_cache_config) + @gce_persistent_disk_csi_driver_config = args[:gce_persistent_disk_csi_driver_config] if args.key?(:gce_persistent_disk_csi_driver_config) @horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling) @http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing) @istio_config = args[:istio_config] if args.key?(:istio_config) @@ -1429,6 +1436,27 @@ module Google end end + # Configuration for the GCE PD CSI driver. This option can only be enabled + # at cluster creation time. + class GcePersistentDiskCsiDriverConfig + include Google::Apis::Core::Hashable + + # Whether the GCE PD CSI driver is enabled for this cluster. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + end + end + # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 class GetJsonWebKeysResponse include Google::Apis::Core::Hashable @@ -2538,8 +2566,9 @@ module Google # @return [Google::Apis::ContainerV1beta1::SandboxConfig] attr_accessor :sandbox_config - # The Google Cloud Platform Service Account to be used by the node VMs. If - # no Service Account is specified, the "default" service account is used. + # The Google Cloud Platform Service Account to be used by the node VMs. + # Specify the email address of the Service Account; otherwise, if no Service + # Account is specified, the "default" service account is used. # Corresponds to the JSON property `serviceAccount` # @return [String] attr_accessor :service_account diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index e1e81bf38..dc6280b79 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -172,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GcePersistentDiskCsiDriverConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetJsonWebKeysResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -631,6 +637,8 @@ module Google property :dns_cache_config, as: 'dnsCacheConfig', class: Google::Apis::ContainerV1beta1::DnsCacheConfig, decorator: Google::Apis::ContainerV1beta1::DnsCacheConfig::Representation + property :gce_persistent_disk_csi_driver_config, as: 'gcePersistentDiskCsiDriverConfig', class: Google::Apis::ContainerV1beta1::GcePersistentDiskCsiDriverConfig, decorator: Google::Apis::ContainerV1beta1::GcePersistentDiskCsiDriverConfig::Representation + property :horizontal_pod_autoscaling, as: 'horizontalPodAutoscaling', class: Google::Apis::ContainerV1beta1::HorizontalPodAutoscaling, decorator: Google::Apis::ContainerV1beta1::HorizontalPodAutoscaling::Representation property :http_load_balancing, as: 'httpLoadBalancing', class: Google::Apis::ContainerV1beta1::HttpLoadBalancing, decorator: Google::Apis::ContainerV1beta1::HttpLoadBalancing::Representation @@ -956,6 +964,13 @@ module Google end end + class GcePersistentDiskCsiDriverConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + end + end + class GetJsonWebKeysResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 366ff79e7..0e55ada67 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20200104' + REVISION = '20200203' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index 91951c8b5..386f5322b 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -255,8 +255,11 @@ module Google class GooglePrivacyDlpV2BigQueryKey include Google::Apis::Core::Hashable - # Absolute number of the row from the beginning of the table at the time - # of scanning. + # Row number inferred at the time the table was scanned. This value is + # nondeterministic, cannot be queried, and may be null for inspection + # jobs. To locate findings within a table, specify + # `inspect_job.storage_config.big_query_options.identifying_fields` in + # `CreateDlpJobRequest`. # Corresponds to the JSON property `rowNumber` # @return [Fixnum] attr_accessor :row_number @@ -291,8 +294,11 @@ module Google # @return [Array] attr_accessor :excluded_fields - # References to fields uniquely identifying rows within the table. - # Nested fields in the format, like `person.birthdate.year`, are allowed. + # Table fields that may uniquely identify a row within the table. When + # `actions.saveFindings.outputConfig.table` is specified, the values of + # columns specified here are available in the output table under + # `location.content_locations.record_location.record_key.id_values`. Nested + # fields such as `person.birthdate.year` are allowed. # Corresponds to the JSON property `identifyingFields` # @return [Array] attr_accessor :identifying_fields @@ -995,7 +1001,8 @@ module Google end end - # Findings container location data. + # Precise location of the finding within a document, record, image, or metadata + # container. class GooglePrivacyDlpV2ContentLocation include Google::Apis::Core::Hashable @@ -4697,7 +4704,7 @@ module Google attr_accessor :datastore_key # Values of identifying columns in the given row. Order of values matches - # the order of field identifiers specified in the scanning request. + # the order of `identifying_fields` specified in the scanning request. # Corresponds to the JSON property `idValues` # @return [Array] attr_accessor :id_values diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 787f6580a..b2f058b55 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20200123' + REVISION = '20200131' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index 7996fbcdc..7e1aa85c0 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -751,6 +751,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :first_band_color + # A color value. + # Corresponds to the JSON property `firstBandColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :first_band_color_style + # 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 @@ -858,6 +863,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :footer_color + # A color value. + # Corresponds to the JSON property `footerColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :footer_color_style + # 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 @@ -965,6 +975,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :header_color + # A color value. + # Corresponds to the JSON property `headerColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :header_color_style + # 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 @@ -1072,6 +1087,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :second_band_color + # A color value. + # Corresponds to the JSON property `secondBandColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :second_band_color_style + def initialize(**args) update!(**args) end @@ -1079,9 +1099,13 @@ module Google # Update properties of this object def update!(**args) @first_band_color = args[:first_band_color] if args.key?(:first_band_color) + @first_band_color_style = args[:first_band_color_style] if args.key?(:first_band_color_style) @footer_color = args[:footer_color] if args.key?(:footer_color) + @footer_color_style = args[:footer_color_style] if args.key?(:footer_color_style) @header_color = args[:header_color] if args.key?(:header_color) + @header_color_style = args[:header_color_style] if args.key?(:header_color_style) @second_band_color = args[:second_band_color] if args.key?(:second_band_color) + @second_band_color_style = args[:second_band_color_style] if args.key?(:second_band_color_style) end end @@ -2394,6 +2418,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :color + # A color value. + # Corresponds to the JSON property `colorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :color_style + # The style of the border. # Corresponds to the JSON property `style` # @return [String] @@ -2412,6 +2441,7 @@ module Google # Update properties of this object def update!(**args) @color = args[:color] if args.key?(:color) + @color_style = args[:color_style] if args.key?(:color_style) @style = args[:style] if args.key?(:style) @width = args[:width] if args.key?(:width) end @@ -2951,6 +2981,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :background_color + # A color value. + # Corresponds to the JSON property `backgroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :background_color_style + # The borders of the cell. # Corresponds to the JSON property `borders` # @return [Google::Apis::SheetsV4::Borders] @@ -3010,6 +3045,7 @@ module Google # Update properties of this object def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) + @background_color_style = args[:background_color_style] if args.key?(:background_color_style) @borders = args[:borders] if args.key?(:borders) @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type) @@ -5283,6 +5319,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :visible_background_color + # A color value. + # Corresponds to the JSON property `visibleBackgroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :visible_background_color_style + # 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 @@ -5390,6 +5431,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :visible_foreground_color + # A color value. + # Corresponds to the JSON property `visibleForegroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :visible_foreground_color_style + def initialize(**args) update!(**args) end @@ -5399,7 +5445,9 @@ module Google @condition = args[:condition] if args.key?(:condition) @hidden_values = args[:hidden_values] if args.key?(:hidden_values) @visible_background_color = args[:visible_background_color] if args.key?(:visible_background_color) + @visible_background_color_style = args[:visible_background_color_style] if args.key?(:visible_background_color_style) @visible_foreground_color = args[:visible_foreground_color] if args.key?(:visible_foreground_color) + @visible_foreground_color_style = args[:visible_foreground_color_style] if args.key?(:visible_foreground_color_style) end end @@ -6355,6 +6403,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :color + # A color value. + # Corresponds to the JSON property `colorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :color_style + # How the value should be interpreted. # Corresponds to the JSON property `type` # @return [String] @@ -6374,6 +6427,7 @@ module Google # Update properties of this object def update!(**args) @color = args[:color] if args.key?(:color) + @color_style = args[:color_style] if args.key?(:color_style) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end @@ -8852,6 +8906,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :tab_color + # A color value. + # Corresponds to the JSON property `tabColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :tab_color_style + # The name of the sheet. # Corresponds to the JSON property `title` # @return [String] @@ -8870,6 +8929,7 @@ module Google @sheet_id = args[:sheet_id] if args.key?(:sheet_id) @sheet_type = args[:sheet_type] if args.key?(:sheet_type) @tab_color = args[:tab_color] if args.key?(:tab_color) + @tab_color_style = args[:tab_color_style] if args.key?(:tab_color_style) @title = args[:title] if args.key?(:title) end end @@ -9023,6 +9083,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :background_color + # A color value. + # Corresponds to the JSON property `backgroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :background_color_style + # The column index in the data table on which the filter is applied to. # Corresponds to the JSON property `columnIndex` # @return [Fixnum] @@ -9084,6 +9149,7 @@ module Google def update!(**args) @apply_to_pivot_tables = args[:apply_to_pivot_tables] if args.key?(:apply_to_pivot_tables) @background_color = args[:background_color] if args.key?(:background_color) + @background_color_style = args[:background_color_style] if args.key?(:background_color_style) @column_index = args[:column_index] if args.key?(:column_index) @data_range = args[:data_range] if args.key?(:data_range) @filter_criteria = args[:filter_criteria] if args.key?(:filter_criteria) @@ -9251,6 +9317,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :background_color + # A color value. + # Corresponds to the JSON property `backgroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :background_color_style + # The dimension the sort should be applied to. # Corresponds to the JSON property `dimensionIndex` # @return [Fixnum] @@ -9363,6 +9434,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :foreground_color + # A color value. + # Corresponds to the JSON property `foregroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :foreground_color_style + # The order data should be sorted. # Corresponds to the JSON property `sortOrder` # @return [String] @@ -9375,8 +9451,10 @@ module Google # Update properties of this object def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) + @background_color_style = args[:background_color_style] if args.key?(:background_color_style) @dimension_index = args[:dimension_index] if args.key?(:dimension_index) @foreground_color = args[:foreground_color] if args.key?(:foreground_color) + @foreground_color_style = args[:foreground_color_style] if args.key?(:foreground_color_style) @sort_order = args[:sort_order] if args.key?(:sort_order) end end @@ -9703,6 +9781,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :foreground_color + # A color value. + # Corresponds to the JSON property `foregroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :foreground_color_style + # True if the text is italicized. # Corresponds to the JSON property `italic` # @return [Boolean] @@ -9731,6 +9814,7 @@ module Google @font_family = args[:font_family] if args.key?(:font_family) @font_size = args[:font_size] if args.key?(:font_size) @foreground_color = args[:foreground_color] if args.key?(:foreground_color) + @foreground_color_style = args[:foreground_color_style] if args.key?(:foreground_color_style) @italic = args[:italic] if args.key?(:italic) @strikethrough = args[:strikethrough] if args.key?(:strikethrough) @underline = args[:underline] if args.key?(:underline) diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index b72c8ad17..a5068de77 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -1443,12 +1443,20 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :first_band_color, as: 'firstBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :first_band_color_style, as: 'firstBandColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :footer_color, as: 'footerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :footer_color_style, as: 'footerColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :header_color, as: 'headerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :header_color_style, as: 'headerColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :second_band_color, as: 'secondBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :second_band_color_style, as: 'secondBandColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + end end @@ -1699,6 +1707,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :color_style, as: 'colorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :style, as: 'style' property :width, as: 'width' end @@ -1813,6 +1823,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :background_color_style, as: 'backgroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :borders, as: 'borders', class: Google::Apis::SheetsV4::Borders, decorator: Google::Apis::SheetsV4::Borders::Representation property :horizontal_alignment, as: 'horizontalAlignment' @@ -2338,8 +2350,12 @@ module Google collection :hidden_values, as: 'hiddenValues' property :visible_background_color, as: 'visibleBackgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :visible_background_color_style, as: 'visibleBackgroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :visible_foreground_color, as: 'visibleForegroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :visible_foreground_color_style, as: 'visibleForegroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + end end @@ -2509,6 +2525,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :color_style, as: 'colorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :type, as: 'type' property :value, as: 'value' end @@ -3077,6 +3095,8 @@ module Google property :sheet_type, as: 'sheetType' property :tab_color, as: 'tabColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :tab_color_style, as: 'tabColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :title, as: 'title' end end @@ -3098,6 +3118,8 @@ module Google property :apply_to_pivot_tables, as: 'applyToPivotTables' property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :background_color_style, as: 'backgroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :column_index, as: 'columnIndex' property :data_range, as: 'dataRange', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation @@ -3125,9 +3147,13 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :background_color_style, as: 'backgroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :dimension_index, as: 'dimensionIndex' property :foreground_color, as: 'foregroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :foreground_color_style, as: 'foregroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :sort_order, as: 'sortOrder' end end @@ -3191,6 +3217,8 @@ module Google property :font_size, as: 'fontSize' property :foreground_color, as: 'foregroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :foreground_color_style, as: 'foregroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :italic, as: 'italic' property :strikethrough, as: 'strikethrough' property :underline, as: 'underline' diff --git a/generated/google/apis/translate_v3.rb b/generated/google/apis/translate_v3.rb index b4c58bddf..23a580728 100644 --- a/generated/google/apis/translate_v3.rb +++ b/generated/google/apis/translate_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/translate/docs/quickstarts module TranslateV3 VERSION = 'V3' - REVISION = '20200110' + REVISION = '20200131' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/translate_v3/classes.rb b/generated/google/apis/translate_v3/classes.rb index e8875522f..d4acedf7b 100644 --- a/generated/google/apis/translate_v3/classes.rb +++ b/generated/google/apis/translate_v3/classes.rb @@ -733,8 +733,11 @@ module Google class TranslateTextGlossaryConfig include Google::Apis::Core::Hashable - # Required. Specifies the glossary used for this translation. Use - # this format: projects/*/locations/*/glossaries/* + # Required. The `glossary` to be applied for this translation. + # The format depends on glossary: + # - User provided custom glossary: + # `projects/`project-number-or-id`/locations/`location-id`/glossaries/` + # glossary-id`` # Corresponds to the JSON property `glossary` # @return [String] attr_accessor :glossary