google-apis-compute_alpha 0.63.0 → 0.64.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6383,8 +6383,7 @@ module Google
6383
6383
  # @param [String] project
6384
6384
  # Project ID for this request.
6385
6385
  # @param [String] ip_address
6386
- # The ip_address could be external IPv4, or internal IPv4 within IPv6 form of
6387
- # virtual_network_id with internal IPv4. IPv6 is not supported yet.
6386
+ # The VM IP address.
6388
6387
  # @param [String] fields
6389
6388
  # Selector specifying which fields to include in a partial response.
6390
6389
  # @param [String] quota_user
@@ -9982,7 +9981,67 @@ module Google
9982
9981
  execute_or_queue_command(command, &block)
9983
9982
  end
9984
9983
 
9985
- # Deletes the specified resize request.
9984
+ # Cancels the specified resize request and removes it from the queue. Cancelled
9985
+ # resize request does no longer wait for the resources to be provisioned. Cancel
9986
+ # is only possible for requests that are accepted in the queue.
9987
+ # @param [String] project
9988
+ # Project ID for this request.
9989
+ # @param [String] zone
9990
+ # The name of the zone where the managed instance group is located. The name
9991
+ # should conform to RFC1035.
9992
+ # @param [String] instance_group_manager
9993
+ # The name of the managed instance group. The name should conform to RFC1035 or
9994
+ # be a resource ID.
9995
+ # @param [String] resize_request
9996
+ # The name of the resize request to cancel. The name should conform to RFC1035
9997
+ # or be a resource ID.
9998
+ # @param [String] request_id
9999
+ # An optional request ID to identify requests. Specify a unique request ID so
10000
+ # that if you must retry your request, the server will know to ignore the
10001
+ # request if it has already been completed. For example, consider a situation
10002
+ # where you make an initial request and the request times out. If you make the
10003
+ # request again with the same request ID, the server can check if original
10004
+ # operation with the same request ID was received, and if so, will ignore the
10005
+ # second request. This prevents clients from accidentally creating duplicate
10006
+ # commitments. The request ID must be a valid UUID with the exception that zero
10007
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
10008
+ # @param [String] fields
10009
+ # Selector specifying which fields to include in a partial response.
10010
+ # @param [String] quota_user
10011
+ # Available to use for quota purposes for server-side applications. Can be any
10012
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10013
+ # @param [String] user_ip
10014
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10015
+ # @param [Google::Apis::RequestOptions] options
10016
+ # Request-specific options
10017
+ #
10018
+ # @yield [result, err] Result & error if block supplied
10019
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10020
+ # @yieldparam err [StandardError] error object if request failed
10021
+ #
10022
+ # @return [Google::Apis::ComputeAlpha::Operation]
10023
+ #
10024
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10025
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10026
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10027
+ def cancel_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10028
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel', options)
10029
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10030
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10031
+ command.params['project'] = project unless project.nil?
10032
+ command.params['zone'] = zone unless zone.nil?
10033
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10034
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
10035
+ command.query['requestId'] = request_id unless request_id.nil?
10036
+ command.query['fields'] = fields unless fields.nil?
10037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10038
+ command.query['userIp'] = user_ip unless user_ip.nil?
10039
+ execute_or_queue_command(command, &block)
10040
+ end
10041
+
10042
+ # Deletes the specified, inactive resize request. Requests that are still active
10043
+ # cannot be deleted. Deleting request does not delete instances that were
10044
+ # provisioned previously.
9986
10045
  # @param [String] project
9987
10046
  # Project ID for this request.
9988
10047
  # @param [String] zone
@@ -15068,70 +15127,16 @@ module Google
15068
15127
  execute_or_queue_command(command, &block)
15069
15128
  end
15070
15129
 
15071
- # Sets the service account on the instance. For more information, read Changing
15072
- # the service account and access scopes for an instance.
15130
+ # Sets the Google Cloud Armor security policy for the specified instance. For
15131
+ # more information, see Google Cloud Armor Overview
15073
15132
  # @param [String] project
15074
15133
  # Project ID for this request.
15075
15134
  # @param [String] zone
15076
- # The name of the zone for this request.
15077
- # @param [String] instance
15078
- # Name of the instance resource to start.
15079
- # @param [Google::Apis::ComputeAlpha::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
15080
- # @param [String] request_id
15081
- # An optional request ID to identify requests. Specify a unique request ID so
15082
- # that if you must retry your request, the server will know to ignore the
15083
- # request if it has already been completed. For example, consider a situation
15084
- # where you make an initial request and the request times out. If you make the
15085
- # request again with the same request ID, the server can check if original
15086
- # operation with the same request ID was received, and if so, will ignore the
15087
- # second request. This prevents clients from accidentally creating duplicate
15088
- # commitments. The request ID must be a valid UUID with the exception that zero
15089
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15090
- # @param [String] fields
15091
- # Selector specifying which fields to include in a partial response.
15092
- # @param [String] quota_user
15093
- # Available to use for quota purposes for server-side applications. Can be any
15094
- # arbitrary string assigned to a user, but should not exceed 40 characters.
15095
- # @param [String] user_ip
15096
- # Legacy name for parameter that has been superseded by `quotaUser`.
15097
- # @param [Google::Apis::RequestOptions] options
15098
- # Request-specific options
15099
- #
15100
- # @yield [result, err] Result & error if block supplied
15101
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15102
- # @yieldparam err [StandardError] error object if request failed
15103
- #
15104
- # @return [Google::Apis::ComputeAlpha::Operation]
15105
- #
15106
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15107
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15108
- # @raise [Google::Apis::AuthorizationError] Authorization is required
15109
- def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15110
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
15111
- command.request_representation = Google::Apis::ComputeAlpha::InstancesSetServiceAccountRequest::Representation
15112
- command.request_object = instances_set_service_account_request_object
15113
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15114
- command.response_class = Google::Apis::ComputeAlpha::Operation
15115
- command.params['project'] = project unless project.nil?
15116
- command.params['zone'] = zone unless zone.nil?
15117
- command.params['instance'] = instance unless instance.nil?
15118
- command.query['requestId'] = request_id unless request_id.nil?
15119
- command.query['fields'] = fields unless fields.nil?
15120
- command.query['quotaUser'] = quota_user unless quota_user.nil?
15121
- command.query['userIp'] = user_ip unless user_ip.nil?
15122
- execute_or_queue_command(command, &block)
15123
- end
15124
-
15125
- # Sets the Shielded Instance integrity policy for an instance. You can only use
15126
- # this method on a running instance. This method supports PATCH semantics and
15127
- # uses the JSON merge patch format and processing rules.
15128
- # @param [String] project
15129
- # Project ID for this request.
15130
- # @param [String] zone
15131
- # The name of the zone for this request.
15135
+ # Name of the zone scoping this request.
15132
15136
  # @param [String] instance
15133
- # Name or id of the instance scoping this request.
15134
- # @param [Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
15137
+ # Name of the Instance resource to which the security policy should be set. The
15138
+ # name should conform to RFC1035.
15139
+ # @param [Google::Apis::ComputeAlpha::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
15135
15140
  # @param [String] request_id
15136
15141
  # An optional request ID to identify requests. Specify a unique request ID so
15137
15142
  # that if you must retry your request, the server will know to ignore the
@@ -15161,10 +15166,10 @@ module Google
15161
15166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15162
15167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15163
15168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15164
- def set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15165
- command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
15166
- command.request_representation = Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy::Representation
15167
- command.request_object = shielded_instance_integrity_policy_object
15169
+ def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15170
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
15171
+ command.request_representation = Google::Apis::ComputeAlpha::InstancesSetSecurityPolicyRequest::Representation
15172
+ command.request_object = instances_set_security_policy_request_object
15168
15173
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15169
15174
  command.response_class = Google::Apis::ComputeAlpha::Operation
15170
15175
  command.params['project'] = project unless project.nil?
@@ -15177,16 +15182,15 @@ module Google
15177
15182
  execute_or_queue_command(command, &block)
15178
15183
  end
15179
15184
 
15180
- # Sets the Shielded VM integrity policy for a VM instance. You can only use this
15181
- # method on a running VM instance. This method supports PATCH semantics and uses
15182
- # the JSON merge patch format and processing rules.
15185
+ # Sets the service account on the instance. For more information, read Changing
15186
+ # the service account and access scopes for an instance.
15183
15187
  # @param [String] project
15184
15188
  # Project ID for this request.
15185
15189
  # @param [String] zone
15186
15190
  # The name of the zone for this request.
15187
15191
  # @param [String] instance
15188
- # Name of the instance scoping this request.
15189
- # @param [Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object
15192
+ # Name of the instance resource to start.
15193
+ # @param [Google::Apis::ComputeAlpha::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
15190
15194
  # @param [String] request_id
15191
15195
  # An optional request ID to identify requests. Specify a unique request ID so
15192
15196
  # that if you must retry your request, the server will know to ignore the
@@ -15216,10 +15220,10 @@ module Google
15216
15220
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15217
15221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15218
15222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15219
- 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)
15220
- command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options)
15221
- command.request_representation = Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation
15222
- command.request_object = shielded_vm_integrity_policy_object
15223
+ def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15224
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
15225
+ command.request_representation = Google::Apis::ComputeAlpha::InstancesSetServiceAccountRequest::Representation
15226
+ command.request_object = instances_set_service_account_request_object
15223
15227
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15224
15228
  command.response_class = Google::Apis::ComputeAlpha::Operation
15225
15229
  command.params['project'] = project unless project.nil?
@@ -15232,15 +15236,16 @@ module Google
15232
15236
  execute_or_queue_command(command, &block)
15233
15237
  end
15234
15238
 
15235
- # Sets network tags for the specified instance to the data included in the
15236
- # request.
15239
+ # Sets the Shielded Instance integrity policy for an instance. You can only use
15240
+ # this method on a running instance. This method supports PATCH semantics and
15241
+ # uses the JSON merge patch format and processing rules.
15237
15242
  # @param [String] project
15238
15243
  # Project ID for this request.
15239
15244
  # @param [String] zone
15240
15245
  # The name of the zone for this request.
15241
15246
  # @param [String] instance
15242
- # Name of the instance scoping this request.
15243
- # @param [Google::Apis::ComputeAlpha::Tags] tags_object
15247
+ # Name or id of the instance scoping this request.
15248
+ # @param [Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
15244
15249
  # @param [String] request_id
15245
15250
  # An optional request ID to identify requests. Specify a unique request ID so
15246
15251
  # that if you must retry your request, the server will know to ignore the
@@ -15270,10 +15275,10 @@ module Google
15270
15275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15271
15276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15272
15277
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15273
- def set_instance_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15274
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options)
15275
- command.request_representation = Google::Apis::ComputeAlpha::Tags::Representation
15276
- command.request_object = tags_object
15278
+ def set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15279
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
15280
+ command.request_representation = Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy::Representation
15281
+ command.request_object = shielded_instance_integrity_policy_object
15277
15282
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15278
15283
  command.response_class = Google::Apis::ComputeAlpha::Operation
15279
15284
  command.params['project'] = project unless project.nil?
@@ -15286,121 +15291,230 @@ module Google
15286
15291
  execute_or_queue_command(command, &block)
15287
15292
  end
15288
15293
 
15289
- # Simulates a host maintenance event on a VM. For more information, see Simulate
15290
- # a host maintenance event.
15294
+ # Sets the Shielded VM integrity policy for a VM instance. You can only use this
15295
+ # method on a running VM instance. This method supports PATCH semantics and uses
15296
+ # the JSON merge patch format and processing rules.
15291
15297
  # @param [String] project
15292
15298
  # Project ID for this request.
15293
15299
  # @param [String] zone
15294
15300
  # The name of the zone for this request.
15295
15301
  # @param [String] instance
15296
15302
  # Name of the instance scoping this request.
15297
- # @param [String] request_id
15298
- # An optional request ID to identify requests. Specify a unique request ID so
15299
- # that if you must retry your request, the server will know to ignore the
15300
- # request if it has already been completed. For example, consider a situation
15301
- # where you make an initial request and the request times out. If you make the
15302
- # request again with the same request ID, the server can check if original
15303
- # operation with the same request ID was received, and if so, will ignore the
15304
- # second request. This prevents clients from accidentally creating duplicate
15305
- # commitments. The request ID must be a valid UUID with the exception that zero
15306
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15307
- # @param [Boolean] with_extended_notifications
15308
- # Determines whether the customers receive notifications before migration. Only
15309
- # applicable to SF vms.
15310
- # @param [String] fields
15311
- # Selector specifying which fields to include in a partial response.
15312
- # @param [String] quota_user
15313
- # Available to use for quota purposes for server-side applications. Can be any
15314
- # arbitrary string assigned to a user, but should not exceed 40 characters.
15315
- # @param [String] user_ip
15316
- # Legacy name for parameter that has been superseded by `quotaUser`.
15317
- # @param [Google::Apis::RequestOptions] options
15318
- # Request-specific options
15319
- #
15320
- # @yield [result, err] Result & error if block supplied
15321
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15322
- # @yieldparam err [StandardError] error object if request failed
15323
- #
15324
- # @return [Google::Apis::ComputeAlpha::Operation]
15325
- #
15326
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15327
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15328
- # @raise [Google::Apis::AuthorizationError] Authorization is required
15329
- def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, with_extended_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15330
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
15331
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15332
- command.response_class = Google::Apis::ComputeAlpha::Operation
15333
- command.params['project'] = project unless project.nil?
15334
- command.params['zone'] = zone unless zone.nil?
15335
- command.params['instance'] = instance unless instance.nil?
15336
- command.query['requestId'] = request_id unless request_id.nil?
15337
- command.query['withExtendedNotifications'] = with_extended_notifications unless with_extended_notifications.nil?
15338
- command.query['fields'] = fields unless fields.nil?
15339
- command.query['quotaUser'] = quota_user unless quota_user.nil?
15340
- command.query['userIp'] = user_ip unless user_ip.nil?
15341
- execute_or_queue_command(command, &block)
15342
- end
15343
-
15344
- # Starts an instance that was stopped using the instances().stop method. For
15345
- # more information, see Restart an instance.
15346
- # @param [String] project
15347
- # Project ID for this request.
15348
- # @param [String] zone
15349
- # The name of the zone for this request.
15350
- # @param [String] instance
15351
- # Name of the instance resource to start.
15352
- # @param [String] request_id
15353
- # An optional request ID to identify requests. Specify a unique request ID so
15354
- # that if you must retry your request, the server will know to ignore the
15355
- # request if it has already been completed. For example, consider a situation
15356
- # where you make an initial request and the request times out. If you make the
15357
- # request again with the same request ID, the server can check if original
15358
- # operation with the same request ID was received, and if so, will ignore the
15359
- # second request. This prevents clients from accidentally creating duplicate
15360
- # commitments. The request ID must be a valid UUID with the exception that zero
15361
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15362
- # @param [String] fields
15363
- # Selector specifying which fields to include in a partial response.
15364
- # @param [String] quota_user
15365
- # Available to use for quota purposes for server-side applications. Can be any
15366
- # arbitrary string assigned to a user, but should not exceed 40 characters.
15367
- # @param [String] user_ip
15368
- # Legacy name for parameter that has been superseded by `quotaUser`.
15369
- # @param [Google::Apis::RequestOptions] options
15370
- # Request-specific options
15371
- #
15372
- # @yield [result, err] Result & error if block supplied
15373
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15374
- # @yieldparam err [StandardError] error object if request failed
15375
- #
15376
- # @return [Google::Apis::ComputeAlpha::Operation]
15377
- #
15378
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15379
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15380
- # @raise [Google::Apis::AuthorizationError] Authorization is required
15381
- def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15382
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options)
15383
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15384
- command.response_class = Google::Apis::ComputeAlpha::Operation
15385
- command.params['project'] = project unless project.nil?
15386
- command.params['zone'] = zone unless zone.nil?
15387
- command.params['instance'] = instance unless instance.nil?
15388
- command.query['requestId'] = request_id unless request_id.nil?
15389
- command.query['fields'] = fields unless fields.nil?
15390
- command.query['quotaUser'] = quota_user unless quota_user.nil?
15391
- command.query['userIp'] = user_ip unless user_ip.nil?
15392
- execute_or_queue_command(command, &block)
15393
- end
15394
-
15395
- # Starts an instance that was stopped using the instances().stop method. For
15396
- # more information, see Restart an instance.
15397
- # @param [String] project
15398
- # Project ID for this request.
15399
- # @param [String] zone
15400
- # The name of the zone for this request.
15401
- # @param [String] instance
15402
- # Name of the instance resource to start.
15403
- # @param [Google::Apis::ComputeAlpha::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
15303
+ # @param [Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object
15304
+ # @param [String] request_id
15305
+ # An optional request ID to identify requests. Specify a unique request ID so
15306
+ # that if you must retry your request, the server will know to ignore the
15307
+ # request if it has already been completed. For example, consider a situation
15308
+ # where you make an initial request and the request times out. If you make the
15309
+ # request again with the same request ID, the server can check if original
15310
+ # operation with the same request ID was received, and if so, will ignore the
15311
+ # second request. This prevents clients from accidentally creating duplicate
15312
+ # commitments. The request ID must be a valid UUID with the exception that zero
15313
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15314
+ # @param [String] fields
15315
+ # Selector specifying which fields to include in a partial response.
15316
+ # @param [String] quota_user
15317
+ # Available to use for quota purposes for server-side applications. Can be any
15318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15319
+ # @param [String] user_ip
15320
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15321
+ # @param [Google::Apis::RequestOptions] options
15322
+ # Request-specific options
15323
+ #
15324
+ # @yield [result, err] Result & error if block supplied
15325
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15326
+ # @yieldparam err [StandardError] error object if request failed
15327
+ #
15328
+ # @return [Google::Apis::ComputeAlpha::Operation]
15329
+ #
15330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15333
+ 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)
15334
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options)
15335
+ command.request_representation = Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation
15336
+ command.request_object = shielded_vm_integrity_policy_object
15337
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15338
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15339
+ command.params['project'] = project unless project.nil?
15340
+ command.params['zone'] = zone unless zone.nil?
15341
+ command.params['instance'] = instance unless instance.nil?
15342
+ command.query['requestId'] = request_id unless request_id.nil?
15343
+ command.query['fields'] = fields unless fields.nil?
15344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15345
+ command.query['userIp'] = user_ip unless user_ip.nil?
15346
+ execute_or_queue_command(command, &block)
15347
+ end
15348
+
15349
+ # Sets network tags for the specified instance to the data included in the
15350
+ # request.
15351
+ # @param [String] project
15352
+ # Project ID for this request.
15353
+ # @param [String] zone
15354
+ # The name of the zone for this request.
15355
+ # @param [String] instance
15356
+ # Name of the instance scoping this request.
15357
+ # @param [Google::Apis::ComputeAlpha::Tags] tags_object
15358
+ # @param [String] request_id
15359
+ # An optional request ID to identify requests. Specify a unique request ID so
15360
+ # that if you must retry your request, the server will know to ignore the
15361
+ # request if it has already been completed. For example, consider a situation
15362
+ # where you make an initial request and the request times out. If you make the
15363
+ # request again with the same request ID, the server can check if original
15364
+ # operation with the same request ID was received, and if so, will ignore the
15365
+ # second request. This prevents clients from accidentally creating duplicate
15366
+ # commitments. The request ID must be a valid UUID with the exception that zero
15367
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15368
+ # @param [String] fields
15369
+ # Selector specifying which fields to include in a partial response.
15370
+ # @param [String] quota_user
15371
+ # Available to use for quota purposes for server-side applications. Can be any
15372
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15373
+ # @param [String] user_ip
15374
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15375
+ # @param [Google::Apis::RequestOptions] options
15376
+ # Request-specific options
15377
+ #
15378
+ # @yield [result, err] Result & error if block supplied
15379
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15380
+ # @yieldparam err [StandardError] error object if request failed
15381
+ #
15382
+ # @return [Google::Apis::ComputeAlpha::Operation]
15383
+ #
15384
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15385
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15386
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15387
+ def set_instance_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15388
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options)
15389
+ command.request_representation = Google::Apis::ComputeAlpha::Tags::Representation
15390
+ command.request_object = tags_object
15391
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15392
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15393
+ command.params['project'] = project unless project.nil?
15394
+ command.params['zone'] = zone unless zone.nil?
15395
+ command.params['instance'] = instance unless instance.nil?
15396
+ command.query['requestId'] = request_id unless request_id.nil?
15397
+ command.query['fields'] = fields unless fields.nil?
15398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15399
+ command.query['userIp'] = user_ip unless user_ip.nil?
15400
+ execute_or_queue_command(command, &block)
15401
+ end
15402
+
15403
+ # Simulates a host maintenance event on a VM. For more information, see Simulate
15404
+ # a host maintenance event.
15405
+ # @param [String] project
15406
+ # Project ID for this request.
15407
+ # @param [String] zone
15408
+ # The name of the zone for this request.
15409
+ # @param [String] instance
15410
+ # Name of the instance scoping this request.
15411
+ # @param [String] request_id
15412
+ # An optional request ID to identify requests. Specify a unique request ID so
15413
+ # that if you must retry your request, the server will know to ignore the
15414
+ # request if it has already been completed. For example, consider a situation
15415
+ # where you make an initial request and the request times out. If you make the
15416
+ # request again with the same request ID, the server can check if original
15417
+ # operation with the same request ID was received, and if so, will ignore the
15418
+ # second request. This prevents clients from accidentally creating duplicate
15419
+ # commitments. The request ID must be a valid UUID with the exception that zero
15420
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15421
+ # @param [Boolean] with_extended_notifications
15422
+ # Determines whether the customers receive notifications before migration. Only
15423
+ # applicable to SF vms.
15424
+ # @param [String] fields
15425
+ # Selector specifying which fields to include in a partial response.
15426
+ # @param [String] quota_user
15427
+ # Available to use for quota purposes for server-side applications. Can be any
15428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15429
+ # @param [String] user_ip
15430
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15431
+ # @param [Google::Apis::RequestOptions] options
15432
+ # Request-specific options
15433
+ #
15434
+ # @yield [result, err] Result & error if block supplied
15435
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15436
+ # @yieldparam err [StandardError] error object if request failed
15437
+ #
15438
+ # @return [Google::Apis::ComputeAlpha::Operation]
15439
+ #
15440
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15441
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15442
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15443
+ def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, with_extended_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15444
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
15445
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15446
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15447
+ command.params['project'] = project unless project.nil?
15448
+ command.params['zone'] = zone unless zone.nil?
15449
+ command.params['instance'] = instance unless instance.nil?
15450
+ command.query['requestId'] = request_id unless request_id.nil?
15451
+ command.query['withExtendedNotifications'] = with_extended_notifications unless with_extended_notifications.nil?
15452
+ command.query['fields'] = fields unless fields.nil?
15453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15454
+ command.query['userIp'] = user_ip unless user_ip.nil?
15455
+ execute_or_queue_command(command, &block)
15456
+ end
15457
+
15458
+ # Starts an instance that was stopped using the instances().stop method. For
15459
+ # more information, see Restart an instance.
15460
+ # @param [String] project
15461
+ # Project ID for this request.
15462
+ # @param [String] zone
15463
+ # The name of the zone for this request.
15464
+ # @param [String] instance
15465
+ # Name of the instance resource to start.
15466
+ # @param [String] request_id
15467
+ # An optional request ID to identify requests. Specify a unique request ID so
15468
+ # that if you must retry your request, the server will know to ignore the
15469
+ # request if it has already been completed. For example, consider a situation
15470
+ # where you make an initial request and the request times out. If you make the
15471
+ # request again with the same request ID, the server can check if original
15472
+ # operation with the same request ID was received, and if so, will ignore the
15473
+ # second request. This prevents clients from accidentally creating duplicate
15474
+ # commitments. The request ID must be a valid UUID with the exception that zero
15475
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15476
+ # @param [String] fields
15477
+ # Selector specifying which fields to include in a partial response.
15478
+ # @param [String] quota_user
15479
+ # Available to use for quota purposes for server-side applications. Can be any
15480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15481
+ # @param [String] user_ip
15482
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15483
+ # @param [Google::Apis::RequestOptions] options
15484
+ # Request-specific options
15485
+ #
15486
+ # @yield [result, err] Result & error if block supplied
15487
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15488
+ # @yieldparam err [StandardError] error object if request failed
15489
+ #
15490
+ # @return [Google::Apis::ComputeAlpha::Operation]
15491
+ #
15492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15495
+ def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15496
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options)
15497
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15498
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15499
+ command.params['project'] = project unless project.nil?
15500
+ command.params['zone'] = zone unless zone.nil?
15501
+ command.params['instance'] = instance unless instance.nil?
15502
+ command.query['requestId'] = request_id unless request_id.nil?
15503
+ command.query['fields'] = fields unless fields.nil?
15504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15505
+ command.query['userIp'] = user_ip unless user_ip.nil?
15506
+ execute_or_queue_command(command, &block)
15507
+ end
15508
+
15509
+ # Starts an instance that was stopped using the instances().stop method. For
15510
+ # more information, see Restart an instance.
15511
+ # @param [String] project
15512
+ # Project ID for this request.
15513
+ # @param [String] zone
15514
+ # The name of the zone for this request.
15515
+ # @param [String] instance
15516
+ # Name of the instance resource to start.
15517
+ # @param [Google::Apis::ComputeAlpha::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
15404
15518
  # @param [String] request_id
15405
15519
  # An optional request ID to identify requests. Specify a unique request ID so
15406
15520
  # that if you must retry your request, the server will know to ignore the
@@ -19386,6 +19500,62 @@ module Google
19386
19500
  execute_or_queue_command(command, &block)
19387
19501
  end
19388
19502
 
19503
+ # Patches the specified NetworkAttachment resource with the data included in the
19504
+ # request. This method supports PATCH semantics and uses JSON merge patch format
19505
+ # and processing rules.
19506
+ # @param [String] project
19507
+ # Project ID for this request.
19508
+ # @param [String] region
19509
+ # Name of the region for this request.
19510
+ # @param [String] network_attachment
19511
+ # Name of the NetworkAttachment resource to patch.
19512
+ # @param [Google::Apis::ComputeAlpha::NetworkAttachment] network_attachment_object
19513
+ # @param [String] request_id
19514
+ # An optional request ID to identify requests. Specify a unique request ID so
19515
+ # that if you must retry your request, the server will know to ignore the
19516
+ # request if it has already been completed. For example, consider a situation
19517
+ # where you make an initial request and the request times out. If you make the
19518
+ # request again with the same request ID, the server can check if original
19519
+ # operation with the same request ID was received, and if so, will ignore the
19520
+ # second request. This prevents clients from accidentally creating duplicate
19521
+ # commitments. The request ID must be a valid UUID with the exception that zero
19522
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
19523
+ # MixerMutationRequestBuilder
19524
+ # @param [String] fields
19525
+ # Selector specifying which fields to include in a partial response.
19526
+ # @param [String] quota_user
19527
+ # Available to use for quota purposes for server-side applications. Can be any
19528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19529
+ # @param [String] user_ip
19530
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19531
+ # @param [Google::Apis::RequestOptions] options
19532
+ # Request-specific options
19533
+ #
19534
+ # @yield [result, err] Result & error if block supplied
19535
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
19536
+ # @yieldparam err [StandardError] error object if request failed
19537
+ #
19538
+ # @return [Google::Apis::ComputeAlpha::Operation]
19539
+ #
19540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19543
+ def patch_network_attachment(project, region, network_attachment, network_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19544
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
19545
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkAttachment::Representation
19546
+ command.request_object = network_attachment_object
19547
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
19548
+ command.response_class = Google::Apis::ComputeAlpha::Operation
19549
+ command.params['project'] = project unless project.nil?
19550
+ command.params['region'] = region unless region.nil?
19551
+ command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
19552
+ command.query['requestId'] = request_id unless request_id.nil?
19553
+ command.query['fields'] = fields unless fields.nil?
19554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19555
+ command.query['userIp'] = user_ip unless user_ip.nil?
19556
+ execute_or_queue_command(command, &block)
19557
+ end
19558
+
19389
19559
  # Sets the access control policy on the specified resource. Replaces any
19390
19560
  # existing policy.
19391
19561
  # @param [String] project
@@ -22614,6 +22784,59 @@ module Google
22614
22784
  execute_or_queue_command(command, &block)
22615
22785
  end
22616
22786
 
22787
+ # Perform maintenance on a subset of nodes in the node group.
22788
+ # @param [String] project
22789
+ # Project ID for this request.
22790
+ # @param [String] zone
22791
+ # The name of the zone for this request.
22792
+ # @param [String] node_group
22793
+ # Name of the node group scoping this request.
22794
+ # @param [Google::Apis::ComputeAlpha::NodeGroupsPerformMaintenanceRequest] node_groups_perform_maintenance_request_object
22795
+ # @param [String] request_id
22796
+ # An optional request ID to identify requests. Specify a unique request ID so
22797
+ # that if you must retry your request, the server will know to ignore the
22798
+ # request if it has already been completed. For example, consider a situation
22799
+ # where you make an initial request and the request times out. If you make the
22800
+ # request again with the same request ID, the server can check if original
22801
+ # operation with the same request ID was received, and if so, will ignore the
22802
+ # second request. This prevents clients from accidentally creating duplicate
22803
+ # commitments. The request ID must be a valid UUID with the exception that zero
22804
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22805
+ # @param [String] fields
22806
+ # Selector specifying which fields to include in a partial response.
22807
+ # @param [String] quota_user
22808
+ # Available to use for quota purposes for server-side applications. Can be any
22809
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22810
+ # @param [String] user_ip
22811
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22812
+ # @param [Google::Apis::RequestOptions] options
22813
+ # Request-specific options
22814
+ #
22815
+ # @yield [result, err] Result & error if block supplied
22816
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
22817
+ # @yieldparam err [StandardError] error object if request failed
22818
+ #
22819
+ # @return [Google::Apis::ComputeAlpha::Operation]
22820
+ #
22821
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22822
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22823
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22824
+ def perform_node_group_maintenance(project, zone, node_group, node_groups_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22825
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance', options)
22826
+ command.request_representation = Google::Apis::ComputeAlpha::NodeGroupsPerformMaintenanceRequest::Representation
22827
+ command.request_object = node_groups_perform_maintenance_request_object
22828
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
22829
+ command.response_class = Google::Apis::ComputeAlpha::Operation
22830
+ command.params['project'] = project unless project.nil?
22831
+ command.params['zone'] = zone unless zone.nil?
22832
+ command.params['nodeGroup'] = node_group unless node_group.nil?
22833
+ command.query['requestId'] = request_id unless request_id.nil?
22834
+ command.query['fields'] = fields unless fields.nil?
22835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22836
+ command.query['userIp'] = user_ip unless user_ip.nil?
22837
+ execute_or_queue_command(command, &block)
22838
+ end
22839
+
22617
22840
  # Sets the access control policy on the specified resource. Replaces any
22618
22841
  # existing policy.
22619
22842
  # @param [String] project
@@ -33267,16 +33490,14 @@ module Google
33267
33490
  execute_or_queue_command(command, &block)
33268
33491
  end
33269
33492
 
33270
- # Patches a rule of the specified priority.
33493
+ # Updates an association for the specified network firewall policy.
33271
33494
  # @param [String] project
33272
33495
  # Project ID for this request.
33273
33496
  # @param [String] region
33274
33497
  # Name of the region scoping this request.
33275
33498
  # @param [String] firewall_policy
33276
33499
  # Name of the firewall policy to update.
33277
- # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
33278
- # @param [Fixnum] priority
33279
- # The priority of the rule to patch.
33500
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
33280
33501
  # @param [String] request_id
33281
33502
  # An optional request ID to identify requests. Specify a unique request ID so
33282
33503
  # that if you must retry your request, the server will know to ignore the
@@ -33306,16 +33527,15 @@ module Google
33306
33527
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33307
33528
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33308
33529
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33309
- def patch_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33310
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
33311
- command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
33312
- command.request_object = firewall_policy_rule_object
33530
+ def patch_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33531
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation', options)
33532
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
33533
+ command.request_object = firewall_policy_association_object
33313
33534
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33314
33535
  command.response_class = Google::Apis::ComputeAlpha::Operation
33315
33536
  command.params['project'] = project unless project.nil?
33316
33537
  command.params['region'] = region unless region.nil?
33317
33538
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
33318
- command.query['priority'] = priority unless priority.nil?
33319
33539
  command.query['requestId'] = request_id unless request_id.nil?
33320
33540
  command.query['fields'] = fields unless fields.nil?
33321
33541
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -33323,15 +33543,16 @@ module Google
33323
33543
  execute_or_queue_command(command, &block)
33324
33544
  end
33325
33545
 
33326
- # Removes an association for the specified network firewall policy.
33546
+ # Patches a rule of the specified priority.
33327
33547
  # @param [String] project
33328
33548
  # Project ID for this request.
33329
33549
  # @param [String] region
33330
33550
  # Name of the region scoping this request.
33331
33551
  # @param [String] firewall_policy
33332
33552
  # Name of the firewall policy to update.
33333
- # @param [String] name
33334
- # Name for the association that will be removed.
33553
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
33554
+ # @param [Fixnum] priority
33555
+ # The priority of the rule to patch.
33335
33556
  # @param [String] request_id
33336
33557
  # An optional request ID to identify requests. Specify a unique request ID so
33337
33558
  # that if you must retry your request, the server will know to ignore the
@@ -33361,14 +33582,16 @@ module Google
33361
33582
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33362
33583
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33363
33584
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33364
- def remove_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33365
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
33585
+ def patch_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33586
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
33587
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
33588
+ command.request_object = firewall_policy_rule_object
33366
33589
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33367
33590
  command.response_class = Google::Apis::ComputeAlpha::Operation
33368
33591
  command.params['project'] = project unless project.nil?
33369
33592
  command.params['region'] = region unless region.nil?
33370
33593
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
33371
- command.query['name'] = name unless name.nil?
33594
+ command.query['priority'] = priority unless priority.nil?
33372
33595
  command.query['requestId'] = request_id unless request_id.nil?
33373
33596
  command.query['fields'] = fields unless fields.nil?
33374
33597
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -33376,15 +33599,15 @@ module Google
33376
33599
  execute_or_queue_command(command, &block)
33377
33600
  end
33378
33601
 
33379
- # Deletes a rule of the specified priority.
33602
+ # Removes an association for the specified network firewall policy.
33380
33603
  # @param [String] project
33381
33604
  # Project ID for this request.
33382
33605
  # @param [String] region
33383
33606
  # Name of the region scoping this request.
33384
33607
  # @param [String] firewall_policy
33385
33608
  # Name of the firewall policy to update.
33386
- # @param [Fixnum] priority
33387
- # The priority of the rule to remove from the firewall policy.
33609
+ # @param [String] name
33610
+ # Name for the association that will be removed.
33388
33611
  # @param [String] request_id
33389
33612
  # An optional request ID to identify requests. Specify a unique request ID so
33390
33613
  # that if you must retry your request, the server will know to ignore the
@@ -33414,14 +33637,14 @@ module Google
33414
33637
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33415
33638
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33416
33639
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33417
- def remove_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33418
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
33640
+ def remove_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33641
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
33419
33642
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33420
33643
  command.response_class = Google::Apis::ComputeAlpha::Operation
33421
33644
  command.params['project'] = project unless project.nil?
33422
33645
  command.params['region'] = region unless region.nil?
33423
33646
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
33424
- command.query['priority'] = priority unless priority.nil?
33647
+ command.query['name'] = name unless name.nil?
33425
33648
  command.query['requestId'] = request_id unless request_id.nil?
33426
33649
  command.query['fields'] = fields unless fields.nil?
33427
33650
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -33429,195 +33652,248 @@ module Google
33429
33652
  execute_or_queue_command(command, &block)
33430
33653
  end
33431
33654
 
33432
- # Sets the access control policy on the specified resource. Replaces any
33433
- # existing policy.
33434
- # @param [String] project
33435
- # Project ID for this request.
33436
- # @param [String] region
33437
- # The name of the region for this request.
33438
- # @param [String] resource
33439
- # Name or id of the resource for this request.
33440
- # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
33441
- # @param [String] fields
33442
- # Selector specifying which fields to include in a partial response.
33443
- # @param [String] quota_user
33444
- # Available to use for quota purposes for server-side applications. Can be any
33445
- # arbitrary string assigned to a user, but should not exceed 40 characters.
33446
- # @param [String] user_ip
33447
- # Legacy name for parameter that has been superseded by `quotaUser`.
33448
- # @param [Google::Apis::RequestOptions] options
33449
- # Request-specific options
33450
- #
33451
- # @yield [result, err] Result & error if block supplied
33452
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
33453
- # @yieldparam err [StandardError] error object if request failed
33454
- #
33455
- # @return [Google::Apis::ComputeAlpha::Policy]
33456
- #
33457
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33458
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33459
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33460
- def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33461
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
33462
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
33463
- command.request_object = region_set_policy_request_object
33464
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
33465
- command.response_class = Google::Apis::ComputeAlpha::Policy
33466
- command.params['project'] = project unless project.nil?
33467
- command.params['region'] = region unless region.nil?
33468
- command.params['resource'] = resource unless resource.nil?
33469
- command.query['fields'] = fields unless fields.nil?
33470
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33471
- command.query['userIp'] = user_ip unless user_ip.nil?
33472
- execute_or_queue_command(command, &block)
33473
- end
33474
-
33475
- # Returns permissions that a caller has on the specified resource.
33476
- # @param [String] project
33477
- # Project ID for this request.
33478
- # @param [String] region
33479
- # The name of the region for this request.
33480
- # @param [String] resource
33481
- # Name or id of the resource for this request.
33482
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
33483
- # @param [String] fields
33484
- # Selector specifying which fields to include in a partial response.
33485
- # @param [String] quota_user
33486
- # Available to use for quota purposes for server-side applications. Can be any
33487
- # arbitrary string assigned to a user, but should not exceed 40 characters.
33488
- # @param [String] user_ip
33489
- # Legacy name for parameter that has been superseded by `quotaUser`.
33490
- # @param [Google::Apis::RequestOptions] options
33491
- # Request-specific options
33492
- #
33493
- # @yield [result, err] Result & error if block supplied
33494
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
33495
- # @yieldparam err [StandardError] error object if request failed
33496
- #
33497
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
33498
- #
33499
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33500
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33501
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33502
- def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33503
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
33504
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
33505
- command.request_object = test_permissions_request_object
33506
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
33507
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
33508
- command.params['project'] = project unless project.nil?
33509
- command.params['region'] = region unless region.nil?
33510
- command.params['resource'] = resource unless resource.nil?
33511
- command.query['fields'] = fields unless fields.nil?
33512
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33513
- command.query['userIp'] = user_ip unless user_ip.nil?
33514
- execute_or_queue_command(command, &block)
33515
- end
33516
-
33517
- # Retrieves the list of all NotificationEndpoint resources, regional and global,
33518
- # available to the specified project.
33519
- # @param [String] project
33520
- # Name of the project scoping this request.
33521
- # @param [String] filter
33522
- # A filter expression that filters resources listed in the response. Most
33523
- # Compute resources support two types of filter expressions: expressions that
33524
- # support regular expressions and expressions that follow API improvement
33525
- # proposal AIP-160. If you want to use AIP-160, your expression must specify the
33526
- # field name, an operator, and the value that you want to use for filtering. The
33527
- # value must be a string, a number, or a boolean. The operator must be either `=`
33528
- # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
33529
- # Engine instances, you can exclude instances named `example-instance` by
33530
- # specifying `name != example-instance`. The `:` operator can be used with
33531
- # string fields to match substrings. For non-string fields it is equivalent to
33532
- # the `=` operator. The `:*` comparison can be used to test whether a key has
33533
- # been defined. For example, to find all objects with `owner` label use: ```
33534
- # labels.owner:* ``` You can also filter nested fields. For example, you could
33535
- # specify `scheduling.automaticRestart = false` to include instances only if
33536
- # they are not scheduled for automatic restarts. You can use filtering on nested
33537
- # fields to filter based on resource labels. To filter on multiple expressions,
33538
- # provide each separate expression within parentheses. For example: ``` (
33539
- # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
33540
- # default, each expression is an `AND` expression. However, you can include `AND`
33541
- # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
33542
- # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
33543
- # automaticRestart = true) ``` If you want to use a regular expression, use the `
33544
- # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
33545
- # expression with or without quotes or against multiple parenthesized
33546
- # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
33547
- # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
33548
- # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
33549
- # regular expression using Google RE2 library syntax. The literal value must
33550
- # match the entire field. For example, to filter for instances that do not end
33551
- # with name "instance", you would use `name ne .*instance`.
33552
- # @param [Boolean] include_all_scopes
33553
- # Indicates whether every visible scope for each scope type (zone, region,
33554
- # global) should be included in the response. For new resource types added after
33555
- # this field, the flag has no effect as new resource types will always include
33556
- # every visible scope for each scope type in response. For resource types which
33557
- # predate this field, if this flag is omitted or false, only scopes of the scope
33558
- # types where the resource type is expected to be found will be included.
33559
- # @param [Fixnum] max_results
33560
- # The maximum number of results per page that should be returned. If the number
33561
- # of available results is larger than `maxResults`, Compute Engine returns a `
33562
- # nextPageToken` that can be used to get the next page of results in subsequent
33563
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33564
- # @param [String] order_by
33565
- # Sorts list results by a certain order. By default, results are returned in
33566
- # alphanumerical order based on the resource name. You can also sort results in
33567
- # descending order based on the creation timestamp using `orderBy="
33568
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
33569
- # field in reverse chronological order (newest result first). Use this to sort
33570
- # resources like operations so that the newest operation is returned first.
33571
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33572
- # @param [String] page_token
33573
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33574
- # by a previous list request to get the next page of results.
33575
- # @param [Boolean] return_partial_success
33576
- # Opt-in for partial success behavior which provides partial results in case of
33577
- # failure. The default value is false.
33578
- # @param [String] fields
33579
- # Selector specifying which fields to include in a partial response.
33580
- # @param [String] quota_user
33581
- # Available to use for quota purposes for server-side applications. Can be any
33582
- # arbitrary string assigned to a user, but should not exceed 40 characters.
33583
- # @param [String] user_ip
33584
- # Legacy name for parameter that has been superseded by `quotaUser`.
33585
- # @param [Google::Apis::RequestOptions] options
33586
- # Request-specific options
33587
- #
33588
- # @yield [result, err] Result & error if block supplied
33589
- # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList] parsed result object
33590
- # @yieldparam err [StandardError] error object if request failed
33591
- #
33592
- # @return [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList]
33593
- #
33594
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33595
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33596
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33597
- def aggregated_region_notification_endpoint_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33598
- command = make_simple_command(:get, 'projects/{project}/aggregated/notificationEndpoints', options)
33599
- command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList::Representation
33600
- command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList
33601
- command.params['project'] = project unless project.nil?
33602
- command.query['filter'] = filter unless filter.nil?
33603
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
33604
- command.query['maxResults'] = max_results unless max_results.nil?
33605
- command.query['orderBy'] = order_by unless order_by.nil?
33606
- command.query['pageToken'] = page_token unless page_token.nil?
33607
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33608
- command.query['fields'] = fields unless fields.nil?
33609
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33610
- command.query['userIp'] = user_ip unless user_ip.nil?
33611
- execute_or_queue_command(command, &block)
33612
- end
33613
-
33614
- # Deletes the specified NotificationEndpoint in the given region
33655
+ # Deletes a rule of the specified priority.
33615
33656
  # @param [String] project
33616
33657
  # Project ID for this request.
33617
33658
  # @param [String] region
33618
33659
  # Name of the region scoping this request.
33619
- # @param [String] notification_endpoint
33620
- # Name of the NotificationEndpoint resource to delete.
33660
+ # @param [String] firewall_policy
33661
+ # Name of the firewall policy to update.
33662
+ # @param [Fixnum] priority
33663
+ # The priority of the rule to remove from the firewall policy.
33664
+ # @param [String] request_id
33665
+ # An optional request ID to identify requests. Specify a unique request ID so
33666
+ # that if you must retry your request, the server will know to ignore the
33667
+ # request if it has already been completed. For example, consider a situation
33668
+ # where you make an initial request and the request times out. If you make the
33669
+ # request again with the same request ID, the server can check if original
33670
+ # operation with the same request ID was received, and if so, will ignore the
33671
+ # second request. This prevents clients from accidentally creating duplicate
33672
+ # commitments. The request ID must be a valid UUID with the exception that zero
33673
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
33674
+ # @param [String] fields
33675
+ # Selector specifying which fields to include in a partial response.
33676
+ # @param [String] quota_user
33677
+ # Available to use for quota purposes for server-side applications. Can be any
33678
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33679
+ # @param [String] user_ip
33680
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33681
+ # @param [Google::Apis::RequestOptions] options
33682
+ # Request-specific options
33683
+ #
33684
+ # @yield [result, err] Result & error if block supplied
33685
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33686
+ # @yieldparam err [StandardError] error object if request failed
33687
+ #
33688
+ # @return [Google::Apis::ComputeAlpha::Operation]
33689
+ #
33690
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33691
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33692
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33693
+ def remove_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33694
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
33695
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33696
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33697
+ command.params['project'] = project unless project.nil?
33698
+ command.params['region'] = region unless region.nil?
33699
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
33700
+ command.query['priority'] = priority unless priority.nil?
33701
+ command.query['requestId'] = request_id unless request_id.nil?
33702
+ command.query['fields'] = fields unless fields.nil?
33703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33704
+ command.query['userIp'] = user_ip unless user_ip.nil?
33705
+ execute_or_queue_command(command, &block)
33706
+ end
33707
+
33708
+ # Sets the access control policy on the specified resource. Replaces any
33709
+ # existing policy.
33710
+ # @param [String] project
33711
+ # Project ID for this request.
33712
+ # @param [String] region
33713
+ # The name of the region for this request.
33714
+ # @param [String] resource
33715
+ # Name or id of the resource for this request.
33716
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
33717
+ # @param [String] fields
33718
+ # Selector specifying which fields to include in a partial response.
33719
+ # @param [String] quota_user
33720
+ # Available to use for quota purposes for server-side applications. Can be any
33721
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33722
+ # @param [String] user_ip
33723
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33724
+ # @param [Google::Apis::RequestOptions] options
33725
+ # Request-specific options
33726
+ #
33727
+ # @yield [result, err] Result & error if block supplied
33728
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
33729
+ # @yieldparam err [StandardError] error object if request failed
33730
+ #
33731
+ # @return [Google::Apis::ComputeAlpha::Policy]
33732
+ #
33733
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33734
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33735
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33736
+ def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33737
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
33738
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
33739
+ command.request_object = region_set_policy_request_object
33740
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
33741
+ command.response_class = Google::Apis::ComputeAlpha::Policy
33742
+ command.params['project'] = project unless project.nil?
33743
+ command.params['region'] = region unless region.nil?
33744
+ command.params['resource'] = resource unless resource.nil?
33745
+ command.query['fields'] = fields unless fields.nil?
33746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33747
+ command.query['userIp'] = user_ip unless user_ip.nil?
33748
+ execute_or_queue_command(command, &block)
33749
+ end
33750
+
33751
+ # Returns permissions that a caller has on the specified resource.
33752
+ # @param [String] project
33753
+ # Project ID for this request.
33754
+ # @param [String] region
33755
+ # The name of the region for this request.
33756
+ # @param [String] resource
33757
+ # Name or id of the resource for this request.
33758
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
33759
+ # @param [String] fields
33760
+ # Selector specifying which fields to include in a partial response.
33761
+ # @param [String] quota_user
33762
+ # Available to use for quota purposes for server-side applications. Can be any
33763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33764
+ # @param [String] user_ip
33765
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33766
+ # @param [Google::Apis::RequestOptions] options
33767
+ # Request-specific options
33768
+ #
33769
+ # @yield [result, err] Result & error if block supplied
33770
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
33771
+ # @yieldparam err [StandardError] error object if request failed
33772
+ #
33773
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
33774
+ #
33775
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33776
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33777
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33778
+ def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33779
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
33780
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
33781
+ command.request_object = test_permissions_request_object
33782
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
33783
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
33784
+ command.params['project'] = project unless project.nil?
33785
+ command.params['region'] = region unless region.nil?
33786
+ command.params['resource'] = resource unless resource.nil?
33787
+ command.query['fields'] = fields unless fields.nil?
33788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33789
+ command.query['userIp'] = user_ip unless user_ip.nil?
33790
+ execute_or_queue_command(command, &block)
33791
+ end
33792
+
33793
+ # Retrieves the list of all NotificationEndpoint resources, regional and global,
33794
+ # available to the specified project.
33795
+ # @param [String] project
33796
+ # Name of the project scoping this request.
33797
+ # @param [String] filter
33798
+ # A filter expression that filters resources listed in the response. Most
33799
+ # Compute resources support two types of filter expressions: expressions that
33800
+ # support regular expressions and expressions that follow API improvement
33801
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
33802
+ # field name, an operator, and the value that you want to use for filtering. The
33803
+ # value must be a string, a number, or a boolean. The operator must be either `=`
33804
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
33805
+ # Engine instances, you can exclude instances named `example-instance` by
33806
+ # specifying `name != example-instance`. The `:` operator can be used with
33807
+ # string fields to match substrings. For non-string fields it is equivalent to
33808
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
33809
+ # been defined. For example, to find all objects with `owner` label use: ```
33810
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
33811
+ # specify `scheduling.automaticRestart = false` to include instances only if
33812
+ # they are not scheduled for automatic restarts. You can use filtering on nested
33813
+ # fields to filter based on resource labels. To filter on multiple expressions,
33814
+ # provide each separate expression within parentheses. For example: ``` (
33815
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
33816
+ # default, each expression is an `AND` expression. However, you can include `AND`
33817
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
33818
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
33819
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
33820
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
33821
+ # expression with or without quotes or against multiple parenthesized
33822
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
33823
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
33824
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
33825
+ # regular expression using Google RE2 library syntax. The literal value must
33826
+ # match the entire field. For example, to filter for instances that do not end
33827
+ # with name "instance", you would use `name ne .*instance`.
33828
+ # @param [Boolean] include_all_scopes
33829
+ # Indicates whether every visible scope for each scope type (zone, region,
33830
+ # global) should be included in the response. For new resource types added after
33831
+ # this field, the flag has no effect as new resource types will always include
33832
+ # every visible scope for each scope type in response. For resource types which
33833
+ # predate this field, if this flag is omitted or false, only scopes of the scope
33834
+ # types where the resource type is expected to be found will be included.
33835
+ # @param [Fixnum] max_results
33836
+ # The maximum number of results per page that should be returned. If the number
33837
+ # of available results is larger than `maxResults`, Compute Engine returns a `
33838
+ # nextPageToken` that can be used to get the next page of results in subsequent
33839
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33840
+ # @param [String] order_by
33841
+ # Sorts list results by a certain order. By default, results are returned in
33842
+ # alphanumerical order based on the resource name. You can also sort results in
33843
+ # descending order based on the creation timestamp using `orderBy="
33844
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
33845
+ # field in reverse chronological order (newest result first). Use this to sort
33846
+ # resources like operations so that the newest operation is returned first.
33847
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33848
+ # @param [String] page_token
33849
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33850
+ # by a previous list request to get the next page of results.
33851
+ # @param [Boolean] return_partial_success
33852
+ # Opt-in for partial success behavior which provides partial results in case of
33853
+ # failure. The default value is false.
33854
+ # @param [String] fields
33855
+ # Selector specifying which fields to include in a partial response.
33856
+ # @param [String] quota_user
33857
+ # Available to use for quota purposes for server-side applications. Can be any
33858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33859
+ # @param [String] user_ip
33860
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33861
+ # @param [Google::Apis::RequestOptions] options
33862
+ # Request-specific options
33863
+ #
33864
+ # @yield [result, err] Result & error if block supplied
33865
+ # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList] parsed result object
33866
+ # @yieldparam err [StandardError] error object if request failed
33867
+ #
33868
+ # @return [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList]
33869
+ #
33870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33873
+ def aggregated_region_notification_endpoint_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33874
+ command = make_simple_command(:get, 'projects/{project}/aggregated/notificationEndpoints', options)
33875
+ command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList::Representation
33876
+ command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList
33877
+ command.params['project'] = project unless project.nil?
33878
+ command.query['filter'] = filter unless filter.nil?
33879
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
33880
+ command.query['maxResults'] = max_results unless max_results.nil?
33881
+ command.query['orderBy'] = order_by unless order_by.nil?
33882
+ command.query['pageToken'] = page_token unless page_token.nil?
33883
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33884
+ command.query['fields'] = fields unless fields.nil?
33885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33886
+ command.query['userIp'] = user_ip unless user_ip.nil?
33887
+ execute_or_queue_command(command, &block)
33888
+ end
33889
+
33890
+ # Deletes the specified NotificationEndpoint in the given region
33891
+ # @param [String] project
33892
+ # Project ID for this request.
33893
+ # @param [String] region
33894
+ # Name of the region scoping this request.
33895
+ # @param [String] notification_endpoint
33896
+ # Name of the NotificationEndpoint resource to delete.
33621
33897
  # @param [String] request_id
33622
33898
  # An optional request ID to identify requests. Specify a unique request ID so
33623
33899
  # that if you must retry your request, the server will know to ignore the
@@ -39983,17 +40259,6 @@ module Google
39983
40259
  # The resource id of the ServiceAttachment to patch. It should conform to
39984
40260
  # RFC1035 resource name or be a string form on an unsigned long number.
39985
40261
  # @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
39986
- # @param [Boolean] reconcile_connections
39987
- # This flag determines how to change the status of consumer connections, when
39988
- # the connection policy for the corresponding project or network is modified. If
39989
- # the flag is false, the default case, then existing ACCEPTED and REJECTED
39990
- # consumer connections stay in that state. For example, even if the project is
39991
- # removed from the accept list, existing ACCEPTED connections will stay the same.
39992
- # If the flag is true, then the connection can change from ACCEPTED or REJECTED
39993
- # to pending when the connection policy is modified. For example, if a project
39994
- # is removed from the reject list, its existing REJECTED connections will move
39995
- # to the PENDING state. If the project is also added to the accept list, then
39996
- # those connections will move to the ACCEPTED state.
39997
40262
  # @param [String] request_id
39998
40263
  # An optional request ID to identify requests. Specify a unique request ID so
39999
40264
  # that if you must retry your request, the server will know to ignore the
@@ -40023,7 +40288,7 @@ module Google
40023
40288
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40024
40289
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40025
40290
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40026
- def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, reconcile_connections: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40291
+ def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40027
40292
  command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
40028
40293
  command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
40029
40294
  command.request_object = service_attachment_object
@@ -40032,7 +40297,6 @@ module Google
40032
40297
  command.params['project'] = project unless project.nil?
40033
40298
  command.params['region'] = region unless region.nil?
40034
40299
  command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
40035
- command.query['reconcileConnections'] = reconcile_connections unless reconcile_connections.nil?
40036
40300
  command.query['requestId'] = request_id unless request_id.nil?
40037
40301
  command.query['fields'] = fields unless fields.nil?
40038
40302
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -40496,8 +40760,364 @@ module Google
40496
40760
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40497
40761
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40498
40762
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40499
- def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40500
- command = make_simple_command(:post, 'projects/{project}/global/snapshots/{resource}/testIamPermissions', options)
40763
+ def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40764
+ command = make_simple_command(:post, 'projects/{project}/global/snapshots/{resource}/testIamPermissions', options)
40765
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
40766
+ command.request_object = test_permissions_request_object
40767
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
40768
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
40769
+ command.params['project'] = project unless project.nil?
40770
+ command.params['resource'] = resource unless resource.nil?
40771
+ command.query['fields'] = fields unless fields.nil?
40772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40773
+ command.query['userIp'] = user_ip unless user_ip.nil?
40774
+ execute_or_queue_command(command, &block)
40775
+ end
40776
+
40777
+ # Retrieves the list of all SslCertificate resources, regional and global,
40778
+ # available to the specified project.
40779
+ # @param [String] project
40780
+ # Name of the project scoping this request.
40781
+ # @param [String] filter
40782
+ # A filter expression that filters resources listed in the response. Most
40783
+ # Compute resources support two types of filter expressions: expressions that
40784
+ # support regular expressions and expressions that follow API improvement
40785
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
40786
+ # field name, an operator, and the value that you want to use for filtering. The
40787
+ # value must be a string, a number, or a boolean. The operator must be either `=`
40788
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
40789
+ # Engine instances, you can exclude instances named `example-instance` by
40790
+ # specifying `name != example-instance`. The `:` operator can be used with
40791
+ # string fields to match substrings. For non-string fields it is equivalent to
40792
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
40793
+ # been defined. For example, to find all objects with `owner` label use: ```
40794
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
40795
+ # specify `scheduling.automaticRestart = false` to include instances only if
40796
+ # they are not scheduled for automatic restarts. You can use filtering on nested
40797
+ # fields to filter based on resource labels. To filter on multiple expressions,
40798
+ # provide each separate expression within parentheses. For example: ``` (
40799
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
40800
+ # default, each expression is an `AND` expression. However, you can include `AND`
40801
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
40802
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
40803
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
40804
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
40805
+ # expression with or without quotes or against multiple parenthesized
40806
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
40807
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
40808
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
40809
+ # regular expression using Google RE2 library syntax. The literal value must
40810
+ # match the entire field. For example, to filter for instances that do not end
40811
+ # with name "instance", you would use `name ne .*instance`.
40812
+ # @param [Boolean] include_all_scopes
40813
+ # Indicates whether every visible scope for each scope type (zone, region,
40814
+ # global) should be included in the response. For new resource types added after
40815
+ # this field, the flag has no effect as new resource types will always include
40816
+ # every visible scope for each scope type in response. For resource types which
40817
+ # predate this field, if this flag is omitted or false, only scopes of the scope
40818
+ # types where the resource type is expected to be found will be included.
40819
+ # @param [Fixnum] max_results
40820
+ # The maximum number of results per page that should be returned. If the number
40821
+ # of available results is larger than `maxResults`, Compute Engine returns a `
40822
+ # nextPageToken` that can be used to get the next page of results in subsequent
40823
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
40824
+ # @param [String] order_by
40825
+ # Sorts list results by a certain order. By default, results are returned in
40826
+ # alphanumerical order based on the resource name. You can also sort results in
40827
+ # descending order based on the creation timestamp using `orderBy="
40828
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
40829
+ # field in reverse chronological order (newest result first). Use this to sort
40830
+ # resources like operations so that the newest operation is returned first.
40831
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
40832
+ # @param [String] page_token
40833
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
40834
+ # by a previous list request to get the next page of results.
40835
+ # @param [Boolean] return_partial_success
40836
+ # Opt-in for partial success behavior which provides partial results in case of
40837
+ # failure. The default value is false.
40838
+ # @param [String] fields
40839
+ # Selector specifying which fields to include in a partial response.
40840
+ # @param [String] quota_user
40841
+ # Available to use for quota purposes for server-side applications. Can be any
40842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40843
+ # @param [String] user_ip
40844
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40845
+ # @param [Google::Apis::RequestOptions] options
40846
+ # Request-specific options
40847
+ #
40848
+ # @yield [result, err] Result & error if block supplied
40849
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslCertificateAggregatedList] parsed result object
40850
+ # @yieldparam err [StandardError] error object if request failed
40851
+ #
40852
+ # @return [Google::Apis::ComputeAlpha::SslCertificateAggregatedList]
40853
+ #
40854
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40855
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40856
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40857
+ def aggregated_ssl_certificate_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40858
+ command = make_simple_command(:get, 'projects/{project}/aggregated/sslCertificates', options)
40859
+ command.response_representation = Google::Apis::ComputeAlpha::SslCertificateAggregatedList::Representation
40860
+ command.response_class = Google::Apis::ComputeAlpha::SslCertificateAggregatedList
40861
+ command.params['project'] = project unless project.nil?
40862
+ command.query['filter'] = filter unless filter.nil?
40863
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
40864
+ command.query['maxResults'] = max_results unless max_results.nil?
40865
+ command.query['orderBy'] = order_by unless order_by.nil?
40866
+ command.query['pageToken'] = page_token unless page_token.nil?
40867
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
40868
+ command.query['fields'] = fields unless fields.nil?
40869
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40870
+ command.query['userIp'] = user_ip unless user_ip.nil?
40871
+ execute_or_queue_command(command, &block)
40872
+ end
40873
+
40874
+ # Deletes the specified SslCertificate resource.
40875
+ # @param [String] project
40876
+ # Project ID for this request.
40877
+ # @param [String] ssl_certificate
40878
+ # Name of the SslCertificate resource to delete.
40879
+ # @param [String] request_id
40880
+ # An optional request ID to identify requests. Specify a unique request ID so
40881
+ # that if you must retry your request, the server will know to ignore the
40882
+ # request if it has already been completed. For example, consider a situation
40883
+ # where you make an initial request and the request times out. If you make the
40884
+ # request again with the same request ID, the server can check if original
40885
+ # operation with the same request ID was received, and if so, will ignore the
40886
+ # second request. This prevents clients from accidentally creating duplicate
40887
+ # commitments. The request ID must be a valid UUID with the exception that zero
40888
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40889
+ # @param [String] fields
40890
+ # Selector specifying which fields to include in a partial response.
40891
+ # @param [String] quota_user
40892
+ # Available to use for quota purposes for server-side applications. Can be any
40893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40894
+ # @param [String] user_ip
40895
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40896
+ # @param [Google::Apis::RequestOptions] options
40897
+ # Request-specific options
40898
+ #
40899
+ # @yield [result, err] Result & error if block supplied
40900
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
40901
+ # @yieldparam err [StandardError] error object if request failed
40902
+ #
40903
+ # @return [Google::Apis::ComputeAlpha::Operation]
40904
+ #
40905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40908
+ def delete_ssl_certificate(project, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40909
+ command = make_simple_command(:delete, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
40910
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
40911
+ command.response_class = Google::Apis::ComputeAlpha::Operation
40912
+ command.params['project'] = project unless project.nil?
40913
+ command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
40914
+ command.query['requestId'] = request_id unless request_id.nil?
40915
+ command.query['fields'] = fields unless fields.nil?
40916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40917
+ command.query['userIp'] = user_ip unless user_ip.nil?
40918
+ execute_or_queue_command(command, &block)
40919
+ end
40920
+
40921
+ # Returns the specified SslCertificate resource.
40922
+ # @param [String] project
40923
+ # Project ID for this request.
40924
+ # @param [String] ssl_certificate
40925
+ # Name of the SslCertificate resource to return.
40926
+ # @param [String] fields
40927
+ # Selector specifying which fields to include in a partial response.
40928
+ # @param [String] quota_user
40929
+ # Available to use for quota purposes for server-side applications. Can be any
40930
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40931
+ # @param [String] user_ip
40932
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40933
+ # @param [Google::Apis::RequestOptions] options
40934
+ # Request-specific options
40935
+ #
40936
+ # @yield [result, err] Result & error if block supplied
40937
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslCertificate] parsed result object
40938
+ # @yieldparam err [StandardError] error object if request failed
40939
+ #
40940
+ # @return [Google::Apis::ComputeAlpha::SslCertificate]
40941
+ #
40942
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40943
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40944
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40945
+ def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40946
+ command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
40947
+ command.response_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation
40948
+ command.response_class = Google::Apis::ComputeAlpha::SslCertificate
40949
+ command.params['project'] = project unless project.nil?
40950
+ command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
40951
+ command.query['fields'] = fields unless fields.nil?
40952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40953
+ command.query['userIp'] = user_ip unless user_ip.nil?
40954
+ execute_or_queue_command(command, &block)
40955
+ end
40956
+
40957
+ # Creates a SslCertificate resource in the specified project using the data
40958
+ # included in the request.
40959
+ # @param [String] project
40960
+ # Project ID for this request.
40961
+ # @param [Google::Apis::ComputeAlpha::SslCertificate] ssl_certificate_object
40962
+ # @param [String] request_id
40963
+ # An optional request ID to identify requests. Specify a unique request ID so
40964
+ # that if you must retry your request, the server will know to ignore the
40965
+ # request if it has already been completed. For example, consider a situation
40966
+ # where you make an initial request and the request times out. If you make the
40967
+ # request again with the same request ID, the server can check if original
40968
+ # operation with the same request ID was received, and if so, will ignore the
40969
+ # second request. This prevents clients from accidentally creating duplicate
40970
+ # commitments. The request ID must be a valid UUID with the exception that zero
40971
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40972
+ # @param [String] fields
40973
+ # Selector specifying which fields to include in a partial response.
40974
+ # @param [String] quota_user
40975
+ # Available to use for quota purposes for server-side applications. Can be any
40976
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40977
+ # @param [String] user_ip
40978
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40979
+ # @param [Google::Apis::RequestOptions] options
40980
+ # Request-specific options
40981
+ #
40982
+ # @yield [result, err] Result & error if block supplied
40983
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
40984
+ # @yieldparam err [StandardError] error object if request failed
40985
+ #
40986
+ # @return [Google::Apis::ComputeAlpha::Operation]
40987
+ #
40988
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40989
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40990
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40991
+ def insert_ssl_certificate(project, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40992
+ command = make_simple_command(:post, 'projects/{project}/global/sslCertificates', options)
40993
+ command.request_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation
40994
+ command.request_object = ssl_certificate_object
40995
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
40996
+ command.response_class = Google::Apis::ComputeAlpha::Operation
40997
+ command.params['project'] = project unless project.nil?
40998
+ command.query['requestId'] = request_id unless request_id.nil?
40999
+ command.query['fields'] = fields unless fields.nil?
41000
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41001
+ command.query['userIp'] = user_ip unless user_ip.nil?
41002
+ execute_or_queue_command(command, &block)
41003
+ end
41004
+
41005
+ # Retrieves the list of SslCertificate resources available to the specified
41006
+ # project.
41007
+ # @param [String] project
41008
+ # Project ID for this request.
41009
+ # @param [String] filter
41010
+ # A filter expression that filters resources listed in the response. Most
41011
+ # Compute resources support two types of filter expressions: expressions that
41012
+ # support regular expressions and expressions that follow API improvement
41013
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
41014
+ # field name, an operator, and the value that you want to use for filtering. The
41015
+ # value must be a string, a number, or a boolean. The operator must be either `=`
41016
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41017
+ # Engine instances, you can exclude instances named `example-instance` by
41018
+ # specifying `name != example-instance`. The `:` operator can be used with
41019
+ # string fields to match substrings. For non-string fields it is equivalent to
41020
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
41021
+ # been defined. For example, to find all objects with `owner` label use: ```
41022
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
41023
+ # specify `scheduling.automaticRestart = false` to include instances only if
41024
+ # they are not scheduled for automatic restarts. You can use filtering on nested
41025
+ # fields to filter based on resource labels. To filter on multiple expressions,
41026
+ # provide each separate expression within parentheses. For example: ``` (
41027
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
41028
+ # default, each expression is an `AND` expression. However, you can include `AND`
41029
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
41030
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
41031
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
41032
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
41033
+ # expression with or without quotes or against multiple parenthesized
41034
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
41035
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
41036
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
41037
+ # regular expression using Google RE2 library syntax. The literal value must
41038
+ # match the entire field. For example, to filter for instances that do not end
41039
+ # with name "instance", you would use `name ne .*instance`.
41040
+ # @param [Fixnum] max_results
41041
+ # The maximum number of results per page that should be returned. If the number
41042
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41043
+ # nextPageToken` that can be used to get the next page of results in subsequent
41044
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41045
+ # @param [String] order_by
41046
+ # Sorts list results by a certain order. By default, results are returned in
41047
+ # alphanumerical order based on the resource name. You can also sort results in
41048
+ # descending order based on the creation timestamp using `orderBy="
41049
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41050
+ # field in reverse chronological order (newest result first). Use this to sort
41051
+ # resources like operations so that the newest operation is returned first.
41052
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41053
+ # @param [String] page_token
41054
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41055
+ # by a previous list request to get the next page of results.
41056
+ # @param [Boolean] return_partial_success
41057
+ # Opt-in for partial success behavior which provides partial results in case of
41058
+ # failure. The default value is false.
41059
+ # @param [String] fields
41060
+ # Selector specifying which fields to include in a partial response.
41061
+ # @param [String] quota_user
41062
+ # Available to use for quota purposes for server-side applications. Can be any
41063
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41064
+ # @param [String] user_ip
41065
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41066
+ # @param [Google::Apis::RequestOptions] options
41067
+ # Request-specific options
41068
+ #
41069
+ # @yield [result, err] Result & error if block supplied
41070
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslCertificateList] parsed result object
41071
+ # @yieldparam err [StandardError] error object if request failed
41072
+ #
41073
+ # @return [Google::Apis::ComputeAlpha::SslCertificateList]
41074
+ #
41075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41078
+ def list_ssl_certificates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41079
+ command = make_simple_command(:get, 'projects/{project}/global/sslCertificates', options)
41080
+ command.response_representation = Google::Apis::ComputeAlpha::SslCertificateList::Representation
41081
+ command.response_class = Google::Apis::ComputeAlpha::SslCertificateList
41082
+ command.params['project'] = project unless project.nil?
41083
+ command.query['filter'] = filter unless filter.nil?
41084
+ command.query['maxResults'] = max_results unless max_results.nil?
41085
+ command.query['orderBy'] = order_by unless order_by.nil?
41086
+ command.query['pageToken'] = page_token unless page_token.nil?
41087
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41088
+ command.query['fields'] = fields unless fields.nil?
41089
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41090
+ command.query['userIp'] = user_ip unless user_ip.nil?
41091
+ execute_or_queue_command(command, &block)
41092
+ end
41093
+
41094
+ # Returns permissions that a caller has on the specified resource.
41095
+ # @param [String] project
41096
+ # Project ID for this request.
41097
+ # @param [String] resource
41098
+ # Name or id of the resource for this request.
41099
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
41100
+ # @param [String] fields
41101
+ # Selector specifying which fields to include in a partial response.
41102
+ # @param [String] quota_user
41103
+ # Available to use for quota purposes for server-side applications. Can be any
41104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41105
+ # @param [String] user_ip
41106
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41107
+ # @param [Google::Apis::RequestOptions] options
41108
+ # Request-specific options
41109
+ #
41110
+ # @yield [result, err] Result & error if block supplied
41111
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
41112
+ # @yieldparam err [StandardError] error object if request failed
41113
+ #
41114
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
41115
+ #
41116
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41117
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41118
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41119
+ def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41120
+ command = make_simple_command(:post, 'projects/{project}/global/sslCertificates/{resource}/testIamPermissions', options)
40501
41121
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
40502
41122
  command.request_object = test_permissions_request_object
40503
41123
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
@@ -40510,8 +41130,8 @@ module Google
40510
41130
  execute_or_queue_command(command, &block)
40511
41131
  end
40512
41132
 
40513
- # Retrieves the list of all SslCertificate resources, regional and global,
40514
- # available to the specified project.
41133
+ # Retrieves the list of all SslPolicy resources, regional and global, available
41134
+ # to the specified project.
40515
41135
  # @param [String] project
40516
41136
  # Name of the project scoping this request.
40517
41137
  # @param [String] filter
@@ -40582,18 +41202,18 @@ module Google
40582
41202
  # Request-specific options
40583
41203
  #
40584
41204
  # @yield [result, err] Result & error if block supplied
40585
- # @yieldparam result [Google::Apis::ComputeAlpha::SslCertificateAggregatedList] parsed result object
41205
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslPoliciesAggregatedList] parsed result object
40586
41206
  # @yieldparam err [StandardError] error object if request failed
40587
41207
  #
40588
- # @return [Google::Apis::ComputeAlpha::SslCertificateAggregatedList]
41208
+ # @return [Google::Apis::ComputeAlpha::SslPoliciesAggregatedList]
40589
41209
  #
40590
41210
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40591
41211
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40592
41212
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40593
- def aggregated_ssl_certificate_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40594
- command = make_simple_command(:get, 'projects/{project}/aggregated/sslCertificates', options)
40595
- command.response_representation = Google::Apis::ComputeAlpha::SslCertificateAggregatedList::Representation
40596
- command.response_class = Google::Apis::ComputeAlpha::SslCertificateAggregatedList
41213
+ def aggregated_ssl_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41214
+ command = make_simple_command(:get, 'projects/{project}/aggregated/sslPolicies', options)
41215
+ command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesAggregatedList::Representation
41216
+ command.response_class = Google::Apis::ComputeAlpha::SslPoliciesAggregatedList
40597
41217
  command.params['project'] = project unless project.nil?
40598
41218
  command.query['filter'] = filter unless filter.nil?
40599
41219
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -40607,11 +41227,13 @@ module Google
40607
41227
  execute_or_queue_command(command, &block)
40608
41228
  end
40609
41229
 
40610
- # Deletes the specified SslCertificate resource.
41230
+ # Deletes the specified SSL policy. The SSL policy resource can be deleted only
41231
+ # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
40611
41232
  # @param [String] project
40612
41233
  # Project ID for this request.
40613
- # @param [String] ssl_certificate
40614
- # Name of the SslCertificate resource to delete.
41234
+ # @param [String] ssl_policy
41235
+ # Name of the SSL policy to delete. The name must be 1-63 characters long, and
41236
+ # comply with RFC1035.
40615
41237
  # @param [String] request_id
40616
41238
  # An optional request ID to identify requests. Specify a unique request ID so
40617
41239
  # that if you must retry your request, the server will know to ignore the
@@ -40641,12 +41263,12 @@ module Google
40641
41263
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40642
41264
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40643
41265
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40644
- def delete_ssl_certificate(project, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40645
- command = make_simple_command(:delete, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
41266
+ def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41267
+ command = make_simple_command(:delete, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
40646
41268
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
40647
41269
  command.response_class = Google::Apis::ComputeAlpha::Operation
40648
41270
  command.params['project'] = project unless project.nil?
40649
- command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
41271
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
40650
41272
  command.query['requestId'] = request_id unless request_id.nil?
40651
41273
  command.query['fields'] = fields unless fields.nil?
40652
41274
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -40654,11 +41276,12 @@ module Google
40654
41276
  execute_or_queue_command(command, &block)
40655
41277
  end
40656
41278
 
40657
- # Returns the specified SslCertificate resource.
41279
+ # Lists all of the ordered rules present in a single specified policy.
40658
41280
  # @param [String] project
40659
41281
  # Project ID for this request.
40660
- # @param [String] ssl_certificate
40661
- # Name of the SslCertificate resource to return.
41282
+ # @param [String] ssl_policy
41283
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
41284
+ # comply with RFC1035.
40662
41285
  # @param [String] fields
40663
41286
  # Selector specifying which fields to include in a partial response.
40664
41287
  # @param [String] quota_user
@@ -40670,31 +41293,30 @@ module Google
40670
41293
  # Request-specific options
40671
41294
  #
40672
41295
  # @yield [result, err] Result & error if block supplied
40673
- # @yieldparam result [Google::Apis::ComputeAlpha::SslCertificate] parsed result object
41296
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslPolicy] parsed result object
40674
41297
  # @yieldparam err [StandardError] error object if request failed
40675
41298
  #
40676
- # @return [Google::Apis::ComputeAlpha::SslCertificate]
41299
+ # @return [Google::Apis::ComputeAlpha::SslPolicy]
40677
41300
  #
40678
41301
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40679
41302
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40680
41303
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40681
- def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40682
- command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
40683
- command.response_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation
40684
- command.response_class = Google::Apis::ComputeAlpha::SslCertificate
41304
+ def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41305
+ command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41306
+ command.response_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation
41307
+ command.response_class = Google::Apis::ComputeAlpha::SslPolicy
40685
41308
  command.params['project'] = project unless project.nil?
40686
- command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
41309
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
40687
41310
  command.query['fields'] = fields unless fields.nil?
40688
41311
  command.query['quotaUser'] = quota_user unless quota_user.nil?
40689
41312
  command.query['userIp'] = user_ip unless user_ip.nil?
40690
41313
  execute_or_queue_command(command, &block)
40691
41314
  end
40692
41315
 
40693
- # Creates a SslCertificate resource in the specified project using the data
40694
- # included in the request.
41316
+ # Returns the specified SSL policy resource.
40695
41317
  # @param [String] project
40696
41318
  # Project ID for this request.
40697
- # @param [Google::Apis::ComputeAlpha::SslCertificate] ssl_certificate_object
41319
+ # @param [Google::Apis::ComputeAlpha::SslPolicy] ssl_policy_object
40698
41320
  # @param [String] request_id
40699
41321
  # An optional request ID to identify requests. Specify a unique request ID so
40700
41322
  # that if you must retry your request, the server will know to ignore the
@@ -40724,10 +41346,10 @@ module Google
40724
41346
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40725
41347
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40726
41348
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40727
- def insert_ssl_certificate(project, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40728
- command = make_simple_command(:post, 'projects/{project}/global/sslCertificates', options)
40729
- command.request_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation
40730
- command.request_object = ssl_certificate_object
41349
+ def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41350
+ command = make_simple_command(:post, 'projects/{project}/global/sslPolicies', options)
41351
+ command.request_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation
41352
+ command.request_object = ssl_policy_object
40731
41353
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
40732
41354
  command.response_class = Google::Apis::ComputeAlpha::Operation
40733
41355
  command.params['project'] = project unless project.nil?
@@ -40738,8 +41360,7 @@ module Google
40738
41360
  execute_or_queue_command(command, &block)
40739
41361
  end
40740
41362
 
40741
- # Retrieves the list of SslCertificate resources available to the specified
40742
- # project.
41363
+ # Lists all the SSL policies that have been configured for the specified project.
40743
41364
  # @param [String] project
40744
41365
  # Project ID for this request.
40745
41366
  # @param [String] filter
@@ -40803,18 +41424,107 @@ module Google
40803
41424
  # Request-specific options
40804
41425
  #
40805
41426
  # @yield [result, err] Result & error if block supplied
40806
- # @yieldparam result [Google::Apis::ComputeAlpha::SslCertificateList] parsed result object
41427
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslPoliciesList] parsed result object
40807
41428
  # @yieldparam err [StandardError] error object if request failed
40808
41429
  #
40809
- # @return [Google::Apis::ComputeAlpha::SslCertificateList]
41430
+ # @return [Google::Apis::ComputeAlpha::SslPoliciesList]
40810
41431
  #
40811
41432
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40812
41433
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40813
41434
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40814
- def list_ssl_certificates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40815
- command = make_simple_command(:get, 'projects/{project}/global/sslCertificates', options)
40816
- command.response_representation = Google::Apis::ComputeAlpha::SslCertificateList::Representation
40817
- command.response_class = Google::Apis::ComputeAlpha::SslCertificateList
41435
+ def list_ssl_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41436
+ command = make_simple_command(:get, 'projects/{project}/global/sslPolicies', options)
41437
+ command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesList::Representation
41438
+ command.response_class = Google::Apis::ComputeAlpha::SslPoliciesList
41439
+ command.params['project'] = project unless project.nil?
41440
+ command.query['filter'] = filter unless filter.nil?
41441
+ command.query['maxResults'] = max_results unless max_results.nil?
41442
+ command.query['orderBy'] = order_by unless order_by.nil?
41443
+ command.query['pageToken'] = page_token unless page_token.nil?
41444
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41445
+ command.query['fields'] = fields unless fields.nil?
41446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41447
+ command.query['userIp'] = user_ip unless user_ip.nil?
41448
+ execute_or_queue_command(command, &block)
41449
+ end
41450
+
41451
+ # Lists all features that can be specified in the SSL policy when using custom
41452
+ # profile.
41453
+ # @param [String] project
41454
+ # Project ID for this request.
41455
+ # @param [String] filter
41456
+ # A filter expression that filters resources listed in the response. Most
41457
+ # Compute resources support two types of filter expressions: expressions that
41458
+ # support regular expressions and expressions that follow API improvement
41459
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
41460
+ # field name, an operator, and the value that you want to use for filtering. The
41461
+ # value must be a string, a number, or a boolean. The operator must be either `=`
41462
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41463
+ # Engine instances, you can exclude instances named `example-instance` by
41464
+ # specifying `name != example-instance`. The `:` operator can be used with
41465
+ # string fields to match substrings. For non-string fields it is equivalent to
41466
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
41467
+ # been defined. For example, to find all objects with `owner` label use: ```
41468
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
41469
+ # specify `scheduling.automaticRestart = false` to include instances only if
41470
+ # they are not scheduled for automatic restarts. You can use filtering on nested
41471
+ # fields to filter based on resource labels. To filter on multiple expressions,
41472
+ # provide each separate expression within parentheses. For example: ``` (
41473
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
41474
+ # default, each expression is an `AND` expression. However, you can include `AND`
41475
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
41476
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
41477
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
41478
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
41479
+ # expression with or without quotes or against multiple parenthesized
41480
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
41481
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
41482
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
41483
+ # regular expression using Google RE2 library syntax. The literal value must
41484
+ # match the entire field. For example, to filter for instances that do not end
41485
+ # with name "instance", you would use `name ne .*instance`.
41486
+ # @param [Fixnum] max_results
41487
+ # The maximum number of results per page that should be returned. If the number
41488
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41489
+ # nextPageToken` that can be used to get the next page of results in subsequent
41490
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41491
+ # @param [String] order_by
41492
+ # Sorts list results by a certain order. By default, results are returned in
41493
+ # alphanumerical order based on the resource name. You can also sort results in
41494
+ # descending order based on the creation timestamp using `orderBy="
41495
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41496
+ # field in reverse chronological order (newest result first). Use this to sort
41497
+ # resources like operations so that the newest operation is returned first.
41498
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41499
+ # @param [String] page_token
41500
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41501
+ # by a previous list request to get the next page of results.
41502
+ # @param [Boolean] return_partial_success
41503
+ # Opt-in for partial success behavior which provides partial results in case of
41504
+ # failure. The default value is false.
41505
+ # @param [String] fields
41506
+ # Selector specifying which fields to include in a partial response.
41507
+ # @param [String] quota_user
41508
+ # Available to use for quota purposes for server-side applications. Can be any
41509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41510
+ # @param [String] user_ip
41511
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41512
+ # @param [Google::Apis::RequestOptions] options
41513
+ # Request-specific options
41514
+ #
41515
+ # @yield [result, err] Result & error if block supplied
41516
+ # @yieldparam result [Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse] parsed result object
41517
+ # @yieldparam err [StandardError] error object if request failed
41518
+ #
41519
+ # @return [Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse]
41520
+ #
41521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41524
+ def list_ssl_policy_available_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41525
+ command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/listAvailableFeatures', options)
41526
+ command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse::Representation
41527
+ command.response_class = Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse
40818
41528
  command.params['project'] = project unless project.nil?
40819
41529
  command.query['filter'] = filter unless filter.nil?
40820
41530
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -40827,6 +41537,57 @@ module Google
40827
41537
  execute_or_queue_command(command, &block)
40828
41538
  end
40829
41539
 
41540
+ # Patches the specified SSL policy with the data included in the request.
41541
+ # @param [String] project
41542
+ # Project ID for this request.
41543
+ # @param [String] ssl_policy
41544
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
41545
+ # comply with RFC1035.
41546
+ # @param [Google::Apis::ComputeAlpha::SslPolicy] ssl_policy_object
41547
+ # @param [String] request_id
41548
+ # An optional request ID to identify requests. Specify a unique request ID so
41549
+ # that if you must retry your request, the server will know to ignore the
41550
+ # request if it has already been completed. For example, consider a situation
41551
+ # where you make an initial request and the request times out. If you make the
41552
+ # request again with the same request ID, the server can check if original
41553
+ # operation with the same request ID was received, and if so, will ignore the
41554
+ # second request. This prevents clients from accidentally creating duplicate
41555
+ # commitments. The request ID must be a valid UUID with the exception that zero
41556
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41557
+ # @param [String] fields
41558
+ # Selector specifying which fields to include in a partial response.
41559
+ # @param [String] quota_user
41560
+ # Available to use for quota purposes for server-side applications. Can be any
41561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41562
+ # @param [String] user_ip
41563
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41564
+ # @param [Google::Apis::RequestOptions] options
41565
+ # Request-specific options
41566
+ #
41567
+ # @yield [result, err] Result & error if block supplied
41568
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41569
+ # @yieldparam err [StandardError] error object if request failed
41570
+ #
41571
+ # @return [Google::Apis::ComputeAlpha::Operation]
41572
+ #
41573
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41574
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41575
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41576
+ def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41577
+ command = make_simple_command(:patch, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41578
+ command.request_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation
41579
+ command.request_object = ssl_policy_object
41580
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41581
+ command.response_class = Google::Apis::ComputeAlpha::Operation
41582
+ command.params['project'] = project unless project.nil?
41583
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41584
+ command.query['requestId'] = request_id unless request_id.nil?
41585
+ command.query['fields'] = fields unless fields.nil?
41586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41587
+ command.query['userIp'] = user_ip unless user_ip.nil?
41588
+ execute_or_queue_command(command, &block)
41589
+ end
41590
+
40830
41591
  # Returns permissions that a caller has on the specified resource.
40831
41592
  # @param [String] project
40832
41593
  # Project ID for this request.
@@ -40852,8 +41613,8 @@ module Google
40852
41613
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40853
41614
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40854
41615
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40855
- def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40856
- command = make_simple_command(:post, 'projects/{project}/global/sslCertificates/{resource}/testIamPermissions', options)
41616
+ def test_ssl_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41617
+ command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/testIamPermissions', options)
40857
41618
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
40858
41619
  command.request_object = test_permissions_request_object
40859
41620
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
@@ -40866,10 +41627,9 @@ module Google
40866
41627
  execute_or_queue_command(command, &block)
40867
41628
  end
40868
41629
 
40869
- # Retrieves the list of all SslPolicy resources, regional and global, available
40870
- # to the specified project.
41630
+ # Retrieves an aggregated list of storage pools.
40871
41631
  # @param [String] project
40872
- # Name of the project scoping this request.
41632
+ # Project ID for this request.
40873
41633
  # @param [String] filter
40874
41634
  # A filter expression that filters resources listed in the response. Most
40875
41635
  # Compute resources support two types of filter expressions: expressions that
@@ -40938,18 +41698,18 @@ module Google
40938
41698
  # Request-specific options
40939
41699
  #
40940
41700
  # @yield [result, err] Result & error if block supplied
40941
- # @yieldparam result [Google::Apis::ComputeAlpha::SslPoliciesAggregatedList] parsed result object
41701
+ # @yieldparam result [Google::Apis::ComputeAlpha::StoragePoolAggregatedList] parsed result object
40942
41702
  # @yieldparam err [StandardError] error object if request failed
40943
41703
  #
40944
- # @return [Google::Apis::ComputeAlpha::SslPoliciesAggregatedList]
41704
+ # @return [Google::Apis::ComputeAlpha::StoragePoolAggregatedList]
40945
41705
  #
40946
41706
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40947
41707
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40948
41708
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40949
- def aggregated_ssl_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40950
- command = make_simple_command(:get, 'projects/{project}/aggregated/sslPolicies', options)
40951
- command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesAggregatedList::Representation
40952
- command.response_class = Google::Apis::ComputeAlpha::SslPoliciesAggregatedList
41709
+ def aggregated_storage_pool_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41710
+ command = make_simple_command(:get, 'projects/{project}/aggregated/storagePools', options)
41711
+ command.response_representation = Google::Apis::ComputeAlpha::StoragePoolAggregatedList::Representation
41712
+ command.response_class = Google::Apis::ComputeAlpha::StoragePoolAggregatedList
40953
41713
  command.params['project'] = project unless project.nil?
40954
41714
  command.query['filter'] = filter unless filter.nil?
40955
41715
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -40963,13 +41723,16 @@ module Google
40963
41723
  execute_or_queue_command(command, &block)
40964
41724
  end
40965
41725
 
40966
- # Deletes the specified SSL policy. The SSL policy resource can be deleted only
40967
- # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
41726
+ # Deletes the specified storage pool. Deleting a storagePool removes its data
41727
+ # permanently and is irreversible. However, deleting a storagePool does not
41728
+ # delete any snapshots previously made from the storagePool. You must separately
41729
+ # delete snapshots.
40968
41730
  # @param [String] project
40969
41731
  # Project ID for this request.
40970
- # @param [String] ssl_policy
40971
- # Name of the SSL policy to delete. The name must be 1-63 characters long, and
40972
- # comply with RFC1035.
41732
+ # @param [String] zone
41733
+ # The name of the zone for this request.
41734
+ # @param [String] storage_pool
41735
+ # Name of the storage pool to delete.
40973
41736
  # @param [String] request_id
40974
41737
  # An optional request ID to identify requests. Specify a unique request ID so
40975
41738
  # that if you must retry your request, the server will know to ignore the
@@ -40999,12 +41762,13 @@ module Google
40999
41762
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41000
41763
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41001
41764
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41002
- def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41003
- command = make_simple_command(:delete, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41765
+ def delete_storage_pool(project, zone, storage_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41766
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
41004
41767
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41005
41768
  command.response_class = Google::Apis::ComputeAlpha::Operation
41006
41769
  command.params['project'] = project unless project.nil?
41007
- command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41770
+ command.params['zone'] = zone unless zone.nil?
41771
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
41008
41772
  command.query['requestId'] = request_id unless request_id.nil?
41009
41773
  command.query['fields'] = fields unless fields.nil?
41010
41774
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41012,12 +41776,14 @@ module Google
41012
41776
  execute_or_queue_command(command, &block)
41013
41777
  end
41014
41778
 
41015
- # Lists all of the ordered rules present in a single specified policy.
41779
+ # Returns a specified storage pool. Gets a list of available storage pools by
41780
+ # making a list() request.
41016
41781
  # @param [String] project
41017
41782
  # Project ID for this request.
41018
- # @param [String] ssl_policy
41019
- # Name of the SSL policy to update. The name must be 1-63 characters long, and
41020
- # comply with RFC1035.
41783
+ # @param [String] zone
41784
+ # The name of the zone for this request.
41785
+ # @param [String] storage_pool
41786
+ # Name of the storage pool to return.
41021
41787
  # @param [String] fields
41022
41788
  # Selector specifying which fields to include in a partial response.
41023
41789
  # @param [String] quota_user
@@ -41029,30 +41795,76 @@ module Google
41029
41795
  # Request-specific options
41030
41796
  #
41031
41797
  # @yield [result, err] Result & error if block supplied
41032
- # @yieldparam result [Google::Apis::ComputeAlpha::SslPolicy] parsed result object
41798
+ # @yieldparam result [Google::Apis::ComputeAlpha::StoragePool] parsed result object
41033
41799
  # @yieldparam err [StandardError] error object if request failed
41034
41800
  #
41035
- # @return [Google::Apis::ComputeAlpha::SslPolicy]
41801
+ # @return [Google::Apis::ComputeAlpha::StoragePool]
41036
41802
  #
41037
41803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41038
41804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41039
41805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41040
- def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41041
- command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41042
- command.response_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation
41043
- command.response_class = Google::Apis::ComputeAlpha::SslPolicy
41806
+ def get_storage_pool(project, zone, storage_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41807
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
41808
+ command.response_representation = Google::Apis::ComputeAlpha::StoragePool::Representation
41809
+ command.response_class = Google::Apis::ComputeAlpha::StoragePool
41044
41810
  command.params['project'] = project unless project.nil?
41045
- command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41811
+ command.params['zone'] = zone unless zone.nil?
41812
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
41046
41813
  command.query['fields'] = fields unless fields.nil?
41047
41814
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41048
41815
  command.query['userIp'] = user_ip unless user_ip.nil?
41049
41816
  execute_or_queue_command(command, &block)
41050
41817
  end
41051
41818
 
41052
- # Returns the specified SSL policy resource.
41819
+ # Gets the access control policy for a resource. May be empty if no such policy
41820
+ # or resource exists.
41053
41821
  # @param [String] project
41054
41822
  # Project ID for this request.
41055
- # @param [Google::Apis::ComputeAlpha::SslPolicy] ssl_policy_object
41823
+ # @param [String] zone
41824
+ # The name of the zone for this request.
41825
+ # @param [String] resource
41826
+ # Name or id of the resource for this request.
41827
+ # @param [Fixnum] options_requested_policy_version
41828
+ # Requested IAM Policy version.
41829
+ # @param [String] fields
41830
+ # Selector specifying which fields to include in a partial response.
41831
+ # @param [String] quota_user
41832
+ # Available to use for quota purposes for server-side applications. Can be any
41833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41834
+ # @param [String] user_ip
41835
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41836
+ # @param [Google::Apis::RequestOptions] options
41837
+ # Request-specific options
41838
+ #
41839
+ # @yield [result, err] Result & error if block supplied
41840
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
41841
+ # @yieldparam err [StandardError] error object if request failed
41842
+ #
41843
+ # @return [Google::Apis::ComputeAlpha::Policy]
41844
+ #
41845
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41846
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41847
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41848
+ def get_storage_pool_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41849
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy', options)
41850
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
41851
+ command.response_class = Google::Apis::ComputeAlpha::Policy
41852
+ command.params['project'] = project unless project.nil?
41853
+ command.params['zone'] = zone unless zone.nil?
41854
+ command.params['resource'] = resource unless resource.nil?
41855
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
41856
+ command.query['fields'] = fields unless fields.nil?
41857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41858
+ command.query['userIp'] = user_ip unless user_ip.nil?
41859
+ execute_or_queue_command(command, &block)
41860
+ end
41861
+
41862
+ # Creates a storage pool in the specified project using the data in the request.
41863
+ # @param [String] project
41864
+ # Project ID for this request.
41865
+ # @param [String] zone
41866
+ # The name of the zone for this request.
41867
+ # @param [Google::Apis::ComputeAlpha::StoragePool] storage_pool_object
41056
41868
  # @param [String] request_id
41057
41869
  # An optional request ID to identify requests. Specify a unique request ID so
41058
41870
  # that if you must retry your request, the server will know to ignore the
@@ -41082,13 +41894,14 @@ module Google
41082
41894
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41083
41895
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41084
41896
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41085
- def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41086
- command = make_simple_command(:post, 'projects/{project}/global/sslPolicies', options)
41087
- command.request_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation
41088
- command.request_object = ssl_policy_object
41897
+ def insert_storage_pool(project, zone, storage_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41898
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools', options)
41899
+ command.request_representation = Google::Apis::ComputeAlpha::StoragePool::Representation
41900
+ command.request_object = storage_pool_object
41089
41901
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41090
41902
  command.response_class = Google::Apis::ComputeAlpha::Operation
41091
41903
  command.params['project'] = project unless project.nil?
41904
+ command.params['zone'] = zone unless zone.nil?
41092
41905
  command.query['requestId'] = request_id unless request_id.nil?
41093
41906
  command.query['fields'] = fields unless fields.nil?
41094
41907
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41096,9 +41909,11 @@ module Google
41096
41909
  execute_or_queue_command(command, &block)
41097
41910
  end
41098
41911
 
41099
- # Lists all the SSL policies that have been configured for the specified project.
41912
+ # Retrieves a list of storage pools contained within the specified zone.
41100
41913
  # @param [String] project
41101
41914
  # Project ID for this request.
41915
+ # @param [String] zone
41916
+ # The name of the zone for this request.
41102
41917
  # @param [String] filter
41103
41918
  # A filter expression that filters resources listed in the response. Most
41104
41919
  # Compute resources support two types of filter expressions: expressions that
@@ -41160,19 +41975,20 @@ module Google
41160
41975
  # Request-specific options
41161
41976
  #
41162
41977
  # @yield [result, err] Result & error if block supplied
41163
- # @yieldparam result [Google::Apis::ComputeAlpha::SslPoliciesList] parsed result object
41978
+ # @yieldparam result [Google::Apis::ComputeAlpha::StoragePoolList] parsed result object
41164
41979
  # @yieldparam err [StandardError] error object if request failed
41165
41980
  #
41166
- # @return [Google::Apis::ComputeAlpha::SslPoliciesList]
41981
+ # @return [Google::Apis::ComputeAlpha::StoragePoolList]
41167
41982
  #
41168
41983
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41169
41984
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41170
41985
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41171
- def list_ssl_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41172
- command = make_simple_command(:get, 'projects/{project}/global/sslPolicies', options)
41173
- command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesList::Representation
41174
- command.response_class = Google::Apis::ComputeAlpha::SslPoliciesList
41986
+ def list_storage_pools(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41987
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools', options)
41988
+ command.response_representation = Google::Apis::ComputeAlpha::StoragePoolList::Representation
41989
+ command.response_class = Google::Apis::ComputeAlpha::StoragePoolList
41175
41990
  command.params['project'] = project unless project.nil?
41991
+ command.params['zone'] = zone unless zone.nil?
41176
41992
  command.query['filter'] = filter unless filter.nil?
41177
41993
  command.query['maxResults'] = max_results unless max_results.nil?
41178
41994
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -41184,60 +42000,15 @@ module Google
41184
42000
  execute_or_queue_command(command, &block)
41185
42001
  end
41186
42002
 
41187
- # Lists all features that can be specified in the SSL policy when using custom
41188
- # profile.
42003
+ # Sets the access control policy on the specified resource. Replaces any
42004
+ # existing policy.
41189
42005
  # @param [String] project
41190
42006
  # Project ID for this request.
41191
- # @param [String] filter
41192
- # A filter expression that filters resources listed in the response. Most
41193
- # Compute resources support two types of filter expressions: expressions that
41194
- # support regular expressions and expressions that follow API improvement
41195
- # proposal AIP-160. If you want to use AIP-160, your expression must specify the
41196
- # field name, an operator, and the value that you want to use for filtering. The
41197
- # value must be a string, a number, or a boolean. The operator must be either `=`
41198
- # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41199
- # Engine instances, you can exclude instances named `example-instance` by
41200
- # specifying `name != example-instance`. The `:` operator can be used with
41201
- # string fields to match substrings. For non-string fields it is equivalent to
41202
- # the `=` operator. The `:*` comparison can be used to test whether a key has
41203
- # been defined. For example, to find all objects with `owner` label use: ```
41204
- # labels.owner:* ``` You can also filter nested fields. For example, you could
41205
- # specify `scheduling.automaticRestart = false` to include instances only if
41206
- # they are not scheduled for automatic restarts. You can use filtering on nested
41207
- # fields to filter based on resource labels. To filter on multiple expressions,
41208
- # provide each separate expression within parentheses. For example: ``` (
41209
- # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
41210
- # default, each expression is an `AND` expression. However, you can include `AND`
41211
- # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
41212
- # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
41213
- # automaticRestart = true) ``` If you want to use a regular expression, use the `
41214
- # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
41215
- # expression with or without quotes or against multiple parenthesized
41216
- # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
41217
- # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
41218
- # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
41219
- # regular expression using Google RE2 library syntax. The literal value must
41220
- # match the entire field. For example, to filter for instances that do not end
41221
- # with name "instance", you would use `name ne .*instance`.
41222
- # @param [Fixnum] max_results
41223
- # The maximum number of results per page that should be returned. If the number
41224
- # of available results is larger than `maxResults`, Compute Engine returns a `
41225
- # nextPageToken` that can be used to get the next page of results in subsequent
41226
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41227
- # @param [String] order_by
41228
- # Sorts list results by a certain order. By default, results are returned in
41229
- # alphanumerical order based on the resource name. You can also sort results in
41230
- # descending order based on the creation timestamp using `orderBy="
41231
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41232
- # field in reverse chronological order (newest result first). Use this to sort
41233
- # resources like operations so that the newest operation is returned first.
41234
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41235
- # @param [String] page_token
41236
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41237
- # by a previous list request to get the next page of results.
41238
- # @param [Boolean] return_partial_success
41239
- # Opt-in for partial success behavior which provides partial results in case of
41240
- # failure. The default value is false.
42007
+ # @param [String] zone
42008
+ # The name of the zone for this request.
42009
+ # @param [String] resource
42010
+ # Name or id of the resource for this request.
42011
+ # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
41241
42012
  # @param [String] fields
41242
42013
  # Selector specifying which fields to include in a partial response.
41243
42014
  # @param [String] quota_user
@@ -41249,37 +42020,38 @@ module Google
41249
42020
  # Request-specific options
41250
42021
  #
41251
42022
  # @yield [result, err] Result & error if block supplied
41252
- # @yieldparam result [Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse] parsed result object
42023
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
41253
42024
  # @yieldparam err [StandardError] error object if request failed
41254
42025
  #
41255
- # @return [Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse]
42026
+ # @return [Google::Apis::ComputeAlpha::Policy]
41256
42027
  #
41257
42028
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41258
42029
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41259
42030
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41260
- def list_ssl_policy_available_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41261
- command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/listAvailableFeatures', options)
41262
- command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse::Representation
41263
- command.response_class = Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse
42031
+ def set_storage_pool_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42032
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy', options)
42033
+ command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
42034
+ command.request_object = zone_set_policy_request_object
42035
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
42036
+ command.response_class = Google::Apis::ComputeAlpha::Policy
41264
42037
  command.params['project'] = project unless project.nil?
41265
- command.query['filter'] = filter unless filter.nil?
41266
- command.query['maxResults'] = max_results unless max_results.nil?
41267
- command.query['orderBy'] = order_by unless order_by.nil?
41268
- command.query['pageToken'] = page_token unless page_token.nil?
41269
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42038
+ command.params['zone'] = zone unless zone.nil?
42039
+ command.params['resource'] = resource unless resource.nil?
41270
42040
  command.query['fields'] = fields unless fields.nil?
41271
42041
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41272
42042
  command.query['userIp'] = user_ip unless user_ip.nil?
41273
42043
  execute_or_queue_command(command, &block)
41274
42044
  end
41275
42045
 
41276
- # Patches the specified SSL policy with the data included in the request.
42046
+ # Sets the labels on a storage pools. To learn more about labels, read the
42047
+ # Labeling Resources documentation.
41277
42048
  # @param [String] project
41278
42049
  # Project ID for this request.
41279
- # @param [String] ssl_policy
41280
- # Name of the SSL policy to update. The name must be 1-63 characters long, and
41281
- # comply with RFC1035.
41282
- # @param [Google::Apis::ComputeAlpha::SslPolicy] ssl_policy_object
42050
+ # @param [String] zone
42051
+ # The name of the zone for this request.
42052
+ # @param [String] resource
42053
+ # Name or id of the resource for this request.
42054
+ # @param [Google::Apis::ComputeAlpha::ZoneSetLabelsRequest] zone_set_labels_request_object
41283
42055
  # @param [String] request_id
41284
42056
  # An optional request ID to identify requests. Specify a unique request ID so
41285
42057
  # that if you must retry your request, the server will know to ignore the
@@ -41309,14 +42081,15 @@ module Google
41309
42081
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41310
42082
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41311
42083
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41312
- def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41313
- command = make_simple_command(:patch, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41314
- command.request_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation
41315
- command.request_object = ssl_policy_object
42084
+ def set_storage_pool_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42085
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/setLabels', options)
42086
+ command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation
42087
+ command.request_object = zone_set_labels_request_object
41316
42088
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41317
42089
  command.response_class = Google::Apis::ComputeAlpha::Operation
41318
42090
  command.params['project'] = project unless project.nil?
41319
- command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
42091
+ command.params['zone'] = zone unless zone.nil?
42092
+ command.params['resource'] = resource unless resource.nil?
41320
42093
  command.query['requestId'] = request_id unless request_id.nil?
41321
42094
  command.query['fields'] = fields unless fields.nil?
41322
42095
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41327,6 +42100,8 @@ module Google
41327
42100
  # Returns permissions that a caller has on the specified resource.
41328
42101
  # @param [String] project
41329
42102
  # Project ID for this request.
42103
+ # @param [String] zone
42104
+ # The name of the zone for this request.
41330
42105
  # @param [String] resource
41331
42106
  # Name or id of the resource for this request.
41332
42107
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -41349,13 +42124,14 @@ module Google
41349
42124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41350
42125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41351
42126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41352
- def test_ssl_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41353
- command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/testIamPermissions', options)
42127
+ def test_storage_pool_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42128
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions', options)
41354
42129
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
41355
42130
  command.request_object = test_permissions_request_object
41356
42131
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
41357
42132
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
41358
42133
  command.params['project'] = project unless project.nil?
42134
+ command.params['zone'] = zone unless zone.nil?
41359
42135
  command.params['resource'] = resource unless resource.nil?
41360
42136
  command.query['fields'] = fields unless fields.nil?
41361
42137
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41363,6 +42139,64 @@ module Google
41363
42139
  execute_or_queue_command(command, &block)
41364
42140
  end
41365
42141
 
42142
+ # Updates the specified storagePool with the data included in the request. The
42143
+ # update is performed only on selected fields included as part of update-mask.
42144
+ # Only the following fields can be modified: size_tb and provisioned_iops.
42145
+ # @param [String] project
42146
+ # Project ID for this request.
42147
+ # @param [String] zone
42148
+ # The name of the zone for this request.
42149
+ # @param [String] storage_pool
42150
+ # The storagePool name for this request.
42151
+ # @param [Google::Apis::ComputeAlpha::StoragePool] storage_pool_object
42152
+ # @param [String] request_id
42153
+ # An optional request ID to identify requests. Specify a unique request ID so
42154
+ # that if you must retry your request, the server will know to ignore the
42155
+ # request if it has already been completed. For example, consider a situation
42156
+ # where you make an initial request and the request times out. If you make the
42157
+ # request again with the same request ID, the server can check if original
42158
+ # operation with the same request ID was received, and if so, will ignore the
42159
+ # second request. This prevents clients from accidentally creating duplicate
42160
+ # commitments. The request ID must be a valid UUID with the exception that zero
42161
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42162
+ # @param [String] update_mask
42163
+ # update_mask indicates fields to be updated as part of this request.
42164
+ # @param [String] fields
42165
+ # Selector specifying which fields to include in a partial response.
42166
+ # @param [String] quota_user
42167
+ # Available to use for quota purposes for server-side applications. Can be any
42168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42169
+ # @param [String] user_ip
42170
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42171
+ # @param [Google::Apis::RequestOptions] options
42172
+ # Request-specific options
42173
+ #
42174
+ # @yield [result, err] Result & error if block supplied
42175
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42176
+ # @yieldparam err [StandardError] error object if request failed
42177
+ #
42178
+ # @return [Google::Apis::ComputeAlpha::Operation]
42179
+ #
42180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42183
+ def update_storage_pool(project, zone, storage_pool, storage_pool_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42184
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
42185
+ command.request_representation = Google::Apis::ComputeAlpha::StoragePool::Representation
42186
+ command.request_object = storage_pool_object
42187
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42188
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42189
+ command.params['project'] = project unless project.nil?
42190
+ command.params['zone'] = zone unless zone.nil?
42191
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
42192
+ command.query['requestId'] = request_id unless request_id.nil?
42193
+ command.query['updateMask'] = update_mask unless update_mask.nil?
42194
+ command.query['fields'] = fields unless fields.nil?
42195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42196
+ command.query['userIp'] = user_ip unless user_ip.nil?
42197
+ execute_or_queue_command(command, &block)
42198
+ end
42199
+
41366
42200
  # Retrieves an aggregated list of subnetworks.
41367
42201
  # @param [String] project
41368
42202
  # Project ID for this request.
@@ -43843,6 +44677,61 @@ module Google
43843
44677
  execute_or_queue_command(command, &block)
43844
44678
  end
43845
44679
 
44680
+ # Sets the Google Cloud Armor security policy for the specified target instance.
44681
+ # For more information, see Google Cloud Armor Overview
44682
+ # @param [String] project
44683
+ # Project ID for this request.
44684
+ # @param [String] zone
44685
+ # Name of the zone scoping this request.
44686
+ # @param [String] target_instance
44687
+ # Name of the TargetInstance resource to which the security policy should be set.
44688
+ # The name should conform to RFC1035.
44689
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyReference] security_policy_reference_object
44690
+ # @param [String] request_id
44691
+ # An optional request ID to identify requests. Specify a unique request ID so
44692
+ # that if you must retry your request, the server will know to ignore the
44693
+ # request if it has already been completed. For example, consider a situation
44694
+ # where you make an initial request and the request times out. If you make the
44695
+ # request again with the same request ID, the server can check if original
44696
+ # operation with the same request ID was received, and if so, will ignore the
44697
+ # second request. This prevents clients from accidentally creating duplicate
44698
+ # commitments. The request ID must be a valid UUID with the exception that zero
44699
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
44700
+ # @param [String] fields
44701
+ # Selector specifying which fields to include in a partial response.
44702
+ # @param [String] quota_user
44703
+ # Available to use for quota purposes for server-side applications. Can be any
44704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44705
+ # @param [String] user_ip
44706
+ # Legacy name for parameter that has been superseded by `quotaUser`.
44707
+ # @param [Google::Apis::RequestOptions] options
44708
+ # Request-specific options
44709
+ #
44710
+ # @yield [result, err] Result & error if block supplied
44711
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
44712
+ # @yieldparam err [StandardError] error object if request failed
44713
+ #
44714
+ # @return [Google::Apis::ComputeAlpha::Operation]
44715
+ #
44716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
44717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
44718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
44719
+ def set_target_instance_security_policy(project, zone, target_instance, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
44720
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy', options)
44721
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyReference::Representation
44722
+ command.request_object = security_policy_reference_object
44723
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
44724
+ command.response_class = Google::Apis::ComputeAlpha::Operation
44725
+ command.params['project'] = project unless project.nil?
44726
+ command.params['zone'] = zone unless zone.nil?
44727
+ command.params['targetInstance'] = target_instance unless target_instance.nil?
44728
+ command.query['requestId'] = request_id unless request_id.nil?
44729
+ command.query['fields'] = fields unless fields.nil?
44730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
44731
+ command.query['userIp'] = user_ip unless user_ip.nil?
44732
+ execute_or_queue_command(command, &block)
44733
+ end
44734
+
43846
44735
  # Returns permissions that a caller has on the specified resource.
43847
44736
  # @param [String] project
43848
44737
  # Project ID for this request.
@@ -44523,6 +45412,61 @@ module Google
44523
45412
  execute_or_queue_command(command, &block)
44524
45413
  end
44525
45414
 
45415
+ # Sets the Google Cloud Armor security policy for the specified target pool. For
45416
+ # more information, see Google Cloud Armor Overview
45417
+ # @param [String] project
45418
+ # Project ID for this request.
45419
+ # @param [String] region
45420
+ # Name of the region scoping this request.
45421
+ # @param [String] target_pool
45422
+ # Name of the TargetPool resource to which the security policy should be set.
45423
+ # The name should conform to RFC1035.
45424
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyReference] security_policy_reference_object
45425
+ # @param [String] request_id
45426
+ # An optional request ID to identify requests. Specify a unique request ID so
45427
+ # that if you must retry your request, the server will know to ignore the
45428
+ # request if it has already been completed. For example, consider a situation
45429
+ # where you make an initial request and the request times out. If you make the
45430
+ # request again with the same request ID, the server can check if original
45431
+ # operation with the same request ID was received, and if so, will ignore the
45432
+ # second request. This prevents clients from accidentally creating duplicate
45433
+ # commitments. The request ID must be a valid UUID with the exception that zero
45434
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
45435
+ # @param [String] fields
45436
+ # Selector specifying which fields to include in a partial response.
45437
+ # @param [String] quota_user
45438
+ # Available to use for quota purposes for server-side applications. Can be any
45439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45440
+ # @param [String] user_ip
45441
+ # Legacy name for parameter that has been superseded by `quotaUser`.
45442
+ # @param [Google::Apis::RequestOptions] options
45443
+ # Request-specific options
45444
+ #
45445
+ # @yield [result, err] Result & error if block supplied
45446
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
45447
+ # @yieldparam err [StandardError] error object if request failed
45448
+ #
45449
+ # @return [Google::Apis::ComputeAlpha::Operation]
45450
+ #
45451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
45452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
45453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
45454
+ def set_target_pool_security_policy(project, region, target_pool, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
45455
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy', options)
45456
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyReference::Representation
45457
+ command.request_object = security_policy_reference_object
45458
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
45459
+ command.response_class = Google::Apis::ComputeAlpha::Operation
45460
+ command.params['project'] = project unless project.nil?
45461
+ command.params['region'] = region unless region.nil?
45462
+ command.params['targetPool'] = target_pool unless target_pool.nil?
45463
+ command.query['requestId'] = request_id unless request_id.nil?
45464
+ command.query['fields'] = fields unless fields.nil?
45465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
45466
+ command.query['userIp'] = user_ip unless user_ip.nil?
45467
+ execute_or_queue_command(command, &block)
45468
+ end
45469
+
44526
45470
  # Returns permissions that a caller has on the specified resource.
44527
45471
  # @param [String] project
44528
45472
  # Project ID for this request.