google-api-client 0.22.0 → 0.23.0

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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
  5. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  6. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
  9. data/generated/google/apis/appengine_v1.rb +1 -1
  10. data/generated/google/apis/appengine_v1/classes.rb +59 -1
  11. data/generated/google/apis/appengine_v1/representations.rb +18 -0
  12. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  13. data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
  14. data/generated/google/apis/compute_alpha.rb +1 -1
  15. data/generated/google/apis/compute_alpha/classes.rb +97 -12
  16. data/generated/google/apis/compute_alpha/representations.rb +23 -0
  17. data/generated/google/apis/compute_alpha/service.rb +41 -1
  18. data/generated/google/apis/compute_beta.rb +1 -1
  19. data/generated/google/apis/compute_beta/classes.rb +1616 -43
  20. data/generated/google/apis/compute_beta/representations.rb +685 -20
  21. data/generated/google/apis/compute_beta/service.rb +1286 -0
  22. data/generated/google/apis/compute_v1.rb +1 -1
  23. data/generated/google/apis/compute_v1/classes.rb +184 -3
  24. data/generated/google/apis/compute_v1/representations.rb +43 -0
  25. data/generated/google/apis/compute_v1/service.rb +108 -0
  26. data/generated/google/apis/content_v2.rb +1 -1
  27. data/generated/google/apis/content_v2/classes.rb +805 -102
  28. data/generated/google/apis/content_v2/representations.rb +393 -26
  29. data/generated/google/apis/content_v2/service.rb +242 -0
  30. data/generated/google/apis/content_v2sandbox.rb +1 -1
  31. data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
  32. data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
  33. data/generated/google/apis/content_v2sandbox/service.rb +242 -0
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +280 -2
  36. data/generated/google/apis/dlp_v2/representations.rb +120 -0
  37. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  38. data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
  39. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  40. data/generated/google/apis/logging_v2.rb +1 -1
  41. data/generated/google/apis/logging_v2/classes.rb +2 -2
  42. data/generated/google/apis/monitoring_v3.rb +1 -1
  43. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  44. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  45. data/generated/google/apis/monitoring_v3/service.rb +5 -3
  46. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  47. data/generated/google/apis/pubsub_v1.rb +1 -1
  48. data/generated/google/apis/pubsub_v1/classes.rb +0 -8
  49. data/generated/google/apis/pubsub_v1/service.rb +4 -8
  50. data/generated/google/apis/script_v1.rb +1 -1
  51. data/generated/google/apis/script_v1/classes.rb +7 -8
  52. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  53. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
  54. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
  55. data/generated/google/apis/serviceuser_v1.rb +1 -1
  56. data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
  57. data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
  58. data/generated/google/apis/sheets_v4.rb +1 -1
  59. data/generated/google/apis/sheets_v4/service.rb +2 -1
  60. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  61. data/generated/google/apis/tpu_v1.rb +34 -0
  62. data/generated/google/apis/tpu_v1/classes.rb +736 -0
  63. data/generated/google/apis/tpu_v1/representations.rb +316 -0
  64. data/generated/google/apis/tpu_v1/service.rb +687 -0
  65. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  66. data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
  67. data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
  68. data/generated/google/apis/videointelligence_v1.rb +1 -1
  69. data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
  70. data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
  71. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  72. data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
  73. data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
  74. data/lib/google/apis/version.rb +1 -1
  75. metadata +6 -6
  76. data/generated/google/apis/photoslibrary_v1.rb +0 -49
  77. data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
  78. data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
  79. data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
@@ -8866,6 +8866,61 @@ module Google
8866
8866
  execute_or_queue_command(command, &block)
8867
8867
  end
8868
8868
 
8869
+ # Sets the Shielded VM integrity policy for an instance. This method supports
8870
+ # PATCH semantics and uses the JSON merge patch format and processing rules.
8871
+ # @param [String] project
8872
+ # Project ID for this request.
8873
+ # @param [String] zone
8874
+ # The name of the zone for this request.
8875
+ # @param [String] instance
8876
+ # Name of the instance scoping this request.
8877
+ # @param [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object
8878
+ # @param [String] request_id
8879
+ # An optional request ID to identify requests. Specify a unique request ID so
8880
+ # that if you must retry your request, the server will know to ignore the
8881
+ # request if it has already been completed.
8882
+ # For example, consider a situation where you make an initial request and the
8883
+ # request times out. If you make the request again with the same request ID, the
8884
+ # server can check if original operation with the same request ID was received,
8885
+ # and if so, will ignore the second request. This prevents clients from
8886
+ # accidentally creating duplicate commitments.
8887
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8888
+ # supported (00000000-0000-0000-0000-000000000000).
8889
+ # @param [String] fields
8890
+ # Selector specifying which fields to include in a partial response.
8891
+ # @param [String] quota_user
8892
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
8893
+ # characters.
8894
+ # @param [String] user_ip
8895
+ # Deprecated. Please use quotaUser instead.
8896
+ # @param [Google::Apis::RequestOptions] options
8897
+ # Request-specific options
8898
+ #
8899
+ # @yield [result, err] Result & error if block supplied
8900
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
8901
+ # @yieldparam err [StandardError] error object if request failed
8902
+ #
8903
+ # @return [Google::Apis::ComputeBeta::Operation]
8904
+ #
8905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8908
+ def set_instance_shielded_vm_integrity_policy(project, zone, instance, shielded_vm_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8909
+ command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options)
8910
+ command.request_representation = Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation
8911
+ command.request_object = shielded_vm_integrity_policy_object
8912
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
8913
+ command.response_class = Google::Apis::ComputeBeta::Operation
8914
+ command.params['project'] = project unless project.nil?
8915
+ command.params['zone'] = zone unless zone.nil?
8916
+ command.params['instance'] = instance unless instance.nil?
8917
+ command.query['requestId'] = request_id unless request_id.nil?
8918
+ command.query['fields'] = fields unless fields.nil?
8919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8920
+ command.query['userIp'] = user_ip unless user_ip.nil?
8921
+ execute_or_queue_command(command, &block)
8922
+ end
8923
+
8869
8924
  # Sets tags for the specified instance to the data included in the request.
8870
8925
  # @param [String] project
8871
8926
  # Project ID for this request.
@@ -9279,6 +9334,61 @@ module Google
9279
9334
  execute_or_queue_command(command, &block)
9280
9335
  end
9281
9336
 
9337
+ # Updates the Shielded VM config for an instance. This method supports PATCH
9338
+ # semantics and uses the JSON merge patch format and processing rules.
9339
+ # @param [String] project
9340
+ # Project ID for this request.
9341
+ # @param [String] zone
9342
+ # The name of the zone for this request.
9343
+ # @param [String] instance
9344
+ # Name of the instance scoping this request.
9345
+ # @param [Google::Apis::ComputeBeta::ShieldedVmConfig] shielded_vm_config_object
9346
+ # @param [String] request_id
9347
+ # An optional request ID to identify requests. Specify a unique request ID so
9348
+ # that if you must retry your request, the server will know to ignore the
9349
+ # request if it has already been completed.
9350
+ # For example, consider a situation where you make an initial request and the
9351
+ # request times out. If you make the request again with the same request ID, the
9352
+ # server can check if original operation with the same request ID was received,
9353
+ # and if so, will ignore the second request. This prevents clients from
9354
+ # accidentally creating duplicate commitments.
9355
+ # The request ID must be a valid UUID with the exception that zero UUID is not
9356
+ # supported (00000000-0000-0000-0000-000000000000).
9357
+ # @param [String] fields
9358
+ # Selector specifying which fields to include in a partial response.
9359
+ # @param [String] quota_user
9360
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
9361
+ # characters.
9362
+ # @param [String] user_ip
9363
+ # Deprecated. Please use quotaUser instead.
9364
+ # @param [Google::Apis::RequestOptions] options
9365
+ # Request-specific options
9366
+ #
9367
+ # @yield [result, err] Result & error if block supplied
9368
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9369
+ # @yieldparam err [StandardError] error object if request failed
9370
+ #
9371
+ # @return [Google::Apis::ComputeBeta::Operation]
9372
+ #
9373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9376
+ def update_instance_shielded_vm_config(project, zone, instance, shielded_vm_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9377
+ command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig', options)
9378
+ command.request_representation = Google::Apis::ComputeBeta::ShieldedVmConfig::Representation
9379
+ command.request_object = shielded_vm_config_object
9380
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9381
+ command.response_class = Google::Apis::ComputeBeta::Operation
9382
+ command.params['project'] = project unless project.nil?
9383
+ command.params['zone'] = zone unless zone.nil?
9384
+ command.params['instance'] = instance unless instance.nil?
9385
+ command.query['requestId'] = request_id unless request_id.nil?
9386
+ command.query['fields'] = fields unless fields.nil?
9387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9388
+ command.query['userIp'] = user_ip unless user_ip.nil?
9389
+ execute_or_queue_command(command, &block)
9390
+ end
9391
+
9282
9392
  # Retrieves an aggregated list of interconnect attachments.
9283
9393
  # @param [String] project
9284
9394
  # Project ID for this request.
@@ -11041,6 +11151,1182 @@ module Google
11041
11151
  execute_or_queue_command(command, &block)
11042
11152
  end
11043
11153
 
11154
+ # Adds specified number of nodes to the node group.
11155
+ # @param [String] project
11156
+ # Project ID for this request.
11157
+ # @param [String] zone
11158
+ # The name of the zone for this request.
11159
+ # @param [String] node_group
11160
+ # Name of the NodeGroup resource to delete.
11161
+ # @param [Google::Apis::ComputeBeta::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_object
11162
+ # @param [String] request_id
11163
+ # An optional request ID to identify requests. Specify a unique request ID so
11164
+ # that if you must retry your request, the server will know to ignore the
11165
+ # request if it has already been completed.
11166
+ # For example, consider a situation where you make an initial request and the
11167
+ # request times out. If you make the request again with the same request ID, the
11168
+ # server can check if original operation with the same request ID was received,
11169
+ # and if so, will ignore the second request. This prevents clients from
11170
+ # accidentally creating duplicate commitments.
11171
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11172
+ # supported (00000000-0000-0000-0000-000000000000).
11173
+ # @param [String] fields
11174
+ # Selector specifying which fields to include in a partial response.
11175
+ # @param [String] quota_user
11176
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11177
+ # characters.
11178
+ # @param [String] user_ip
11179
+ # Deprecated. Please use quotaUser instead.
11180
+ # @param [Google::Apis::RequestOptions] options
11181
+ # Request-specific options
11182
+ #
11183
+ # @yield [result, err] Result & error if block supplied
11184
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11185
+ # @yieldparam err [StandardError] error object if request failed
11186
+ #
11187
+ # @return [Google::Apis::ComputeBeta::Operation]
11188
+ #
11189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11192
+ def add_node_group_nodes(project, zone, node_group, node_groups_add_nodes_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11193
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes', options)
11194
+ command.request_representation = Google::Apis::ComputeBeta::NodeGroupsAddNodesRequest::Representation
11195
+ command.request_object = node_groups_add_nodes_request_object
11196
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11197
+ command.response_class = Google::Apis::ComputeBeta::Operation
11198
+ command.params['project'] = project unless project.nil?
11199
+ command.params['zone'] = zone unless zone.nil?
11200
+ command.params['nodeGroup'] = node_group unless node_group.nil?
11201
+ command.query['requestId'] = request_id unless request_id.nil?
11202
+ command.query['fields'] = fields unless fields.nil?
11203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11204
+ command.query['userIp'] = user_ip unless user_ip.nil?
11205
+ execute_or_queue_command(command, &block)
11206
+ end
11207
+
11208
+ # Retrieves an aggregated list of node groups.
11209
+ # @param [String] project
11210
+ # Project ID for this request.
11211
+ # @param [String] filter
11212
+ # A filter expression that filters resources listed in the response. The
11213
+ # expression must specify the field name, a comparison operator, and the value
11214
+ # that you want to use for filtering. The value must be a string, a number, or a
11215
+ # boolean. The comparison operator must be either =, !=, >, or <.
11216
+ # For example, if you are filtering Compute Engine instances, you can exclude
11217
+ # instances named example-instance by specifying name != example-instance.
11218
+ # You can also filter nested fields. For example, you could specify scheduling.
11219
+ # automaticRestart = false to include instances only if they are not scheduled
11220
+ # for automatic restarts. You can use filtering on nested fields to filter based
11221
+ # on resource labels.
11222
+ # To filter on multiple expressions, provide each separate expression within
11223
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
11224
+ # Intel Skylake"). By default, each expression is an AND expression. However,
11225
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
11226
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
11227
+ # automaticRestart = true).
11228
+ # @param [Fixnum] max_results
11229
+ # The maximum number of results per page that should be returned. If the number
11230
+ # of available results is larger than maxResults, Compute Engine returns a
11231
+ # nextPageToken that can be used to get the next page of results in subsequent
11232
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
11233
+ # @param [String] order_by
11234
+ # Sorts list results by a certain order. By default, results are returned in
11235
+ # alphanumerical order based on the resource name.
11236
+ # You can also sort results in descending order based on the creation timestamp
11237
+ # using orderBy="creationTimestamp desc". This sorts results based on the
11238
+ # creationTimestamp field in reverse chronological order (newest result first).
11239
+ # Use this to sort resources like operations so that the newest operation is
11240
+ # returned first.
11241
+ # Currently, only sorting by name or creationTimestamp desc is supported.
11242
+ # @param [String] page_token
11243
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
11244
+ # a previous list request to get the next page of results.
11245
+ # @param [String] fields
11246
+ # Selector specifying which fields to include in a partial response.
11247
+ # @param [String] quota_user
11248
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11249
+ # characters.
11250
+ # @param [String] user_ip
11251
+ # Deprecated. Please use quotaUser instead.
11252
+ # @param [Google::Apis::RequestOptions] options
11253
+ # Request-specific options
11254
+ #
11255
+ # @yield [result, err] Result & error if block supplied
11256
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeGroupAggregatedList] parsed result object
11257
+ # @yieldparam err [StandardError] error object if request failed
11258
+ #
11259
+ # @return [Google::Apis::ComputeBeta::NodeGroupAggregatedList]
11260
+ #
11261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11264
+ def aggregated_node_group_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11265
+ command = make_simple_command(:get, '{project}/aggregated/nodeGroups', options)
11266
+ command.response_representation = Google::Apis::ComputeBeta::NodeGroupAggregatedList::Representation
11267
+ command.response_class = Google::Apis::ComputeBeta::NodeGroupAggregatedList
11268
+ command.params['project'] = project unless project.nil?
11269
+ command.query['filter'] = filter unless filter.nil?
11270
+ command.query['maxResults'] = max_results unless max_results.nil?
11271
+ command.query['orderBy'] = order_by unless order_by.nil?
11272
+ command.query['pageToken'] = page_token unless page_token.nil?
11273
+ command.query['fields'] = fields unless fields.nil?
11274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11275
+ command.query['userIp'] = user_ip unless user_ip.nil?
11276
+ execute_or_queue_command(command, &block)
11277
+ end
11278
+
11279
+ # Deletes the specified NodeGroup resource.
11280
+ # @param [String] project
11281
+ # Project ID for this request.
11282
+ # @param [String] zone
11283
+ # The name of the zone for this request.
11284
+ # @param [String] node_group
11285
+ # Name of the NodeGroup resource to delete.
11286
+ # @param [String] request_id
11287
+ # An optional request ID to identify requests. Specify a unique request ID so
11288
+ # that if you must retry your request, the server will know to ignore the
11289
+ # request if it has already been completed.
11290
+ # For example, consider a situation where you make an initial request and the
11291
+ # request times out. If you make the request again with the same request ID, the
11292
+ # server can check if original operation with the same request ID was received,
11293
+ # and if so, will ignore the second request. This prevents clients from
11294
+ # accidentally creating duplicate commitments.
11295
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11296
+ # supported (00000000-0000-0000-0000-000000000000).
11297
+ # @param [String] fields
11298
+ # Selector specifying which fields to include in a partial response.
11299
+ # @param [String] quota_user
11300
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11301
+ # characters.
11302
+ # @param [String] user_ip
11303
+ # Deprecated. Please use quotaUser instead.
11304
+ # @param [Google::Apis::RequestOptions] options
11305
+ # Request-specific options
11306
+ #
11307
+ # @yield [result, err] Result & error if block supplied
11308
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11309
+ # @yieldparam err [StandardError] error object if request failed
11310
+ #
11311
+ # @return [Google::Apis::ComputeBeta::Operation]
11312
+ #
11313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11316
+ def delete_node_group(project, zone, node_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11317
+ command = make_simple_command(:delete, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options)
11318
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11319
+ command.response_class = Google::Apis::ComputeBeta::Operation
11320
+ command.params['project'] = project unless project.nil?
11321
+ command.params['zone'] = zone unless zone.nil?
11322
+ command.params['nodeGroup'] = node_group unless node_group.nil?
11323
+ command.query['requestId'] = request_id unless request_id.nil?
11324
+ command.query['fields'] = fields unless fields.nil?
11325
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11326
+ command.query['userIp'] = user_ip unless user_ip.nil?
11327
+ execute_or_queue_command(command, &block)
11328
+ end
11329
+
11330
+ # Deletes specified nodes from the node group.
11331
+ # @param [String] project
11332
+ # Project ID for this request.
11333
+ # @param [String] zone
11334
+ # The name of the zone for this request.
11335
+ # @param [String] node_group
11336
+ # Name of the NodeGroup resource to delete.
11337
+ # @param [Google::Apis::ComputeBeta::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_object
11338
+ # @param [String] request_id
11339
+ # An optional request ID to identify requests. Specify a unique request ID so
11340
+ # that if you must retry your request, the server will know to ignore the
11341
+ # request if it has already been completed.
11342
+ # For example, consider a situation where you make an initial request and the
11343
+ # request times out. If you make the request again with the same request ID, the
11344
+ # server can check if original operation with the same request ID was received,
11345
+ # and if so, will ignore the second request. This prevents clients from
11346
+ # accidentally creating duplicate commitments.
11347
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11348
+ # supported (00000000-0000-0000-0000-000000000000).
11349
+ # @param [String] fields
11350
+ # Selector specifying which fields to include in a partial response.
11351
+ # @param [String] quota_user
11352
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11353
+ # characters.
11354
+ # @param [String] user_ip
11355
+ # Deprecated. Please use quotaUser instead.
11356
+ # @param [Google::Apis::RequestOptions] options
11357
+ # Request-specific options
11358
+ #
11359
+ # @yield [result, err] Result & error if block supplied
11360
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11361
+ # @yieldparam err [StandardError] error object if request failed
11362
+ #
11363
+ # @return [Google::Apis::ComputeBeta::Operation]
11364
+ #
11365
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11366
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11367
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11368
+ def delete_node_group_nodes(project, zone, node_group, node_groups_delete_nodes_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11369
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes', options)
11370
+ command.request_representation = Google::Apis::ComputeBeta::NodeGroupsDeleteNodesRequest::Representation
11371
+ command.request_object = node_groups_delete_nodes_request_object
11372
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11373
+ command.response_class = Google::Apis::ComputeBeta::Operation
11374
+ command.params['project'] = project unless project.nil?
11375
+ command.params['zone'] = zone unless zone.nil?
11376
+ command.params['nodeGroup'] = node_group unless node_group.nil?
11377
+ command.query['requestId'] = request_id unless request_id.nil?
11378
+ command.query['fields'] = fields unless fields.nil?
11379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11380
+ command.query['userIp'] = user_ip unless user_ip.nil?
11381
+ execute_or_queue_command(command, &block)
11382
+ end
11383
+
11384
+ # Returns the specified NodeGroup. Get a list of available NodeGroups by making
11385
+ # a list() request.
11386
+ # @param [String] project
11387
+ # Project ID for this request.
11388
+ # @param [String] zone
11389
+ # The name of the zone for this request.
11390
+ # @param [String] node_group
11391
+ # Name of the node group to return.
11392
+ # @param [String] fields
11393
+ # Selector specifying which fields to include in a partial response.
11394
+ # @param [String] quota_user
11395
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11396
+ # characters.
11397
+ # @param [String] user_ip
11398
+ # Deprecated. Please use quotaUser instead.
11399
+ # @param [Google::Apis::RequestOptions] options
11400
+ # Request-specific options
11401
+ #
11402
+ # @yield [result, err] Result & error if block supplied
11403
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeGroup] parsed result object
11404
+ # @yieldparam err [StandardError] error object if request failed
11405
+ #
11406
+ # @return [Google::Apis::ComputeBeta::NodeGroup]
11407
+ #
11408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11411
+ def get_node_group(project, zone, node_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11412
+ command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options)
11413
+ command.response_representation = Google::Apis::ComputeBeta::NodeGroup::Representation
11414
+ command.response_class = Google::Apis::ComputeBeta::NodeGroup
11415
+ command.params['project'] = project unless project.nil?
11416
+ command.params['zone'] = zone unless zone.nil?
11417
+ command.params['nodeGroup'] = node_group unless node_group.nil?
11418
+ command.query['fields'] = fields unless fields.nil?
11419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11420
+ command.query['userIp'] = user_ip unless user_ip.nil?
11421
+ execute_or_queue_command(command, &block)
11422
+ end
11423
+
11424
+ # Gets the access control policy for a resource. May be empty if no such policy
11425
+ # or resource exists.
11426
+ # @param [String] project
11427
+ # Project ID for this request.
11428
+ # @param [String] zone
11429
+ # The name of the zone for this request.
11430
+ # @param [String] resource
11431
+ # Name of the resource for this request.
11432
+ # @param [String] fields
11433
+ # Selector specifying which fields to include in a partial response.
11434
+ # @param [String] quota_user
11435
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11436
+ # characters.
11437
+ # @param [String] user_ip
11438
+ # Deprecated. Please use quotaUser instead.
11439
+ # @param [Google::Apis::RequestOptions] options
11440
+ # Request-specific options
11441
+ #
11442
+ # @yield [result, err] Result & error if block supplied
11443
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
11444
+ # @yieldparam err [StandardError] error object if request failed
11445
+ #
11446
+ # @return [Google::Apis::ComputeBeta::Policy]
11447
+ #
11448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11451
+ def get_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11452
+ command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options)
11453
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
11454
+ command.response_class = Google::Apis::ComputeBeta::Policy
11455
+ command.params['project'] = project unless project.nil?
11456
+ command.params['zone'] = zone unless zone.nil?
11457
+ command.params['resource'] = resource unless resource.nil?
11458
+ command.query['fields'] = fields unless fields.nil?
11459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11460
+ command.query['userIp'] = user_ip unless user_ip.nil?
11461
+ execute_or_queue_command(command, &block)
11462
+ end
11463
+
11464
+ # Creates a NodeGroup resource in the specified project using the data included
11465
+ # in the request.
11466
+ # @param [String] project
11467
+ # Project ID for this request.
11468
+ # @param [String] zone
11469
+ # The name of the zone for this request.
11470
+ # @param [Fixnum] initial_node_count
11471
+ # Initial count of nodes in the node group.
11472
+ # @param [Google::Apis::ComputeBeta::NodeGroup] node_group_object
11473
+ # @param [String] request_id
11474
+ # An optional request ID to identify requests. Specify a unique request ID so
11475
+ # that if you must retry your request, the server will know to ignore the
11476
+ # request if it has already been completed.
11477
+ # For example, consider a situation where you make an initial request and the
11478
+ # request times out. If you make the request again with the same request ID, the
11479
+ # server can check if original operation with the same request ID was received,
11480
+ # and if so, will ignore the second request. This prevents clients from
11481
+ # accidentally creating duplicate commitments.
11482
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11483
+ # supported (00000000-0000-0000-0000-000000000000).
11484
+ # @param [String] fields
11485
+ # Selector specifying which fields to include in a partial response.
11486
+ # @param [String] quota_user
11487
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11488
+ # characters.
11489
+ # @param [String] user_ip
11490
+ # Deprecated. Please use quotaUser instead.
11491
+ # @param [Google::Apis::RequestOptions] options
11492
+ # Request-specific options
11493
+ #
11494
+ # @yield [result, err] Result & error if block supplied
11495
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11496
+ # @yieldparam err [StandardError] error object if request failed
11497
+ #
11498
+ # @return [Google::Apis::ComputeBeta::Operation]
11499
+ #
11500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11503
+ def insert_node_group(project, zone, initial_node_count, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11504
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups', options)
11505
+ command.request_representation = Google::Apis::ComputeBeta::NodeGroup::Representation
11506
+ command.request_object = node_group_object
11507
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11508
+ command.response_class = Google::Apis::ComputeBeta::Operation
11509
+ command.params['project'] = project unless project.nil?
11510
+ command.params['zone'] = zone unless zone.nil?
11511
+ command.query['initialNodeCount'] = initial_node_count unless initial_node_count.nil?
11512
+ command.query['requestId'] = request_id unless request_id.nil?
11513
+ command.query['fields'] = fields unless fields.nil?
11514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11515
+ command.query['userIp'] = user_ip unless user_ip.nil?
11516
+ execute_or_queue_command(command, &block)
11517
+ end
11518
+
11519
+ # Retrieves a list of node groups available to the specified project.
11520
+ # @param [String] project
11521
+ # Project ID for this request.
11522
+ # @param [String] zone
11523
+ # The name of the zone for this request.
11524
+ # @param [String] filter
11525
+ # A filter expression that filters resources listed in the response. The
11526
+ # expression must specify the field name, a comparison operator, and the value
11527
+ # that you want to use for filtering. The value must be a string, a number, or a
11528
+ # boolean. The comparison operator must be either =, !=, >, or <.
11529
+ # For example, if you are filtering Compute Engine instances, you can exclude
11530
+ # instances named example-instance by specifying name != example-instance.
11531
+ # You can also filter nested fields. For example, you could specify scheduling.
11532
+ # automaticRestart = false to include instances only if they are not scheduled
11533
+ # for automatic restarts. You can use filtering on nested fields to filter based
11534
+ # on resource labels.
11535
+ # To filter on multiple expressions, provide each separate expression within
11536
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
11537
+ # Intel Skylake"). By default, each expression is an AND expression. However,
11538
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
11539
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
11540
+ # automaticRestart = true).
11541
+ # @param [Fixnum] max_results
11542
+ # The maximum number of results per page that should be returned. If the number
11543
+ # of available results is larger than maxResults, Compute Engine returns a
11544
+ # nextPageToken that can be used to get the next page of results in subsequent
11545
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
11546
+ # @param [String] order_by
11547
+ # Sorts list results by a certain order. By default, results are returned in
11548
+ # alphanumerical order based on the resource name.
11549
+ # You can also sort results in descending order based on the creation timestamp
11550
+ # using orderBy="creationTimestamp desc". This sorts results based on the
11551
+ # creationTimestamp field in reverse chronological order (newest result first).
11552
+ # Use this to sort resources like operations so that the newest operation is
11553
+ # returned first.
11554
+ # Currently, only sorting by name or creationTimestamp desc is supported.
11555
+ # @param [String] page_token
11556
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
11557
+ # a previous list request to get the next page of results.
11558
+ # @param [String] fields
11559
+ # Selector specifying which fields to include in a partial response.
11560
+ # @param [String] quota_user
11561
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11562
+ # characters.
11563
+ # @param [String] user_ip
11564
+ # Deprecated. Please use quotaUser instead.
11565
+ # @param [Google::Apis::RequestOptions] options
11566
+ # Request-specific options
11567
+ #
11568
+ # @yield [result, err] Result & error if block supplied
11569
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeGroupList] parsed result object
11570
+ # @yieldparam err [StandardError] error object if request failed
11571
+ #
11572
+ # @return [Google::Apis::ComputeBeta::NodeGroupList]
11573
+ #
11574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11577
+ def list_node_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11578
+ command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups', options)
11579
+ command.response_representation = Google::Apis::ComputeBeta::NodeGroupList::Representation
11580
+ command.response_class = Google::Apis::ComputeBeta::NodeGroupList
11581
+ command.params['project'] = project unless project.nil?
11582
+ command.params['zone'] = zone unless zone.nil?
11583
+ command.query['filter'] = filter unless filter.nil?
11584
+ command.query['maxResults'] = max_results unless max_results.nil?
11585
+ command.query['orderBy'] = order_by unless order_by.nil?
11586
+ command.query['pageToken'] = page_token unless page_token.nil?
11587
+ command.query['fields'] = fields unless fields.nil?
11588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11589
+ command.query['userIp'] = user_ip unless user_ip.nil?
11590
+ execute_or_queue_command(command, &block)
11591
+ end
11592
+
11593
+ # Sets the access control policy on the specified resource. Replaces any
11594
+ # existing policy.
11595
+ # @param [String] project
11596
+ # Project ID for this request.
11597
+ # @param [String] zone
11598
+ # The name of the zone for this request.
11599
+ # @param [String] resource
11600
+ # Name of the resource for this request.
11601
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
11602
+ # @param [String] fields
11603
+ # Selector specifying which fields to include in a partial response.
11604
+ # @param [String] quota_user
11605
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11606
+ # characters.
11607
+ # @param [String] user_ip
11608
+ # Deprecated. Please use quotaUser instead.
11609
+ # @param [Google::Apis::RequestOptions] options
11610
+ # Request-specific options
11611
+ #
11612
+ # @yield [result, err] Result & error if block supplied
11613
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
11614
+ # @yieldparam err [StandardError] error object if request failed
11615
+ #
11616
+ # @return [Google::Apis::ComputeBeta::Policy]
11617
+ #
11618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11621
+ def set_node_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11622
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options)
11623
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
11624
+ command.request_object = zone_set_policy_request_object
11625
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
11626
+ command.response_class = Google::Apis::ComputeBeta::Policy
11627
+ command.params['project'] = project unless project.nil?
11628
+ command.params['zone'] = zone unless zone.nil?
11629
+ command.params['resource'] = resource unless resource.nil?
11630
+ command.query['fields'] = fields unless fields.nil?
11631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11632
+ command.query['userIp'] = user_ip unless user_ip.nil?
11633
+ execute_or_queue_command(command, &block)
11634
+ end
11635
+
11636
+ # Updates the node template of the node group.
11637
+ # @param [String] project
11638
+ # Project ID for this request.
11639
+ # @param [String] zone
11640
+ # The name of the zone for this request.
11641
+ # @param [String] node_group
11642
+ # Name of the NodeGroup resource to delete.
11643
+ # @param [Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest] node_groups_set_node_template_request_object
11644
+ # @param [String] request_id
11645
+ # An optional request ID to identify requests. Specify a unique request ID so
11646
+ # that if you must retry your request, the server will know to ignore the
11647
+ # request if it has already been completed.
11648
+ # For example, consider a situation where you make an initial request and the
11649
+ # request times out. If you make the request again with the same request ID, the
11650
+ # server can check if original operation with the same request ID was received,
11651
+ # and if so, will ignore the second request. This prevents clients from
11652
+ # accidentally creating duplicate commitments.
11653
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11654
+ # supported (00000000-0000-0000-0000-000000000000).
11655
+ # @param [String] fields
11656
+ # Selector specifying which fields to include in a partial response.
11657
+ # @param [String] quota_user
11658
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11659
+ # characters.
11660
+ # @param [String] user_ip
11661
+ # Deprecated. Please use quotaUser instead.
11662
+ # @param [Google::Apis::RequestOptions] options
11663
+ # Request-specific options
11664
+ #
11665
+ # @yield [result, err] Result & error if block supplied
11666
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11667
+ # @yieldparam err [StandardError] error object if request failed
11668
+ #
11669
+ # @return [Google::Apis::ComputeBeta::Operation]
11670
+ #
11671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11674
+ def set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11675
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options)
11676
+ command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest::Representation
11677
+ command.request_object = node_groups_set_node_template_request_object
11678
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11679
+ command.response_class = Google::Apis::ComputeBeta::Operation
11680
+ command.params['project'] = project unless project.nil?
11681
+ command.params['zone'] = zone unless zone.nil?
11682
+ command.params['nodeGroup'] = node_group unless node_group.nil?
11683
+ command.query['requestId'] = request_id unless request_id.nil?
11684
+ command.query['fields'] = fields unless fields.nil?
11685
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11686
+ command.query['userIp'] = user_ip unless user_ip.nil?
11687
+ execute_or_queue_command(command, &block)
11688
+ end
11689
+
11690
+ # Returns permissions that a caller has on the specified resource.
11691
+ # @param [String] project
11692
+ # Project ID for this request.
11693
+ # @param [String] zone
11694
+ # The name of the zone for this request.
11695
+ # @param [String] resource
11696
+ # Name of the resource for this request.
11697
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
11698
+ # @param [String] fields
11699
+ # Selector specifying which fields to include in a partial response.
11700
+ # @param [String] quota_user
11701
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11702
+ # characters.
11703
+ # @param [String] user_ip
11704
+ # Deprecated. Please use quotaUser instead.
11705
+ # @param [Google::Apis::RequestOptions] options
11706
+ # Request-specific options
11707
+ #
11708
+ # @yield [result, err] Result & error if block supplied
11709
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
11710
+ # @yieldparam err [StandardError] error object if request failed
11711
+ #
11712
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
11713
+ #
11714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11717
+ def test_node_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11718
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', options)
11719
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
11720
+ command.request_object = test_permissions_request_object
11721
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
11722
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
11723
+ command.params['project'] = project unless project.nil?
11724
+ command.params['zone'] = zone unless zone.nil?
11725
+ command.params['resource'] = resource unless resource.nil?
11726
+ command.query['fields'] = fields unless fields.nil?
11727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11728
+ command.query['userIp'] = user_ip unless user_ip.nil?
11729
+ execute_or_queue_command(command, &block)
11730
+ end
11731
+
11732
+ # Retrieves an aggregated list of node templates.
11733
+ # @param [String] project
11734
+ # Project ID for this request.
11735
+ # @param [String] filter
11736
+ # A filter expression that filters resources listed in the response. The
11737
+ # expression must specify the field name, a comparison operator, and the value
11738
+ # that you want to use for filtering. The value must be a string, a number, or a
11739
+ # boolean. The comparison operator must be either =, !=, >, or <.
11740
+ # For example, if you are filtering Compute Engine instances, you can exclude
11741
+ # instances named example-instance by specifying name != example-instance.
11742
+ # You can also filter nested fields. For example, you could specify scheduling.
11743
+ # automaticRestart = false to include instances only if they are not scheduled
11744
+ # for automatic restarts. You can use filtering on nested fields to filter based
11745
+ # on resource labels.
11746
+ # To filter on multiple expressions, provide each separate expression within
11747
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
11748
+ # Intel Skylake"). By default, each expression is an AND expression. However,
11749
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
11750
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
11751
+ # automaticRestart = true).
11752
+ # @param [Fixnum] max_results
11753
+ # The maximum number of results per page that should be returned. If the number
11754
+ # of available results is larger than maxResults, Compute Engine returns a
11755
+ # nextPageToken that can be used to get the next page of results in subsequent
11756
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
11757
+ # @param [String] order_by
11758
+ # Sorts list results by a certain order. By default, results are returned in
11759
+ # alphanumerical order based on the resource name.
11760
+ # You can also sort results in descending order based on the creation timestamp
11761
+ # using orderBy="creationTimestamp desc". This sorts results based on the
11762
+ # creationTimestamp field in reverse chronological order (newest result first).
11763
+ # Use this to sort resources like operations so that the newest operation is
11764
+ # returned first.
11765
+ # Currently, only sorting by name or creationTimestamp desc is supported.
11766
+ # @param [String] page_token
11767
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
11768
+ # a previous list request to get the next page of results.
11769
+ # @param [String] fields
11770
+ # Selector specifying which fields to include in a partial response.
11771
+ # @param [String] quota_user
11772
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11773
+ # characters.
11774
+ # @param [String] user_ip
11775
+ # Deprecated. Please use quotaUser instead.
11776
+ # @param [Google::Apis::RequestOptions] options
11777
+ # Request-specific options
11778
+ #
11779
+ # @yield [result, err] Result & error if block supplied
11780
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeTemplateAggregatedList] parsed result object
11781
+ # @yieldparam err [StandardError] error object if request failed
11782
+ #
11783
+ # @return [Google::Apis::ComputeBeta::NodeTemplateAggregatedList]
11784
+ #
11785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11788
+ def aggregated_node_template_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11789
+ command = make_simple_command(:get, '{project}/aggregated/nodeTemplates', options)
11790
+ command.response_representation = Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Representation
11791
+ command.response_class = Google::Apis::ComputeBeta::NodeTemplateAggregatedList
11792
+ command.params['project'] = project unless project.nil?
11793
+ command.query['filter'] = filter unless filter.nil?
11794
+ command.query['maxResults'] = max_results unless max_results.nil?
11795
+ command.query['orderBy'] = order_by unless order_by.nil?
11796
+ command.query['pageToken'] = page_token unless page_token.nil?
11797
+ command.query['fields'] = fields unless fields.nil?
11798
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11799
+ command.query['userIp'] = user_ip unless user_ip.nil?
11800
+ execute_or_queue_command(command, &block)
11801
+ end
11802
+
11803
+ # Deletes the specified NodeTemplate resource.
11804
+ # @param [String] project
11805
+ # Project ID for this request.
11806
+ # @param [String] region
11807
+ # The name of the region for this request.
11808
+ # @param [String] node_template
11809
+ # Name of the NodeTemplate resource to delete.
11810
+ # @param [String] request_id
11811
+ # An optional request ID to identify requests. Specify a unique request ID so
11812
+ # that if you must retry your request, the server will know to ignore the
11813
+ # request if it has already been completed.
11814
+ # For example, consider a situation where you make an initial request and the
11815
+ # request times out. If you make the request again with the same request ID, the
11816
+ # server can check if original operation with the same request ID was received,
11817
+ # and if so, will ignore the second request. This prevents clients from
11818
+ # accidentally creating duplicate commitments.
11819
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11820
+ # supported (00000000-0000-0000-0000-000000000000).
11821
+ # @param [String] fields
11822
+ # Selector specifying which fields to include in a partial response.
11823
+ # @param [String] quota_user
11824
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11825
+ # characters.
11826
+ # @param [String] user_ip
11827
+ # Deprecated. Please use quotaUser instead.
11828
+ # @param [Google::Apis::RequestOptions] options
11829
+ # Request-specific options
11830
+ #
11831
+ # @yield [result, err] Result & error if block supplied
11832
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11833
+ # @yieldparam err [StandardError] error object if request failed
11834
+ #
11835
+ # @return [Google::Apis::ComputeBeta::Operation]
11836
+ #
11837
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11838
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11839
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11840
+ def delete_node_template(project, region, node_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11841
+ command = make_simple_command(:delete, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options)
11842
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11843
+ command.response_class = Google::Apis::ComputeBeta::Operation
11844
+ command.params['project'] = project unless project.nil?
11845
+ command.params['region'] = region unless region.nil?
11846
+ command.params['nodeTemplate'] = node_template unless node_template.nil?
11847
+ command.query['requestId'] = request_id unless request_id.nil?
11848
+ command.query['fields'] = fields unless fields.nil?
11849
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11850
+ command.query['userIp'] = user_ip unless user_ip.nil?
11851
+ execute_or_queue_command(command, &block)
11852
+ end
11853
+
11854
+ # Returns the specified node template. Gets a list of available node templates
11855
+ # by making a list() request.
11856
+ # @param [String] project
11857
+ # Project ID for this request.
11858
+ # @param [String] region
11859
+ # The name of the region for this request.
11860
+ # @param [String] node_template
11861
+ # Name of the node template to return.
11862
+ # @param [String] fields
11863
+ # Selector specifying which fields to include in a partial response.
11864
+ # @param [String] quota_user
11865
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11866
+ # characters.
11867
+ # @param [String] user_ip
11868
+ # Deprecated. Please use quotaUser instead.
11869
+ # @param [Google::Apis::RequestOptions] options
11870
+ # Request-specific options
11871
+ #
11872
+ # @yield [result, err] Result & error if block supplied
11873
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeTemplate] parsed result object
11874
+ # @yieldparam err [StandardError] error object if request failed
11875
+ #
11876
+ # @return [Google::Apis::ComputeBeta::NodeTemplate]
11877
+ #
11878
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11879
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11880
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11881
+ def get_node_template(project, region, node_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11882
+ command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options)
11883
+ command.response_representation = Google::Apis::ComputeBeta::NodeTemplate::Representation
11884
+ command.response_class = Google::Apis::ComputeBeta::NodeTemplate
11885
+ command.params['project'] = project unless project.nil?
11886
+ command.params['region'] = region unless region.nil?
11887
+ command.params['nodeTemplate'] = node_template unless node_template.nil?
11888
+ command.query['fields'] = fields unless fields.nil?
11889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11890
+ command.query['userIp'] = user_ip unless user_ip.nil?
11891
+ execute_or_queue_command(command, &block)
11892
+ end
11893
+
11894
+ # Gets the access control policy for a resource. May be empty if no such policy
11895
+ # or resource exists.
11896
+ # @param [String] project
11897
+ # Project ID for this request.
11898
+ # @param [String] region
11899
+ # The name of the region for this request.
11900
+ # @param [String] resource
11901
+ # Name of the resource for this request.
11902
+ # @param [String] fields
11903
+ # Selector specifying which fields to include in a partial response.
11904
+ # @param [String] quota_user
11905
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11906
+ # characters.
11907
+ # @param [String] user_ip
11908
+ # Deprecated. Please use quotaUser instead.
11909
+ # @param [Google::Apis::RequestOptions] options
11910
+ # Request-specific options
11911
+ #
11912
+ # @yield [result, err] Result & error if block supplied
11913
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
11914
+ # @yieldparam err [StandardError] error object if request failed
11915
+ #
11916
+ # @return [Google::Apis::ComputeBeta::Policy]
11917
+ #
11918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11921
+ def get_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11922
+ command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options)
11923
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
11924
+ command.response_class = Google::Apis::ComputeBeta::Policy
11925
+ command.params['project'] = project unless project.nil?
11926
+ command.params['region'] = region unless region.nil?
11927
+ command.params['resource'] = resource unless resource.nil?
11928
+ command.query['fields'] = fields unless fields.nil?
11929
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11930
+ command.query['userIp'] = user_ip unless user_ip.nil?
11931
+ execute_or_queue_command(command, &block)
11932
+ end
11933
+
11934
+ # Creates a NodeTemplate resource in the specified project using the data
11935
+ # included in the request.
11936
+ # @param [String] project
11937
+ # Project ID for this request.
11938
+ # @param [String] region
11939
+ # The name of the region for this request.
11940
+ # @param [Google::Apis::ComputeBeta::NodeTemplate] node_template_object
11941
+ # @param [String] request_id
11942
+ # An optional request ID to identify requests. Specify a unique request ID so
11943
+ # that if you must retry your request, the server will know to ignore the
11944
+ # request if it has already been completed.
11945
+ # For example, consider a situation where you make an initial request and the
11946
+ # request times out. If you make the request again with the same request ID, the
11947
+ # server can check if original operation with the same request ID was received,
11948
+ # and if so, will ignore the second request. This prevents clients from
11949
+ # accidentally creating duplicate commitments.
11950
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11951
+ # supported (00000000-0000-0000-0000-000000000000).
11952
+ # @param [String] fields
11953
+ # Selector specifying which fields to include in a partial response.
11954
+ # @param [String] quota_user
11955
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11956
+ # characters.
11957
+ # @param [String] user_ip
11958
+ # Deprecated. Please use quotaUser instead.
11959
+ # @param [Google::Apis::RequestOptions] options
11960
+ # Request-specific options
11961
+ #
11962
+ # @yield [result, err] Result & error if block supplied
11963
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11964
+ # @yieldparam err [StandardError] error object if request failed
11965
+ #
11966
+ # @return [Google::Apis::ComputeBeta::Operation]
11967
+ #
11968
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11969
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11970
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11971
+ def insert_node_template(project, region, node_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11972
+ command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates', options)
11973
+ command.request_representation = Google::Apis::ComputeBeta::NodeTemplate::Representation
11974
+ command.request_object = node_template_object
11975
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11976
+ command.response_class = Google::Apis::ComputeBeta::Operation
11977
+ command.params['project'] = project unless project.nil?
11978
+ command.params['region'] = region unless region.nil?
11979
+ command.query['requestId'] = request_id unless request_id.nil?
11980
+ command.query['fields'] = fields unless fields.nil?
11981
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11982
+ command.query['userIp'] = user_ip unless user_ip.nil?
11983
+ execute_or_queue_command(command, &block)
11984
+ end
11985
+
11986
+ # Retrieves a list of node templates available to the specified project.
11987
+ # @param [String] project
11988
+ # Project ID for this request.
11989
+ # @param [String] region
11990
+ # The name of the region for this request.
11991
+ # @param [String] filter
11992
+ # A filter expression that filters resources listed in the response. The
11993
+ # expression must specify the field name, a comparison operator, and the value
11994
+ # that you want to use for filtering. The value must be a string, a number, or a
11995
+ # boolean. The comparison operator must be either =, !=, >, or <.
11996
+ # For example, if you are filtering Compute Engine instances, you can exclude
11997
+ # instances named example-instance by specifying name != example-instance.
11998
+ # You can also filter nested fields. For example, you could specify scheduling.
11999
+ # automaticRestart = false to include instances only if they are not scheduled
12000
+ # for automatic restarts. You can use filtering on nested fields to filter based
12001
+ # on resource labels.
12002
+ # To filter on multiple expressions, provide each separate expression within
12003
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
12004
+ # Intel Skylake"). By default, each expression is an AND expression. However,
12005
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
12006
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
12007
+ # automaticRestart = true).
12008
+ # @param [Fixnum] max_results
12009
+ # The maximum number of results per page that should be returned. If the number
12010
+ # of available results is larger than maxResults, Compute Engine returns a
12011
+ # nextPageToken that can be used to get the next page of results in subsequent
12012
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12013
+ # @param [String] order_by
12014
+ # Sorts list results by a certain order. By default, results are returned in
12015
+ # alphanumerical order based on the resource name.
12016
+ # You can also sort results in descending order based on the creation timestamp
12017
+ # using orderBy="creationTimestamp desc". This sorts results based on the
12018
+ # creationTimestamp field in reverse chronological order (newest result first).
12019
+ # Use this to sort resources like operations so that the newest operation is
12020
+ # returned first.
12021
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12022
+ # @param [String] page_token
12023
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
12024
+ # a previous list request to get the next page of results.
12025
+ # @param [String] fields
12026
+ # Selector specifying which fields to include in a partial response.
12027
+ # @param [String] quota_user
12028
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12029
+ # characters.
12030
+ # @param [String] user_ip
12031
+ # Deprecated. Please use quotaUser instead.
12032
+ # @param [Google::Apis::RequestOptions] options
12033
+ # Request-specific options
12034
+ #
12035
+ # @yield [result, err] Result & error if block supplied
12036
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeTemplateList] parsed result object
12037
+ # @yieldparam err [StandardError] error object if request failed
12038
+ #
12039
+ # @return [Google::Apis::ComputeBeta::NodeTemplateList]
12040
+ #
12041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12044
+ def list_node_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12045
+ command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates', options)
12046
+ command.response_representation = Google::Apis::ComputeBeta::NodeTemplateList::Representation
12047
+ command.response_class = Google::Apis::ComputeBeta::NodeTemplateList
12048
+ command.params['project'] = project unless project.nil?
12049
+ command.params['region'] = region unless region.nil?
12050
+ command.query['filter'] = filter unless filter.nil?
12051
+ command.query['maxResults'] = max_results unless max_results.nil?
12052
+ command.query['orderBy'] = order_by unless order_by.nil?
12053
+ command.query['pageToken'] = page_token unless page_token.nil?
12054
+ command.query['fields'] = fields unless fields.nil?
12055
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12056
+ command.query['userIp'] = user_ip unless user_ip.nil?
12057
+ execute_or_queue_command(command, &block)
12058
+ end
12059
+
12060
+ # Sets the access control policy on the specified resource. Replaces any
12061
+ # existing policy.
12062
+ # @param [String] project
12063
+ # Project ID for this request.
12064
+ # @param [String] region
12065
+ # The name of the region for this request.
12066
+ # @param [String] resource
12067
+ # Name of the resource for this request.
12068
+ # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
12069
+ # @param [String] fields
12070
+ # Selector specifying which fields to include in a partial response.
12071
+ # @param [String] quota_user
12072
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12073
+ # characters.
12074
+ # @param [String] user_ip
12075
+ # Deprecated. Please use quotaUser instead.
12076
+ # @param [Google::Apis::RequestOptions] options
12077
+ # Request-specific options
12078
+ #
12079
+ # @yield [result, err] Result & error if block supplied
12080
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
12081
+ # @yieldparam err [StandardError] error object if request failed
12082
+ #
12083
+ # @return [Google::Apis::ComputeBeta::Policy]
12084
+ #
12085
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12086
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12087
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12088
+ def set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12089
+ command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options)
12090
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
12091
+ command.request_object = region_set_policy_request_object
12092
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
12093
+ command.response_class = Google::Apis::ComputeBeta::Policy
12094
+ command.params['project'] = project unless project.nil?
12095
+ command.params['region'] = region unless region.nil?
12096
+ command.params['resource'] = resource unless resource.nil?
12097
+ command.query['fields'] = fields unless fields.nil?
12098
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12099
+ command.query['userIp'] = user_ip unless user_ip.nil?
12100
+ execute_or_queue_command(command, &block)
12101
+ end
12102
+
12103
+ # Returns permissions that a caller has on the specified resource.
12104
+ # @param [String] project
12105
+ # Project ID for this request.
12106
+ # @param [String] region
12107
+ # The name of the region for this request.
12108
+ # @param [String] resource
12109
+ # Name of the resource for this request.
12110
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
12111
+ # @param [String] fields
12112
+ # Selector specifying which fields to include in a partial response.
12113
+ # @param [String] quota_user
12114
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12115
+ # characters.
12116
+ # @param [String] user_ip
12117
+ # Deprecated. Please use quotaUser instead.
12118
+ # @param [Google::Apis::RequestOptions] options
12119
+ # Request-specific options
12120
+ #
12121
+ # @yield [result, err] Result & error if block supplied
12122
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
12123
+ # @yieldparam err [StandardError] error object if request failed
12124
+ #
12125
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
12126
+ #
12127
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12128
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12129
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12130
+ def test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12131
+ command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options)
12132
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
12133
+ command.request_object = test_permissions_request_object
12134
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
12135
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
12136
+ command.params['project'] = project unless project.nil?
12137
+ command.params['region'] = region unless region.nil?
12138
+ command.params['resource'] = resource unless resource.nil?
12139
+ command.query['fields'] = fields unless fields.nil?
12140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12141
+ command.query['userIp'] = user_ip unless user_ip.nil?
12142
+ execute_or_queue_command(command, &block)
12143
+ end
12144
+
12145
+ # Retrieves an aggregated list of node types.
12146
+ # @param [String] project
12147
+ # Project ID for this request.
12148
+ # @param [String] filter
12149
+ # A filter expression that filters resources listed in the response. The
12150
+ # expression must specify the field name, a comparison operator, and the value
12151
+ # that you want to use for filtering. The value must be a string, a number, or a
12152
+ # boolean. The comparison operator must be either =, !=, >, or <.
12153
+ # For example, if you are filtering Compute Engine instances, you can exclude
12154
+ # instances named example-instance by specifying name != example-instance.
12155
+ # You can also filter nested fields. For example, you could specify scheduling.
12156
+ # automaticRestart = false to include instances only if they are not scheduled
12157
+ # for automatic restarts. You can use filtering on nested fields to filter based
12158
+ # on resource labels.
12159
+ # To filter on multiple expressions, provide each separate expression within
12160
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
12161
+ # Intel Skylake"). By default, each expression is an AND expression. However,
12162
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
12163
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
12164
+ # automaticRestart = true).
12165
+ # @param [Fixnum] max_results
12166
+ # The maximum number of results per page that should be returned. If the number
12167
+ # of available results is larger than maxResults, Compute Engine returns a
12168
+ # nextPageToken that can be used to get the next page of results in subsequent
12169
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12170
+ # @param [String] order_by
12171
+ # Sorts list results by a certain order. By default, results are returned in
12172
+ # alphanumerical order based on the resource name.
12173
+ # You can also sort results in descending order based on the creation timestamp
12174
+ # using orderBy="creationTimestamp desc". This sorts results based on the
12175
+ # creationTimestamp field in reverse chronological order (newest result first).
12176
+ # Use this to sort resources like operations so that the newest operation is
12177
+ # returned first.
12178
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12179
+ # @param [String] page_token
12180
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
12181
+ # a previous list request to get the next page of results.
12182
+ # @param [String] fields
12183
+ # Selector specifying which fields to include in a partial response.
12184
+ # @param [String] quota_user
12185
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12186
+ # characters.
12187
+ # @param [String] user_ip
12188
+ # Deprecated. Please use quotaUser instead.
12189
+ # @param [Google::Apis::RequestOptions] options
12190
+ # Request-specific options
12191
+ #
12192
+ # @yield [result, err] Result & error if block supplied
12193
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeTypeAggregatedList] parsed result object
12194
+ # @yieldparam err [StandardError] error object if request failed
12195
+ #
12196
+ # @return [Google::Apis::ComputeBeta::NodeTypeAggregatedList]
12197
+ #
12198
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12199
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12200
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12201
+ def aggregated_node_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)
12202
+ command = make_simple_command(:get, '{project}/aggregated/nodeTypes', options)
12203
+ command.response_representation = Google::Apis::ComputeBeta::NodeTypeAggregatedList::Representation
12204
+ command.response_class = Google::Apis::ComputeBeta::NodeTypeAggregatedList
12205
+ command.params['project'] = project unless project.nil?
12206
+ command.query['filter'] = filter unless filter.nil?
12207
+ command.query['maxResults'] = max_results unless max_results.nil?
12208
+ command.query['orderBy'] = order_by unless order_by.nil?
12209
+ command.query['pageToken'] = page_token unless page_token.nil?
12210
+ command.query['fields'] = fields unless fields.nil?
12211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12212
+ command.query['userIp'] = user_ip unless user_ip.nil?
12213
+ execute_or_queue_command(command, &block)
12214
+ end
12215
+
12216
+ # Returns the specified node type. Gets a list of available node types by making
12217
+ # a list() request.
12218
+ # @param [String] project
12219
+ # Project ID for this request.
12220
+ # @param [String] zone
12221
+ # The name of the zone for this request.
12222
+ # @param [String] node_type
12223
+ # Name of the node type to return.
12224
+ # @param [String] fields
12225
+ # Selector specifying which fields to include in a partial response.
12226
+ # @param [String] quota_user
12227
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12228
+ # characters.
12229
+ # @param [String] user_ip
12230
+ # Deprecated. Please use quotaUser instead.
12231
+ # @param [Google::Apis::RequestOptions] options
12232
+ # Request-specific options
12233
+ #
12234
+ # @yield [result, err] Result & error if block supplied
12235
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeType] parsed result object
12236
+ # @yieldparam err [StandardError] error object if request failed
12237
+ #
12238
+ # @return [Google::Apis::ComputeBeta::NodeType]
12239
+ #
12240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12243
+ def get_node_type(project, zone, node_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12244
+ command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes/{nodeType}', options)
12245
+ command.response_representation = Google::Apis::ComputeBeta::NodeType::Representation
12246
+ command.response_class = Google::Apis::ComputeBeta::NodeType
12247
+ command.params['project'] = project unless project.nil?
12248
+ command.params['zone'] = zone unless zone.nil?
12249
+ command.params['nodeType'] = node_type unless node_type.nil?
12250
+ command.query['fields'] = fields unless fields.nil?
12251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12252
+ command.query['userIp'] = user_ip unless user_ip.nil?
12253
+ execute_or_queue_command(command, &block)
12254
+ end
12255
+
12256
+ # Retrieves a list of node types available to the specified project.
12257
+ # @param [String] project
12258
+ # Project ID for this request.
12259
+ # @param [String] zone
12260
+ # The name of the zone for this request.
12261
+ # @param [String] filter
12262
+ # A filter expression that filters resources listed in the response. The
12263
+ # expression must specify the field name, a comparison operator, and the value
12264
+ # that you want to use for filtering. The value must be a string, a number, or a
12265
+ # boolean. The comparison operator must be either =, !=, >, or <.
12266
+ # For example, if you are filtering Compute Engine instances, you can exclude
12267
+ # instances named example-instance by specifying name != example-instance.
12268
+ # You can also filter nested fields. For example, you could specify scheduling.
12269
+ # automaticRestart = false to include instances only if they are not scheduled
12270
+ # for automatic restarts. You can use filtering on nested fields to filter based
12271
+ # on resource labels.
12272
+ # To filter on multiple expressions, provide each separate expression within
12273
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
12274
+ # Intel Skylake"). By default, each expression is an AND expression. However,
12275
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
12276
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
12277
+ # automaticRestart = true).
12278
+ # @param [Fixnum] max_results
12279
+ # The maximum number of results per page that should be returned. If the number
12280
+ # of available results is larger than maxResults, Compute Engine returns a
12281
+ # nextPageToken that can be used to get the next page of results in subsequent
12282
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12283
+ # @param [String] order_by
12284
+ # Sorts list results by a certain order. By default, results are returned in
12285
+ # alphanumerical order based on the resource name.
12286
+ # You can also sort results in descending order based on the creation timestamp
12287
+ # using orderBy="creationTimestamp desc". This sorts results based on the
12288
+ # creationTimestamp field in reverse chronological order (newest result first).
12289
+ # Use this to sort resources like operations so that the newest operation is
12290
+ # returned first.
12291
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12292
+ # @param [String] page_token
12293
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
12294
+ # a previous list request to get the next page of results.
12295
+ # @param [String] fields
12296
+ # Selector specifying which fields to include in a partial response.
12297
+ # @param [String] quota_user
12298
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12299
+ # characters.
12300
+ # @param [String] user_ip
12301
+ # Deprecated. Please use quotaUser instead.
12302
+ # @param [Google::Apis::RequestOptions] options
12303
+ # Request-specific options
12304
+ #
12305
+ # @yield [result, err] Result & error if block supplied
12306
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeTypeList] parsed result object
12307
+ # @yieldparam err [StandardError] error object if request failed
12308
+ #
12309
+ # @return [Google::Apis::ComputeBeta::NodeTypeList]
12310
+ #
12311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12314
+ def list_node_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)
12315
+ command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes', options)
12316
+ command.response_representation = Google::Apis::ComputeBeta::NodeTypeList::Representation
12317
+ command.response_class = Google::Apis::ComputeBeta::NodeTypeList
12318
+ command.params['project'] = project unless project.nil?
12319
+ command.params['zone'] = zone unless zone.nil?
12320
+ command.query['filter'] = filter unless filter.nil?
12321
+ command.query['maxResults'] = max_results unless max_results.nil?
12322
+ command.query['orderBy'] = order_by unless order_by.nil?
12323
+ command.query['pageToken'] = page_token unless page_token.nil?
12324
+ command.query['fields'] = fields unless fields.nil?
12325
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12326
+ command.query['userIp'] = user_ip unless user_ip.nil?
12327
+ execute_or_queue_command(command, &block)
12328
+ end
12329
+
11044
12330
  # Disable this project as a shared VPC host project.
11045
12331
  # @param [String] project
11046
12332
  # Project ID for this request.