google-api-client 0.23.6 → 0.23.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +13 -6
  5. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  7. data/generated/google/apis/androidmanagement_v1/classes.rb +42 -0
  8. data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
  9. data/generated/google/apis/books_v1.rb +1 -1
  10. data/generated/google/apis/books_v1/classes.rb +7 -0
  11. data/generated/google/apis/books_v1/representations.rb +1 -0
  12. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  13. data/generated/google/apis/cloudiot_v1.rb +1 -1
  14. data/generated/google/apis/cloudiot_v1/service.rb +22 -24
  15. data/generated/google/apis/compute_alpha.rb +1 -1
  16. data/generated/google/apis/compute_alpha/classes.rb +696 -623
  17. data/generated/google/apis/compute_alpha/representations.rb +144 -175
  18. data/generated/google/apis/compute_alpha/service.rb +333 -187
  19. data/generated/google/apis/compute_beta.rb +1 -1
  20. data/generated/google/apis/compute_beta/classes.rb +105 -10
  21. data/generated/google/apis/compute_beta/representations.rb +37 -1
  22. data/generated/google/apis/compute_beta/service.rb +3 -2
  23. data/generated/google/apis/compute_v1.rb +1 -1
  24. data/generated/google/apis/compute_v1/classes.rb +345 -3
  25. data/generated/google/apis/compute_v1/representations.rb +133 -0
  26. data/generated/google/apis/compute_v1/service.rb +469 -2
  27. data/google-api-client.gemspec +3 -2
  28. data/lib/google/apis/version.rb +1 -1
  29. metadata +16 -2
@@ -1030,66 +1030,6 @@ module Google
1030
1030
  include Google::Apis::Core::JsonObjectSupport
1031
1031
  end
1032
1032
 
1033
- class HostType
1034
- class Representation < Google::Apis::Core::JsonRepresentation; end
1035
-
1036
- include Google::Apis::Core::JsonObjectSupport
1037
- end
1038
-
1039
- class HostTypeAggregatedList
1040
- class Representation < Google::Apis::Core::JsonRepresentation; end
1041
-
1042
- class Warning
1043
- class Representation < Google::Apis::Core::JsonRepresentation; end
1044
-
1045
- class Datum
1046
- class Representation < Google::Apis::Core::JsonRepresentation; end
1047
-
1048
- include Google::Apis::Core::JsonObjectSupport
1049
- end
1050
-
1051
- include Google::Apis::Core::JsonObjectSupport
1052
- end
1053
-
1054
- include Google::Apis::Core::JsonObjectSupport
1055
- end
1056
-
1057
- class HostTypeList
1058
- class Representation < Google::Apis::Core::JsonRepresentation; end
1059
-
1060
- class Warning
1061
- class Representation < Google::Apis::Core::JsonRepresentation; end
1062
-
1063
- class Datum
1064
- class Representation < Google::Apis::Core::JsonRepresentation; end
1065
-
1066
- include Google::Apis::Core::JsonObjectSupport
1067
- end
1068
-
1069
- include Google::Apis::Core::JsonObjectSupport
1070
- end
1071
-
1072
- include Google::Apis::Core::JsonObjectSupport
1073
- end
1074
-
1075
- class HostTypesScopedList
1076
- class Representation < Google::Apis::Core::JsonRepresentation; end
1077
-
1078
- class Warning
1079
- class Representation < Google::Apis::Core::JsonRepresentation; end
1080
-
1081
- class Datum
1082
- class Representation < Google::Apis::Core::JsonRepresentation; end
1083
-
1084
- include Google::Apis::Core::JsonObjectSupport
1085
- end
1086
-
1087
- include Google::Apis::Core::JsonObjectSupport
1088
- end
1089
-
1090
- include Google::Apis::Core::JsonObjectSupport
1091
- end
1092
-
1093
1033
  class HttpHealthCheck
1094
1034
  class Representation < Google::Apis::Core::JsonRepresentation; end
1095
1035
 
@@ -1924,6 +1864,30 @@ module Google
1924
1864
  include Google::Apis::Core::JsonObjectSupport
1925
1865
  end
1926
1866
 
1867
+ class MachineImage
1868
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1869
+
1870
+ include Google::Apis::Core::JsonObjectSupport
1871
+ end
1872
+
1873
+ class MachineImageList
1874
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1875
+
1876
+ class Warning
1877
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1878
+
1879
+ class Datum
1880
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1881
+
1882
+ include Google::Apis::Core::JsonObjectSupport
1883
+ end
1884
+
1885
+ include Google::Apis::Core::JsonObjectSupport
1886
+ end
1887
+
1888
+ include Google::Apis::Core::JsonObjectSupport
1889
+ end
1890
+
1927
1891
  class MachineType
1928
1892
  class Representation < Google::Apis::Core::JsonRepresentation; end
1929
1893
 
@@ -3166,6 +3130,12 @@ module Google
3166
3130
  include Google::Apis::Core::JsonObjectSupport
3167
3131
  end
3168
3132
 
3133
+ class SavedAttachedDisk
3134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3135
+
3136
+ include Google::Apis::Core::JsonObjectSupport
3137
+ end
3138
+
3169
3139
  class Scheduling
3170
3140
  class Representation < Google::Apis::Core::JsonRepresentation; end
3171
3141
 
@@ -3298,6 +3268,12 @@ module Google
3298
3268
  include Google::Apis::Core::JsonObjectSupport
3299
3269
  end
3300
3270
 
3271
+ class SourceInstanceProperties
3272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3273
+
3274
+ include Google::Apis::Core::JsonObjectSupport
3275
+ end
3276
+
3301
3277
  class SslCertificate
3302
3278
  class Representation < Google::Apis::Core::JsonRepresentation; end
3303
3279
 
@@ -4762,9 +4738,9 @@ module Google
4762
4738
  class AttachedDiskInitializeParams
4763
4739
  # @private
4764
4740
  class Representation < Google::Apis::Core::JsonRepresentation
4741
+ property :description, as: 'description'
4765
4742
  property :disk_name, as: 'diskName'
4766
4743
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
4767
- property :disk_storage_type, as: 'diskStorageType'
4768
4744
  property :disk_type, as: 'diskType'
4769
4745
  hash :labels, as: 'labels'
4770
4746
  property :source_image, as: 'sourceImage'
@@ -5293,6 +5269,8 @@ module Google
5293
5269
  class Commitment
5294
5270
  # @private
5295
5271
  class Representation < Google::Apis::Core::JsonRepresentation
5272
+ collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation
5273
+
5296
5274
  property :creation_timestamp, as: 'creationTimestamp'
5297
5275
  property :description, as: 'description'
5298
5276
  property :end_timestamp, as: 'endTimestamp'
@@ -5849,6 +5827,7 @@ module Google
5849
5827
  property :ip_address, as: 'IPAddress'
5850
5828
  property :ip_protocol, as: 'IPProtocol'
5851
5829
  property :all_ports, as: 'allPorts'
5830
+ property :allow_global_access, as: 'allowGlobalAccess'
5852
5831
  property :backend_service, as: 'backendService'
5853
5832
  property :creation_timestamp, as: 'creationTimestamp'
5854
5833
  property :description, as: 'description'
@@ -6208,117 +6187,6 @@ module Google
6208
6187
  end
6209
6188
  end
6210
6189
 
6211
- class HostType
6212
- # @private
6213
- class Representation < Google::Apis::Core::JsonRepresentation
6214
- property :cpu_platform, as: 'cpuPlatform'
6215
- property :creation_timestamp, as: 'creationTimestamp'
6216
- property :deprecated, as: 'deprecated', class: Google::Apis::ComputeAlpha::DeprecationStatus, decorator: Google::Apis::ComputeAlpha::DeprecationStatus::Representation
6217
-
6218
- property :description, as: 'description'
6219
- property :guest_cpus, as: 'guestCpus'
6220
- property :id, :numeric_string => true, as: 'id'
6221
- property :kind, as: 'kind'
6222
- property :local_ssd_gb, as: 'localSsdGb'
6223
- property :memory_mb, as: 'memoryMb'
6224
- property :name, as: 'name'
6225
- property :self_link, as: 'selfLink'
6226
- property :zone, as: 'zone'
6227
- end
6228
- end
6229
-
6230
- class HostTypeAggregatedList
6231
- # @private
6232
- class Representation < Google::Apis::Core::JsonRepresentation
6233
- property :id, as: 'id'
6234
- hash :items, as: 'items', class: Google::Apis::ComputeAlpha::HostTypesScopedList, decorator: Google::Apis::ComputeAlpha::HostTypesScopedList::Representation
6235
-
6236
- property :kind, as: 'kind'
6237
- property :next_page_token, as: 'nextPageToken'
6238
- property :self_link, as: 'selfLink'
6239
- property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning::Representation
6240
-
6241
- end
6242
-
6243
- class Warning
6244
- # @private
6245
- class Representation < Google::Apis::Core::JsonRepresentation
6246
- property :code, as: 'code'
6247
- collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning::Datum::Representation
6248
-
6249
- property :message, as: 'message'
6250
- end
6251
-
6252
- class Datum
6253
- # @private
6254
- class Representation < Google::Apis::Core::JsonRepresentation
6255
- property :key, as: 'key'
6256
- property :value, as: 'value'
6257
- end
6258
- end
6259
- end
6260
- end
6261
-
6262
- class HostTypeList
6263
- # @private
6264
- class Representation < Google::Apis::Core::JsonRepresentation
6265
- property :id, as: 'id'
6266
- collection :items, as: 'items', class: Google::Apis::ComputeAlpha::HostType, decorator: Google::Apis::ComputeAlpha::HostType::Representation
6267
-
6268
- property :kind, as: 'kind'
6269
- property :next_page_token, as: 'nextPageToken'
6270
- property :self_link, as: 'selfLink'
6271
- property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostTypeList::Warning, decorator: Google::Apis::ComputeAlpha::HostTypeList::Warning::Representation
6272
-
6273
- end
6274
-
6275
- class Warning
6276
- # @private
6277
- class Representation < Google::Apis::Core::JsonRepresentation
6278
- property :code, as: 'code'
6279
- collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostTypeList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostTypeList::Warning::Datum::Representation
6280
-
6281
- property :message, as: 'message'
6282
- end
6283
-
6284
- class Datum
6285
- # @private
6286
- class Representation < Google::Apis::Core::JsonRepresentation
6287
- property :key, as: 'key'
6288
- property :value, as: 'value'
6289
- end
6290
- end
6291
- end
6292
- end
6293
-
6294
- class HostTypesScopedList
6295
- # @private
6296
- class Representation < Google::Apis::Core::JsonRepresentation
6297
- collection :host_types, as: 'hostTypes', class: Google::Apis::ComputeAlpha::HostType, decorator: Google::Apis::ComputeAlpha::HostType::Representation
6298
-
6299
- property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning, decorator: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning::Representation
6300
-
6301
- end
6302
-
6303
- class Warning
6304
- # @private
6305
- class Representation < Google::Apis::Core::JsonRepresentation
6306
- property :code, as: 'code'
6307
- collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning::Datum::Representation
6308
-
6309
- property :message, as: 'message'
6310
- end
6311
-
6312
- class Datum
6313
- # @private
6314
- class Representation < Google::Apis::Core::JsonRepresentation
6315
- property :key, as: 'key'
6316
- property :value, as: 'value'
6317
- end
6318
- end
6319
- end
6320
- end
6321
-
6322
6190
  class HttpHealthCheck
6323
6191
  # @private
6324
6192
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6517,6 +6385,7 @@ module Google
6517
6385
 
6518
6386
  collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
6519
6387
 
6388
+ property :hostname, as: 'hostname'
6520
6389
  property :id, :numeric_string => true, as: 'id'
6521
6390
  property :instance_encryption_key, as: 'instanceEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
6522
6391
 
@@ -7898,6 +7767,56 @@ module Google
7898
7767
  end
7899
7768
  end
7900
7769
 
7770
+ class MachineImage
7771
+ # @private
7772
+ class Representation < Google::Apis::Core::JsonRepresentation
7773
+ property :creation_timestamp, as: 'creationTimestamp'
7774
+ property :description, as: 'description'
7775
+ property :id, :numeric_string => true, as: 'id'
7776
+ property :kind, as: 'kind'
7777
+ property :name, as: 'name'
7778
+ property :self_link, as: 'selfLink'
7779
+ property :source_instance, as: 'sourceInstance'
7780
+ property :source_instance_properties, as: 'sourceInstanceProperties', class: Google::Apis::ComputeAlpha::SourceInstanceProperties, decorator: Google::Apis::ComputeAlpha::SourceInstanceProperties::Representation
7781
+
7782
+ property :status, as: 'status'
7783
+ collection :storage_locations, as: 'storageLocations'
7784
+ end
7785
+ end
7786
+
7787
+ class MachineImageList
7788
+ # @private
7789
+ class Representation < Google::Apis::Core::JsonRepresentation
7790
+ property :etag, as: 'etag'
7791
+ property :id, as: 'id'
7792
+ collection :items, as: 'items', class: Google::Apis::ComputeAlpha::MachineImage, decorator: Google::Apis::ComputeAlpha::MachineImage::Representation
7793
+
7794
+ property :kind, as: 'kind'
7795
+ property :next_page_token, as: 'nextPageToken'
7796
+ property :self_link, as: 'selfLink'
7797
+ property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::MachineImageList::Warning, decorator: Google::Apis::ComputeAlpha::MachineImageList::Warning::Representation
7798
+
7799
+ end
7800
+
7801
+ class Warning
7802
+ # @private
7803
+ class Representation < Google::Apis::Core::JsonRepresentation
7804
+ property :code, as: 'code'
7805
+ collection :data, as: 'data', class: Google::Apis::ComputeAlpha::MachineImageList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::MachineImageList::Warning::Datum::Representation
7806
+
7807
+ property :message, as: 'message'
7808
+ end
7809
+
7810
+ class Datum
7811
+ # @private
7812
+ class Representation < Google::Apis::Core::JsonRepresentation
7813
+ property :key, as: 'key'
7814
+ property :value, as: 'value'
7815
+ end
7816
+ end
7817
+ end
7818
+ end
7819
+
7901
7820
  class MachineType
7902
7821
  # @private
7903
7822
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9702,8 +9621,6 @@ module Google
9702
9621
  class Representation < Google::Apis::Core::JsonRepresentation
9703
9622
  property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle::Representation
9704
9623
 
9705
- property :weekly_maintenance_window, as: 'weeklyMaintenanceWindow', class: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle::Representation
9706
-
9707
9624
  end
9708
9625
  end
9709
9626
 
@@ -10075,6 +9992,32 @@ module Google
10075
9992
  end
10076
9993
  end
10077
9994
 
9995
+ class SavedAttachedDisk
9996
+ # @private
9997
+ class Representation < Google::Apis::Core::JsonRepresentation
9998
+ property :auto_delete, as: 'autoDelete'
9999
+ property :boot, as: 'boot'
10000
+ property :device_name, as: 'deviceName'
10001
+ property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
10002
+
10003
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
10004
+ collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
10005
+
10006
+ property :index, as: 'index'
10007
+ property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams::Representation
10008
+
10009
+ property :interface, as: 'interface'
10010
+ property :kind, as: 'kind'
10011
+ collection :licenses, as: 'licenses'
10012
+ property :mode, as: 'mode'
10013
+ property :saved_state, as: 'savedState'
10014
+ property :source, as: 'source'
10015
+ property :storage_bytes, :numeric_string => true, as: 'storageBytes'
10016
+ property :storage_bytes_status, as: 'storageBytesStatus'
10017
+ property :type, as: 'type'
10018
+ end
10019
+ end
10020
+
10078
10021
  class Scheduling
10079
10022
  # @private
10080
10023
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10311,6 +10254,32 @@ module Google
10311
10254
  end
10312
10255
  end
10313
10256
 
10257
+ class SourceInstanceProperties
10258
+ # @private
10259
+ class Representation < Google::Apis::Core::JsonRepresentation
10260
+ property :can_ip_forward, as: 'canIpForward'
10261
+ property :deletion_protection, as: 'deletionProtection'
10262
+ property :description, as: 'description'
10263
+ collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::SavedAttachedDisk, decorator: Google::Apis::ComputeAlpha::SavedAttachedDisk::Representation
10264
+
10265
+ collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
10266
+
10267
+ hash :labels, as: 'labels'
10268
+ property :machine_type, as: 'machineType'
10269
+ property :metadata, as: 'metadata', class: Google::Apis::ComputeAlpha::Metadata, decorator: Google::Apis::ComputeAlpha::Metadata::Representation
10270
+
10271
+ property :min_cpu_platform, as: 'minCpuPlatform'
10272
+ collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation
10273
+
10274
+ property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
10275
+
10276
+ collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
10277
+
10278
+ property :tags, as: 'tags', class: Google::Apis::ComputeAlpha::Tags, decorator: Google::Apis::ComputeAlpha::Tags::Representation
10279
+
10280
+ end
10281
+ end
10282
+
10314
10283
  class SslCertificate
10315
10284
  # @private
10316
10285
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -11596,7 +11565,7 @@ module Google
11596
11565
  class UrlMapsScopedList
11597
11566
  # @private
11598
11567
  class Representation < Google::Apis::Core::JsonRepresentation
11599
- collection :url_maps, as: 'UrlMaps', class: Google::Apis::ComputeAlpha::UrlMap, decorator: Google::Apis::ComputeAlpha::UrlMap::Representation
11568
+ collection :url_maps, as: 'urlMaps', class: Google::Apis::ComputeAlpha::UrlMap, decorator: Google::Apis::ComputeAlpha::UrlMap::Representation
11600
11569
 
11601
11570
  property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning::Representation
11602
11571
 
@@ -5705,191 +5705,6 @@ module Google
5705
5705
  execute_or_queue_command(command, &block)
5706
5706
  end
5707
5707
 
5708
- # Retrieves an aggregated list of host types.
5709
- # @param [String] project
5710
- # Project ID for this request.
5711
- # @param [String] filter
5712
- # A filter expression that filters resources listed in the response. The
5713
- # expression must specify the field name, a comparison operator, and the value
5714
- # that you want to use for filtering. The value must be a string, a number, or a
5715
- # boolean. The comparison operator must be either =, !=, >, or <.
5716
- # For example, if you are filtering Compute Engine instances, you can exclude
5717
- # instances named example-instance by specifying name != example-instance.
5718
- # You can also filter nested fields. For example, you could specify scheduling.
5719
- # automaticRestart = false to include instances only if they are not scheduled
5720
- # for automatic restarts. You can use filtering on nested fields to filter based
5721
- # on resource labels.
5722
- # To filter on multiple expressions, provide each separate expression within
5723
- # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
5724
- # Intel Skylake"). By default, each expression is an AND expression. However,
5725
- # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
5726
- # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
5727
- # automaticRestart = true).
5728
- # @param [Fixnum] max_results
5729
- # The maximum number of results per page that should be returned. If the number
5730
- # of available results is larger than maxResults, Compute Engine returns a
5731
- # nextPageToken that can be used to get the next page of results in subsequent
5732
- # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
5733
- # @param [String] order_by
5734
- # Sorts list results by a certain order. By default, results are returned in
5735
- # alphanumerical order based on the resource name.
5736
- # You can also sort results in descending order based on the creation timestamp
5737
- # using orderBy="creationTimestamp desc". This sorts results based on the
5738
- # creationTimestamp field in reverse chronological order (newest result first).
5739
- # Use this to sort resources like operations so that the newest operation is
5740
- # returned first.
5741
- # Currently, only sorting by name or creationTimestamp desc is supported.
5742
- # @param [String] page_token
5743
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
5744
- # a previous list request to get the next page of results.
5745
- # @param [String] fields
5746
- # Selector specifying which fields to include in a partial response.
5747
- # @param [String] quota_user
5748
- # An opaque string that represents a user for quota purposes. Must not exceed 40
5749
- # characters.
5750
- # @param [String] user_ip
5751
- # Deprecated. Please use quotaUser instead.
5752
- # @param [Google::Apis::RequestOptions] options
5753
- # Request-specific options
5754
- #
5755
- # @yield [result, err] Result & error if block supplied
5756
- # @yieldparam result [Google::Apis::ComputeAlpha::HostTypeAggregatedList] parsed result object
5757
- # @yieldparam err [StandardError] error object if request failed
5758
- #
5759
- # @return [Google::Apis::ComputeAlpha::HostTypeAggregatedList]
5760
- #
5761
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5762
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5763
- # @raise [Google::Apis::AuthorizationError] Authorization is required
5764
- def aggregated_host_type_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5765
- command = make_simple_command(:get, '{project}/aggregated/hostTypes', options)
5766
- command.response_representation = Google::Apis::ComputeAlpha::HostTypeAggregatedList::Representation
5767
- command.response_class = Google::Apis::ComputeAlpha::HostTypeAggregatedList
5768
- command.params['project'] = project unless project.nil?
5769
- command.query['filter'] = filter unless filter.nil?
5770
- command.query['maxResults'] = max_results unless max_results.nil?
5771
- command.query['orderBy'] = order_by unless order_by.nil?
5772
- command.query['pageToken'] = page_token unless page_token.nil?
5773
- command.query['fields'] = fields unless fields.nil?
5774
- command.query['quotaUser'] = quota_user unless quota_user.nil?
5775
- command.query['userIp'] = user_ip unless user_ip.nil?
5776
- execute_or_queue_command(command, &block)
5777
- end
5778
-
5779
- # Returns the specified host type. Gets a list of available host types by making
5780
- # a list() request.
5781
- # @param [String] project
5782
- # Project ID for this request.
5783
- # @param [String] zone
5784
- # The name of the zone for this request.
5785
- # @param [String] host_type
5786
- # Name of the host type to return.
5787
- # @param [String] fields
5788
- # Selector specifying which fields to include in a partial response.
5789
- # @param [String] quota_user
5790
- # An opaque string that represents a user for quota purposes. Must not exceed 40
5791
- # characters.
5792
- # @param [String] user_ip
5793
- # Deprecated. Please use quotaUser instead.
5794
- # @param [Google::Apis::RequestOptions] options
5795
- # Request-specific options
5796
- #
5797
- # @yield [result, err] Result & error if block supplied
5798
- # @yieldparam result [Google::Apis::ComputeAlpha::HostType] parsed result object
5799
- # @yieldparam err [StandardError] error object if request failed
5800
- #
5801
- # @return [Google::Apis::ComputeAlpha::HostType]
5802
- #
5803
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5804
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5805
- # @raise [Google::Apis::AuthorizationError] Authorization is required
5806
- def get_host_type(project, zone, host_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5807
- command = make_simple_command(:get, '{project}/zones/{zone}/hostTypes/{hostType}', options)
5808
- command.response_representation = Google::Apis::ComputeAlpha::HostType::Representation
5809
- command.response_class = Google::Apis::ComputeAlpha::HostType
5810
- command.params['project'] = project unless project.nil?
5811
- command.params['zone'] = zone unless zone.nil?
5812
- command.params['hostType'] = host_type unless host_type.nil?
5813
- command.query['fields'] = fields unless fields.nil?
5814
- command.query['quotaUser'] = quota_user unless quota_user.nil?
5815
- command.query['userIp'] = user_ip unless user_ip.nil?
5816
- execute_or_queue_command(command, &block)
5817
- end
5818
-
5819
- # Retrieves a list of host types available to the specified project.
5820
- # @param [String] project
5821
- # Project ID for this request.
5822
- # @param [String] zone
5823
- # The name of the zone for this request.
5824
- # @param [String] filter
5825
- # A filter expression that filters resources listed in the response. The
5826
- # expression must specify the field name, a comparison operator, and the value
5827
- # that you want to use for filtering. The value must be a string, a number, or a
5828
- # boolean. The comparison operator must be either =, !=, >, or <.
5829
- # For example, if you are filtering Compute Engine instances, you can exclude
5830
- # instances named example-instance by specifying name != example-instance.
5831
- # You can also filter nested fields. For example, you could specify scheduling.
5832
- # automaticRestart = false to include instances only if they are not scheduled
5833
- # for automatic restarts. You can use filtering on nested fields to filter based
5834
- # on resource labels.
5835
- # To filter on multiple expressions, provide each separate expression within
5836
- # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
5837
- # Intel Skylake"). By default, each expression is an AND expression. However,
5838
- # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
5839
- # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
5840
- # automaticRestart = true).
5841
- # @param [Fixnum] max_results
5842
- # The maximum number of results per page that should be returned. If the number
5843
- # of available results is larger than maxResults, Compute Engine returns a
5844
- # nextPageToken that can be used to get the next page of results in subsequent
5845
- # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
5846
- # @param [String] order_by
5847
- # Sorts list results by a certain order. By default, results are returned in
5848
- # alphanumerical order based on the resource name.
5849
- # You can also sort results in descending order based on the creation timestamp
5850
- # using orderBy="creationTimestamp desc". This sorts results based on the
5851
- # creationTimestamp field in reverse chronological order (newest result first).
5852
- # Use this to sort resources like operations so that the newest operation is
5853
- # returned first.
5854
- # Currently, only sorting by name or creationTimestamp desc is supported.
5855
- # @param [String] page_token
5856
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
5857
- # a previous list request to get the next page of results.
5858
- # @param [String] fields
5859
- # Selector specifying which fields to include in a partial response.
5860
- # @param [String] quota_user
5861
- # An opaque string that represents a user for quota purposes. Must not exceed 40
5862
- # characters.
5863
- # @param [String] user_ip
5864
- # Deprecated. Please use quotaUser instead.
5865
- # @param [Google::Apis::RequestOptions] options
5866
- # Request-specific options
5867
- #
5868
- # @yield [result, err] Result & error if block supplied
5869
- # @yieldparam result [Google::Apis::ComputeAlpha::HostTypeList] parsed result object
5870
- # @yieldparam err [StandardError] error object if request failed
5871
- #
5872
- # @return [Google::Apis::ComputeAlpha::HostTypeList]
5873
- #
5874
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5875
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5876
- # @raise [Google::Apis::AuthorizationError] Authorization is required
5877
- def list_host_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5878
- command = make_simple_command(:get, '{project}/zones/{zone}/hostTypes', options)
5879
- command.response_representation = Google::Apis::ComputeAlpha::HostTypeList::Representation
5880
- command.response_class = Google::Apis::ComputeAlpha::HostTypeList
5881
- command.params['project'] = project unless project.nil?
5882
- command.params['zone'] = zone unless zone.nil?
5883
- command.query['filter'] = filter unless filter.nil?
5884
- command.query['maxResults'] = max_results unless max_results.nil?
5885
- command.query['orderBy'] = order_by unless order_by.nil?
5886
- command.query['pageToken'] = page_token unless page_token.nil?
5887
- command.query['fields'] = fields unless fields.nil?
5888
- command.query['quotaUser'] = quota_user unless quota_user.nil?
5889
- command.query['userIp'] = user_ip unless user_ip.nil?
5890
- execute_or_queue_command(command, &block)
5891
- end
5892
-
5893
5708
  # Deletes the specified HttpHealthCheck resource.
5894
5709
  # @param [String] project
5895
5710
  # Project ID for this request.
@@ -9317,7 +9132,8 @@ module Google
9317
9132
  execute_or_queue_command(command, &block)
9318
9133
  end
9319
9134
 
9320
- # Retrieves aggregated list of instances.
9135
+ # Retrieves aggregated list of all of the instances in your project across all
9136
+ # regions and zones.
9321
9137
  # @param [String] project
9322
9138
  # Project ID for this request.
9323
9139
  # @param [String] filter
@@ -9734,7 +9550,7 @@ module Google
9734
9550
  execute_or_queue_command(command, &block)
9735
9551
  end
9736
9552
 
9737
- # Returns the specified instance's serial port output.
9553
+ # Returns the last 1 MB of serial port output from the specified instance.
9738
9554
  # @param [String] project
9739
9555
  # Project ID for this request.
9740
9556
  # @param [String] zone
@@ -12890,6 +12706,336 @@ module Google
12890
12706
  execute_or_queue_command(command, &block)
12891
12707
  end
12892
12708
 
12709
+ # Deletes the specified machine image. If you delete an instance template that
12710
+ # is being referenced from another instance group, the instance group will not
12711
+ # be able to create or recreate virtual machine instances. Deleting an machine
12712
+ # image is permanent and cannot be undone.
12713
+ # @param [String] project
12714
+ # Project ID for this request.
12715
+ # @param [String] machine_image
12716
+ # The name of the machine image to delete.
12717
+ # @param [String] request_id
12718
+ # An optional request ID to identify requests. Specify a unique request ID so
12719
+ # that if you must retry your request, the server will know to ignore the
12720
+ # request if it has already been completed.
12721
+ # For example, consider a situation where you make an initial request and the
12722
+ # request times out. If you make the request again with the same request ID, the
12723
+ # server can check if original operation with the same request ID was received,
12724
+ # and if so, will ignore the second request. This prevents clients from
12725
+ # accidentally creating duplicate commitments.
12726
+ # The request ID must be a valid UUID with the exception that zero UUID is not
12727
+ # supported (00000000-0000-0000-0000-000000000000).
12728
+ # @param [String] fields
12729
+ # Selector specifying which fields to include in a partial response.
12730
+ # @param [String] quota_user
12731
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12732
+ # characters.
12733
+ # @param [String] user_ip
12734
+ # Deprecated. Please use quotaUser instead.
12735
+ # @param [Google::Apis::RequestOptions] options
12736
+ # Request-specific options
12737
+ #
12738
+ # @yield [result, err] Result & error if block supplied
12739
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
12740
+ # @yieldparam err [StandardError] error object if request failed
12741
+ #
12742
+ # @return [Google::Apis::ComputeAlpha::Operation]
12743
+ #
12744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12747
+ def delete_machine_image(project, machine_image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12748
+ command = make_simple_command(:delete, '{project}/global/machineImages/{machineImage}', options)
12749
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
12750
+ command.response_class = Google::Apis::ComputeAlpha::Operation
12751
+ command.params['project'] = project unless project.nil?
12752
+ command.params['machineImage'] = machine_image unless machine_image.nil?
12753
+ command.query['requestId'] = request_id unless request_id.nil?
12754
+ command.query['fields'] = fields unless fields.nil?
12755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12756
+ command.query['userIp'] = user_ip unless user_ip.nil?
12757
+ execute_or_queue_command(command, &block)
12758
+ end
12759
+
12760
+ # Returns the specified machine image. Gets a list of available machine images
12761
+ # by making a list() request.
12762
+ # @param [String] project
12763
+ # Project ID for this request.
12764
+ # @param [String] machine_image
12765
+ # The name of the machine image.
12766
+ # @param [String] fields
12767
+ # Selector specifying which fields to include in a partial response.
12768
+ # @param [String] quota_user
12769
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12770
+ # characters.
12771
+ # @param [String] user_ip
12772
+ # Deprecated. Please use quotaUser instead.
12773
+ # @param [Google::Apis::RequestOptions] options
12774
+ # Request-specific options
12775
+ #
12776
+ # @yield [result, err] Result & error if block supplied
12777
+ # @yieldparam result [Google::Apis::ComputeAlpha::MachineImage] parsed result object
12778
+ # @yieldparam err [StandardError] error object if request failed
12779
+ #
12780
+ # @return [Google::Apis::ComputeAlpha::MachineImage]
12781
+ #
12782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12785
+ def get_machine_image(project, machine_image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12786
+ command = make_simple_command(:get, '{project}/global/machineImages/{machineImage}', options)
12787
+ command.response_representation = Google::Apis::ComputeAlpha::MachineImage::Representation
12788
+ command.response_class = Google::Apis::ComputeAlpha::MachineImage
12789
+ command.params['project'] = project unless project.nil?
12790
+ command.params['machineImage'] = machine_image unless machine_image.nil?
12791
+ command.query['fields'] = fields unless fields.nil?
12792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12793
+ command.query['userIp'] = user_ip unless user_ip.nil?
12794
+ execute_or_queue_command(command, &block)
12795
+ end
12796
+
12797
+ # Gets the access control policy for a resource. May be empty if no such policy
12798
+ # or resource exists.
12799
+ # @param [String] project
12800
+ # Project ID for this request.
12801
+ # @param [String] resource
12802
+ # Name of the resource for this request.
12803
+ # @param [String] fields
12804
+ # Selector specifying which fields to include in a partial response.
12805
+ # @param [String] quota_user
12806
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12807
+ # characters.
12808
+ # @param [String] user_ip
12809
+ # Deprecated. Please use quotaUser instead.
12810
+ # @param [Google::Apis::RequestOptions] options
12811
+ # Request-specific options
12812
+ #
12813
+ # @yield [result, err] Result & error if block supplied
12814
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
12815
+ # @yieldparam err [StandardError] error object if request failed
12816
+ #
12817
+ # @return [Google::Apis::ComputeAlpha::Policy]
12818
+ #
12819
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12820
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12821
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12822
+ def get_machine_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12823
+ command = make_simple_command(:get, '{project}/global/machineImages/{resource}/getIamPolicy', options)
12824
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
12825
+ command.response_class = Google::Apis::ComputeAlpha::Policy
12826
+ command.params['project'] = project unless project.nil?
12827
+ command.params['resource'] = resource unless resource.nil?
12828
+ command.query['fields'] = fields unless fields.nil?
12829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12830
+ command.query['userIp'] = user_ip unless user_ip.nil?
12831
+ execute_or_queue_command(command, &block)
12832
+ end
12833
+
12834
+ # Creates an machine image in the specified project using the data that is
12835
+ # included in the request. If you are creating a new template to update an
12836
+ # existing instance group, your new machine image must use the same network or,
12837
+ # if applicable, the same subnetwork as the original template.
12838
+ # @param [String] project
12839
+ # Project ID for this request.
12840
+ # @param [Google::Apis::ComputeAlpha::MachineImage] machine_image_object
12841
+ # @param [String] request_id
12842
+ # An optional request ID to identify requests. Specify a unique request ID so
12843
+ # that if you must retry your request, the server will know to ignore the
12844
+ # request if it has already been completed.
12845
+ # For example, consider a situation where you make an initial request and the
12846
+ # request times out. If you make the request again with the same request ID, the
12847
+ # server can check if original operation with the same request ID was received,
12848
+ # and if so, will ignore the second request. This prevents clients from
12849
+ # accidentally creating duplicate commitments.
12850
+ # The request ID must be a valid UUID with the exception that zero UUID is not
12851
+ # supported (00000000-0000-0000-0000-000000000000).
12852
+ # @param [String] source_instance
12853
+ # Optional. Source image to restore onto a disk.
12854
+ # @param [String] fields
12855
+ # Selector specifying which fields to include in a partial response.
12856
+ # @param [String] quota_user
12857
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12858
+ # characters.
12859
+ # @param [String] user_ip
12860
+ # Deprecated. Please use quotaUser instead.
12861
+ # @param [Google::Apis::RequestOptions] options
12862
+ # Request-specific options
12863
+ #
12864
+ # @yield [result, err] Result & error if block supplied
12865
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
12866
+ # @yieldparam err [StandardError] error object if request failed
12867
+ #
12868
+ # @return [Google::Apis::ComputeAlpha::Operation]
12869
+ #
12870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12873
+ def insert_machine_image(project, machine_image_object = nil, request_id: nil, source_instance: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12874
+ command = make_simple_command(:post, '{project}/global/machineImages', options)
12875
+ command.request_representation = Google::Apis::ComputeAlpha::MachineImage::Representation
12876
+ command.request_object = machine_image_object
12877
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
12878
+ command.response_class = Google::Apis::ComputeAlpha::Operation
12879
+ command.params['project'] = project unless project.nil?
12880
+ command.query['requestId'] = request_id unless request_id.nil?
12881
+ command.query['sourceInstance'] = source_instance unless source_instance.nil?
12882
+ command.query['fields'] = fields unless fields.nil?
12883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12884
+ command.query['userIp'] = user_ip unless user_ip.nil?
12885
+ execute_or_queue_command(command, &block)
12886
+ end
12887
+
12888
+ # Retrieves a list of machine images that are contained within the specified
12889
+ # project.
12890
+ # @param [String] project
12891
+ # Project ID for this request.
12892
+ # @param [String] filter
12893
+ # A filter expression that filters resources listed in the response. The
12894
+ # expression must specify the field name, a comparison operator, and the value
12895
+ # that you want to use for filtering. The value must be a string, a number, or a
12896
+ # boolean. The comparison operator must be either =, !=, >, or <.
12897
+ # For example, if you are filtering Compute Engine instances, you can exclude
12898
+ # instances named example-instance by specifying name != example-instance.
12899
+ # You can also filter nested fields. For example, you could specify scheduling.
12900
+ # automaticRestart = false to include instances only if they are not scheduled
12901
+ # for automatic restarts. You can use filtering on nested fields to filter based
12902
+ # on resource labels.
12903
+ # To filter on multiple expressions, provide each separate expression within
12904
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
12905
+ # Intel Skylake"). By default, each expression is an AND expression. However,
12906
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
12907
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
12908
+ # automaticRestart = true).
12909
+ # @param [Fixnum] max_results
12910
+ # The maximum number of results per page that should be returned. If the number
12911
+ # of available results is larger than maxResults, Compute Engine returns a
12912
+ # nextPageToken that can be used to get the next page of results in subsequent
12913
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12914
+ # @param [String] order_by
12915
+ # Sorts list results by a certain order. By default, results are returned in
12916
+ # alphanumerical order based on the resource name.
12917
+ # You can also sort results in descending order based on the creation timestamp
12918
+ # using orderBy="creationTimestamp desc". This sorts results based on the
12919
+ # creationTimestamp field in reverse chronological order (newest result first).
12920
+ # Use this to sort resources like operations so that the newest operation is
12921
+ # returned first.
12922
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12923
+ # @param [String] page_token
12924
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
12925
+ # a previous list request to get the next page of results.
12926
+ # @param [String] fields
12927
+ # Selector specifying which fields to include in a partial response.
12928
+ # @param [String] quota_user
12929
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12930
+ # characters.
12931
+ # @param [String] user_ip
12932
+ # Deprecated. Please use quotaUser instead.
12933
+ # @param [Google::Apis::RequestOptions] options
12934
+ # Request-specific options
12935
+ #
12936
+ # @yield [result, err] Result & error if block supplied
12937
+ # @yieldparam result [Google::Apis::ComputeAlpha::MachineImageList] parsed result object
12938
+ # @yieldparam err [StandardError] error object if request failed
12939
+ #
12940
+ # @return [Google::Apis::ComputeAlpha::MachineImageList]
12941
+ #
12942
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12943
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12944
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12945
+ def list_machine_images(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12946
+ command = make_simple_command(:get, '{project}/global/machineImages', options)
12947
+ command.response_representation = Google::Apis::ComputeAlpha::MachineImageList::Representation
12948
+ command.response_class = Google::Apis::ComputeAlpha::MachineImageList
12949
+ command.params['project'] = project unless project.nil?
12950
+ command.query['filter'] = filter unless filter.nil?
12951
+ command.query['maxResults'] = max_results unless max_results.nil?
12952
+ command.query['orderBy'] = order_by unless order_by.nil?
12953
+ command.query['pageToken'] = page_token unless page_token.nil?
12954
+ command.query['fields'] = fields unless fields.nil?
12955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12956
+ command.query['userIp'] = user_ip unless user_ip.nil?
12957
+ execute_or_queue_command(command, &block)
12958
+ end
12959
+
12960
+ # Sets the access control policy on the specified resource. Replaces any
12961
+ # existing policy.
12962
+ # @param [String] project
12963
+ # Project ID for this request.
12964
+ # @param [String] resource
12965
+ # Name of the resource for this request.
12966
+ # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
12967
+ # @param [String] fields
12968
+ # Selector specifying which fields to include in a partial response.
12969
+ # @param [String] quota_user
12970
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12971
+ # characters.
12972
+ # @param [String] user_ip
12973
+ # Deprecated. Please use quotaUser instead.
12974
+ # @param [Google::Apis::RequestOptions] options
12975
+ # Request-specific options
12976
+ #
12977
+ # @yield [result, err] Result & error if block supplied
12978
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
12979
+ # @yieldparam err [StandardError] error object if request failed
12980
+ #
12981
+ # @return [Google::Apis::ComputeAlpha::Policy]
12982
+ #
12983
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12984
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12985
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12986
+ def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12987
+ command = make_simple_command(:post, '{project}/global/machineImages/{resource}/setIamPolicy', options)
12988
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
12989
+ command.request_object = global_set_policy_request_object
12990
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
12991
+ command.response_class = Google::Apis::ComputeAlpha::Policy
12992
+ command.params['project'] = project unless project.nil?
12993
+ command.params['resource'] = resource unless resource.nil?
12994
+ command.query['fields'] = fields unless fields.nil?
12995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12996
+ command.query['userIp'] = user_ip unless user_ip.nil?
12997
+ execute_or_queue_command(command, &block)
12998
+ end
12999
+
13000
+ # Returns permissions that a caller has on the specified resource.
13001
+ # @param [String] project
13002
+ # Project ID for this request.
13003
+ # @param [String] resource
13004
+ # Name of the resource for this request.
13005
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
13006
+ # @param [String] fields
13007
+ # Selector specifying which fields to include in a partial response.
13008
+ # @param [String] quota_user
13009
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
13010
+ # characters.
13011
+ # @param [String] user_ip
13012
+ # Deprecated. Please use quotaUser instead.
13013
+ # @param [Google::Apis::RequestOptions] options
13014
+ # Request-specific options
13015
+ #
13016
+ # @yield [result, err] Result & error if block supplied
13017
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
13018
+ # @yieldparam err [StandardError] error object if request failed
13019
+ #
13020
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
13021
+ #
13022
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13023
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13024
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13025
+ def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13026
+ command = make_simple_command(:post, '{project}/global/machineImages/{resource}/testIamPermissions', options)
13027
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
13028
+ command.request_object = test_permissions_request_object
13029
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
13030
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
13031
+ command.params['project'] = project unless project.nil?
13032
+ command.params['resource'] = resource unless resource.nil?
13033
+ command.query['fields'] = fields unless fields.nil?
13034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13035
+ command.query['userIp'] = user_ip unless user_ip.nil?
13036
+ execute_or_queue_command(command, &block)
13037
+ end
13038
+
12893
13039
  # Retrieves an aggregated list of machine types.
12894
13040
  # @param [String] project
12895
13041
  # Project ID for this request.