From 54f5ead981fcdcf5b4860ae771b23fecb3a38250 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 19 Jan 2018 00:35:50 +0000 Subject: [PATCH] Autogenerated update (2018-01-19) Update: - cloudkms_v1 - compute_alpha - container_v1 - dataproc_v1beta2 - logging_v2beta1 - monitoring_v3 - oslogin_v1 - oslogin_v1alpha - oslogin_v1beta - script_v1 - youtube_partner_v1 --- api_names_out.yaml | 24 +++ generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/classes.rb | 69 ------- .../apis/cloudkms_v1/representations.rb | 20 -- generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 174 ++++++++++++++++-- .../apis/compute_alpha/representations.rb | 56 +++++- .../google/apis/compute_alpha/service.rb | 7 +- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 12 +- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 5 +- generated/google/apis/logging_v2beta1.rb | 2 +- .../google/apis/logging_v2beta1/classes.rb | 9 + .../apis/logging_v2beta1/representations.rb | 1 + generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 12 +- .../google/apis/monitoring_v3/service.rb | 4 +- generated/google/apis/oslogin_v1.rb | 2 +- generated/google/apis/oslogin_v1/classes.rb | 10 +- .../google/apis/oslogin_v1/representations.rb | 1 - generated/google/apis/oslogin_v1alpha.rb | 2 +- .../google/apis/oslogin_v1alpha/classes.rb | 11 +- .../apis/oslogin_v1alpha/representations.rb | 1 - generated/google/apis/oslogin_v1beta.rb | 2 +- .../google/apis/oslogin_v1beta/classes.rb | 10 +- .../apis/oslogin_v1beta/representations.rb | 1 - generated/google/apis/script_v1.rb | 2 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 29 files changed, 289 insertions(+), 160 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 212752b58..0a3deca60 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -15889,6 +15889,8 @@ "/compute:alpha/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb "/compute:alpha/AttachedDiskInitializeParams/diskStorageType": disk_storage_type "/compute:alpha/AttachedDiskInitializeParams/diskType": disk_type +"/compute:alpha/AttachedDiskInitializeParams/labels": labels +"/compute:alpha/AttachedDiskInitializeParams/labels/label": label "/compute:alpha/AttachedDiskInitializeParams/sourceImage": source_image "/compute:alpha/AttachedDiskInitializeParams/sourceImageEncryptionKey": source_image_encryption_key "/compute:alpha/AuditConfig": audit_config @@ -16273,6 +16275,7 @@ "/compute:alpha/DiskAggregatedList/warning/message": message "/compute:alpha/DiskInstantiationConfig": disk_instantiation_config "/compute:alpha/DiskInstantiationConfig/autoDelete": auto_delete +"/compute:alpha/DiskInstantiationConfig/customImage": custom_image "/compute:alpha/DiskInstantiationConfig/deviceName": device_name "/compute:alpha/DiskInstantiationConfig/instantiateFrom": instantiate_from "/compute:alpha/DiskInstantiationConfig/sourceImage": source_image @@ -16806,6 +16809,7 @@ "/compute:alpha/Instance/name": name "/compute:alpha/Instance/networkInterfaces": network_interfaces "/compute:alpha/Instance/networkInterfaces/network_interface": network_interface +"/compute:alpha/Instance/preservedStateSizeGb": preserved_state_size_gb "/compute:alpha/Instance/scheduling": scheduling "/compute:alpha/Instance/selfLink": self_link "/compute:alpha/Instance/serviceAccounts": service_accounts @@ -17548,6 +17552,10 @@ "/compute:alpha/ManagedInstanceOverride": managed_instance_override "/compute:alpha/ManagedInstanceOverride/disks": disks "/compute:alpha/ManagedInstanceOverride/disks/disk": disk +"/compute:alpha/ManagedInstanceOverride/metadata": metadata +"/compute:alpha/ManagedInstanceOverride/metadata/metadatum": metadatum +"/compute:alpha/ManagedInstanceOverride/metadata/metadatum/key": key +"/compute:alpha/ManagedInstanceOverride/metadata/metadatum/value": value "/compute:alpha/ManagedInstanceOverride/origin": origin "/compute:alpha/ManagedInstanceOverrideDiskOverride": managed_instance_override_disk_override "/compute:alpha/ManagedInstanceOverrideDiskOverride/deviceName": device_name @@ -18323,11 +18331,17 @@ "/compute:alpha/SslCertificate/certificate": certificate "/compute:alpha/SslCertificate/creationTimestamp": creation_timestamp "/compute:alpha/SslCertificate/description": description +"/compute:alpha/SslCertificate/expiryTime": expiry_time "/compute:alpha/SslCertificate/id": id "/compute:alpha/SslCertificate/kind": kind +"/compute:alpha/SslCertificate/managed": managed "/compute:alpha/SslCertificate/name": name "/compute:alpha/SslCertificate/privateKey": private_key "/compute:alpha/SslCertificate/selfLink": self_link +"/compute:alpha/SslCertificate/selfManaged": self_managed +"/compute:alpha/SslCertificate/subjectAlternativeNames": subject_alternative_names +"/compute:alpha/SslCertificate/subjectAlternativeNames/subject_alternative_name": subject_alternative_name +"/compute:alpha/SslCertificate/type": type "/compute:alpha/SslCertificateList": ssl_certificate_list "/compute:alpha/SslCertificateList/id": id "/compute:alpha/SslCertificateList/items": items @@ -18342,6 +18356,15 @@ "/compute:alpha/SslCertificateList/warning/data/datum/key": key "/compute:alpha/SslCertificateList/warning/data/datum/value": value "/compute:alpha/SslCertificateList/warning/message": message +"/compute:alpha/SslCertificateManagedSslCertificate": ssl_certificate_managed_ssl_certificate +"/compute:alpha/SslCertificateManagedSslCertificate/domainStatus": domain_status +"/compute:alpha/SslCertificateManagedSslCertificate/domainStatus/domain_status": domain_status +"/compute:alpha/SslCertificateManagedSslCertificate/domains": domains +"/compute:alpha/SslCertificateManagedSslCertificate/domains/domain": domain +"/compute:alpha/SslCertificateManagedSslCertificate/status": status +"/compute:alpha/SslCertificateSelfManagedSslCertificate": ssl_certificate_self_managed_ssl_certificate +"/compute:alpha/SslCertificateSelfManagedSslCertificate/certificate": certificate +"/compute:alpha/SslCertificateSelfManagedSslCertificate/privateKey": private_key "/compute:alpha/SslPoliciesList": ssl_policies_list "/compute:alpha/SslPoliciesList/id": id "/compute:alpha/SslPoliciesList/items": items @@ -52470,6 +52493,7 @@ "/logging:v2beta1/SourceReference/repository": repository "/logging:v2beta1/SourceReference/revisionId": revision_id "/logging:v2beta1/WriteLogEntriesRequest": write_log_entries_request +"/logging:v2beta1/WriteLogEntriesRequest/dryRun": dry_run "/logging:v2beta1/WriteLogEntriesRequest/entries": entries "/logging:v2beta1/WriteLogEntriesRequest/entries/entry": entry "/logging:v2beta1/WriteLogEntriesRequest/labels": labels diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 821027873..59890fcd7 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 = '20180104' + REVISION = '20180117' # 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 8d0eb6906..64ed3ce76 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -78,11 +78,6 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - # Specifies a service that will be enabled for audit logging. # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. # `allServices` is a special value that covers all services. @@ -97,7 +92,6 @@ module Google # Update properties of this object def update!(**args) @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) @service = args[:service] if args.key?(:service) end end @@ -149,14 +143,6 @@ 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" - # Corresponds to the JSON property `condition` - # @return [Google::Apis::CloudkmsV1::Expr] - attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -188,7 +174,6 @@ module Google # Update properties of this object def update!(**args) - @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -444,53 +429,6 @@ 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" - class Expr - include Google::Apis::Core::Hashable - - # An 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. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - # An 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 - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @expression = args[:expression] if args.key?(:expression) - @location = args[:location] if args.key?(:location) - @title = args[:title] if args.key?(:title) - end - end - # A KeyRing is a toplevel logical grouping of CryptoKeys. class KeyRing include Google::Apis::Core::Hashable @@ -734,12 +672,6 @@ module Google # @return [String] attr_accessor :etag - # - # Corresponds to the JSON property `iamOwned` - # @return [Boolean] - attr_accessor :iam_owned - alias_method :iam_owned?, :iam_owned - # Deprecated. # Corresponds to the JSON property `version` # @return [Fixnum] @@ -754,7 +686,6 @@ module Google @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) @version = args[:version] if args.key?(:version) end end diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index 21ea1aa07..34ea47dde 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -82,12 +82,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Expr - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class KeyRing class Representation < Google::Apis::Core::JsonRepresentation; end @@ -165,7 +159,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation - collection :exempted_members, as: 'exemptedMembers' property :service, as: 'service' end end @@ -181,8 +174,6 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation - property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation - collection :members, as: 'members' property :role, as: 'role' end @@ -250,16 +241,6 @@ module Google end end - class Expr - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :expression, as: 'expression' - property :location, as: 'location' - property :title, as: 'title' - end - end - class KeyRing # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -325,7 +306,6 @@ module Google collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation property :etag, :base64 => true, as: 'etag' - property :iam_owned, as: 'iamOwned' property :version, as: 'version' end end diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 4008b68bb..5f57f3be9 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20171207' + REVISION = '20171228' # 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/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index bb563746c..e827aef13 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -32,8 +32,9 @@ module Google # @return [Fixnum] attr_accessor :accelerator_count - # Full or partial URL of the accelerator type resource to expose to this - # instance. + # Full or partial URL of the accelerator type resource to attach to this + # instance. If you are creating an instance template, specify only the + # accelerator name. # Corresponds to the JSON property `acceleratorType` # @return [String] attr_accessor :accelerator_type @@ -1206,6 +1207,12 @@ module Google # @return [String] attr_accessor :disk_type + # Labels to apply to this disk. These can be later modified by the disks. + # setLabels method. This field is only applicable for persistent disks. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # The source image to create this disk. When creating a new instance, one of # initializeParams.sourceImage or disks.source is required except for local SSD. # To create a disk with one of the public operating system images, specify the @@ -1241,6 +1248,7 @@ module Google @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_storage_type = args[:disk_storage_type] if args.key?(:disk_storage_type) @disk_type = args[:disk_type] if args.key?(:disk_type) + @labels = args[:labels] if args.key?(:labels) @source_image = args[:source_image] if args.key?(:source_image) @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) end @@ -4376,6 +4384,12 @@ module Google attr_accessor :auto_delete alias_method :auto_delete?, :auto_delete + # The custom source image to be used to restore this disk when instantiating + # this instance template. + # Corresponds to the JSON property `customImage` + # @return [String] + attr_accessor :custom_image + # Specifies the device name of the disk to which the configurations apply to. # Corresponds to the JSON property `deviceName` # @return [String] @@ -4386,12 +4400,6 @@ module Google # @return [String] attr_accessor :instantiate_from - # The custom source image to be used to restore this disk when instantiating - # this instance template. - # Corresponds to the JSON property `sourceImage` - # @return [String] - attr_accessor :source_image - def initialize(**args) update!(**args) end @@ -4399,9 +4407,9 @@ module Google # Update properties of this object def update!(**args) @auto_delete = args[:auto_delete] if args.key?(:auto_delete) + @custom_image = args[:custom_image] if args.key?(:custom_image) @device_name = args[:device_name] if args.key?(:device_name) @instantiate_from = args[:instantiate_from] if args.key?(:instantiate_from) - @source_image = args[:source_image] if args.key?(:source_image) end end @@ -8727,6 +8735,11 @@ module Google # @return [Array] attr_accessor :network_interfaces + # Total amount of preserved state for SUSPENDED instances. Read-only in the api. + # Corresponds to the JSON property `preservedStateSizeGb` + # @return [Fixnum] + attr_accessor :preserved_state_size_gb + # Sets the scheduling options for an Instance. # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] @@ -8805,6 +8818,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @name = args[:name] if args.key?(:name) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @preserved_state_size_gb = args[:preserved_state_size_gb] if args.key?(:preserved_state_size_gb) @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @@ -14613,11 +14627,20 @@ module Google class ManagedInstanceOverride include Google::Apis::Core::Hashable - # Disk overrides defined for this instance + # Disk overrides defined for this instance. According to documentation the + # maximum number of disks attached to an instance is 128: https://cloud.google. + # com/compute/docs/disks/ However, compute API defines the limit at 140, so this + # is what we check. # Corresponds to the JSON property `disks` # @return [Array] attr_accessor :disks + # Metadata overrides defined for this instance. TODO(b/69785416) validate the + # total length is <9 KB + # Corresponds to the JSON property `metadata` + # @return [Array] + attr_accessor :metadata + # [Output Only] Indicates where does the override come from. # Corresponds to the JSON property `origin` # @return [String] @@ -14630,8 +14653,40 @@ module Google # Update properties of this object def update!(**args) @disks = args[:disks] if args.key?(:disks) + @metadata = args[:metadata] if args.key?(:metadata) @origin = args[:origin] if args.key?(:origin) end + + # + class Metadatum + include Google::Apis::Core::Hashable + + # Key for the metadata entry. Keys must conform to the following regexp: [a-zA- + # Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a + # URL in the metadata server. Additionally, to avoid ambiguity, keys must not + # conflict with any other metadata keys for the project. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Value for the metadata entry. These are free-form strings, and only have + # meaning as interpreted by the image running in the instance. The only + # restriction placed on values is that their size must be less than or equal to + # 262144 bytes (256 KiB). + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end end # @@ -16739,9 +16794,8 @@ module Google end end - # A Project resource. Projects can only be created in the Google Cloud Platform - # Console. Unless marked otherwise, values can only be modified in the console. ( - # == resource_for v1.projects ==) (== resource_for beta.projects ==) + # A Project resource. For an overview of projects, see Cloud Platform Resource + # Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==) class Project include Google::Apis::Core::Hashable @@ -20565,6 +20619,11 @@ module Google # @return [String] attr_accessor :description + # [Output Only] Expiry time of the certificate. RFC3339 + # Corresponds to the JSON property `expiryTime` + # @return [String] + attr_accessor :expiry_time + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -20577,6 +20636,11 @@ module Google # @return [String] attr_accessor :kind + # Configuration and status of a managed SSL certificate. + # Corresponds to the JSON property `managed` + # @return [Google::Apis::ComputeAlpha::SslCertificateManagedSslCertificate] + attr_accessor :managed + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- @@ -20598,6 +20662,24 @@ module Google # @return [String] attr_accessor :self_link + # Configuration and status of a self-managed SSL certificate.. + # Corresponds to the JSON property `selfManaged` + # @return [Google::Apis::ComputeAlpha::SslCertificateSelfManagedSslCertificate] + attr_accessor :self_managed + + # [Output Only] Domains associated with the certificate via Subject Alternative + # Name. + # Corresponds to the JSON property `subjectAlternativeNames` + # @return [Array] + attr_accessor :subject_alternative_names + + # (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or " + # MANAGED". If not specified, the certificate is self-managed and the fields + # certificate and private_key are used. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end @@ -20607,11 +20689,16 @@ module Google @certificate = args[:certificate] if args.key?(:certificate) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @expiry_time = args[:expiry_time] if args.key?(:expiry_time) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @managed = args[:managed] if args.key?(:managed) @name = args[:name] if args.key?(:name) @private_key = args[:private_key] if args.key?(:private_key) @self_link = args[:self_link] if args.key?(:self_link) + @self_managed = args[:self_managed] if args.key?(:self_managed) + @subject_alternative_names = args[:subject_alternative_names] if args.key?(:subject_alternative_names) + @type = args[:type] if args.key?(:type) end end @@ -20732,6 +20819,67 @@ module Google end end + # Configuration and status of a managed SSL certificate. + class SslCertificateManagedSslCertificate + include Google::Apis::Core::Hashable + + # [Output only] Detailed statuses of the domains specified for managed + # certificate resource. + # Corresponds to the JSON property `domainStatus` + # @return [Hash] + attr_accessor :domain_status + + # The domains for which a managed SSL certificate will be generated. Currently + # only single-domain certs are supported. + # Corresponds to the JSON property `domains` + # @return [Array] + attr_accessor :domains + + # [Output only] Status of the managed certificate resource. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain_status = args[:domain_status] if args.key?(:domain_status) + @domains = args[:domains] if args.key?(:domains) + @status = args[:status] if args.key?(:status) + end + end + + # Configuration and status of a self-managed SSL certificate.. + class SslCertificateSelfManagedSslCertificate + include Google::Apis::Core::Hashable + + # A local certificate file. The certificate must be in PEM format. The + # certificate chain must be no greater than 5 certs long. The chain must include + # at least one intermediate cert. + # Corresponds to the JSON property `certificate` + # @return [String] + attr_accessor :certificate + + # A write-only private key in PEM format. Only insert requests will include this + # field. + # Corresponds to the JSON property `privateKey` + # @return [String] + attr_accessor :private_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @certificate = args[:certificate] if args.key?(:certificate) + @private_key = args[:private_key] if args.key?(:private_key) + end + end + # class SslPoliciesList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 9e288cc24..de19cb110 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -1938,6 +1938,12 @@ module Google class ManagedInstanceOverride class Representation < Google::Apis::Core::JsonRepresentation; end + + class Metadatum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end include Google::Apis::Core::JsonObjectSupport end @@ -2842,6 +2848,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SslCertificateManagedSslCertificate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCertificateSelfManagedSslCertificate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SslPoliciesList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3864,6 +3882,7 @@ module Google property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' property :disk_storage_type, as: 'diskStorageType' property :disk_type, as: 'diskType' + hash :labels, as: 'labels' property :source_image, as: 'sourceImage' property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation @@ -4619,9 +4638,9 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :auto_delete, as: 'autoDelete' + property :custom_image, as: 'customImage' property :device_name, as: 'deviceName' property :instantiate_from, as: 'instantiateFrom' - property :source_image, as: 'sourceImage' end end @@ -5652,6 +5671,7 @@ module Google property :name, as: 'name' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation + property :preserved_state_size_gb, :numeric_string => true, as: 'preservedStateSizeGb' property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation property :self_link, as: 'selfLink' @@ -7184,8 +7204,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride::Representation + collection :metadata, as: 'metadata', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Metadatum, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Metadatum::Representation + property :origin, as: 'origin' end + + class Metadatum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end end class ManagedInstanceOverrideDiskOverride @@ -8736,11 +8766,18 @@ module Google property :certificate, as: 'certificate' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :expiry_time, as: 'expiryTime' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :managed, as: 'managed', class: Google::Apis::ComputeAlpha::SslCertificateManagedSslCertificate, decorator: Google::Apis::ComputeAlpha::SslCertificateManagedSslCertificate::Representation + property :name, as: 'name' property :private_key, as: 'privateKey' property :self_link, as: 'selfLink' + property :self_managed, as: 'selfManaged', class: Google::Apis::ComputeAlpha::SslCertificateSelfManagedSslCertificate, decorator: Google::Apis::ComputeAlpha::SslCertificateSelfManagedSslCertificate::Representation + + collection :subject_alternative_names, as: 'subjectAlternativeNames' + property :type, as: 'type' end end @@ -8776,6 +8813,23 @@ module Google end end + class SslCertificateManagedSslCertificate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :domain_status, as: 'domainStatus' + collection :domains, as: 'domains' + property :status, as: 'status' + end + end + + class SslCertificateSelfManagedSslCertificate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :certificate, as: 'certificate' + property :private_key, as: 'privateKey' + end + end + class SslPoliciesList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 5cfb6871e..479baf299 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -9091,10 +9091,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified instance template. If you delete an instance template - # that is being referenced from another instance group, the instance group will - # not be able to create or recreate virtual machine instances. Deleting an - # instance template is permanent and cannot be undone. + # Deletes the specified instance template. Deleting an instance template is + # permanent and cannot be undone. It's not possible to delete templates which + # are in use by an instance group. # @param [String] project # Project ID for this request. # @param [String] instance_template diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index f342c437f..689fb573e 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 = '20171227' + REVISION = '20180108' # 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 1012aa27e..3d5b0d49f 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -1185,8 +1185,16 @@ module Google # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes # in length. These are reflected as part of a URL in the metadata server. # Additionally, to avoid ambiguity, keys must not conflict with any other - # metadata keys for the project or be one of the four reserved keys: - # "instance-template", "kube-env", "startup-script", and "user-data" + # metadata keys for the project or be one of the reserved keys: + # "cluster-name" + # "cluster-uid" + # "configure-sh" + # "gci-update-strategy" + # "gci-ensure-gke-docker" + # "instance-template" + # "kube-env" + # "startup-script" + # "user-data" # Values are free-form strings, and only have meaning as interpreted by # the image running in the instance. The only restriction placed on them is # that each value's size must be less than or equal to 32 KB. diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 6aa7c52dd..d5bd98b6e 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20180109' + REVISION = '20180116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index 856e1cfe6..db8229bbe 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -519,8 +519,9 @@ module Google # @return [Fixnum] attr_accessor :boot_disk_size_gb - # Optional. Type of the boot disk (default is 'pd-standard'). Valid values: 'pd- - # ssd', 'pd-standard' + # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd- + # ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk + # Hard Disk Drive). # Corresponds to the JSON property `bootDiskType` # @return [String] attr_accessor :boot_disk_type diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb index 670dc801a..f90418114 100644 --- a/generated/google/apis/logging_v2beta1.rb +++ b/generated/google/apis/logging_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2beta1 VERSION = 'V2beta1' - REVISION = '20171219' + REVISION = '20180116' # 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/logging_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb index cc10367d1..f22418d9b 100644 --- a/generated/google/apis/logging_v2beta1/classes.rb +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -1555,6 +1555,14 @@ module Google class WriteLogEntriesRequest include Google::Apis::Core::Hashable + # Optional. If true, the request should expect normal response, but the entries + # won't be persisted nor exported. Useful for checking whether the logging API + # endpoints are working properly before sending valuable data. + # Corresponds to the JSON property `dryRun` + # @return [Boolean] + attr_accessor :dry_run + alias_method :dry_run?, :dry_run + # Required. The log entries to send to Stackdriver Logging. The order of log # entries in this list does not matter. Values supplied in this method's # log_name, resource, and labels fields are copied into those log entries in @@ -1626,6 +1634,7 @@ module Google # Update properties of this object def update!(**args) + @dry_run = args[:dry_run] if args.key?(:dry_run) @entries = args[:entries] if args.key?(:entries) @labels = args[:labels] if args.key?(:labels) @log_name = args[:log_name] if args.key?(:log_name) diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb index 81b1b6448..378b2ee36 100644 --- a/generated/google/apis/logging_v2beta1/representations.rb +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -493,6 +493,7 @@ module Google class WriteLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :dry_run, as: 'dryRun' collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation hash :labels, as: 'labels' diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 5f83f8739..8de3480ea 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20180106' + REVISION = '20180116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index fe5d6ec0c..cddbd746e 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -1653,12 +1653,12 @@ module Google # @return [String] attr_accessor :metric_kind - # The data points of this time series. When listing time series, the order of - # the points is specified by the list method.When creating a time series, this - # field must contain exactly one point and the point's type must be the same as - # the value type of the associated metric. If the associated metric's descriptor - # must be auto-created, then the value type of the descriptor is determined by - # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION. + # The data points of this time series. When listing time series, points are + # returned in reverse time order.When creating a time series, this field must + # contain exactly one point and the point's type must be the same as the value + # type of the associated metric. If the associated metric's descriptor must be + # auto-created, then the value type of the descriptor is determined by the point' + # s type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION. # Corresponds to the JSON property `points` # @return [Array] attr_accessor :points diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb index 78706a3b2..5953529e1 100644 --- a/generated/google/apis/monitoring_v3/service.rb +++ b/generated/google/apis/monitoring_v3/service.rb @@ -645,8 +645,8 @@ module Google # Optional. The beginning of the time interval. The default value for the start # time is the end time. The start time must not be later than the end time. # @param [String] order_by - # Specifies the order in which the points of the time series should be returned. - # By default, results are not ordered. Currently, this field must be left blank. + # Unsupported: must be left blank. The points in each time series are returned + # in reverse time order. # @param [Fixnum] page_size # A positive number that is the maximum number of results to return. When view # field sets to FULL, it limits the number of Points server will return; if view diff --git a/generated/google/apis/oslogin_v1.rb b/generated/google/apis/oslogin_v1.rb index fa48462c6..18f1a885f 100644 --- a/generated/google/apis/oslogin_v1.rb +++ b/generated/google/apis/oslogin_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1 VERSION = 'V1' - REVISION = '20171120' + REVISION = '20180117' # 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/oslogin_v1/classes.rb b/generated/google/apis/oslogin_v1/classes.rb index a75d153e0..9d021680b 100644 --- a/generated/google/apis/oslogin_v1/classes.rb +++ b/generated/google/apis/oslogin_v1/classes.rb @@ -66,7 +66,7 @@ module Google class LoginProfile include Google::Apis::Core::Hashable - # The primary email address that uniquely identifies the user. + # A unique user ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -81,13 +81,6 @@ module Google # @return [Hash] attr_accessor :ssh_public_keys - # Indicates if the user is suspended. A suspended user cannot log in but - # their profile information is retained. - # Corresponds to the JSON property `suspended` - # @return [Boolean] - attr_accessor :suspended - alias_method :suspended?, :suspended - def initialize(**args) update!(**args) end @@ -97,7 +90,6 @@ module Google @name = args[:name] if args.key?(:name) @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) - @suspended = args[:suspended] if args.key?(:suspended) end end diff --git a/generated/google/apis/oslogin_v1/representations.rb b/generated/google/apis/oslogin_v1/representations.rb index d4d075a66..34bd5733f 100644 --- a/generated/google/apis/oslogin_v1/representations.rb +++ b/generated/google/apis/oslogin_v1/representations.rb @@ -74,7 +74,6 @@ module Google hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1::SshPublicKey, decorator: Google::Apis::OsloginV1::SshPublicKey::Representation - property :suspended, as: 'suspended' end end diff --git a/generated/google/apis/oslogin_v1alpha.rb b/generated/google/apis/oslogin_v1alpha.rb index 0cc6261d9..d186a651e 100644 --- a/generated/google/apis/oslogin_v1alpha.rb +++ b/generated/google/apis/oslogin_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1alpha VERSION = 'V1alpha' - REVISION = '20171108' + REVISION = '20180117' # 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/oslogin_v1alpha/classes.rb b/generated/google/apis/oslogin_v1alpha/classes.rb index 799b53614..3af4dad1d 100644 --- a/generated/google/apis/oslogin_v1alpha/classes.rb +++ b/generated/google/apis/oslogin_v1alpha/classes.rb @@ -66,12 +66,12 @@ module Google class LoginProfile include Google::Apis::Core::Hashable - # A unique user ID for identifying the user. + # A unique user ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The list of POSIX accounts associated with the Directory API user. + # The list of POSIX accounts associated with the user. # Corresponds to the JSON property `posixAccounts` # @return [Array] attr_accessor :posix_accounts @@ -81,12 +81,6 @@ module Google # @return [Hash] attr_accessor :ssh_public_keys - # Indicates if the user is suspended. - # Corresponds to the JSON property `suspended` - # @return [Boolean] - attr_accessor :suspended - alias_method :suspended?, :suspended - def initialize(**args) update!(**args) end @@ -96,7 +90,6 @@ module Google @name = args[:name] if args.key?(:name) @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) - @suspended = args[:suspended] if args.key?(:suspended) end end diff --git a/generated/google/apis/oslogin_v1alpha/representations.rb b/generated/google/apis/oslogin_v1alpha/representations.rb index 200645732..f3a7e12f8 100644 --- a/generated/google/apis/oslogin_v1alpha/representations.rb +++ b/generated/google/apis/oslogin_v1alpha/representations.rb @@ -74,7 +74,6 @@ module Google hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1alpha::SshPublicKey, decorator: Google::Apis::OsloginV1alpha::SshPublicKey::Representation - property :suspended, as: 'suspended' end end diff --git a/generated/google/apis/oslogin_v1beta.rb b/generated/google/apis/oslogin_v1beta.rb index d6105a80f..972aea938 100644 --- a/generated/google/apis/oslogin_v1beta.rb +++ b/generated/google/apis/oslogin_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1beta VERSION = 'V1beta' - REVISION = '20171108' + REVISION = '20180117' # 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/oslogin_v1beta/classes.rb b/generated/google/apis/oslogin_v1beta/classes.rb index 9074f68e8..97d786629 100644 --- a/generated/google/apis/oslogin_v1beta/classes.rb +++ b/generated/google/apis/oslogin_v1beta/classes.rb @@ -66,7 +66,7 @@ module Google class LoginProfile include Google::Apis::Core::Hashable - # The primary email address that uniquely identifies the user. + # A unique user ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -81,13 +81,6 @@ module Google # @return [Hash] attr_accessor :ssh_public_keys - # Indicates if the user is suspended. A suspended user cannot log in but - # their profile information is retained. - # Corresponds to the JSON property `suspended` - # @return [Boolean] - attr_accessor :suspended - alias_method :suspended?, :suspended - def initialize(**args) update!(**args) end @@ -97,7 +90,6 @@ module Google @name = args[:name] if args.key?(:name) @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) - @suspended = args[:suspended] if args.key?(:suspended) end end diff --git a/generated/google/apis/oslogin_v1beta/representations.rb b/generated/google/apis/oslogin_v1beta/representations.rb index a32d0e6da..e9c96c241 100644 --- a/generated/google/apis/oslogin_v1beta/representations.rb +++ b/generated/google/apis/oslogin_v1beta/representations.rb @@ -74,7 +74,6 @@ module Google hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1beta::SshPublicKey, decorator: Google::Apis::OsloginV1beta::SshPublicKey::Representation - property :suspended, as: 'suspended' end end diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index f33999ad7..22b04b103 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/api/ module ScriptV1 VERSION = 'V1' - REVISION = '20180116' + REVISION = '20180118' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index fba589452..58e4f7a37 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20180108' + REVISION = '20180115' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'