From fcfe9573ea59811b8051c108efac6ba62246eaa0 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 10 Oct 2020 00:39:11 +0000 Subject: [PATCH] Autogenerated update (2020-10-10) Update: - lifesciences_v2beta - sqladmin_v1beta4 - workflows_v1beta - youtube_partner_v1 --- api_names_out.yaml | 17 +++ generated/google/apis/lifesciences_v2beta.rb | 2 +- .../apis/lifesciences_v2beta/classes.rb | 104 ++++++++++++++++++ .../lifesciences_v2beta/representations.rb | 47 ++++++++ generated/google/apis/sqladmin_v1beta4.rb | 2 +- .../google/apis/sqladmin_v1beta4/classes.rb | 54 ++++++++- .../apis/sqladmin_v1beta4/representations.rb | 17 +++ generated/google/apis/workflows_v1beta.rb | 5 +- .../google/apis/workflows_v1beta/service.rb | 3 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 10 files changed, 242 insertions(+), 11 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index b0c871ab3..c85a4006f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -110920,6 +110920,8 @@ "/lifesciences:v2beta/Event/unexpectedExitStatus": unexpected_exit_status "/lifesciences:v2beta/Event/workerAssigned": worker_assigned "/lifesciences:v2beta/Event/workerReleased": worker_released +"/lifesciences:v2beta/ExistingDisk": existing_disk +"/lifesciences:v2beta/ExistingDisk/disk": disk "/lifesciences:v2beta/FailedEvent": failed_event "/lifesciences:v2beta/FailedEvent/cause": cause "/lifesciences:v2beta/FailedEvent/code": code @@ -110964,6 +110966,10 @@ "/lifesciences:v2beta/Operation/name": name "/lifesciences:v2beta/Operation/response": response "/lifesciences:v2beta/Operation/response/response": response +"/lifesciences:v2beta/PersistentDisk": persistent_disk +"/lifesciences:v2beta/PersistentDisk/sizeGb": size_gb +"/lifesciences:v2beta/PersistentDisk/sourceImage": source_image +"/lifesciences:v2beta/PersistentDisk/type": type "/lifesciences:v2beta/Pipeline": pipeline "/lifesciences:v2beta/Pipeline/actions": actions "/lifesciences:v2beta/Pipeline/actions/action": action @@ -111020,6 +111026,12 @@ "/lifesciences:v2beta/VirtualMachine/nvidiaDriverVersion": nvidia_driver_version "/lifesciences:v2beta/VirtualMachine/preemptible": preemptible "/lifesciences:v2beta/VirtualMachine/serviceAccount": service_account +"/lifesciences:v2beta/VirtualMachine/volumes": volumes +"/lifesciences:v2beta/VirtualMachine/volumes/volume": volume +"/lifesciences:v2beta/Volume": volume +"/lifesciences:v2beta/Volume/existingDisk": existing_disk +"/lifesciences:v2beta/Volume/persistentDisk": persistent_disk +"/lifesciences:v2beta/Volume/volume": volume "/lifesciences:v2beta/WorkerAssignedEvent": worker_assigned_event "/lifesciences:v2beta/WorkerAssignedEvent/instance": instance "/lifesciences:v2beta/WorkerAssignedEvent/machineType": machine_type @@ -138718,6 +138730,7 @@ "/sqladmin:v1beta4/ApiWarning/code": code "/sqladmin:v1beta4/ApiWarning/message": message "/sqladmin:v1beta4/BackupConfiguration": backup_configuration +"/sqladmin:v1beta4/BackupConfiguration/backupRetentionSettings": backup_retention_settings "/sqladmin:v1beta4/BackupConfiguration/binaryLogEnabled": binary_log_enabled "/sqladmin:v1beta4/BackupConfiguration/enabled": enabled "/sqladmin:v1beta4/BackupConfiguration/kind": kind @@ -138725,6 +138738,10 @@ "/sqladmin:v1beta4/BackupConfiguration/pointInTimeRecoveryEnabled": point_in_time_recovery_enabled "/sqladmin:v1beta4/BackupConfiguration/replicationLogArchivingEnabled": replication_log_archiving_enabled "/sqladmin:v1beta4/BackupConfiguration/startTime": start_time +"/sqladmin:v1beta4/BackupConfiguration/transactionLogRetentionDays": transaction_log_retention_days +"/sqladmin:v1beta4/BackupRetentionSettings": backup_retention_settings +"/sqladmin:v1beta4/BackupRetentionSettings/retainedBackups": retained_backups +"/sqladmin:v1beta4/BackupRetentionSettings/retentionUnit": retention_unit "/sqladmin:v1beta4/BackupRun": backup_run "/sqladmin:v1beta4/BackupRun/backupKind": backup_kind "/sqladmin:v1beta4/BackupRun/description": description diff --git a/generated/google/apis/lifesciences_v2beta.rb b/generated/google/apis/lifesciences_v2beta.rb index 854361fb2..a792941a8 100644 --- a/generated/google/apis/lifesciences_v2beta.rb +++ b/generated/google/apis/lifesciences_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/life-sciences module LifesciencesV2beta VERSION = 'V2beta' - REVISION = '20200806' + REVISION = '20201001' # 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/lifesciences_v2beta/classes.rb b/generated/google/apis/lifesciences_v2beta/classes.rb index 65e33fa3e..04b4d9b4f 100644 --- a/generated/google/apis/lifesciences_v2beta/classes.rb +++ b/generated/google/apis/lifesciences_v2beta/classes.rb @@ -538,6 +538,32 @@ module Google end end + # Configuration for an existing disk to be attached to the VM. + class ExistingDisk + include Google::Apis::Core::Hashable + + # If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a + # complete URL for the disk. If `disk` does not contain slashes, the Cloud Life + # Sciences API assumes that the disk is a zonal disk and a URL will be generated + # of the form `zones//disks/`, where `` is the zone in which the instance is + # allocated. The disk must be ext4 formatted. If all `Mount` references to this + # disk have the `read_only` flag set to true, the disk will be attached in `read- + # only` mode and can be shared with other instances. Otherwise, the disk will be + # available for writing but cannot be shared. + # Corresponds to the JSON property `disk` + # @return [String] + attr_accessor :disk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk = args[:disk] if args.key?(:disk) + end + end + # An event generated when the execution of a pipeline has failed. Note that # other events can continue to occur after this event. class FailedEvent @@ -839,6 +865,43 @@ module Google end end + # Configuration for a persistent disk to be attached to the VM. See https:// + # cloud.google.com/compute/docs/disks/performance for more information about + # disk type, size, and performance considerations. + class PersistentDisk + include Google::Apis::Core::Hashable + + # The size, in GB, of the disk to attach. If the size is not specified, a + # default is chosen to ensure reasonable I/O performance. If the disk type is + # specified as `local-ssd`, multiple local drives are automatically combined to + # provide the requested size. Note, however, that each physical SSD is 375GB in + # size, and no more than 8 drives can be attached to a single instance. + # Corresponds to the JSON property `sizeGb` + # @return [Fixnum] + attr_accessor :size_gb + + # An image to put on the disk before attaching it to the VM. + # Corresponds to the JSON property `sourceImage` + # @return [String] + attr_accessor :source_image + + # The Compute Engine disk type. If unspecified, `pd-standard` is used. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @size_gb = args[:size_gb] if args.key?(:size_gb) + @source_image = args[:source_image] if args.key?(:source_image) + @type = args[:type] if args.key?(:type) + end + end + # Specifies a series of actions to execute, expressed as Docker containers. class Pipeline include Google::Apis::Core::Hashable @@ -1228,6 +1291,11 @@ module Google # @return [Google::Apis::LifesciencesV2beta::ServiceAccount] attr_accessor :service_account + # The list of disks and other storage to create or attach to the VM. + # Corresponds to the JSON property `volumes` + # @return [Array] + attr_accessor :volumes + def initialize(**args) update!(**args) end @@ -1247,6 +1315,42 @@ module Google @nvidia_driver_version = args[:nvidia_driver_version] if args.key?(:nvidia_driver_version) @preemptible = args[:preemptible] if args.key?(:preemptible) @service_account = args[:service_account] if args.key?(:service_account) + @volumes = args[:volumes] if args.key?(:volumes) + end + end + + # Carries information about storage that can be attached to a VM. + class Volume + include Google::Apis::Core::Hashable + + # Configuration for an existing disk to be attached to the VM. + # Corresponds to the JSON property `existingDisk` + # @return [Google::Apis::LifesciencesV2beta::ExistingDisk] + attr_accessor :existing_disk + + # Configuration for a persistent disk to be attached to the VM. See https:// + # cloud.google.com/compute/docs/disks/performance for more information about + # disk type, size, and performance considerations. + # Corresponds to the JSON property `persistentDisk` + # @return [Google::Apis::LifesciencesV2beta::PersistentDisk] + attr_accessor :persistent_disk + + # A user-supplied name for the volume. Used when mounting the volume into ` + # Actions`. The name must contain only upper and lowercase alphanumeric + # characters and hyphens and cannot start with a hyphen. + # Corresponds to the JSON property `volume` + # @return [String] + attr_accessor :volume + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @existing_disk = args[:existing_disk] if args.key?(:existing_disk) + @persistent_disk = args[:persistent_disk] if args.key?(:persistent_disk) + @volume = args[:volume] if args.key?(:volume) end end diff --git a/generated/google/apis/lifesciences_v2beta/representations.rb b/generated/google/apis/lifesciences_v2beta/representations.rb index 3aec1552d..5446a7a2c 100644 --- a/generated/google/apis/lifesciences_v2beta/representations.rb +++ b/generated/google/apis/lifesciences_v2beta/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExistingDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FailedEvent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,6 +136,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PersistentDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Pipeline class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,6 +208,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Volume + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WorkerAssignedEvent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -325,6 +343,13 @@ module Google end end + class ExistingDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk, as: 'disk' + end + end + class FailedEvent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -406,6 +431,15 @@ module Google end end + class PersistentDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :size_gb, as: 'sizeGb' + property :source_image, as: 'sourceImage' + property :type, as: 'type' + end + end + class Pipeline # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -510,6 +544,19 @@ module Google property :preemptible, as: 'preemptible' property :service_account, as: 'serviceAccount', class: Google::Apis::LifesciencesV2beta::ServiceAccount, decorator: Google::Apis::LifesciencesV2beta::ServiceAccount::Representation + collection :volumes, as: 'volumes', class: Google::Apis::LifesciencesV2beta::Volume, decorator: Google::Apis::LifesciencesV2beta::Volume::Representation + + end + end + + class Volume + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :existing_disk, as: 'existingDisk', class: Google::Apis::LifesciencesV2beta::ExistingDisk, decorator: Google::Apis::LifesciencesV2beta::ExistingDisk::Representation + + property :persistent_disk, as: 'persistentDisk', class: Google::Apis::LifesciencesV2beta::PersistentDisk, decorator: Google::Apis::LifesciencesV2beta::PersistentDisk::Representation + + property :volume, as: 'volume' end end diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index e519b70ae..843ec26cf 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-sql/ module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20200919' + REVISION = '20201007' # 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/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index 373762f9d..b7d0b0f18 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -89,6 +89,12 @@ module Google class BackupConfiguration include Google::Apis::Core::Hashable + # We currently only support backup retention by specifying the number of backups + # we will retain. + # Corresponds to the JSON property `backupRetentionSettings` + # @return [Google::Apis::SqladminV1beta4::BackupRetentionSettings] + attr_accessor :backup_retention_settings + # (MySQL only) Whether binary log is enabled. If backup configuration is # disabled, binarylog must be disabled as well. # Corresponds to the JSON property `binaryLogEnabled` @@ -130,12 +136,19 @@ module Google # @return [String] attr_accessor :start_time + # The number of days of transaction logs we retain for point in time restore, + # from 1-7. + # Corresponds to the JSON property `transactionLogRetentionDays` + # @return [Fixnum] + attr_accessor :transaction_log_retention_days + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @backup_retention_settings = args[:backup_retention_settings] if args.key?(:backup_retention_settings) @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled) @enabled = args[:enabled] if args.key?(:enabled) @kind = args[:kind] if args.key?(:kind) @@ -143,6 +156,35 @@ module Google @point_in_time_recovery_enabled = args[:point_in_time_recovery_enabled] if args.key?(:point_in_time_recovery_enabled) @replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled) @start_time = args[:start_time] if args.key?(:start_time) + @transaction_log_retention_days = args[:transaction_log_retention_days] if args.key?(:transaction_log_retention_days) + end + end + + # We currently only support backup retention by specifying the number of backups + # we will retain. + class BackupRetentionSettings + include Google::Apis::Core::Hashable + + # Depending on the value of retention_unit, this is used to determine if a + # backup needs to be deleted. If retention_unit is 'COUNT', we will retain this + # many backups. + # Corresponds to the JSON property `retainedBackups` + # @return [Fixnum] + attr_accessor :retained_backups + + # The unit that 'retained_backups' represents. + # Corresponds to the JSON property `retentionUnit` + # @return [String] + attr_accessor :retention_unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retained_backups = args[:retained_backups] if args.key?(:retained_backups) + @retention_unit = args[:retention_unit] if args.key?(:retention_unit) end end @@ -626,11 +668,13 @@ module Google attr_accessor :settings # The current serving state of the Cloud SQL instance. This can be one of the - # following. *RUNNABLE*: The instance is running, or is ready to run when - # accessed. *SUSPENDED*: The instance is not available, for example due to - # problems with billing. *PENDING_CREATE*: The instance is being created. * - # MAINTENANCE*: The instance is down for maintenance. *FAILED*: The instance - # creation failed. *UNKNOWN_STATE*: The state of the instance is unknown. + # following. *SQL_INSTANCE_STATE_UNSPECIFIED*: The state of the instance is + # unknown. *RUNNABLE*: The instance has been stopped by owner. It is not + # currently running, but it's ready to be restarted. *SUSPENDED*: The instance + # is not available, for example due to problems with billing. for example due to + # problems with billing. *PENDING_DELETE*: The instance is being deleted. * + # PENDING_CREATE*: The instance is being created. *MAINTENANCE*: The instance is + # down for maintenance. *FAILED*: The instance creation failed. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index dad83a217..9b68f3c81 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackupRetentionSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackupRun class Representation < Google::Apis::Core::JsonRepresentation; end @@ -475,6 +481,8 @@ module Google class BackupConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation + property :backup_retention_settings, as: 'backupRetentionSettings', class: Google::Apis::SqladminV1beta4::BackupRetentionSettings, decorator: Google::Apis::SqladminV1beta4::BackupRetentionSettings::Representation + property :binary_log_enabled, as: 'binaryLogEnabled' property :enabled, as: 'enabled' property :kind, as: 'kind' @@ -482,6 +490,15 @@ module Google property :point_in_time_recovery_enabled, as: 'pointInTimeRecoveryEnabled' property :replication_log_archiving_enabled, as: 'replicationLogArchivingEnabled' property :start_time, as: 'startTime' + property :transaction_log_retention_days, as: 'transactionLogRetentionDays' + end + end + + class BackupRetentionSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retained_backups, as: 'retainedBackups' + property :retention_unit, as: 'retentionUnit' end end diff --git a/generated/google/apis/workflows_v1beta.rb b/generated/google/apis/workflows_v1beta.rb index 54929dfa5..0e9c2568e 100644 --- a/generated/google/apis/workflows_v1beta.rb +++ b/generated/google/apis/workflows_v1beta.rb @@ -20,12 +20,13 @@ module Google module Apis # Workflows API # - # + # Orchestrate Workflows consisting of Google Cloud APIs, SaaS APIs or private + # API endpoints. # # @see https://cloud.google.com/workflows module WorkflowsV1beta VERSION = 'V1beta' - REVISION = '20200828' + REVISION = '20201008' # 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/workflows_v1beta/service.rb b/generated/google/apis/workflows_v1beta/service.rb index 1a32cf331..2ba71637d 100644 --- a/generated/google/apis/workflows_v1beta/service.rb +++ b/generated/google/apis/workflows_v1beta/service.rb @@ -22,7 +22,8 @@ module Google module WorkflowsV1beta # Workflows API # - # + # Orchestrate Workflows consisting of Google Cloud APIs, SaaS APIs or private + # API endpoints. # # @example # require 'google/apis/workflows_v1beta' diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 33363975d..dd9826ea2 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20201005' + REVISION = '20201008' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'