Autogenerated update (2018-01-20)

Update:
- bigquery_v2
- compute_beta
- compute_v1
- container_v1beta1
- servicemanagement_v1
- serviceuser_v1
This commit is contained in:
Google APIs 2018-01-20 00:36:17 +00:00
parent 54f5ead981
commit fa46378a47
19 changed files with 288 additions and 239 deletions

View File

@ -21248,6 +21248,8 @@
"/compute:beta/AttachedDisk/boot": boot
"/compute:beta/AttachedDisk/deviceName": device_name
"/compute:beta/AttachedDisk/diskEncryptionKey": disk_encryption_key
"/compute:beta/AttachedDisk/guestOsFeatures": guest_os_features
"/compute:beta/AttachedDisk/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:beta/AttachedDisk/index": index
"/compute:beta/AttachedDisk/initializeParams": initialize_params
"/compute:beta/AttachedDisk/interface": interface
@ -21262,6 +21264,8 @@
"/compute:beta/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb
"/compute:beta/AttachedDiskInitializeParams/diskStorageType": disk_storage_type
"/compute:beta/AttachedDiskInitializeParams/diskType": disk_type
"/compute:beta/AttachedDiskInitializeParams/labels": labels
"/compute:beta/AttachedDiskInitializeParams/labels/label": label
"/compute:beta/AttachedDiskInitializeParams/sourceImage": source_image
"/compute:beta/AttachedDiskInitializeParams/sourceImageEncryptionKey": source_image_encryption_key
"/compute:beta/AuditConfig": audit_config
@ -21560,6 +21564,8 @@
"/compute:beta/Disk/creationTimestamp": creation_timestamp
"/compute:beta/Disk/description": description
"/compute:beta/Disk/diskEncryptionKey": disk_encryption_key
"/compute:beta/Disk/guestOsFeatures": guest_os_features
"/compute:beta/Disk/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:beta/Disk/id": id
"/compute:beta/Disk/kind": kind
"/compute:beta/Disk/labelFingerprint": label_fingerprint
@ -21603,6 +21609,7 @@
"/compute:beta/DiskAggregatedList/warning/message": message
"/compute:beta/DiskInstantiationConfig": disk_instantiation_config
"/compute:beta/DiskInstantiationConfig/autoDelete": auto_delete
"/compute:beta/DiskInstantiationConfig/customImage": custom_image
"/compute:beta/DiskInstantiationConfig/deviceName": device_name
"/compute:beta/DiskInstantiationConfig/instantiateFrom": instantiate_from
"/compute:beta/DiskInstantiationConfig/sourceImage": source_image
@ -21956,6 +21963,9 @@
"/compute:beta/Image/sourceImage": source_image
"/compute:beta/Image/sourceImageEncryptionKey": source_image_encryption_key
"/compute:beta/Image/sourceImageId": source_image_id
"/compute:beta/Image/sourceSnapshot": source_snapshot
"/compute:beta/Image/sourceSnapshotEncryptionKey": source_snapshot_encryption_key
"/compute:beta/Image/sourceSnapshotId": source_snapshot_id
"/compute:beta/Image/sourceType": source_type
"/compute:beta/Image/status": status
"/compute:beta/ImageList": image_list
@ -22339,6 +22349,9 @@
"/compute:beta/Interconnect/interconnectAttachments/interconnect_attachment": interconnect_attachment
"/compute:beta/Interconnect/interconnectType": interconnect_type
"/compute:beta/Interconnect/kind": kind
"/compute:beta/Interconnect/labelFingerprint": label_fingerprint
"/compute:beta/Interconnect/labels": labels
"/compute:beta/Interconnect/labels/label": label
"/compute:beta/Interconnect/linkType": link_type
"/compute:beta/Interconnect/location": location
"/compute:beta/Interconnect/name": name
@ -22357,6 +22370,9 @@
"/compute:beta/InterconnectAttachment/id": id
"/compute:beta/InterconnectAttachment/interconnect": interconnect
"/compute:beta/InterconnectAttachment/kind": kind
"/compute:beta/InterconnectAttachment/labelFingerprint": label_fingerprint
"/compute:beta/InterconnectAttachment/labels": labels
"/compute:beta/InterconnectAttachment/labels/label": label
"/compute:beta/InterconnectAttachment/name": name
"/compute:beta/InterconnectAttachment/operationalStatus": operational_status
"/compute:beta/InterconnectAttachment/privateInterconnectInfo": private_interconnect_info
@ -24586,6 +24602,11 @@
"/compute:beta/compute.interconnectAttachments.list/pageToken": page_token
"/compute:beta/compute.interconnectAttachments.list/project": project
"/compute:beta/compute.interconnectAttachments.list/region": region
"/compute:beta/compute.interconnectAttachments.setLabels": set_interconnect_attachment_labels
"/compute:beta/compute.interconnectAttachments.setLabels/project": project
"/compute:beta/compute.interconnectAttachments.setLabels/region": region
"/compute:beta/compute.interconnectAttachments.setLabels/requestId": request_id
"/compute:beta/compute.interconnectAttachments.setLabels/resource": resource
"/compute:beta/compute.interconnectAttachments.testIamPermissions": test_interconnect_attachment_iam_permissions
"/compute:beta/compute.interconnectAttachments.testIamPermissions/project": project
"/compute:beta/compute.interconnectAttachments.testIamPermissions/region": region
@ -24619,6 +24640,9 @@
"/compute:beta/compute.interconnects.patch/interconnect": interconnect
"/compute:beta/compute.interconnects.patch/project": project
"/compute:beta/compute.interconnects.patch/requestId": request_id
"/compute:beta/compute.interconnects.setLabels": set_interconnect_labels
"/compute:beta/compute.interconnects.setLabels/project": project
"/compute:beta/compute.interconnects.setLabels/resource": resource
"/compute:beta/compute.interconnects.testIamPermissions": test_interconnect_iam_permissions
"/compute:beta/compute.interconnects.testIamPermissions/project": project
"/compute:beta/compute.interconnects.testIamPermissions/resource": resource
@ -25650,6 +25674,8 @@
"/compute:v1/AttachedDiskInitializeParams/diskName": disk_name
"/compute:v1/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb
"/compute:v1/AttachedDiskInitializeParams/diskType": disk_type
"/compute:v1/AttachedDiskInitializeParams/labels": labels
"/compute:v1/AttachedDiskInitializeParams/labels/label": label
"/compute:v1/AttachedDiskInitializeParams/sourceImage": source_image
"/compute:v1/AttachedDiskInitializeParams/sourceImageEncryptionKey": source_image_encryption_key
"/compute:v1/Autoscaler": autoscaler

View File

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

View File

@ -1184,12 +1184,11 @@ module Google
# @return [Google::Apis::BigqueryV2::JobConfigurationExtract]
attr_accessor :extract
# [Experimental] The labels associated with this job. You can use these to
# organize and group your jobs. Label keys and values can be no longer than 63
# characters, can only contain lowercase letters, numeric characters,
# underscores and dashes. International characters are allowed. Label values are
# optional. Label keys must start with a letter and each label in the list must
# have a different key.
# The labels associated with this job. You can use these to organize and group
# your jobs. Label keys and values can be no longer than 63 characters, can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter and each label in the list must have a different key.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -2742,12 +2741,11 @@ module Google
# @return [String]
attr_accessor :kind
# [Experimental] The labels associated with this table. You can use these to
# organize and group your tables. Label keys and values can be no longer than 63
# characters, can only contain lowercase letters, numeric characters,
# underscores and dashes. International characters are allowed. Label values are
# optional. Label keys must start with a letter and each label in the list must
# have a different key.
# The labels associated with this table. You can use these to organize and group
# your tables. Label keys and values can be no longer than 63 characters, can
# only contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter and each label in the list must have a different key.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -3170,8 +3168,8 @@ module Google
# @return [String]
attr_accessor :kind
# [Experimental] The labels associated with this table. You can use these to
# organize and group your tables.
# The labels associated with this table. You can use these to organize and group
# your tables.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20171207'
REVISION = '20171228'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -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
@ -1028,6 +1029,13 @@ module Google
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
# A list of features to enable on the guest operating system. Applicable only
# for bootable images. Read Enabling guest operating system features to see a
# list of available options.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] A zero-based index to this disk, where 0 is reserved for the
# boot disk. If you have many disks attached to an instance, each disk would
# have a unique index number.
@ -1097,6 +1105,7 @@ module Google
@boot = args[:boot] if args.key?(:boot)
@device_name = args[:device_name] if args.key?(:device_name)
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@index = args[:index] if args.key?(:index)
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
@interface = args[:interface] if args.key?(:interface)
@ -1148,6 +1157,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<String,String>]
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
@ -1183,6 +1198,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
@ -3651,6 +3667,13 @@ module Google
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
# A list of features to enable on the guest operating system. Applicable only
# for bootable images. Read Enabling guest operating system features to see a
# list of available options.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -3823,6 +3846,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@ -3979,6 +4003,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]
@ -3989,12 +4019,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
@ -4002,9 +4026,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
@ -6810,6 +6834,28 @@ module Google
# @return [String]
attr_accessor :source_image_id
# URL of the source snapshot used to create this image. This can be a full or
# valid partial URL. You must provide exactly one of:
# - this property, or
# - the sourceImage property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
# [Output Only] The ID value of the snapshot used to create this image. This
# value may be used to determine whether the snapshot was taken from the current
# or a previous instance of a given snapshot name.
# Corresponds to the JSON property `sourceSnapshotId`
# @return [String]
attr_accessor :source_snapshot_id
# The type of the image used to create this disk. The default and only value is
# RAW
# Corresponds to the JSON property `sourceType`
@ -6853,6 +6899,9 @@ module Google
@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)
@source_image_id = args[:source_image_id] if args.key?(:source_image_id)
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
@source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id)
@source_type = args[:source_type] if args.key?(:source_type)
@status = args[:status] if args.key?(:status)
end
@ -9861,6 +9910,25 @@ module Google
# @return [String]
attr_accessor :kind
# A fingerprint for the labels being applied to this Interconnect, which is
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# To see the latest fingerprint, make a get() request to retrieve an
# Interconnect.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this Interconnect resource. These can be later modified by
# the setLabels method. Each label key/value must comply with RFC1035. Label
# values may be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Type of link requested. This field indicates speed of each of the links in the
# bundle, not the entire bundle. Only 10G per link is allowed for a dedicated
# interconnect. Options: Ethernet_10G_LR
@ -9939,6 +10007,8 @@ module Google
@interconnect_attachments = args[:interconnect_attachments] if args.key?(:interconnect_attachments)
@interconnect_type = args[:interconnect_type] if args.key?(:interconnect_type)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@link_type = args[:link_type] if args.key?(:link_type)
@location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name)
@ -10003,6 +10073,25 @@ module Google
# @return [String]
attr_accessor :kind
# A fingerprint for the labels being applied to this InterconnectAttachment,
# which is essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# To see the latest fingerprint, make a get() request to retrieve an
# InterconnectAttachment.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this InterconnectAttachment resource. These can be later
# modified by the setLabels method. Each label key/value must comply with
# RFC1035. Label values may be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# 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-
@ -10058,6 +10147,8 @@ module Google
@id = args[:id] if args.key?(:id)
@interconnect = args[:interconnect] if args.key?(:interconnect)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@operational_status = args[:operational_status] if args.key?(:operational_status)
@private_interconnect_info = args[:private_interconnect_info] if args.key?(:private_interconnect_info)
@ -13249,9 +13340,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

View File

@ -3207,6 +3207,8 @@ module Google
property :device_name, as: 'deviceName'
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
property :index, as: 'index'
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeBeta::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeBeta::AttachedDiskInitializeParams::Representation
@ -3226,6 +3228,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::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
@ -3837,6 +3840,8 @@ module Google
property :description, as: 'description'
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@ -3901,9 +3906,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
@ -4575,6 +4580,10 @@ module Google
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
property :source_image_id, as: 'sourceImageId'
property :source_snapshot, as: 'sourceSnapshot'
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
property :source_snapshot_id, as: 'sourceSnapshotId'
property :source_type, as: 'sourceType'
property :status, as: 'status'
end
@ -5365,6 +5374,8 @@ module Google
collection :interconnect_attachments, as: 'interconnectAttachments'
property :interconnect_type, as: 'interconnectType'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :link_type, as: 'linkType'
property :location, as: 'location'
property :name, as: 'name'
@ -5388,6 +5399,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :interconnect, as: 'interconnect'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :name, as: 'name'
property :operational_status, as: 'operationalStatus'
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo::Representation

View File

@ -7782,10 +7782,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
@ -9985,6 +9984,63 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the labels on an InterconnectAttachment. To learn more about labels, read
# the Labeling Resources documentation.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 set_interconnect_attachment_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
command.request_object = region_set_labels_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
@ -10416,6 +10472,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the labels on an Interconnect. To learn more about labels, read the
# Labeling Resources documentation.
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setLabels', options)
command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
command.request_object = global_set_labels_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20171207'
REVISION = '20171228'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -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
@ -1108,6 +1109,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<String,String>]
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
@ -1142,6 +1149,7 @@ module Google
@disk_name = args[:disk_name] if args.key?(:disk_name)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@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
@ -11730,9 +11738,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

View File

@ -2873,6 +2873,7 @@ module Google
property :disk_name, as: 'diskName'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :disk_type, as: 'diskType'
hash :labels, as: 'labels'
property :source_image, as: 'sourceImage'
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation

View File

@ -6478,10 +6478,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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20171227'
REVISION = '20180108'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1291,8 +1291,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.

View File

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

View File

@ -123,129 +123,6 @@ module Google
end
end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConfig must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice.googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::ServicemanagementV1::AuditLogConfig>]
attr_accessor :audit_log_configs
#
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
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.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# 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
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Configuration for an anthentication provider, including support for
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
# token-32).
@ -1992,15 +1869,6 @@ module Google
# @return [String]
attr_accessor :put
# The name of the response field whose value is mapped to the HTTP body of
# response. Other response fields are ignored. This field is optional. When
# not set, the response message will be used as HTTP body of response.
# NOTE: the referred field must be not a repeated field and must be present
# at the top-level of response message type.
# Corresponds to the JSON property `responseBody`
# @return [String]
attr_accessor :response_body
# Selects methods to which this rule applies.
# Refer to selector for syntax details.
# Corresponds to the JSON property `selector`
@ -2023,7 +1891,6 @@ module Google
@patch = args[:patch] if args.key?(:patch)
@post = args[:post] if args.key?(:post)
@put = args[:put] if args.key?(:put)
@response_body = args[:response_body] if args.key?(:response_body)
@selector = args[:selector] if args.key?(:selector)
end
end
@ -3193,11 +3060,6 @@ module Google
class Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::ServicemanagementV1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
@ -3218,12 +3080,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]
@ -3235,10 +3091,8 @@ module Google
# Update properties of this object
def update!(**args)
@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

View File

@ -34,18 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthProvider
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -592,24 +580,6 @@ module Google
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ServicemanagementV1::AuditLogConfig, decorator: Google::Apis::ServicemanagementV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class AuthProvider
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -991,7 +961,6 @@ module Google
property :patch, as: 'patch'
property :post, as: 'post'
property :put, as: 'put'
property :response_body, as: 'responseBody'
property :selector, as: 'selector'
end
end
@ -1230,12 +1199,9 @@ module Google
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ServicemanagementV1::AuditConfig, decorator: Google::Apis::ServicemanagementV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::ServicemanagementV1::Binding, decorator: Google::Apis::ServicemanagementV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
property :version, as: 'version'
end
end

View File

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

View File

@ -1368,15 +1368,6 @@ module Google
# @return [String]
attr_accessor :put
# The name of the response field whose value is mapped to the HTTP body of
# response. Other response fields are ignored. This field is optional. When
# not set, the response message will be used as HTTP body of response.
# NOTE: the referred field must be not a repeated field and must be present
# at the top-level of response message type.
# Corresponds to the JSON property `responseBody`
# @return [String]
attr_accessor :response_body
# Selects methods to which this rule applies.
# Refer to selector for syntax details.
# Corresponds to the JSON property `selector`
@ -1399,7 +1390,6 @@ module Google
@patch = args[:patch] if args.key?(:patch)
@post = args[:post] if args.key?(:post)
@put = args[:put] if args.key?(:put)
@response_body = args[:response_body] if args.key?(:response_body)
@selector = args[:selector] if args.key?(:selector)
end
end

View File

@ -683,7 +683,6 @@ module Google
property :patch, as: 'patch'
property :post, as: 'post'
property :put, as: 'put'
property :response_body, as: 'responseBody'
property :selector, as: 'selector'
end
end