google-api-client 0.19.3 → 0.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +212 -0
- data/generated/google/apis/analytics_v3/representations.rb +77 -0
- data/generated/google/apis/analytics_v3/service.rb +35 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -98
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -46
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -229
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +28 -49
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +12 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +12 -14
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +10 -3
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -69
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -20
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +37 -20
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +161 -13
- data/generated/google/apis/compute_alpha/representations.rb +55 -1
- data/generated/google/apis/compute_alpha/service.rb +3 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +102 -12
- data/generated/google/apis/compute_beta/representations.rb +14 -1
- data/generated/google/apis/compute_beta/service.rb +102 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +12 -5
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +3 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +10 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +10 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +428 -0
- data/generated/google/apis/content_v2/representations.rb +169 -0
- data/generated/google/apis/content_v2/service.rb +128 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +428 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +169 -0
- data/generated/google/apis/content_v2sandbox/service.rb +127 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +3 -2
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +6 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +3 -3
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +0 -136
- data/generated/google/apis/ml_v1/representations.rb +0 -33
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +6 -6
- data/generated/google/apis/monitoring_v3/service.rb +2 -2
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -9
- data/generated/google/apis/oslogin_v1/representations.rb +0 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -9
- data/generated/google/apis/oslogin_v1alpha/representations.rb +0 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -9
- data/generated/google/apis/oslogin_v1beta/representations.rb +0 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +5 -2
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -146
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -34
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -10
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +0 -65
- data/generated/google/apis/speech_v1/representations.rb +0 -40
- data/generated/google/apis/speech_v1/service.rb +0 -122
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -44
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -27
- data/generated/google/apis/speech_v1beta1/service.rb +0 -119
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -32,8 +32,9 @@ module Google
|
|
|
32
32
|
# @return [Fixnum]
|
|
33
33
|
attr_accessor :accelerator_count
|
|
34
34
|
|
|
35
|
-
# Full or partial URL of the accelerator type resource to
|
|
36
|
-
# instance.
|
|
35
|
+
# Full or partial URL of the accelerator type resource to attach to this
|
|
36
|
+
# instance. If you are creating an instance template, specify only the
|
|
37
|
+
# accelerator name.
|
|
37
38
|
# Corresponds to the JSON property `acceleratorType`
|
|
38
39
|
# @return [String]
|
|
39
40
|
attr_accessor :accelerator_type
|
|
@@ -1028,6 +1029,13 @@ module Google
|
|
|
1028
1029
|
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
|
1029
1030
|
attr_accessor :disk_encryption_key
|
|
1030
1031
|
|
|
1032
|
+
# A list of features to enable on the guest operating system. Applicable only
|
|
1033
|
+
# for bootable images. Read Enabling guest operating system features to see a
|
|
1034
|
+
# list of available options.
|
|
1035
|
+
# Corresponds to the JSON property `guestOsFeatures`
|
|
1036
|
+
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
|
|
1037
|
+
attr_accessor :guest_os_features
|
|
1038
|
+
|
|
1031
1039
|
# [Output Only] A zero-based index to this disk, where 0 is reserved for the
|
|
1032
1040
|
# boot disk. If you have many disks attached to an instance, each disk would
|
|
1033
1041
|
# have a unique index number.
|
|
@@ -1097,6 +1105,7 @@ module Google
|
|
|
1097
1105
|
@boot = args[:boot] if args.key?(:boot)
|
|
1098
1106
|
@device_name = args[:device_name] if args.key?(:device_name)
|
|
1099
1107
|
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
|
|
1108
|
+
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
|
1100
1109
|
@index = args[:index] if args.key?(:index)
|
|
1101
1110
|
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
|
|
1102
1111
|
@interface = args[:interface] if args.key?(:interface)
|
|
@@ -1148,6 +1157,12 @@ module Google
|
|
|
1148
1157
|
# @return [String]
|
|
1149
1158
|
attr_accessor :disk_type
|
|
1150
1159
|
|
|
1160
|
+
# Labels to apply to this disk. These can be later modified by the disks.
|
|
1161
|
+
# setLabels method. This field is only applicable for persistent disks.
|
|
1162
|
+
# Corresponds to the JSON property `labels`
|
|
1163
|
+
# @return [Hash<String,String>]
|
|
1164
|
+
attr_accessor :labels
|
|
1165
|
+
|
|
1151
1166
|
# The source image to create this disk. When creating a new instance, one of
|
|
1152
1167
|
# initializeParams.sourceImage or disks.source is required except for local SSD.
|
|
1153
1168
|
# To create a disk with one of the public operating system images, specify the
|
|
@@ -1183,6 +1198,7 @@ module Google
|
|
|
1183
1198
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
|
1184
1199
|
@disk_storage_type = args[:disk_storage_type] if args.key?(:disk_storage_type)
|
|
1185
1200
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
|
1201
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
1186
1202
|
@source_image = args[:source_image] if args.key?(:source_image)
|
|
1187
1203
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
|
1188
1204
|
end
|
|
@@ -3651,6 +3667,13 @@ module Google
|
|
|
3651
3667
|
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
|
3652
3668
|
attr_accessor :disk_encryption_key
|
|
3653
3669
|
|
|
3670
|
+
# A list of features to enable on the guest operating system. Applicable only
|
|
3671
|
+
# for bootable images. Read Enabling guest operating system features to see a
|
|
3672
|
+
# list of available options.
|
|
3673
|
+
# Corresponds to the JSON property `guestOsFeatures`
|
|
3674
|
+
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
|
|
3675
|
+
attr_accessor :guest_os_features
|
|
3676
|
+
|
|
3654
3677
|
# [Output Only] The unique identifier for the resource. This identifier is
|
|
3655
3678
|
# defined by the server.
|
|
3656
3679
|
# Corresponds to the JSON property `id`
|
|
@@ -3823,6 +3846,7 @@ module Google
|
|
|
3823
3846
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
|
3824
3847
|
@description = args[:description] if args.key?(:description)
|
|
3825
3848
|
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
|
|
3849
|
+
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
|
3826
3850
|
@id = args[:id] if args.key?(:id)
|
|
3827
3851
|
@kind = args[:kind] if args.key?(:kind)
|
|
3828
3852
|
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
@@ -3979,6 +4003,12 @@ module Google
|
|
|
3979
4003
|
attr_accessor :auto_delete
|
|
3980
4004
|
alias_method :auto_delete?, :auto_delete
|
|
3981
4005
|
|
|
4006
|
+
# The custom source image to be used to restore this disk when instantiating
|
|
4007
|
+
# this instance template.
|
|
4008
|
+
# Corresponds to the JSON property `customImage`
|
|
4009
|
+
# @return [String]
|
|
4010
|
+
attr_accessor :custom_image
|
|
4011
|
+
|
|
3982
4012
|
# Specifies the device name of the disk to which the configurations apply to.
|
|
3983
4013
|
# Corresponds to the JSON property `deviceName`
|
|
3984
4014
|
# @return [String]
|
|
@@ -3989,12 +4019,6 @@ module Google
|
|
|
3989
4019
|
# @return [String]
|
|
3990
4020
|
attr_accessor :instantiate_from
|
|
3991
4021
|
|
|
3992
|
-
# The custom source image to be used to restore this disk when instantiating
|
|
3993
|
-
# this instance template.
|
|
3994
|
-
# Corresponds to the JSON property `sourceImage`
|
|
3995
|
-
# @return [String]
|
|
3996
|
-
attr_accessor :source_image
|
|
3997
|
-
|
|
3998
4022
|
def initialize(**args)
|
|
3999
4023
|
update!(**args)
|
|
4000
4024
|
end
|
|
@@ -4002,9 +4026,9 @@ module Google
|
|
|
4002
4026
|
# Update properties of this object
|
|
4003
4027
|
def update!(**args)
|
|
4004
4028
|
@auto_delete = args[:auto_delete] if args.key?(:auto_delete)
|
|
4029
|
+
@custom_image = args[:custom_image] if args.key?(:custom_image)
|
|
4005
4030
|
@device_name = args[:device_name] if args.key?(:device_name)
|
|
4006
4031
|
@instantiate_from = args[:instantiate_from] if args.key?(:instantiate_from)
|
|
4007
|
-
@source_image = args[:source_image] if args.key?(:source_image)
|
|
4008
4032
|
end
|
|
4009
4033
|
end
|
|
4010
4034
|
|
|
@@ -6810,6 +6834,28 @@ module Google
|
|
|
6810
6834
|
# @return [String]
|
|
6811
6835
|
attr_accessor :source_image_id
|
|
6812
6836
|
|
|
6837
|
+
# URL of the source snapshot used to create this image. This can be a full or
|
|
6838
|
+
# valid partial URL. You must provide exactly one of:
|
|
6839
|
+
# - this property, or
|
|
6840
|
+
# - the sourceImage property, or
|
|
6841
|
+
# - the rawDisk.source property, or
|
|
6842
|
+
# - the sourceDisk property in order to create an image.
|
|
6843
|
+
# Corresponds to the JSON property `sourceSnapshot`
|
|
6844
|
+
# @return [String]
|
|
6845
|
+
attr_accessor :source_snapshot
|
|
6846
|
+
|
|
6847
|
+
# Represents a customer-supplied encryption key
|
|
6848
|
+
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
|
|
6849
|
+
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
|
6850
|
+
attr_accessor :source_snapshot_encryption_key
|
|
6851
|
+
|
|
6852
|
+
# [Output Only] The ID value of the snapshot used to create this image. This
|
|
6853
|
+
# value may be used to determine whether the snapshot was taken from the current
|
|
6854
|
+
# or a previous instance of a given snapshot name.
|
|
6855
|
+
# Corresponds to the JSON property `sourceSnapshotId`
|
|
6856
|
+
# @return [String]
|
|
6857
|
+
attr_accessor :source_snapshot_id
|
|
6858
|
+
|
|
6813
6859
|
# The type of the image used to create this disk. The default and only value is
|
|
6814
6860
|
# RAW
|
|
6815
6861
|
# Corresponds to the JSON property `sourceType`
|
|
@@ -6853,6 +6899,9 @@ module Google
|
|
|
6853
6899
|
@source_image = args[:source_image] if args.key?(:source_image)
|
|
6854
6900
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
|
6855
6901
|
@source_image_id = args[:source_image_id] if args.key?(:source_image_id)
|
|
6902
|
+
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
|
|
6903
|
+
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
|
|
6904
|
+
@source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id)
|
|
6856
6905
|
@source_type = args[:source_type] if args.key?(:source_type)
|
|
6857
6906
|
@status = args[:status] if args.key?(:status)
|
|
6858
6907
|
end
|
|
@@ -9861,6 +9910,25 @@ module Google
|
|
|
9861
9910
|
# @return [String]
|
|
9862
9911
|
attr_accessor :kind
|
|
9863
9912
|
|
|
9913
|
+
# A fingerprint for the labels being applied to this Interconnect, which is
|
|
9914
|
+
# essentially a hash of the labels set used for optimistic locking. The
|
|
9915
|
+
# fingerprint is initially generated by Compute Engine and changes after every
|
|
9916
|
+
# request to modify or update labels. You must always provide an up-to-date
|
|
9917
|
+
# fingerprint hash in order to update or change labels.
|
|
9918
|
+
# To see the latest fingerprint, make a get() request to retrieve an
|
|
9919
|
+
# Interconnect.
|
|
9920
|
+
# Corresponds to the JSON property `labelFingerprint`
|
|
9921
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
9922
|
+
# @return [String]
|
|
9923
|
+
attr_accessor :label_fingerprint
|
|
9924
|
+
|
|
9925
|
+
# Labels to apply to this Interconnect resource. These can be later modified by
|
|
9926
|
+
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
|
9927
|
+
# values may be empty.
|
|
9928
|
+
# Corresponds to the JSON property `labels`
|
|
9929
|
+
# @return [Hash<String,String>]
|
|
9930
|
+
attr_accessor :labels
|
|
9931
|
+
|
|
9864
9932
|
# Type of link requested. This field indicates speed of each of the links in the
|
|
9865
9933
|
# bundle, not the entire bundle. Only 10G per link is allowed for a dedicated
|
|
9866
9934
|
# interconnect. Options: Ethernet_10G_LR
|
|
@@ -9939,6 +10007,8 @@ module Google
|
|
|
9939
10007
|
@interconnect_attachments = args[:interconnect_attachments] if args.key?(:interconnect_attachments)
|
|
9940
10008
|
@interconnect_type = args[:interconnect_type] if args.key?(:interconnect_type)
|
|
9941
10009
|
@kind = args[:kind] if args.key?(:kind)
|
|
10010
|
+
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
10011
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
9942
10012
|
@link_type = args[:link_type] if args.key?(:link_type)
|
|
9943
10013
|
@location = args[:location] if args.key?(:location)
|
|
9944
10014
|
@name = args[:name] if args.key?(:name)
|
|
@@ -10003,6 +10073,25 @@ module Google
|
|
|
10003
10073
|
# @return [String]
|
|
10004
10074
|
attr_accessor :kind
|
|
10005
10075
|
|
|
10076
|
+
# A fingerprint for the labels being applied to this InterconnectAttachment,
|
|
10077
|
+
# which is essentially a hash of the labels set used for optimistic locking. The
|
|
10078
|
+
# fingerprint is initially generated by Compute Engine and changes after every
|
|
10079
|
+
# request to modify or update labels. You must always provide an up-to-date
|
|
10080
|
+
# fingerprint hash in order to update or change labels.
|
|
10081
|
+
# To see the latest fingerprint, make a get() request to retrieve an
|
|
10082
|
+
# InterconnectAttachment.
|
|
10083
|
+
# Corresponds to the JSON property `labelFingerprint`
|
|
10084
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
10085
|
+
# @return [String]
|
|
10086
|
+
attr_accessor :label_fingerprint
|
|
10087
|
+
|
|
10088
|
+
# Labels to apply to this InterconnectAttachment resource. These can be later
|
|
10089
|
+
# modified by the setLabels method. Each label key/value must comply with
|
|
10090
|
+
# RFC1035. Label values may be empty.
|
|
10091
|
+
# Corresponds to the JSON property `labels`
|
|
10092
|
+
# @return [Hash<String,String>]
|
|
10093
|
+
attr_accessor :labels
|
|
10094
|
+
|
|
10006
10095
|
# Name of the resource. Provided by the client when the resource is created. The
|
|
10007
10096
|
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
|
10008
10097
|
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
|
|
@@ -10058,6 +10147,8 @@ module Google
|
|
|
10058
10147
|
@id = args[:id] if args.key?(:id)
|
|
10059
10148
|
@interconnect = args[:interconnect] if args.key?(:interconnect)
|
|
10060
10149
|
@kind = args[:kind] if args.key?(:kind)
|
|
10150
|
+
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
10151
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
10061
10152
|
@name = args[:name] if args.key?(:name)
|
|
10062
10153
|
@operational_status = args[:operational_status] if args.key?(:operational_status)
|
|
10063
10154
|
@private_interconnect_info = args[:private_interconnect_info] if args.key?(:private_interconnect_info)
|
|
@@ -13249,9 +13340,8 @@ module Google
|
|
|
13249
13340
|
end
|
|
13250
13341
|
end
|
|
13251
13342
|
|
|
13252
|
-
# A Project resource.
|
|
13253
|
-
#
|
|
13254
|
-
# == resource_for v1.projects ==) (== resource_for beta.projects ==)
|
|
13343
|
+
# A Project resource. For an overview of projects, see Cloud Platform Resource
|
|
13344
|
+
# Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==)
|
|
13255
13345
|
class Project
|
|
13256
13346
|
include Google::Apis::Core::Hashable
|
|
13257
13347
|
|
|
@@ -3207,6 +3207,8 @@ module Google
|
|
|
3207
3207
|
property :device_name, as: 'deviceName'
|
|
3208
3208
|
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
|
3209
3209
|
|
|
3210
|
+
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
|
|
3211
|
+
|
|
3210
3212
|
property :index, as: 'index'
|
|
3211
3213
|
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeBeta::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeBeta::AttachedDiskInitializeParams::Representation
|
|
3212
3214
|
|
|
@@ -3226,6 +3228,7 @@ module Google
|
|
|
3226
3228
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
|
3227
3229
|
property :disk_storage_type, as: 'diskStorageType'
|
|
3228
3230
|
property :disk_type, as: 'diskType'
|
|
3231
|
+
hash :labels, as: 'labels'
|
|
3229
3232
|
property :source_image, as: 'sourceImage'
|
|
3230
3233
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
|
3231
3234
|
|
|
@@ -3837,6 +3840,8 @@ module Google
|
|
|
3837
3840
|
property :description, as: 'description'
|
|
3838
3841
|
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
|
3839
3842
|
|
|
3843
|
+
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
|
|
3844
|
+
|
|
3840
3845
|
property :id, :numeric_string => true, as: 'id'
|
|
3841
3846
|
property :kind, as: 'kind'
|
|
3842
3847
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
@@ -3901,9 +3906,9 @@ module Google
|
|
|
3901
3906
|
# @private
|
|
3902
3907
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3903
3908
|
property :auto_delete, as: 'autoDelete'
|
|
3909
|
+
property :custom_image, as: 'customImage'
|
|
3904
3910
|
property :device_name, as: 'deviceName'
|
|
3905
3911
|
property :instantiate_from, as: 'instantiateFrom'
|
|
3906
|
-
property :source_image, as: 'sourceImage'
|
|
3907
3912
|
end
|
|
3908
3913
|
end
|
|
3909
3914
|
|
|
@@ -4575,6 +4580,10 @@ module Google
|
|
|
4575
4580
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
|
4576
4581
|
|
|
4577
4582
|
property :source_image_id, as: 'sourceImageId'
|
|
4583
|
+
property :source_snapshot, as: 'sourceSnapshot'
|
|
4584
|
+
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
|
4585
|
+
|
|
4586
|
+
property :source_snapshot_id, as: 'sourceSnapshotId'
|
|
4578
4587
|
property :source_type, as: 'sourceType'
|
|
4579
4588
|
property :status, as: 'status'
|
|
4580
4589
|
end
|
|
@@ -5365,6 +5374,8 @@ module Google
|
|
|
5365
5374
|
collection :interconnect_attachments, as: 'interconnectAttachments'
|
|
5366
5375
|
property :interconnect_type, as: 'interconnectType'
|
|
5367
5376
|
property :kind, as: 'kind'
|
|
5377
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
5378
|
+
hash :labels, as: 'labels'
|
|
5368
5379
|
property :link_type, as: 'linkType'
|
|
5369
5380
|
property :location, as: 'location'
|
|
5370
5381
|
property :name, as: 'name'
|
|
@@ -5388,6 +5399,8 @@ module Google
|
|
|
5388
5399
|
property :id, :numeric_string => true, as: 'id'
|
|
5389
5400
|
property :interconnect, as: 'interconnect'
|
|
5390
5401
|
property :kind, as: 'kind'
|
|
5402
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
5403
|
+
hash :labels, as: 'labels'
|
|
5391
5404
|
property :name, as: 'name'
|
|
5392
5405
|
property :operational_status, as: 'operationalStatus'
|
|
5393
5406
|
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo::Representation
|
|
@@ -7782,10 +7782,9 @@ module Google
|
|
|
7782
7782
|
execute_or_queue_command(command, &block)
|
|
7783
7783
|
end
|
|
7784
7784
|
|
|
7785
|
-
# Deletes the specified instance template.
|
|
7786
|
-
#
|
|
7787
|
-
#
|
|
7788
|
-
# instance template is permanent and cannot be undone.
|
|
7785
|
+
# Deletes the specified instance template. Deleting an instance template is
|
|
7786
|
+
# permanent and cannot be undone. It's not possible to delete templates which
|
|
7787
|
+
# are in use by an instance group.
|
|
7789
7788
|
# @param [String] project
|
|
7790
7789
|
# Project ID for this request.
|
|
7791
7790
|
# @param [String] instance_template
|
|
@@ -9985,6 +9984,63 @@ module Google
|
|
|
9985
9984
|
execute_or_queue_command(command, &block)
|
|
9986
9985
|
end
|
|
9987
9986
|
|
|
9987
|
+
# Sets the labels on an InterconnectAttachment. To learn more about labels, read
|
|
9988
|
+
# the Labeling Resources documentation.
|
|
9989
|
+
# @param [String] project
|
|
9990
|
+
# Project ID for this request.
|
|
9991
|
+
# @param [String] region
|
|
9992
|
+
# The region for this request.
|
|
9993
|
+
# @param [String] resource
|
|
9994
|
+
# Name of the resource for this request.
|
|
9995
|
+
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
|
9996
|
+
# @param [String] request_id
|
|
9997
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
9998
|
+
# that if you must retry your request, the server will know to ignore the
|
|
9999
|
+
# request if it has already been completed.
|
|
10000
|
+
# For example, consider a situation where you make an initial request and the
|
|
10001
|
+
# request times out. If you make the request again with the same request ID, the
|
|
10002
|
+
# server can check if original operation with the same request ID was received,
|
|
10003
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
10004
|
+
# accidentally creating duplicate commitments.
|
|
10005
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
10006
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
10007
|
+
# @param [String] fields
|
|
10008
|
+
# Selector specifying which fields to include in a partial response.
|
|
10009
|
+
# @param [String] quota_user
|
|
10010
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10011
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10012
|
+
# Overrides userIp if both are provided.
|
|
10013
|
+
# @param [String] user_ip
|
|
10014
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
10015
|
+
# enforce per-user limits.
|
|
10016
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10017
|
+
# Request-specific options
|
|
10018
|
+
#
|
|
10019
|
+
# @yield [result, err] Result & error if block supplied
|
|
10020
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
10021
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10022
|
+
#
|
|
10023
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
10024
|
+
#
|
|
10025
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10026
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10027
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10028
|
+
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)
|
|
10029
|
+
command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
|
|
10030
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
|
10031
|
+
command.request_object = region_set_labels_request_object
|
|
10032
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
10033
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
10034
|
+
command.params['project'] = project unless project.nil?
|
|
10035
|
+
command.params['region'] = region unless region.nil?
|
|
10036
|
+
command.params['resource'] = resource unless resource.nil?
|
|
10037
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
10038
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10040
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10041
|
+
execute_or_queue_command(command, &block)
|
|
10042
|
+
end
|
|
10043
|
+
|
|
9988
10044
|
# Returns permissions that a caller has on the specified resource.
|
|
9989
10045
|
# @param [String] project
|
|
9990
10046
|
# Project ID for this request.
|
|
@@ -10416,6 +10472,48 @@ module Google
|
|
|
10416
10472
|
execute_or_queue_command(command, &block)
|
|
10417
10473
|
end
|
|
10418
10474
|
|
|
10475
|
+
# Sets the labels on an Interconnect. To learn more about labels, read the
|
|
10476
|
+
# Labeling Resources documentation.
|
|
10477
|
+
# @param [String] project
|
|
10478
|
+
# Project ID for this request.
|
|
10479
|
+
# @param [String] resource
|
|
10480
|
+
# Name of the resource for this request.
|
|
10481
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
|
|
10482
|
+
# @param [String] fields
|
|
10483
|
+
# Selector specifying which fields to include in a partial response.
|
|
10484
|
+
# @param [String] quota_user
|
|
10485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10487
|
+
# Overrides userIp if both are provided.
|
|
10488
|
+
# @param [String] user_ip
|
|
10489
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
10490
|
+
# enforce per-user limits.
|
|
10491
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10492
|
+
# Request-specific options
|
|
10493
|
+
#
|
|
10494
|
+
# @yield [result, err] Result & error if block supplied
|
|
10495
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
10496
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10497
|
+
#
|
|
10498
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
10499
|
+
#
|
|
10500
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10501
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10502
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10503
|
+
def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10504
|
+
command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setLabels', options)
|
|
10505
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
|
|
10506
|
+
command.request_object = global_set_labels_request_object
|
|
10507
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
10508
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
10509
|
+
command.params['project'] = project unless project.nil?
|
|
10510
|
+
command.params['resource'] = resource unless resource.nil?
|
|
10511
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10512
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10513
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10514
|
+
execute_or_queue_command(command, &block)
|
|
10515
|
+
end
|
|
10516
|
+
|
|
10419
10517
|
# Returns permissions that a caller has on the specified resource.
|
|
10420
10518
|
# @param [String] project
|
|
10421
10519
|
# Project ID for this request.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
|
26
26
|
module ComputeV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20171228'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -32,8 +32,9 @@ module Google
|
|
|
32
32
|
# @return [Fixnum]
|
|
33
33
|
attr_accessor :accelerator_count
|
|
34
34
|
|
|
35
|
-
# Full or partial URL of the accelerator type resource to
|
|
36
|
-
# instance.
|
|
35
|
+
# Full or partial URL of the accelerator type resource to attach to this
|
|
36
|
+
# instance. If you are creating an instance template, specify only the
|
|
37
|
+
# accelerator name.
|
|
37
38
|
# Corresponds to the JSON property `acceleratorType`
|
|
38
39
|
# @return [String]
|
|
39
40
|
attr_accessor :accelerator_type
|
|
@@ -1108,6 +1109,12 @@ module Google
|
|
|
1108
1109
|
# @return [String]
|
|
1109
1110
|
attr_accessor :disk_type
|
|
1110
1111
|
|
|
1112
|
+
# Labels to apply to this disk. These can be later modified by the disks.
|
|
1113
|
+
# setLabels method. This field is only applicable for persistent disks.
|
|
1114
|
+
# Corresponds to the JSON property `labels`
|
|
1115
|
+
# @return [Hash<String,String>]
|
|
1116
|
+
attr_accessor :labels
|
|
1117
|
+
|
|
1111
1118
|
# The source image to create this disk. When creating a new instance, one of
|
|
1112
1119
|
# initializeParams.sourceImage or disks.source is required except for local SSD.
|
|
1113
1120
|
# To create a disk with one of the public operating system images, specify the
|
|
@@ -1142,6 +1149,7 @@ module Google
|
|
|
1142
1149
|
@disk_name = args[:disk_name] if args.key?(:disk_name)
|
|
1143
1150
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
|
1144
1151
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
|
1152
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
1145
1153
|
@source_image = args[:source_image] if args.key?(:source_image)
|
|
1146
1154
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
|
1147
1155
|
end
|
|
@@ -11730,9 +11738,8 @@ module Google
|
|
|
11730
11738
|
end
|
|
11731
11739
|
end
|
|
11732
11740
|
|
|
11733
|
-
# A Project resource.
|
|
11734
|
-
#
|
|
11735
|
-
# == resource_for v1.projects ==) (== resource_for beta.projects ==)
|
|
11741
|
+
# A Project resource. For an overview of projects, see Cloud Platform Resource
|
|
11742
|
+
# Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==)
|
|
11736
11743
|
class Project
|
|
11737
11744
|
include Google::Apis::Core::Hashable
|
|
11738
11745
|
|