google-apis-compute_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,7 +99,7 @@ module Google
99
99
  # by a previous list request to get the next page of results.
100
100
  # @param [Boolean] return_partial_success
101
101
  # Opt-in for partial success behavior which provides partial results in case of
102
- # failure. The default value is false and the logic is the same as today.
102
+ # failure. The default value is false.
103
103
  # @param [String] fields
104
104
  # Selector specifying which fields to include in a partial response.
105
105
  # @param [String] quota_user
@@ -217,7 +217,7 @@ module Google
217
217
  # by a previous list request to get the next page of results.
218
218
  # @param [Boolean] return_partial_success
219
219
  # Opt-in for partial success behavior which provides partial results in case of
220
- # failure. The default value is false and the logic is the same as today.
220
+ # failure. The default value is false.
221
221
  # @param [String] fields
222
222
  # Selector specifying which fields to include in a partial response.
223
223
  # @param [String] quota_user
@@ -300,7 +300,7 @@ module Google
300
300
  # by a previous list request to get the next page of results.
301
301
  # @param [Boolean] return_partial_success
302
302
  # Opt-in for partial success behavior which provides partial results in case of
303
- # failure. The default value is false and the logic is the same as today.
303
+ # failure. The default value is false.
304
304
  # @param [String] fields
305
305
  # Selector specifying which fields to include in a partial response.
306
306
  # @param [String] quota_user
@@ -520,7 +520,7 @@ module Google
520
520
  # by a previous list request to get the next page of results.
521
521
  # @param [Boolean] return_partial_success
522
522
  # Opt-in for partial success behavior which provides partial results in case of
523
- # failure. The default value is false and the logic is the same as today.
523
+ # failure. The default value is false.
524
524
  # @param [String] fields
525
525
  # Selector specifying which fields to include in a partial response.
526
526
  # @param [String] quota_user
@@ -603,7 +603,7 @@ module Google
603
603
  # by a previous list request to get the next page of results.
604
604
  # @param [Boolean] return_partial_success
605
605
  # Opt-in for partial success behavior which provides partial results in case of
606
- # failure. The default value is false and the logic is the same as today.
606
+ # failure. The default value is false.
607
607
  # @param [String] fields
608
608
  # Selector specifying which fields to include in a partial response.
609
609
  # @param [String] quota_user
@@ -824,7 +824,7 @@ module Google
824
824
  # by a previous list request to get the next page of results.
825
825
  # @param [Boolean] return_partial_success
826
826
  # Opt-in for partial success behavior which provides partial results in case of
827
- # failure. The default value is false and the logic is the same as today.
827
+ # failure. The default value is false.
828
828
  # @param [String] fields
829
829
  # Selector specifying which fields to include in a partial response.
830
830
  # @param [String] quota_user
@@ -1250,7 +1250,7 @@ module Google
1250
1250
  # by a previous list request to get the next page of results.
1251
1251
  # @param [Boolean] return_partial_success
1252
1252
  # Opt-in for partial success behavior which provides partial results in case of
1253
- # failure. The default value is false and the logic is the same as today.
1253
+ # failure. The default value is false.
1254
1254
  # @param [String] fields
1255
1255
  # Selector specifying which fields to include in a partial response.
1256
1256
  # @param [String] quota_user
@@ -1490,7 +1490,7 @@ module Google
1490
1490
  # by a previous list request to get the next page of results.
1491
1491
  # @param [Boolean] return_partial_success
1492
1492
  # Opt-in for partial success behavior which provides partial results in case of
1493
- # failure. The default value is false and the logic is the same as today.
1493
+ # failure. The default value is false.
1494
1494
  # @param [String] fields
1495
1495
  # Selector specifying which fields to include in a partial response.
1496
1496
  # @param [String] quota_user
@@ -1794,7 +1794,7 @@ module Google
1794
1794
  # by a previous list request to get the next page of results.
1795
1795
  # @param [Boolean] return_partial_success
1796
1796
  # Opt-in for partial success behavior which provides partial results in case of
1797
- # failure. The default value is false and the logic is the same as today.
1797
+ # failure. The default value is false.
1798
1798
  # @param [String] fields
1799
1799
  # Selector specifying which fields to include in a partial response.
1800
1800
  # @param [String] quota_user
@@ -1884,7 +1884,8 @@ module Google
1884
1884
  execute_or_queue_command(command, &block)
1885
1885
  end
1886
1886
 
1887
- # Sets the security policy for the specified backend service.
1887
+ # Sets the Google Cloud Armor security policy for the specified backend service.
1888
+ # For more information, see Google Cloud Armor Overview
1888
1889
  # @param [String] project
1889
1890
  # Project ID for this request.
1890
1891
  # @param [String] backend_service
@@ -2034,7 +2035,7 @@ module Google
2034
2035
  # by a previous list request to get the next page of results.
2035
2036
  # @param [Boolean] return_partial_success
2036
2037
  # Opt-in for partial success behavior which provides partial results in case of
2037
- # failure. The default value is false and the logic is the same as today.
2038
+ # failure. The default value is false.
2038
2039
  # @param [String] fields
2039
2040
  # Selector specifying which fields to include in a partial response.
2040
2041
  # @param [String] quota_user
@@ -2152,7 +2153,7 @@ module Google
2152
2153
  # by a previous list request to get the next page of results.
2153
2154
  # @param [Boolean] return_partial_success
2154
2155
  # Opt-in for partial success behavior which provides partial results in case of
2155
- # failure. The default value is false and the logic is the same as today.
2156
+ # failure. The default value is false.
2156
2157
  # @param [String] fields
2157
2158
  # Selector specifying which fields to include in a partial response.
2158
2159
  # @param [String] quota_user
@@ -2290,7 +2291,7 @@ module Google
2290
2291
  # by a previous list request to get the next page of results.
2291
2292
  # @param [Boolean] return_partial_success
2292
2293
  # Opt-in for partial success behavior which provides partial results in case of
2293
- # failure. The default value is false and the logic is the same as today.
2294
+ # failure. The default value is false.
2294
2295
  # @param [String] fields
2295
2296
  # Selector specifying which fields to include in a partial response.
2296
2297
  # @param [String] quota_user
@@ -2544,7 +2545,7 @@ module Google
2544
2545
  # The request ID must be a valid UUID with the exception that zero UUID is not
2545
2546
  # supported (00000000-0000-0000-0000-000000000000).
2546
2547
  # @param [String] source_image
2547
- # Optional. Source image to restore onto a disk.
2548
+ # Source image to restore onto a disk. This field is optional.
2548
2549
  # @param [String] fields
2549
2550
  # Selector specifying which fields to include in a partial response.
2550
2551
  # @param [String] quota_user
@@ -2621,7 +2622,7 @@ module Google
2621
2622
  # by a previous list request to get the next page of results.
2622
2623
  # @param [Boolean] return_partial_success
2623
2624
  # Opt-in for partial success behavior which provides partial results in case of
2624
- # failure. The default value is false and the logic is the same as today.
2625
+ # failure. The default value is false.
2625
2626
  # @param [String] fields
2626
2627
  # Selector specifying which fields to include in a partial response.
2627
2628
  # @param [String] quota_user
@@ -3080,7 +3081,7 @@ module Google
3080
3081
  # by a previous list request to get the next page of results.
3081
3082
  # @param [Boolean] return_partial_success
3082
3083
  # Opt-in for partial success behavior which provides partial results in case of
3083
- # failure. The default value is false and the logic is the same as today.
3084
+ # failure. The default value is false.
3084
3085
  # @param [String] fields
3085
3086
  # Selector specifying which fields to include in a partial response.
3086
3087
  # @param [String] quota_user
@@ -3195,6 +3196,817 @@ module Google
3195
3196
  execute_or_queue_command(command, &block)
3196
3197
  end
3197
3198
 
3199
+ # Inserts an association for the specified firewall policy.
3200
+ # @param [String] firewall_policy
3201
+ # Name of the firewall policy to update.
3202
+ # @param [Google::Apis::ComputeV1::FirewallPolicyAssociation] firewall_policy_association_object
3203
+ # @param [Boolean] replace_existing_association
3204
+ # Indicates whether or not to replace it if an association of the attachment
3205
+ # already exists. This is false by default, in which case an error will be
3206
+ # returned if an association already exists.
3207
+ # @param [String] request_id
3208
+ # An optional request ID to identify requests. Specify a unique request ID so
3209
+ # that if you must retry your request, the server will know to ignore the
3210
+ # request if it has already been completed.
3211
+ # For example, consider a situation where you make an initial request and the
3212
+ # request times out. If you make the request again with the same request ID, the
3213
+ # server can check if original operation with the same request ID was received,
3214
+ # and if so, will ignore the second request. This prevents clients from
3215
+ # accidentally creating duplicate commitments.
3216
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3217
+ # supported (00000000-0000-0000-0000-000000000000).
3218
+ # @param [String] fields
3219
+ # Selector specifying which fields to include in a partial response.
3220
+ # @param [String] quota_user
3221
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3222
+ # characters.
3223
+ # @param [String] user_ip
3224
+ # Deprecated. Please use quotaUser instead.
3225
+ # @param [Google::Apis::RequestOptions] options
3226
+ # Request-specific options
3227
+ #
3228
+ # @yield [result, err] Result & error if block supplied
3229
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3230
+ # @yieldparam err [StandardError] error object if request failed
3231
+ #
3232
+ # @return [Google::Apis::ComputeV1::Operation]
3233
+ #
3234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3237
+ def add_firewall_policy_association(firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3238
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addAssociation', options)
3239
+ command.request_representation = Google::Apis::ComputeV1::FirewallPolicyAssociation::Representation
3240
+ command.request_object = firewall_policy_association_object
3241
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3242
+ command.response_class = Google::Apis::ComputeV1::Operation
3243
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3244
+ command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
3245
+ command.query['requestId'] = request_id unless request_id.nil?
3246
+ command.query['fields'] = fields unless fields.nil?
3247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3248
+ command.query['userIp'] = user_ip unless user_ip.nil?
3249
+ execute_or_queue_command(command, &block)
3250
+ end
3251
+
3252
+ # Inserts a rule into a firewall policy.
3253
+ # @param [String] firewall_policy
3254
+ # Name of the firewall policy to update.
3255
+ # @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
3256
+ # @param [String] request_id
3257
+ # An optional request ID to identify requests. Specify a unique request ID so
3258
+ # that if you must retry your request, the server will know to ignore the
3259
+ # request if it has already been completed.
3260
+ # For example, consider a situation where you make an initial request and the
3261
+ # request times out. If you make the request again with the same request ID, the
3262
+ # server can check if original operation with the same request ID was received,
3263
+ # and if so, will ignore the second request. This prevents clients from
3264
+ # accidentally creating duplicate commitments.
3265
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3266
+ # supported (00000000-0000-0000-0000-000000000000).
3267
+ # @param [String] fields
3268
+ # Selector specifying which fields to include in a partial response.
3269
+ # @param [String] quota_user
3270
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3271
+ # characters.
3272
+ # @param [String] user_ip
3273
+ # Deprecated. Please use quotaUser instead.
3274
+ # @param [Google::Apis::RequestOptions] options
3275
+ # Request-specific options
3276
+ #
3277
+ # @yield [result, err] Result & error if block supplied
3278
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3279
+ # @yieldparam err [StandardError] error object if request failed
3280
+ #
3281
+ # @return [Google::Apis::ComputeV1::Operation]
3282
+ #
3283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3286
+ def add_firewall_policy_rule(firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3287
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addRule', options)
3288
+ command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
3289
+ command.request_object = firewall_policy_rule_object
3290
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3291
+ command.response_class = Google::Apis::ComputeV1::Operation
3292
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3293
+ command.query['requestId'] = request_id unless request_id.nil?
3294
+ command.query['fields'] = fields unless fields.nil?
3295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3296
+ command.query['userIp'] = user_ip unless user_ip.nil?
3297
+ execute_or_queue_command(command, &block)
3298
+ end
3299
+
3300
+ # Copies rules to the specified firewall policy.
3301
+ # @param [String] firewall_policy
3302
+ # Name of the firewall policy to update.
3303
+ # @param [String] request_id
3304
+ # An optional request ID to identify requests. Specify a unique request ID so
3305
+ # that if you must retry your request, the server will know to ignore the
3306
+ # request if it has already been completed.
3307
+ # For example, consider a situation where you make an initial request and the
3308
+ # request times out. If you make the request again with the same request ID, the
3309
+ # server can check if original operation with the same request ID was received,
3310
+ # and if so, will ignore the second request. This prevents clients from
3311
+ # accidentally creating duplicate commitments.
3312
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3313
+ # supported (00000000-0000-0000-0000-000000000000).
3314
+ # @param [String] source_firewall_policy
3315
+ # The firewall policy from which to copy rules.
3316
+ # @param [String] fields
3317
+ # Selector specifying which fields to include in a partial response.
3318
+ # @param [String] quota_user
3319
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3320
+ # characters.
3321
+ # @param [String] user_ip
3322
+ # Deprecated. Please use quotaUser instead.
3323
+ # @param [Google::Apis::RequestOptions] options
3324
+ # Request-specific options
3325
+ #
3326
+ # @yield [result, err] Result & error if block supplied
3327
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3328
+ # @yieldparam err [StandardError] error object if request failed
3329
+ #
3330
+ # @return [Google::Apis::ComputeV1::Operation]
3331
+ #
3332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3335
+ def clone_firewall_policy_rules(firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3336
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/cloneRules', options)
3337
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3338
+ command.response_class = Google::Apis::ComputeV1::Operation
3339
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3340
+ command.query['requestId'] = request_id unless request_id.nil?
3341
+ command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
3342
+ command.query['fields'] = fields unless fields.nil?
3343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3344
+ command.query['userIp'] = user_ip unless user_ip.nil?
3345
+ execute_or_queue_command(command, &block)
3346
+ end
3347
+
3348
+ # Deletes the specified policy.
3349
+ # @param [String] firewall_policy
3350
+ # Name of the firewall policy to delete.
3351
+ # @param [String] request_id
3352
+ # An optional request ID to identify requests. Specify a unique request ID so
3353
+ # that if you must retry your request, the server will know to ignore the
3354
+ # request if it has already been completed.
3355
+ # For example, consider a situation where you make an initial request and the
3356
+ # request times out. If you make the request again with the same request ID, the
3357
+ # server can check if original operation with the same request ID was received,
3358
+ # and if so, will ignore the second request. This prevents clients from
3359
+ # accidentally creating duplicate commitments.
3360
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3361
+ # supported (00000000-0000-0000-0000-000000000000).
3362
+ # @param [String] fields
3363
+ # Selector specifying which fields to include in a partial response.
3364
+ # @param [String] quota_user
3365
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3366
+ # characters.
3367
+ # @param [String] user_ip
3368
+ # Deprecated. Please use quotaUser instead.
3369
+ # @param [Google::Apis::RequestOptions] options
3370
+ # Request-specific options
3371
+ #
3372
+ # @yield [result, err] Result & error if block supplied
3373
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3374
+ # @yieldparam err [StandardError] error object if request failed
3375
+ #
3376
+ # @return [Google::Apis::ComputeV1::Operation]
3377
+ #
3378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3381
+ def delete_firewall_policy(firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3382
+ command = make_simple_command(:delete, 'locations/global/firewallPolicies/{firewallPolicy}', options)
3383
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3384
+ command.response_class = Google::Apis::ComputeV1::Operation
3385
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3386
+ command.query['requestId'] = request_id unless request_id.nil?
3387
+ command.query['fields'] = fields unless fields.nil?
3388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3389
+ command.query['userIp'] = user_ip unless user_ip.nil?
3390
+ execute_or_queue_command(command, &block)
3391
+ end
3392
+
3393
+ # Returns the specified firewall policy.
3394
+ # @param [String] firewall_policy
3395
+ # Name of the firewall policy to get.
3396
+ # @param [String] fields
3397
+ # Selector specifying which fields to include in a partial response.
3398
+ # @param [String] quota_user
3399
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3400
+ # characters.
3401
+ # @param [String] user_ip
3402
+ # Deprecated. Please use quotaUser instead.
3403
+ # @param [Google::Apis::RequestOptions] options
3404
+ # Request-specific options
3405
+ #
3406
+ # @yield [result, err] Result & error if block supplied
3407
+ # @yieldparam result [Google::Apis::ComputeV1::FirewallPolicy] parsed result object
3408
+ # @yieldparam err [StandardError] error object if request failed
3409
+ #
3410
+ # @return [Google::Apis::ComputeV1::FirewallPolicy]
3411
+ #
3412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3415
+ def get_firewall_policy(firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3416
+ command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}', options)
3417
+ command.response_representation = Google::Apis::ComputeV1::FirewallPolicy::Representation
3418
+ command.response_class = Google::Apis::ComputeV1::FirewallPolicy
3419
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3420
+ command.query['fields'] = fields unless fields.nil?
3421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3422
+ command.query['userIp'] = user_ip unless user_ip.nil?
3423
+ execute_or_queue_command(command, &block)
3424
+ end
3425
+
3426
+ # Gets an association with the specified name.
3427
+ # @param [String] firewall_policy
3428
+ # Name of the firewall policy to which the queried rule belongs.
3429
+ # @param [String] name
3430
+ # The name of the association to get from the firewall policy.
3431
+ # @param [String] fields
3432
+ # Selector specifying which fields to include in a partial response.
3433
+ # @param [String] quota_user
3434
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3435
+ # characters.
3436
+ # @param [String] user_ip
3437
+ # Deprecated. Please use quotaUser instead.
3438
+ # @param [Google::Apis::RequestOptions] options
3439
+ # Request-specific options
3440
+ #
3441
+ # @yield [result, err] Result & error if block supplied
3442
+ # @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyAssociation] parsed result object
3443
+ # @yieldparam err [StandardError] error object if request failed
3444
+ #
3445
+ # @return [Google::Apis::ComputeV1::FirewallPolicyAssociation]
3446
+ #
3447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3450
+ def get_firewall_policy_association(firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3451
+ command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getAssociation', options)
3452
+ command.response_representation = Google::Apis::ComputeV1::FirewallPolicyAssociation::Representation
3453
+ command.response_class = Google::Apis::ComputeV1::FirewallPolicyAssociation
3454
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3455
+ command.query['name'] = name unless name.nil?
3456
+ command.query['fields'] = fields unless fields.nil?
3457
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3458
+ command.query['userIp'] = user_ip unless user_ip.nil?
3459
+ execute_or_queue_command(command, &block)
3460
+ end
3461
+
3462
+ # Gets the access control policy for a resource. May be empty if no such policy
3463
+ # or resource exists.
3464
+ # @param [String] resource
3465
+ # Name or id of the resource for this request.
3466
+ # @param [Fixnum] options_requested_policy_version
3467
+ # Requested IAM Policy version.
3468
+ # @param [String] fields
3469
+ # Selector specifying which fields to include in a partial response.
3470
+ # @param [String] quota_user
3471
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3472
+ # characters.
3473
+ # @param [String] user_ip
3474
+ # Deprecated. Please use quotaUser instead.
3475
+ # @param [Google::Apis::RequestOptions] options
3476
+ # Request-specific options
3477
+ #
3478
+ # @yield [result, err] Result & error if block supplied
3479
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
3480
+ # @yieldparam err [StandardError] error object if request failed
3481
+ #
3482
+ # @return [Google::Apis::ComputeV1::Policy]
3483
+ #
3484
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3485
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3486
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3487
+ def get_firewall_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3488
+ command = make_simple_command(:get, 'locations/global/firewallPolicies/{resource}/getIamPolicy', options)
3489
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
3490
+ command.response_class = Google::Apis::ComputeV1::Policy
3491
+ command.params['resource'] = resource unless resource.nil?
3492
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3493
+ command.query['fields'] = fields unless fields.nil?
3494
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3495
+ command.query['userIp'] = user_ip unless user_ip.nil?
3496
+ execute_or_queue_command(command, &block)
3497
+ end
3498
+
3499
+ # Gets a rule of the specified priority.
3500
+ # @param [String] firewall_policy
3501
+ # Name of the firewall policy to which the queried rule belongs.
3502
+ # @param [Fixnum] priority
3503
+ # The priority of the rule to get from the firewall policy.
3504
+ # @param [String] fields
3505
+ # Selector specifying which fields to include in a partial response.
3506
+ # @param [String] quota_user
3507
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3508
+ # characters.
3509
+ # @param [String] user_ip
3510
+ # Deprecated. Please use quotaUser instead.
3511
+ # @param [Google::Apis::RequestOptions] options
3512
+ # Request-specific options
3513
+ #
3514
+ # @yield [result, err] Result & error if block supplied
3515
+ # @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyRule] parsed result object
3516
+ # @yieldparam err [StandardError] error object if request failed
3517
+ #
3518
+ # @return [Google::Apis::ComputeV1::FirewallPolicyRule]
3519
+ #
3520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3523
+ def get_firewall_policy_rule(firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3524
+ command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getRule', options)
3525
+ command.response_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
3526
+ command.response_class = Google::Apis::ComputeV1::FirewallPolicyRule
3527
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3528
+ command.query['priority'] = priority unless priority.nil?
3529
+ command.query['fields'] = fields unless fields.nil?
3530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3531
+ command.query['userIp'] = user_ip unless user_ip.nil?
3532
+ execute_or_queue_command(command, &block)
3533
+ end
3534
+
3535
+ # Creates a new policy in the specified project using the data included in the
3536
+ # request.
3537
+ # @param [Google::Apis::ComputeV1::FirewallPolicy] firewall_policy_object
3538
+ # @param [String] parent_id
3539
+ # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
3540
+ # the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
3541
+ # an organization.
3542
+ # @param [String] request_id
3543
+ # An optional request ID to identify requests. Specify a unique request ID so
3544
+ # that if you must retry your request, the server will know to ignore the
3545
+ # request if it has already been completed.
3546
+ # For example, consider a situation where you make an initial request and the
3547
+ # request times out. If you make the request again with the same request ID, the
3548
+ # server can check if original operation with the same request ID was received,
3549
+ # and if so, will ignore the second request. This prevents clients from
3550
+ # accidentally creating duplicate commitments.
3551
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3552
+ # supported (00000000-0000-0000-0000-000000000000).
3553
+ # @param [String] fields
3554
+ # Selector specifying which fields to include in a partial response.
3555
+ # @param [String] quota_user
3556
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3557
+ # characters.
3558
+ # @param [String] user_ip
3559
+ # Deprecated. Please use quotaUser instead.
3560
+ # @param [Google::Apis::RequestOptions] options
3561
+ # Request-specific options
3562
+ #
3563
+ # @yield [result, err] Result & error if block supplied
3564
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3565
+ # @yieldparam err [StandardError] error object if request failed
3566
+ #
3567
+ # @return [Google::Apis::ComputeV1::Operation]
3568
+ #
3569
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3570
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3571
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3572
+ def insert_firewall_policy(firewall_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3573
+ command = make_simple_command(:post, 'locations/global/firewallPolicies', options)
3574
+ command.request_representation = Google::Apis::ComputeV1::FirewallPolicy::Representation
3575
+ command.request_object = firewall_policy_object
3576
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3577
+ command.response_class = Google::Apis::ComputeV1::Operation
3578
+ command.query['parentId'] = parent_id unless parent_id.nil?
3579
+ command.query['requestId'] = request_id unless request_id.nil?
3580
+ command.query['fields'] = fields unless fields.nil?
3581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3582
+ command.query['userIp'] = user_ip unless user_ip.nil?
3583
+ execute_or_queue_command(command, &block)
3584
+ end
3585
+
3586
+ # Lists all the policies that have been configured for the specified project.
3587
+ # @param [String] filter
3588
+ # A filter expression that filters resources listed in the response. The
3589
+ # expression must specify the field name, a comparison operator, and the value
3590
+ # that you want to use for filtering. The value must be a string, a number, or a
3591
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
3592
+ # For example, if you are filtering Compute Engine instances, you can exclude
3593
+ # instances named `example-instance` by specifying `name != example-instance`.
3594
+ # You can also filter nested fields. For example, you could specify `scheduling.
3595
+ # automaticRestart = false` to include instances only if they are not scheduled
3596
+ # for automatic restarts. You can use filtering on nested fields to filter based
3597
+ # on resource labels.
3598
+ # To filter on multiple expressions, provide each separate expression within
3599
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
3600
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
3601
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
3602
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
3603
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
3604
+ # @param [Fixnum] max_results
3605
+ # The maximum number of results per page that should be returned. If the number
3606
+ # of available results is larger than `maxResults`, Compute Engine returns a `
3607
+ # nextPageToken` that can be used to get the next page of results in subsequent
3608
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
3609
+ # @param [String] order_by
3610
+ # Sorts list results by a certain order. By default, results are returned in
3611
+ # alphanumerical order based on the resource name.
3612
+ # You can also sort results in descending order based on the creation timestamp
3613
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
3614
+ # creationTimestamp` field in reverse chronological order (newest result first).
3615
+ # Use this to sort resources like operations so that the newest operation is
3616
+ # returned first.
3617
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
3618
+ # @param [String] page_token
3619
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
3620
+ # by a previous list request to get the next page of results.
3621
+ # @param [String] parent_id
3622
+ # Parent ID for this request.
3623
+ # @param [Boolean] return_partial_success
3624
+ # Opt-in for partial success behavior which provides partial results in case of
3625
+ # failure. The default value is false.
3626
+ # @param [String] fields
3627
+ # Selector specifying which fields to include in a partial response.
3628
+ # @param [String] quota_user
3629
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3630
+ # characters.
3631
+ # @param [String] user_ip
3632
+ # Deprecated. Please use quotaUser instead.
3633
+ # @param [Google::Apis::RequestOptions] options
3634
+ # Request-specific options
3635
+ #
3636
+ # @yield [result, err] Result & error if block supplied
3637
+ # @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyList] parsed result object
3638
+ # @yieldparam err [StandardError] error object if request failed
3639
+ #
3640
+ # @return [Google::Apis::ComputeV1::FirewallPolicyList]
3641
+ #
3642
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3643
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3644
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3645
+ def list_firewall_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3646
+ command = make_simple_command(:get, 'locations/global/firewallPolicies', options)
3647
+ command.response_representation = Google::Apis::ComputeV1::FirewallPolicyList::Representation
3648
+ command.response_class = Google::Apis::ComputeV1::FirewallPolicyList
3649
+ command.query['filter'] = filter unless filter.nil?
3650
+ command.query['maxResults'] = max_results unless max_results.nil?
3651
+ command.query['orderBy'] = order_by unless order_by.nil?
3652
+ command.query['pageToken'] = page_token unless page_token.nil?
3653
+ command.query['parentId'] = parent_id unless parent_id.nil?
3654
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
3655
+ command.query['fields'] = fields unless fields.nil?
3656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3657
+ command.query['userIp'] = user_ip unless user_ip.nil?
3658
+ execute_or_queue_command(command, &block)
3659
+ end
3660
+
3661
+ # Lists associations of a specified target, i.e., organization or folder.
3662
+ # @param [String] target_resource
3663
+ # The target resource to list associations. It is an organization, or a folder.
3664
+ # @param [String] fields
3665
+ # Selector specifying which fields to include in a partial response.
3666
+ # @param [String] quota_user
3667
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3668
+ # characters.
3669
+ # @param [String] user_ip
3670
+ # Deprecated. Please use quotaUser instead.
3671
+ # @param [Google::Apis::RequestOptions] options
3672
+ # Request-specific options
3673
+ #
3674
+ # @yield [result, err] Result & error if block supplied
3675
+ # @yieldparam result [Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse] parsed result object
3676
+ # @yieldparam err [StandardError] error object if request failed
3677
+ #
3678
+ # @return [Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse]
3679
+ #
3680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3683
+ def list_firewall_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3684
+ command = make_simple_command(:get, 'locations/global/firewallPolicies/listAssociations', options)
3685
+ command.response_representation = Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse::Representation
3686
+ command.response_class = Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse
3687
+ command.query['targetResource'] = target_resource unless target_resource.nil?
3688
+ command.query['fields'] = fields unless fields.nil?
3689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3690
+ command.query['userIp'] = user_ip unless user_ip.nil?
3691
+ execute_or_queue_command(command, &block)
3692
+ end
3693
+
3694
+ # Moves the specified firewall policy.
3695
+ # @param [String] firewall_policy
3696
+ # Name of the firewall policy to update.
3697
+ # @param [String] parent_id
3698
+ # The new parent of the firewall policy.
3699
+ # @param [String] request_id
3700
+ # An optional request ID to identify requests. Specify a unique request ID so
3701
+ # that if you must retry your request, the server will know to ignore the
3702
+ # request if it has already been completed.
3703
+ # For example, consider a situation where you make an initial request and the
3704
+ # request times out. If you make the request again with the same request ID, the
3705
+ # server can check if original operation with the same request ID was received,
3706
+ # and if so, will ignore the second request. This prevents clients from
3707
+ # accidentally creating duplicate commitments.
3708
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3709
+ # supported (00000000-0000-0000-0000-000000000000).
3710
+ # @param [String] fields
3711
+ # Selector specifying which fields to include in a partial response.
3712
+ # @param [String] quota_user
3713
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3714
+ # characters.
3715
+ # @param [String] user_ip
3716
+ # Deprecated. Please use quotaUser instead.
3717
+ # @param [Google::Apis::RequestOptions] options
3718
+ # Request-specific options
3719
+ #
3720
+ # @yield [result, err] Result & error if block supplied
3721
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3722
+ # @yieldparam err [StandardError] error object if request failed
3723
+ #
3724
+ # @return [Google::Apis::ComputeV1::Operation]
3725
+ #
3726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3729
+ def move_firewall_policy(firewall_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3730
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/move', options)
3731
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3732
+ command.response_class = Google::Apis::ComputeV1::Operation
3733
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3734
+ command.query['parentId'] = parent_id unless parent_id.nil?
3735
+ command.query['requestId'] = request_id unless request_id.nil?
3736
+ command.query['fields'] = fields unless fields.nil?
3737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3738
+ command.query['userIp'] = user_ip unless user_ip.nil?
3739
+ execute_or_queue_command(command, &block)
3740
+ end
3741
+
3742
+ # Patches the specified policy with the data included in the request.
3743
+ # @param [String] firewall_policy
3744
+ # Name of the firewall policy to update.
3745
+ # @param [Google::Apis::ComputeV1::FirewallPolicy] firewall_policy_object
3746
+ # @param [String] request_id
3747
+ # An optional request ID to identify requests. Specify a unique request ID so
3748
+ # that if you must retry your request, the server will know to ignore the
3749
+ # request if it has already been completed.
3750
+ # For example, consider a situation where you make an initial request and the
3751
+ # request times out. If you make the request again with the same request ID, the
3752
+ # server can check if original operation with the same request ID was received,
3753
+ # and if so, will ignore the second request. This prevents clients from
3754
+ # accidentally creating duplicate commitments.
3755
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3756
+ # supported (00000000-0000-0000-0000-000000000000).
3757
+ # @param [String] fields
3758
+ # Selector specifying which fields to include in a partial response.
3759
+ # @param [String] quota_user
3760
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3761
+ # characters.
3762
+ # @param [String] user_ip
3763
+ # Deprecated. Please use quotaUser instead.
3764
+ # @param [Google::Apis::RequestOptions] options
3765
+ # Request-specific options
3766
+ #
3767
+ # @yield [result, err] Result & error if block supplied
3768
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3769
+ # @yieldparam err [StandardError] error object if request failed
3770
+ #
3771
+ # @return [Google::Apis::ComputeV1::Operation]
3772
+ #
3773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3776
+ def patch_firewall_policy(firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3777
+ command = make_simple_command(:patch, 'locations/global/firewallPolicies/{firewallPolicy}', options)
3778
+ command.request_representation = Google::Apis::ComputeV1::FirewallPolicy::Representation
3779
+ command.request_object = firewall_policy_object
3780
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3781
+ command.response_class = Google::Apis::ComputeV1::Operation
3782
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3783
+ command.query['requestId'] = request_id unless request_id.nil?
3784
+ command.query['fields'] = fields unless fields.nil?
3785
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3786
+ command.query['userIp'] = user_ip unless user_ip.nil?
3787
+ execute_or_queue_command(command, &block)
3788
+ end
3789
+
3790
+ # Patches a rule of the specified priority.
3791
+ # @param [String] firewall_policy
3792
+ # Name of the firewall policy to update.
3793
+ # @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
3794
+ # @param [Fixnum] priority
3795
+ # The priority of the rule to patch.
3796
+ # @param [String] request_id
3797
+ # An optional request ID to identify requests. Specify a unique request ID so
3798
+ # that if you must retry your request, the server will know to ignore the
3799
+ # request if it has already been completed.
3800
+ # For example, consider a situation where you make an initial request and the
3801
+ # request times out. If you make the request again with the same request ID, the
3802
+ # server can check if original operation with the same request ID was received,
3803
+ # and if so, will ignore the second request. This prevents clients from
3804
+ # accidentally creating duplicate commitments.
3805
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3806
+ # supported (00000000-0000-0000-0000-000000000000).
3807
+ # @param [String] fields
3808
+ # Selector specifying which fields to include in a partial response.
3809
+ # @param [String] quota_user
3810
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3811
+ # characters.
3812
+ # @param [String] user_ip
3813
+ # Deprecated. Please use quotaUser instead.
3814
+ # @param [Google::Apis::RequestOptions] options
3815
+ # Request-specific options
3816
+ #
3817
+ # @yield [result, err] Result & error if block supplied
3818
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3819
+ # @yieldparam err [StandardError] error object if request failed
3820
+ #
3821
+ # @return [Google::Apis::ComputeV1::Operation]
3822
+ #
3823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3826
+ def patch_firewall_policy_rule(firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3827
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/patchRule', options)
3828
+ command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
3829
+ command.request_object = firewall_policy_rule_object
3830
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3831
+ command.response_class = Google::Apis::ComputeV1::Operation
3832
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3833
+ command.query['priority'] = priority unless priority.nil?
3834
+ command.query['requestId'] = request_id unless request_id.nil?
3835
+ command.query['fields'] = fields unless fields.nil?
3836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3837
+ command.query['userIp'] = user_ip unless user_ip.nil?
3838
+ execute_or_queue_command(command, &block)
3839
+ end
3840
+
3841
+ # Removes an association for the specified firewall policy.
3842
+ # @param [String] firewall_policy
3843
+ # Name of the firewall policy to update.
3844
+ # @param [String] name
3845
+ # Name for the attachment that will be removed.
3846
+ # @param [String] request_id
3847
+ # An optional request ID to identify requests. Specify a unique request ID so
3848
+ # that if you must retry your request, the server will know to ignore the
3849
+ # request if it has already been completed.
3850
+ # For example, consider a situation where you make an initial request and the
3851
+ # request times out. If you make the request again with the same request ID, the
3852
+ # server can check if original operation with the same request ID was received,
3853
+ # and if so, will ignore the second request. This prevents clients from
3854
+ # accidentally creating duplicate commitments.
3855
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3856
+ # supported (00000000-0000-0000-0000-000000000000).
3857
+ # @param [String] fields
3858
+ # Selector specifying which fields to include in a partial response.
3859
+ # @param [String] quota_user
3860
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3861
+ # characters.
3862
+ # @param [String] user_ip
3863
+ # Deprecated. Please use quotaUser instead.
3864
+ # @param [Google::Apis::RequestOptions] options
3865
+ # Request-specific options
3866
+ #
3867
+ # @yield [result, err] Result & error if block supplied
3868
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3869
+ # @yieldparam err [StandardError] error object if request failed
3870
+ #
3871
+ # @return [Google::Apis::ComputeV1::Operation]
3872
+ #
3873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3876
+ def remove_firewall_policy_association(firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3877
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removeAssociation', options)
3878
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3879
+ command.response_class = Google::Apis::ComputeV1::Operation
3880
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3881
+ command.query['name'] = name unless name.nil?
3882
+ command.query['requestId'] = request_id unless request_id.nil?
3883
+ command.query['fields'] = fields unless fields.nil?
3884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3885
+ command.query['userIp'] = user_ip unless user_ip.nil?
3886
+ execute_or_queue_command(command, &block)
3887
+ end
3888
+
3889
+ # Deletes a rule of the specified priority.
3890
+ # @param [String] firewall_policy
3891
+ # Name of the firewall policy to update.
3892
+ # @param [Fixnum] priority
3893
+ # The priority of the rule to remove from the firewall policy.
3894
+ # @param [String] request_id
3895
+ # An optional request ID to identify requests. Specify a unique request ID so
3896
+ # that if you must retry your request, the server will know to ignore the
3897
+ # request if it has already been completed.
3898
+ # For example, consider a situation where you make an initial request and the
3899
+ # request times out. If you make the request again with the same request ID, the
3900
+ # server can check if original operation with the same request ID was received,
3901
+ # and if so, will ignore the second request. This prevents clients from
3902
+ # accidentally creating duplicate commitments.
3903
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3904
+ # supported (00000000-0000-0000-0000-000000000000).
3905
+ # @param [String] fields
3906
+ # Selector specifying which fields to include in a partial response.
3907
+ # @param [String] quota_user
3908
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3909
+ # characters.
3910
+ # @param [String] user_ip
3911
+ # Deprecated. Please use quotaUser instead.
3912
+ # @param [Google::Apis::RequestOptions] options
3913
+ # Request-specific options
3914
+ #
3915
+ # @yield [result, err] Result & error if block supplied
3916
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3917
+ # @yieldparam err [StandardError] error object if request failed
3918
+ #
3919
+ # @return [Google::Apis::ComputeV1::Operation]
3920
+ #
3921
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3922
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3923
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3924
+ def remove_firewall_policy_rule(firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3925
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removeRule', options)
3926
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3927
+ command.response_class = Google::Apis::ComputeV1::Operation
3928
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
3929
+ command.query['priority'] = priority unless priority.nil?
3930
+ command.query['requestId'] = request_id unless request_id.nil?
3931
+ command.query['fields'] = fields unless fields.nil?
3932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3933
+ command.query['userIp'] = user_ip unless user_ip.nil?
3934
+ execute_or_queue_command(command, &block)
3935
+ end
3936
+
3937
+ # Sets the access control policy on the specified resource. Replaces any
3938
+ # existing policy.
3939
+ # @param [String] resource
3940
+ # Name or id of the resource for this request.
3941
+ # @param [Google::Apis::ComputeV1::GlobalOrganizationSetPolicyRequest] global_organization_set_policy_request_object
3942
+ # @param [String] fields
3943
+ # Selector specifying which fields to include in a partial response.
3944
+ # @param [String] quota_user
3945
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3946
+ # characters.
3947
+ # @param [String] user_ip
3948
+ # Deprecated. Please use quotaUser instead.
3949
+ # @param [Google::Apis::RequestOptions] options
3950
+ # Request-specific options
3951
+ #
3952
+ # @yield [result, err] Result & error if block supplied
3953
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
3954
+ # @yieldparam err [StandardError] error object if request failed
3955
+ #
3956
+ # @return [Google::Apis::ComputeV1::Policy]
3957
+ #
3958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3961
+ def set_firewall_policy_iam_policy(resource, global_organization_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3962
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{resource}/setIamPolicy', options)
3963
+ command.request_representation = Google::Apis::ComputeV1::GlobalOrganizationSetPolicyRequest::Representation
3964
+ command.request_object = global_organization_set_policy_request_object
3965
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
3966
+ command.response_class = Google::Apis::ComputeV1::Policy
3967
+ command.params['resource'] = resource unless resource.nil?
3968
+ command.query['fields'] = fields unless fields.nil?
3969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3970
+ command.query['userIp'] = user_ip unless user_ip.nil?
3971
+ execute_or_queue_command(command, &block)
3972
+ end
3973
+
3974
+ # Returns permissions that a caller has on the specified resource.
3975
+ # @param [String] resource
3976
+ # Name or id of the resource for this request.
3977
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
3978
+ # @param [String] fields
3979
+ # Selector specifying which fields to include in a partial response.
3980
+ # @param [String] quota_user
3981
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3982
+ # characters.
3983
+ # @param [String] user_ip
3984
+ # Deprecated. Please use quotaUser instead.
3985
+ # @param [Google::Apis::RequestOptions] options
3986
+ # Request-specific options
3987
+ #
3988
+ # @yield [result, err] Result & error if block supplied
3989
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
3990
+ # @yieldparam err [StandardError] error object if request failed
3991
+ #
3992
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
3993
+ #
3994
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3995
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3996
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3997
+ def test_firewall_policy_iam_permissions(resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3998
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{resource}/testIamPermissions', options)
3999
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
4000
+ command.request_object = test_permissions_request_object
4001
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
4002
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
4003
+ command.params['resource'] = resource unless resource.nil?
4004
+ command.query['fields'] = fields unless fields.nil?
4005
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4006
+ command.query['userIp'] = user_ip unless user_ip.nil?
4007
+ execute_or_queue_command(command, &block)
4008
+ end
4009
+
3198
4010
  # Deletes the specified firewall.
3199
4011
  # @param [String] project
3200
4012
  # Project ID for this request.
@@ -3367,7 +4179,7 @@ module Google
3367
4179
  # by a previous list request to get the next page of results.
3368
4180
  # @param [Boolean] return_partial_success
3369
4181
  # Opt-in for partial success behavior which provides partial results in case of
3370
- # failure. The default value is false and the logic is the same as today.
4182
+ # failure. The default value is false.
3371
4183
  # @param [String] fields
3372
4184
  # Selector specifying which fields to include in a partial response.
3373
4185
  # @param [String] quota_user
@@ -3555,7 +4367,7 @@ module Google
3555
4367
  # by a previous list request to get the next page of results.
3556
4368
  # @param [Boolean] return_partial_success
3557
4369
  # Opt-in for partial success behavior which provides partial results in case of
3558
- # failure. The default value is false and the logic is the same as today.
4370
+ # failure. The default value is false.
3559
4371
  # @param [String] fields
3560
4372
  # Selector specifying which fields to include in a partial response.
3561
4373
  # @param [String] quota_user
@@ -3776,7 +4588,7 @@ module Google
3776
4588
  # by a previous list request to get the next page of results.
3777
4589
  # @param [Boolean] return_partial_success
3778
4590
  # Opt-in for partial success behavior which provides partial results in case of
3779
- # failure. The default value is false and the logic is the same as today.
4591
+ # failure. The default value is false.
3780
4592
  # @param [String] fields
3781
4593
  # Selector specifying which fields to include in a partial response.
3782
4594
  # @param [String] quota_user
@@ -3819,10 +4631,65 @@ module Google
3819
4631
  # @param [String] project
3820
4632
  # Project ID for this request.
3821
4633
  # @param [String] region
3822
- # Name of the region scoping this request.
3823
- # @param [String] forwarding_rule
3824
- # Name of the ForwardingRule resource to patch.
3825
- # @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object
4634
+ # Name of the region scoping this request.
4635
+ # @param [String] forwarding_rule
4636
+ # Name of the ForwardingRule resource to patch.
4637
+ # @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object
4638
+ # @param [String] request_id
4639
+ # An optional request ID to identify requests. Specify a unique request ID so
4640
+ # that if you must retry your request, the server will know to ignore the
4641
+ # request if it has already been completed.
4642
+ # For example, consider a situation where you make an initial request and the
4643
+ # request times out. If you make the request again with the same request ID, the
4644
+ # server can check if original operation with the same request ID was received,
4645
+ # and if so, will ignore the second request. This prevents clients from
4646
+ # accidentally creating duplicate commitments.
4647
+ # The request ID must be a valid UUID with the exception that zero UUID is not
4648
+ # supported (00000000-0000-0000-0000-000000000000).
4649
+ # @param [String] fields
4650
+ # Selector specifying which fields to include in a partial response.
4651
+ # @param [String] quota_user
4652
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
4653
+ # characters.
4654
+ # @param [String] user_ip
4655
+ # Deprecated. Please use quotaUser instead.
4656
+ # @param [Google::Apis::RequestOptions] options
4657
+ # Request-specific options
4658
+ #
4659
+ # @yield [result, err] Result & error if block supplied
4660
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
4661
+ # @yieldparam err [StandardError] error object if request failed
4662
+ #
4663
+ # @return [Google::Apis::ComputeV1::Operation]
4664
+ #
4665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4668
+ def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4669
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
4670
+ command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation
4671
+ command.request_object = forwarding_rule_object
4672
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
4673
+ command.response_class = Google::Apis::ComputeV1::Operation
4674
+ command.params['project'] = project unless project.nil?
4675
+ command.params['region'] = region unless region.nil?
4676
+ command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
4677
+ command.query['requestId'] = request_id unless request_id.nil?
4678
+ command.query['fields'] = fields unless fields.nil?
4679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4680
+ command.query['userIp'] = user_ip unless user_ip.nil?
4681
+ execute_or_queue_command(command, &block)
4682
+ end
4683
+
4684
+ # Sets the labels on the specified resource. To learn more about labels, read
4685
+ # the Labeling Resources documentation.
4686
+ # @param [String] project
4687
+ # Project ID for this request.
4688
+ # @param [String] region
4689
+ # The region for this request.
4690
+ # @param [String] resource
4691
+ # Name or id of the resource for this request.
4692
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
3826
4693
  # @param [String] request_id
3827
4694
  # An optional request ID to identify requests. Specify a unique request ID so
3828
4695
  # that if you must retry your request, the server will know to ignore the
@@ -3853,15 +4720,15 @@ module Google
3853
4720
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3854
4721
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3855
4722
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3856
- def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3857
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
3858
- command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation
3859
- command.request_object = forwarding_rule_object
4723
+ def set_forwarding_rule_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4724
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels', options)
4725
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
4726
+ command.request_object = region_set_labels_request_object
3860
4727
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3861
4728
  command.response_class = Google::Apis::ComputeV1::Operation
3862
4729
  command.params['project'] = project unless project.nil?
3863
4730
  command.params['region'] = region unless region.nil?
3864
- command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
4731
+ command.params['resource'] = resource unless resource.nil?
3865
4732
  command.query['requestId'] = request_id unless request_id.nil?
3866
4733
  command.query['fields'] = fields unless fields.nil?
3867
4734
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -4097,7 +4964,7 @@ module Google
4097
4964
  # by a previous list request to get the next page of results.
4098
4965
  # @param [Boolean] return_partial_success
4099
4966
  # Opt-in for partial success behavior which provides partial results in case of
4100
- # failure. The default value is false and the logic is the same as today.
4967
+ # failure. The default value is false.
4101
4968
  # @param [String] fields
4102
4969
  # Selector specifying which fields to include in a partial response.
4103
4970
  # @param [String] quota_user
@@ -4307,7 +5174,7 @@ module Google
4307
5174
  # by a previous list request to get the next page of results.
4308
5175
  # @param [Boolean] return_partial_success
4309
5176
  # Opt-in for partial success behavior which provides partial results in case of
4310
- # failure. The default value is false and the logic is the same as today.
5177
+ # failure. The default value is false.
4311
5178
  # @param [String] fields
4312
5179
  # Selector specifying which fields to include in a partial response.
4313
5180
  # @param [String] quota_user
@@ -4396,6 +5263,46 @@ module Google
4396
5263
  execute_or_queue_command(command, &block)
4397
5264
  end
4398
5265
 
5266
+ # Sets the labels on the specified resource. To learn more about labels, read
5267
+ # the Labeling Resources documentation.
5268
+ # @param [String] project
5269
+ # Project ID for this request.
5270
+ # @param [String] resource
5271
+ # Name or id of the resource for this request.
5272
+ # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
5273
+ # @param [String] fields
5274
+ # Selector specifying which fields to include in a partial response.
5275
+ # @param [String] quota_user
5276
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5277
+ # characters.
5278
+ # @param [String] user_ip
5279
+ # Deprecated. Please use quotaUser instead.
5280
+ # @param [Google::Apis::RequestOptions] options
5281
+ # Request-specific options
5282
+ #
5283
+ # @yield [result, err] Result & error if block supplied
5284
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
5285
+ # @yieldparam err [StandardError] error object if request failed
5286
+ #
5287
+ # @return [Google::Apis::ComputeV1::Operation]
5288
+ #
5289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5292
+ def set_global_forwarding_rule_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5293
+ command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{resource}/setLabels', options)
5294
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
5295
+ command.request_object = global_set_labels_request_object
5296
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
5297
+ command.response_class = Google::Apis::ComputeV1::Operation
5298
+ command.params['project'] = project unless project.nil?
5299
+ command.params['resource'] = resource unless resource.nil?
5300
+ command.query['fields'] = fields unless fields.nil?
5301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5302
+ command.query['userIp'] = user_ip unless user_ip.nil?
5303
+ execute_or_queue_command(command, &block)
5304
+ end
5305
+
4399
5306
  # Changes target URL for the GlobalForwardingRule resource. The new target
4400
5307
  # should be of the same type as the old target.
4401
5308
  # @param [String] project
@@ -4728,7 +5635,7 @@ module Google
4728
5635
  # by a previous list request to get the next page of results.
4729
5636
  # @param [Boolean] return_partial_success
4730
5637
  # Opt-in for partial success behavior which provides partial results in case of
4731
- # failure. The default value is false and the logic is the same as today.
5638
+ # failure. The default value is false.
4732
5639
  # @param [String] fields
4733
5640
  # Selector specifying which fields to include in a partial response.
4734
5641
  # @param [String] quota_user
@@ -4806,7 +5713,7 @@ module Google
4806
5713
  # by a previous list request to get the next page of results.
4807
5714
  # @param [Boolean] return_partial_success
4808
5715
  # Opt-in for partial success behavior which provides partial results in case of
4809
- # failure. The default value is false and the logic is the same as today.
5716
+ # failure. The default value is false.
4810
5717
  # @param [String] fields
4811
5718
  # Selector specifying which fields to include in a partial response.
4812
5719
  # @param [String] quota_user
@@ -4889,7 +5796,7 @@ module Google
4889
5796
  # by a previous list request to get the next page of results.
4890
5797
  # @param [Boolean] return_partial_success
4891
5798
  # Opt-in for partial success behavior which provides partial results in case of
4892
- # failure. The default value is false and the logic is the same as today.
5799
+ # failure. The default value is false.
4893
5800
  # @param [String] fields
4894
5801
  # Selector specifying which fields to include in a partial response.
4895
5802
  # @param [String] quota_user
@@ -5036,7 +5943,7 @@ module Google
5036
5943
  # by a previous list request to get the next page of results.
5037
5944
  # @param [Boolean] return_partial_success
5038
5945
  # Opt-in for partial success behavior which provides partial results in case of
5039
- # failure. The default value is false and the logic is the same as today.
5946
+ # failure. The default value is false.
5040
5947
  # @param [String] fields
5041
5948
  # Selector specifying which fields to include in a partial response.
5042
5949
  # @param [String] quota_user
@@ -5229,7 +6136,7 @@ module Google
5229
6136
  # Parent ID for this request.
5230
6137
  # @param [Boolean] return_partial_success
5231
6138
  # Opt-in for partial success behavior which provides partial results in case of
5232
- # failure. The default value is false and the logic is the same as today.
6139
+ # failure. The default value is false.
5233
6140
  # @param [String] fields
5234
6141
  # Selector specifying which fields to include in a partial response.
5235
6142
  # @param [String] quota_user
@@ -5312,7 +6219,7 @@ module Google
5312
6219
  # by a previous list request to get the next page of results.
5313
6220
  # @param [Boolean] return_partial_success
5314
6221
  # Opt-in for partial success behavior which provides partial results in case of
5315
- # failure. The default value is false and the logic is the same as today.
6222
+ # failure. The default value is false.
5316
6223
  # @param [String] fields
5317
6224
  # Selector specifying which fields to include in a partial response.
5318
6225
  # @param [String] quota_user
@@ -5522,7 +6429,7 @@ module Google
5522
6429
  # by a previous list request to get the next page of results.
5523
6430
  # @param [Boolean] return_partial_success
5524
6431
  # Opt-in for partial success behavior which provides partial results in case of
5525
- # failure. The default value is false and the logic is the same as today.
6432
+ # failure. The default value is false.
5526
6433
  # @param [String] fields
5527
6434
  # Selector specifying which fields to include in a partial response.
5528
6435
  # @param [String] quota_user
@@ -5837,7 +6744,7 @@ module Google
5837
6744
  # by a previous list request to get the next page of results.
5838
6745
  # @param [Boolean] return_partial_success
5839
6746
  # Opt-in for partial success behavior which provides partial results in case of
5840
- # failure. The default value is false and the logic is the same as today.
6747
+ # failure. The default value is false.
5841
6748
  # @param [String] fields
5842
6749
  # Selector specifying which fields to include in a partial response.
5843
6750
  # @param [String] quota_user
@@ -6152,7 +7059,7 @@ module Google
6152
7059
  # by a previous list request to get the next page of results.
6153
7060
  # @param [Boolean] return_partial_success
6154
7061
  # Opt-in for partial success behavior which provides partial results in case of
6155
- # failure. The default value is false and the logic is the same as today.
7062
+ # failure. The default value is false.
6156
7063
  # @param [String] fields
6157
7064
  # Selector specifying which fields to include in a partial response.
6158
7065
  # @param [String] quota_user
@@ -6602,7 +7509,7 @@ module Google
6602
7509
  # by a previous list request to get the next page of results.
6603
7510
  # @param [Boolean] return_partial_success
6604
7511
  # Opt-in for partial success behavior which provides partial results in case of
6605
- # failure. The default value is false and the logic is the same as today.
7512
+ # failure. The default value is false.
6606
7513
  # @param [String] fields
6607
7514
  # Selector specifying which fields to include in a partial response.
6608
7515
  # @param [String] quota_user
@@ -6920,7 +7827,7 @@ module Google
6920
7827
  # by a previous list request to get the next page of results.
6921
7828
  # @param [Boolean] return_partial_success
6922
7829
  # Opt-in for partial success behavior which provides partial results in case of
6923
- # failure. The default value is false and the logic is the same as today.
7830
+ # failure. The default value is false.
6924
7831
  # @param [String] fields
6925
7832
  # Selector specifying which fields to include in a partial response.
6926
7833
  # @param [String] quota_user
@@ -7360,7 +8267,7 @@ module Google
7360
8267
  # by a previous list request to get the next page of results.
7361
8268
  # @param [Boolean] return_partial_success
7362
8269
  # Opt-in for partial success behavior which provides partial results in case of
7363
- # failure. The default value is false and the logic is the same as today.
8270
+ # failure. The default value is false.
7364
8271
  # @param [String] fields
7365
8272
  # Selector specifying which fields to include in a partial response.
7366
8273
  # @param [String] quota_user
@@ -7444,7 +8351,7 @@ module Google
7444
8351
  # by a previous list request to get the next page of results.
7445
8352
  # @param [Boolean] return_partial_success
7446
8353
  # Opt-in for partial success behavior which provides partial results in case of
7447
- # failure. The default value is false and the logic is the same as today.
8354
+ # failure. The default value is false.
7448
8355
  # @param [String] fields
7449
8356
  # Selector specifying which fields to include in a partial response.
7450
8357
  # @param [String] quota_user
@@ -7530,7 +8437,7 @@ module Google
7530
8437
  # by a previous list request to get the next page of results.
7531
8438
  # @param [Boolean] return_partial_success
7532
8439
  # Opt-in for partial success behavior which provides partial results in case of
7533
- # failure. The default value is false and the logic is the same as today.
8440
+ # failure. The default value is false.
7534
8441
  # @param [String] fields
7535
8442
  # Selector specifying which fields to include in a partial response.
7536
8443
  # @param [String] quota_user
@@ -7613,7 +8520,7 @@ module Google
7613
8520
  # by a previous list request to get the next page of results.
7614
8521
  # @param [Boolean] return_partial_success
7615
8522
  # Opt-in for partial success behavior which provides partial results in case of
7616
- # failure. The default value is false and the logic is the same as today.
8523
+ # failure. The default value is false.
7617
8524
  # @param [String] fields
7618
8525
  # Selector specifying which fields to include in a partial response.
7619
8526
  # @param [String] quota_user
@@ -8176,7 +9083,7 @@ module Google
8176
9083
  # by a previous list request to get the next page of results.
8177
9084
  # @param [Boolean] return_partial_success
8178
9085
  # Opt-in for partial success behavior which provides partial results in case of
8179
- # failure. The default value is false and the logic is the same as today.
9086
+ # failure. The default value is false.
8180
9087
  # @param [String] fields
8181
9088
  # Selector specifying which fields to include in a partial response.
8182
9089
  # @param [String] quota_user
@@ -8404,7 +9311,7 @@ module Google
8404
9311
  # by a previous list request to get the next page of results.
8405
9312
  # @param [Boolean] return_partial_success
8406
9313
  # Opt-in for partial success behavior which provides partial results in case of
8407
- # failure. The default value is false and the logic is the same as today.
9314
+ # failure. The default value is false.
8408
9315
  # @param [String] fields
8409
9316
  # Selector specifying which fields to include in a partial response.
8410
9317
  # @param [String] quota_user
@@ -8487,7 +9394,7 @@ module Google
8487
9394
  # by a previous list request to get the next page of results.
8488
9395
  # @param [Boolean] return_partial_success
8489
9396
  # Opt-in for partial success behavior which provides partial results in case of
8490
- # failure. The default value is false and the logic is the same as today.
9397
+ # failure. The default value is false.
8491
9398
  # @param [String] fields
8492
9399
  # Selector specifying which fields to include in a partial response.
8493
9400
  # @param [String] quota_user
@@ -8857,7 +9764,7 @@ module Google
8857
9764
  # by a previous list request to get the next page of results.
8858
9765
  # @param [Boolean] return_partial_success
8859
9766
  # Opt-in for partial success behavior which provides partial results in case of
8860
- # failure. The default value is false and the logic is the same as today.
9767
+ # failure. The default value is false.
8861
9768
  # @param [String] fields
8862
9769
  # Selector specifying which fields to include in a partial response.
8863
9770
  # @param [String] quota_user
@@ -9132,7 +10039,7 @@ module Google
9132
10039
  # by a previous list request to get the next page of results.
9133
10040
  # @param [Boolean] return_partial_success
9134
10041
  # Opt-in for partial success behavior which provides partial results in case of
9135
- # failure. The default value is false and the logic is the same as today.
10042
+ # failure. The default value is false.
9136
10043
  # @param [String] fields
9137
10044
  # Selector specifying which fields to include in a partial response.
9138
10045
  # @param [String] quota_user
@@ -9231,6 +10138,57 @@ module Google
9231
10138
  execute_or_queue_command(command, &block)
9232
10139
  end
9233
10140
 
10141
+ # Creates multiple instances. Count specifies the number of instances to create.
10142
+ # @param [String] project
10143
+ # Project ID for this request.
10144
+ # @param [String] zone
10145
+ # The name of the zone for this request.
10146
+ # @param [Google::Apis::ComputeV1::BulkInsertInstanceResource] bulk_insert_instance_resource_object
10147
+ # @param [String] request_id
10148
+ # An optional request ID to identify requests. Specify a unique request ID so
10149
+ # that if you must retry your request, the server will know to ignore the
10150
+ # request if it has already been completed.
10151
+ # For example, consider a situation where you make an initial request and the
10152
+ # request times out. If you make the request again with the same request ID, the
10153
+ # server can check if original operation with the same request ID was received,
10154
+ # and if so, will ignore the second request. This prevents clients from
10155
+ # accidentally creating duplicate commitments.
10156
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10157
+ # supported (00000000-0000-0000-0000-000000000000).
10158
+ # @param [String] fields
10159
+ # Selector specifying which fields to include in a partial response.
10160
+ # @param [String] quota_user
10161
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10162
+ # characters.
10163
+ # @param [String] user_ip
10164
+ # Deprecated. Please use quotaUser instead.
10165
+ # @param [Google::Apis::RequestOptions] options
10166
+ # Request-specific options
10167
+ #
10168
+ # @yield [result, err] Result & error if block supplied
10169
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
10170
+ # @yieldparam err [StandardError] error object if request failed
10171
+ #
10172
+ # @return [Google::Apis::ComputeV1::Operation]
10173
+ #
10174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10177
+ def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10178
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
10179
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertInstanceResource::Representation
10180
+ command.request_object = bulk_insert_instance_resource_object
10181
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10182
+ command.response_class = Google::Apis::ComputeV1::Operation
10183
+ command.params['project'] = project unless project.nil?
10184
+ command.params['zone'] = zone unless zone.nil?
10185
+ command.query['requestId'] = request_id unless request_id.nil?
10186
+ command.query['fields'] = fields unless fields.nil?
10187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10188
+ command.query['userIp'] = user_ip unless user_ip.nil?
10189
+ execute_or_queue_command(command, &block)
10190
+ end
10191
+
9234
10192
  # Deletes the specified Instance resource. For more information, see Stopping or
9235
10193
  # Deleting an Instance.
9236
10194
  # @param [String] project
@@ -9435,6 +10393,48 @@ module Google
9435
10393
  execute_or_queue_command(command, &block)
9436
10394
  end
9437
10395
 
10396
+ # Returns effective firewalls applied to an interface of the instance.
10397
+ # @param [String] project
10398
+ # Project ID for this request.
10399
+ # @param [String] zone
10400
+ # The name of the zone for this request.
10401
+ # @param [String] instance
10402
+ # Name of the instance scoping this request.
10403
+ # @param [String] network_interface
10404
+ # The name of the network interface to get the effective firewalls.
10405
+ # @param [String] fields
10406
+ # Selector specifying which fields to include in a partial response.
10407
+ # @param [String] quota_user
10408
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10409
+ # characters.
10410
+ # @param [String] user_ip
10411
+ # Deprecated. Please use quotaUser instead.
10412
+ # @param [Google::Apis::RequestOptions] options
10413
+ # Request-specific options
10414
+ #
10415
+ # @yield [result, err] Result & error if block supplied
10416
+ # @yieldparam result [Google::Apis::ComputeV1::InstancesGetEffectiveFirewallsResponse] parsed result object
10417
+ # @yieldparam err [StandardError] error object if request failed
10418
+ #
10419
+ # @return [Google::Apis::ComputeV1::InstancesGetEffectiveFirewallsResponse]
10420
+ #
10421
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10422
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10423
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10424
+ def get_instance_effective_firewalls(project, zone, instance, network_interface, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10425
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls', options)
10426
+ command.response_representation = Google::Apis::ComputeV1::InstancesGetEffectiveFirewallsResponse::Representation
10427
+ command.response_class = Google::Apis::ComputeV1::InstancesGetEffectiveFirewallsResponse
10428
+ command.params['project'] = project unless project.nil?
10429
+ command.params['zone'] = zone unless zone.nil?
10430
+ command.params['instance'] = instance unless instance.nil?
10431
+ command.query['networkInterface'] = network_interface unless network_interface.nil?
10432
+ command.query['fields'] = fields unless fields.nil?
10433
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10434
+ command.query['userIp'] = user_ip unless user_ip.nil?
10435
+ execute_or_queue_command(command, &block)
10436
+ end
10437
+
9438
10438
  # Returns the specified guest attributes entry.
9439
10439
  # @param [String] project
9440
10440
  # Project ID for this request.
@@ -9759,7 +10759,7 @@ module Google
9759
10759
  # by a previous list request to get the next page of results.
9760
10760
  # @param [Boolean] return_partial_success
9761
10761
  # Opt-in for partial success behavior which provides partial results in case of
9762
- # failure. The default value is false and the logic is the same as today.
10762
+ # failure. The default value is false.
9763
10763
  # @param [String] fields
9764
10764
  # Selector specifying which fields to include in a partial response.
9765
10765
  # @param [String] quota_user
@@ -9843,7 +10843,7 @@ module Google
9843
10843
  # by a previous list request to get the next page of results.
9844
10844
  # @param [Boolean] return_partial_success
9845
10845
  # Opt-in for partial success behavior which provides partial results in case of
9846
- # failure. The default value is false and the logic is the same as today.
10846
+ # failure. The default value is false.
9847
10847
  # @param [String] fields
9848
10848
  # Selector specifying which fields to include in a partial response.
9849
10849
  # @param [String] quota_user
@@ -11064,7 +12064,11 @@ module Google
11064
12064
  execute_or_queue_command(command, &block)
11065
12065
  end
11066
12066
 
11067
- # Updates an instance's network interface. This method follows PATCH semantics.
12067
+ # Updates an instance's network interface. This method can only update an
12068
+ # interface's alias IP range and attached network. See Modifying alias IP ranges
12069
+ # for an existing instance for instructions on changing alias IP ranges. See
12070
+ # Migrating a VM between networks for instructions on migrating an interface.
12071
+ # This method follows PATCH semantics.
11068
12072
  # @param [String] project
11069
12073
  # Project ID for this request.
11070
12074
  # @param [String] zone
@@ -11223,7 +12227,7 @@ module Google
11223
12227
  # by a previous list request to get the next page of results.
11224
12228
  # @param [Boolean] return_partial_success
11225
12229
  # Opt-in for partial success behavior which provides partial results in case of
11226
- # failure. The default value is false and the logic is the same as today.
12230
+ # failure. The default value is false.
11227
12231
  # @param [String] fields
11228
12232
  # Selector specifying which fields to include in a partial response.
11229
12233
  # @param [String] quota_user
@@ -11447,7 +12451,7 @@ module Google
11447
12451
  # by a previous list request to get the next page of results.
11448
12452
  # @param [Boolean] return_partial_success
11449
12453
  # Opt-in for partial success behavior which provides partial results in case of
11450
- # failure. The default value is false and the logic is the same as today.
12454
+ # failure. The default value is false.
11451
12455
  # @param [String] fields
11452
12456
  # Selector specifying which fields to include in a partial response.
11453
12457
  # @param [String] quota_user
@@ -11617,7 +12621,7 @@ module Google
11617
12621
  # by a previous list request to get the next page of results.
11618
12622
  # @param [Boolean] return_partial_success
11619
12623
  # Opt-in for partial success behavior which provides partial results in case of
11620
- # failure. The default value is false and the logic is the same as today.
12624
+ # failure. The default value is false.
11621
12625
  # @param [String] fields
11622
12626
  # Selector specifying which fields to include in a partial response.
11623
12627
  # @param [String] quota_user
@@ -11862,7 +12866,7 @@ module Google
11862
12866
  # by a previous list request to get the next page of results.
11863
12867
  # @param [Boolean] return_partial_success
11864
12868
  # Opt-in for partial success behavior which provides partial results in case of
11865
- # failure. The default value is false and the logic is the same as today.
12869
+ # failure. The default value is false.
11866
12870
  # @param [String] fields
11867
12871
  # Selector specifying which fields to include in a partial response.
11868
12872
  # @param [String] quota_user
@@ -12253,7 +13257,7 @@ module Google
12253
13257
  # by a previous list request to get the next page of results.
12254
13258
  # @param [Boolean] return_partial_success
12255
13259
  # Opt-in for partial success behavior which provides partial results in case of
12256
- # failure. The default value is false and the logic is the same as today.
13260
+ # failure. The default value is false.
12257
13261
  # @param [String] fields
12258
13262
  # Selector specifying which fields to include in a partial response.
12259
13263
  # @param [String] quota_user
@@ -12417,7 +13421,7 @@ module Google
12417
13421
  # by a previous list request to get the next page of results.
12418
13422
  # @param [Boolean] return_partial_success
12419
13423
  # Opt-in for partial success behavior which provides partial results in case of
12420
- # failure. The default value is false and the logic is the same as today.
13424
+ # failure. The default value is false.
12421
13425
  # @param [String] fields
12422
13426
  # Selector specifying which fields to include in a partial response.
12423
13427
  # @param [String] quota_user
@@ -12535,7 +13539,7 @@ module Google
12535
13539
  # by a previous list request to get the next page of results.
12536
13540
  # @param [Boolean] return_partial_success
12537
13541
  # Opt-in for partial success behavior which provides partial results in case of
12538
- # failure. The default value is false and the logic is the same as today.
13542
+ # failure. The default value is false.
12539
13543
  # @param [String] fields
12540
13544
  # Selector specifying which fields to include in a partial response.
12541
13545
  # @param [String] quota_user
@@ -12618,7 +13622,7 @@ module Google
12618
13622
  # by a previous list request to get the next page of results.
12619
13623
  # @param [Boolean] return_partial_success
12620
13624
  # Opt-in for partial success behavior which provides partial results in case of
12621
- # failure. The default value is false and the logic is the same as today.
13625
+ # failure. The default value is false.
12622
13626
  # @param [String] fields
12623
13627
  # Selector specifying which fields to include in a partial response.
12624
13628
  # @param [String] quota_user
@@ -12960,7 +13964,7 @@ module Google
12960
13964
  # by a previous list request to get the next page of results.
12961
13965
  # @param [Boolean] return_partial_success
12962
13966
  # Opt-in for partial success behavior which provides partial results in case of
12963
- # failure. The default value is false and the logic is the same as today.
13967
+ # failure. The default value is false.
12964
13968
  # @param [String] fields
12965
13969
  # Selector specifying which fields to include in a partial response.
12966
13970
  # @param [String] quota_user
@@ -13043,7 +14047,7 @@ module Google
13043
14047
  # by a previous list request to get the next page of results.
13044
14048
  # @param [Boolean] return_partial_success
13045
14049
  # Opt-in for partial success behavior which provides partial results in case of
13046
- # failure. The default value is false and the logic is the same as today.
14050
+ # failure. The default value is false.
13047
14051
  # @param [String] fields
13048
14052
  # Selector specifying which fields to include in a partial response.
13049
14053
  # @param [String] quota_user
@@ -13261,6 +14265,42 @@ module Google
13261
14265
  execute_or_queue_command(command, &block)
13262
14266
  end
13263
14267
 
14268
+ # Returns the effective firewalls on a given network.
14269
+ # @param [String] project
14270
+ # Project ID for this request.
14271
+ # @param [String] network
14272
+ # Name of the network for this request.
14273
+ # @param [String] fields
14274
+ # Selector specifying which fields to include in a partial response.
14275
+ # @param [String] quota_user
14276
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14277
+ # characters.
14278
+ # @param [String] user_ip
14279
+ # Deprecated. Please use quotaUser instead.
14280
+ # @param [Google::Apis::RequestOptions] options
14281
+ # Request-specific options
14282
+ #
14283
+ # @yield [result, err] Result & error if block supplied
14284
+ # @yieldparam result [Google::Apis::ComputeV1::NetworksGetEffectiveFirewallsResponse] parsed result object
14285
+ # @yieldparam err [StandardError] error object if request failed
14286
+ #
14287
+ # @return [Google::Apis::ComputeV1::NetworksGetEffectiveFirewallsResponse]
14288
+ #
14289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14292
+ def get_network_effective_firewalls(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14293
+ command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/getEffectiveFirewalls', options)
14294
+ command.response_representation = Google::Apis::ComputeV1::NetworksGetEffectiveFirewallsResponse::Representation
14295
+ command.response_class = Google::Apis::ComputeV1::NetworksGetEffectiveFirewallsResponse
14296
+ command.params['project'] = project unless project.nil?
14297
+ command.params['network'] = network unless network.nil?
14298
+ command.query['fields'] = fields unless fields.nil?
14299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14300
+ command.query['userIp'] = user_ip unless user_ip.nil?
14301
+ execute_or_queue_command(command, &block)
14302
+ end
14303
+
13264
14304
  # Creates a network in the specified project using the data included in the
13265
14305
  # request.
13266
14306
  # @param [String] project
@@ -13349,7 +14389,7 @@ module Google
13349
14389
  # by a previous list request to get the next page of results.
13350
14390
  # @param [Boolean] return_partial_success
13351
14391
  # Opt-in for partial success behavior which provides partial results in case of
13352
- # failure. The default value is false and the logic is the same as today.
14392
+ # failure. The default value is false.
13353
14393
  # @param [String] fields
13354
14394
  # Selector specifying which fields to include in a partial response.
13355
14395
  # @param [String] quota_user
@@ -13433,7 +14473,7 @@ module Google
13433
14473
  # routes and dynamic routes in the region.
13434
14474
  # @param [Boolean] return_partial_success
13435
14475
  # Opt-in for partial success behavior which provides partial results in case of
13436
- # failure. The default value is false and the logic is the same as today.
14476
+ # failure. The default value is false.
13437
14477
  # @param [String] fields
13438
14478
  # Selector specifying which fields to include in a partial response.
13439
14479
  # @param [String] quota_user
@@ -13778,7 +14818,7 @@ module Google
13778
14818
  # by a previous list request to get the next page of results.
13779
14819
  # @param [Boolean] return_partial_success
13780
14820
  # Opt-in for partial success behavior which provides partial results in case of
13781
- # failure. The default value is false and the logic is the same as today.
14821
+ # failure. The default value is false.
13782
14822
  # @param [String] fields
13783
14823
  # Selector specifying which fields to include in a partial response.
13784
14824
  # @param [String] quota_user
@@ -14101,7 +15141,7 @@ module Google
14101
15141
  # by a previous list request to get the next page of results.
14102
15142
  # @param [Boolean] return_partial_success
14103
15143
  # Opt-in for partial success behavior which provides partial results in case of
14104
- # failure. The default value is false and the logic is the same as today.
15144
+ # failure. The default value is false.
14105
15145
  # @param [String] fields
14106
15146
  # Selector specifying which fields to include in a partial response.
14107
15147
  # @param [String] quota_user
@@ -14181,7 +15221,7 @@ module Google
14181
15221
  # by a previous list request to get the next page of results.
14182
15222
  # @param [Boolean] return_partial_success
14183
15223
  # Opt-in for partial success behavior which provides partial results in case of
14184
- # failure. The default value is false and the logic is the same as today.
15224
+ # failure. The default value is false.
14185
15225
  # @param [String] fields
14186
15226
  # Selector specifying which fields to include in a partial response.
14187
15227
  # @param [String] quota_user
@@ -14458,7 +15498,7 @@ module Google
14458
15498
  # by a previous list request to get the next page of results.
14459
15499
  # @param [Boolean] return_partial_success
14460
15500
  # Opt-in for partial success behavior which provides partial results in case of
14461
- # failure. The default value is false and the logic is the same as today.
15501
+ # failure. The default value is false.
14462
15502
  # @param [String] fields
14463
15503
  # Selector specifying which fields to include in a partial response.
14464
15504
  # @param [String] quota_user
@@ -14722,7 +15762,7 @@ module Google
14722
15762
  # by a previous list request to get the next page of results.
14723
15763
  # @param [Boolean] return_partial_success
14724
15764
  # Opt-in for partial success behavior which provides partial results in case of
14725
- # failure. The default value is false and the logic is the same as today.
15765
+ # failure. The default value is false.
14726
15766
  # @param [String] fields
14727
15767
  # Selector specifying which fields to include in a partial response.
14728
15768
  # @param [String] quota_user
@@ -14890,7 +15930,7 @@ module Google
14890
15930
  # by a previous list request to get the next page of results.
14891
15931
  # @param [Boolean] return_partial_success
14892
15932
  # Opt-in for partial success behavior which provides partial results in case of
14893
- # failure. The default value is false and the logic is the same as today.
15933
+ # failure. The default value is false.
14894
15934
  # @param [String] fields
14895
15935
  # Selector specifying which fields to include in a partial response.
14896
15936
  # @param [String] quota_user
@@ -15008,7 +16048,7 @@ module Google
15008
16048
  # by a previous list request to get the next page of results.
15009
16049
  # @param [Boolean] return_partial_success
15010
16050
  # Opt-in for partial success behavior which provides partial results in case of
15011
- # failure. The default value is false and the logic is the same as today.
16051
+ # failure. The default value is false.
15012
16052
  # @param [String] fields
15013
16053
  # Selector specifying which fields to include in a partial response.
15014
16054
  # @param [String] quota_user
@@ -15091,7 +16131,7 @@ module Google
15091
16131
  # by a previous list request to get the next page of results.
15092
16132
  # @param [Boolean] return_partial_success
15093
16133
  # Opt-in for partial success behavior which provides partial results in case of
15094
- # failure. The default value is false and the logic is the same as today.
16134
+ # failure. The default value is false.
15095
16135
  # @param [String] fields
15096
16136
  # Selector specifying which fields to include in a partial response.
15097
16137
  # @param [String] quota_user
@@ -15312,7 +16352,7 @@ module Google
15312
16352
  # by a previous list request to get the next page of results.
15313
16353
  # @param [Boolean] return_partial_success
15314
16354
  # Opt-in for partial success behavior which provides partial results in case of
15315
- # failure. The default value is false and the logic is the same as today.
16355
+ # failure. The default value is false.
15316
16356
  # @param [String] fields
15317
16357
  # Selector specifying which fields to include in a partial response.
15318
16358
  # @param [String] quota_user
@@ -15742,7 +16782,7 @@ module Google
15742
16782
  # by a previous list request to get the next page of results.
15743
16783
  # @param [Boolean] return_partial_success
15744
16784
  # Opt-in for partial success behavior which provides partial results in case of
15745
- # failure. The default value is false and the logic is the same as today.
16785
+ # failure. The default value is false.
15746
16786
  # @param [String] fields
15747
16787
  # Selector specifying which fields to include in a partial response.
15748
16788
  # @param [String] quota_user
@@ -15818,7 +16858,7 @@ module Google
15818
16858
  # by a previous list request to get the next page of results.
15819
16859
  # @param [Boolean] return_partial_success
15820
16860
  # Opt-in for partial success behavior which provides partial results in case of
15821
- # failure. The default value is false and the logic is the same as today.
16861
+ # failure. The default value is false.
15822
16862
  # @param [String] fields
15823
16863
  # Selector specifying which fields to include in a partial response.
15824
16864
  # @param [String] quota_user
@@ -16284,7 +17324,7 @@ module Google
16284
17324
  # by a previous list request to get the next page of results.
16285
17325
  # @param [Boolean] return_partial_success
16286
17326
  # Opt-in for partial success behavior which provides partial results in case of
16287
- # failure. The default value is false and the logic is the same as today.
17327
+ # failure. The default value is false.
16288
17328
  # @param [String] fields
16289
17329
  # Selector specifying which fields to include in a partial response.
16290
17330
  # @param [String] quota_user
@@ -16658,7 +17698,7 @@ module Google
16658
17698
  # by a previous list request to get the next page of results.
16659
17699
  # @param [Boolean] return_partial_success
16660
17700
  # Opt-in for partial success behavior which provides partial results in case of
16661
- # failure. The default value is false and the logic is the same as today.
17701
+ # failure. The default value is false.
16662
17702
  # @param [String] fields
16663
17703
  # Selector specifying which fields to include in a partial response.
16664
17704
  # @param [String] quota_user
@@ -16853,7 +17893,7 @@ module Google
16853
17893
  # by a previous list request to get the next page of results.
16854
17894
  # @param [Boolean] return_partial_success
16855
17895
  # Opt-in for partial success behavior which provides partial results in case of
16856
- # failure. The default value is false and the logic is the same as today.
17896
+ # failure. The default value is false.
16857
17897
  # @param [String] fields
16858
17898
  # Selector specifying which fields to include in a partial response.
16859
17899
  # @param [String] quota_user
@@ -17023,7 +18063,7 @@ module Google
17023
18063
  # by a previous list request to get the next page of results.
17024
18064
  # @param [Boolean] return_partial_success
17025
18065
  # Opt-in for partial success behavior which provides partial results in case of
17026
- # failure. The default value is false and the logic is the same as today.
18066
+ # failure. The default value is false.
17027
18067
  # @param [String] fields
17028
18068
  # Selector specifying which fields to include in a partial response.
17029
18069
  # @param [String] quota_user
@@ -17141,7 +18181,7 @@ module Google
17141
18181
  # by a previous list request to get the next page of results.
17142
18182
  # @param [Boolean] return_partial_success
17143
18183
  # Opt-in for partial success behavior which provides partial results in case of
17144
- # failure. The default value is false and the logic is the same as today.
18184
+ # failure. The default value is false.
17145
18185
  # @param [String] fields
17146
18186
  # Selector specifying which fields to include in a partial response.
17147
18187
  # @param [String] quota_user
@@ -17442,7 +18482,7 @@ module Google
17442
18482
  # The request ID must be a valid UUID with the exception that zero UUID is not
17443
18483
  # supported (00000000-0000-0000-0000-000000000000).
17444
18484
  # @param [String] source_image
17445
- # Optional. Source image to restore onto a disk.
18485
+ # Source image to restore onto a disk. This field is optional.
17446
18486
  # @param [String] fields
17447
18487
  # Selector specifying which fields to include in a partial response.
17448
18488
  # @param [String] quota_user
@@ -17519,7 +18559,7 @@ module Google
17519
18559
  # by a previous list request to get the next page of results.
17520
18560
  # @param [Boolean] return_partial_success
17521
18561
  # Opt-in for partial success behavior which provides partial results in case of
17522
- # failure. The default value is false and the logic is the same as today.
18562
+ # failure. The default value is false.
17523
18563
  # @param [String] fields
17524
18564
  # Selector specifying which fields to include in a partial response.
17525
18565
  # @param [String] quota_user
@@ -17989,7 +19029,7 @@ module Google
17989
19029
  # by a previous list request to get the next page of results.
17990
19030
  # @param [Boolean] return_partial_success
17991
19031
  # Opt-in for partial success behavior which provides partial results in case of
17992
- # failure. The default value is false and the logic is the same as today.
19032
+ # failure. The default value is false.
17993
19033
  # @param [String] fields
17994
19034
  # Selector specifying which fields to include in a partial response.
17995
19035
  # @param [String] quota_user
@@ -18267,7 +19307,7 @@ module Google
18267
19307
  # by a previous list request to get the next page of results.
18268
19308
  # @param [Boolean] return_partial_success
18269
19309
  # Opt-in for partial success behavior which provides partial results in case of
18270
- # failure. The default value is false and the logic is the same as today.
19310
+ # failure. The default value is false.
18271
19311
  # @param [String] fields
18272
19312
  # Selector specifying which fields to include in a partial response.
18273
19313
  # @param [String] quota_user
@@ -18877,7 +19917,7 @@ module Google
18877
19917
  # by a previous list request to get the next page of results.
18878
19918
  # @param [Boolean] return_partial_success
18879
19919
  # Opt-in for partial success behavior which provides partial results in case of
18880
- # failure. The default value is false and the logic is the same as today.
19920
+ # failure. The default value is false.
18881
19921
  # @param [String] fields
18882
19922
  # Selector specifying which fields to include in a partial response.
18883
19923
  # @param [String] quota_user
@@ -18960,7 +20000,7 @@ module Google
18960
20000
  # by a previous list request to get the next page of results.
18961
20001
  # @param [Boolean] return_partial_success
18962
20002
  # Opt-in for partial success behavior which provides partial results in case of
18963
- # failure. The default value is false and the logic is the same as today.
20003
+ # failure. The default value is false.
18964
20004
  # @param [String] fields
18965
20005
  # Selector specifying which fields to include in a partial response.
18966
20006
  # @param [String] quota_user
@@ -19043,7 +20083,7 @@ module Google
19043
20083
  # by a previous list request to get the next page of results.
19044
20084
  # @param [Boolean] return_partial_success
19045
20085
  # Opt-in for partial success behavior which provides partial results in case of
19046
- # failure. The default value is false and the logic is the same as today.
20086
+ # failure. The default value is false.
19047
20087
  # @param [String] fields
19048
20088
  # Selector specifying which fields to include in a partial response.
19049
20089
  # @param [String] quota_user
@@ -19125,7 +20165,7 @@ module Google
19125
20165
  # by a previous list request to get the next page of results.
19126
20166
  # @param [Boolean] return_partial_success
19127
20167
  # Opt-in for partial success behavior which provides partial results in case of
19128
- # failure. The default value is false and the logic is the same as today.
20168
+ # failure. The default value is false.
19129
20169
  # @param [String] fields
19130
20170
  # Selector specifying which fields to include in a partial response.
19131
20171
  # @param [String] quota_user
@@ -19650,7 +20690,7 @@ module Google
19650
20690
  # by a previous list request to get the next page of results.
19651
20691
  # @param [Boolean] return_partial_success
19652
20692
  # Opt-in for partial success behavior which provides partial results in case of
19653
- # failure. The default value is false and the logic is the same as today.
20693
+ # failure. The default value is false.
19654
20694
  # @param [String] fields
19655
20695
  # Selector specifying which fields to include in a partial response.
19656
20696
  # @param [String] quota_user
@@ -19734,7 +20774,7 @@ module Google
19734
20774
  # by a previous list request to get the next page of results.
19735
20775
  # @param [Boolean] return_partial_success
19736
20776
  # Opt-in for partial success behavior which provides partial results in case of
19737
- # failure. The default value is false and the logic is the same as today.
20777
+ # failure. The default value is false.
19738
20778
  # @param [String] fields
19739
20779
  # Selector specifying which fields to include in a partial response.
19740
20780
  # @param [String] quota_user
@@ -19828,6 +20868,58 @@ module Google
19828
20868
  execute_or_queue_command(command, &block)
19829
20869
  end
19830
20870
 
20871
+ # Creates multiple instances in a given region. Count specifies the number of
20872
+ # instances to create.
20873
+ # @param [String] project
20874
+ # Project ID for this request.
20875
+ # @param [String] region
20876
+ # The name of the region for this request.
20877
+ # @param [Google::Apis::ComputeV1::BulkInsertInstanceResource] bulk_insert_instance_resource_object
20878
+ # @param [String] request_id
20879
+ # An optional request ID to identify requests. Specify a unique request ID so
20880
+ # that if you must retry your request, the server will know to ignore the
20881
+ # request if it has already been completed.
20882
+ # For example, consider a situation where you make an initial request and the
20883
+ # request times out. If you make the request again with the same request ID, the
20884
+ # server can check if original operation with the same request ID was received,
20885
+ # and if so, will ignore the second request. This prevents clients from
20886
+ # accidentally creating duplicate commitments.
20887
+ # The request ID must be a valid UUID with the exception that zero UUID is not
20888
+ # supported (00000000-0000-0000-0000-000000000000).
20889
+ # @param [String] fields
20890
+ # Selector specifying which fields to include in a partial response.
20891
+ # @param [String] quota_user
20892
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
20893
+ # characters.
20894
+ # @param [String] user_ip
20895
+ # Deprecated. Please use quotaUser instead.
20896
+ # @param [Google::Apis::RequestOptions] options
20897
+ # Request-specific options
20898
+ #
20899
+ # @yield [result, err] Result & error if block supplied
20900
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
20901
+ # @yieldparam err [StandardError] error object if request failed
20902
+ #
20903
+ # @return [Google::Apis::ComputeV1::Operation]
20904
+ #
20905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20908
+ def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20909
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
20910
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertInstanceResource::Representation
20911
+ command.request_object = bulk_insert_instance_resource_object
20912
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
20913
+ command.response_class = Google::Apis::ComputeV1::Operation
20914
+ command.params['project'] = project unless project.nil?
20915
+ command.params['region'] = region unless region.nil?
20916
+ command.query['requestId'] = request_id unless request_id.nil?
20917
+ command.query['fields'] = fields unless fields.nil?
20918
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20919
+ command.query['userIp'] = user_ip unless user_ip.nil?
20920
+ execute_or_queue_command(command, &block)
20921
+ end
20922
+
19831
20923
  # Deletes the specified network endpoint group. Note that the NEG cannot be
19832
20924
  # deleted if it is configured as a backend of a backend service.
19833
20925
  # @param [String] project
@@ -20019,7 +21111,7 @@ module Google
20019
21111
  # by a previous list request to get the next page of results.
20020
21112
  # @param [Boolean] return_partial_success
20021
21113
  # Opt-in for partial success behavior which provides partial results in case of
20022
- # failure. The default value is false and the logic is the same as today.
21114
+ # failure. The default value is false.
20023
21115
  # @param [String] fields
20024
21116
  # Selector specifying which fields to include in a partial response.
20025
21117
  # @param [String] quota_user
@@ -20239,7 +21331,7 @@ module Google
20239
21331
  # by a previous list request to get the next page of results.
20240
21332
  # @param [Boolean] return_partial_success
20241
21333
  # Opt-in for partial success behavior which provides partial results in case of
20242
- # failure. The default value is false and the logic is the same as today.
21334
+ # failure. The default value is false.
20243
21335
  # @param [String] fields
20244
21336
  # Selector specifying which fields to include in a partial response.
20245
21337
  # @param [String] quota_user
@@ -20393,7 +21485,7 @@ module Google
20393
21485
  # by a previous list request to get the next page of results.
20394
21486
  # @param [Boolean] return_partial_success
20395
21487
  # Opt-in for partial success behavior which provides partial results in case of
20396
- # failure. The default value is false and the logic is the same as today.
21488
+ # failure. The default value is false.
20397
21489
  # @param [String] fields
20398
21490
  # Selector specifying which fields to include in a partial response.
20399
21491
  # @param [String] quota_user
@@ -20664,7 +21756,7 @@ module Google
20664
21756
  # by a previous list request to get the next page of results.
20665
21757
  # @param [Boolean] return_partial_success
20666
21758
  # Opt-in for partial success behavior which provides partial results in case of
20667
- # failure. The default value is false and the logic is the same as today.
21759
+ # failure. The default value is false.
20668
21760
  # @param [String] fields
20669
21761
  # Selector specifying which fields to include in a partial response.
20670
21762
  # @param [String] quota_user
@@ -20886,7 +21978,7 @@ module Google
20886
21978
  # by a previous list request to get the next page of results.
20887
21979
  # @param [Boolean] return_partial_success
20888
21980
  # Opt-in for partial success behavior which provides partial results in case of
20889
- # failure. The default value is false and the logic is the same as today.
21981
+ # failure. The default value is false.
20890
21982
  # @param [String] fields
20891
21983
  # Selector specifying which fields to include in a partial response.
20892
21984
  # @param [String] quota_user
@@ -21162,7 +22254,7 @@ module Google
21162
22254
  # by a previous list request to get the next page of results.
21163
22255
  # @param [Boolean] return_partial_success
21164
22256
  # Opt-in for partial success behavior which provides partial results in case of
21165
- # failure. The default value is false and the logic is the same as today.
22257
+ # failure. The default value is false.
21166
22258
  # @param [String] fields
21167
22259
  # Selector specifying which fields to include in a partial response.
21168
22260
  # @param [String] quota_user
@@ -21474,7 +22566,7 @@ module Google
21474
22566
  # by a previous list request to get the next page of results.
21475
22567
  # @param [Boolean] return_partial_success
21476
22568
  # Opt-in for partial success behavior which provides partial results in case of
21477
- # failure. The default value is false and the logic is the same as today.
22569
+ # failure. The default value is false.
21478
22570
  # @param [String] fields
21479
22571
  # Selector specifying which fields to include in a partial response.
21480
22572
  # @param [String] quota_user
@@ -21722,7 +22814,7 @@ module Google
21722
22814
  # by a previous list request to get the next page of results.
21723
22815
  # @param [Boolean] return_partial_success
21724
22816
  # Opt-in for partial success behavior which provides partial results in case of
21725
- # failure. The default value is false and the logic is the same as today.
22817
+ # failure. The default value is false.
21726
22818
  # @param [String] fields
21727
22819
  # Selector specifying which fields to include in a partial response.
21728
22820
  # @param [String] quota_user
@@ -21804,7 +22896,7 @@ module Google
21804
22896
  # by a previous list request to get the next page of results.
21805
22897
  # @param [Boolean] return_partial_success
21806
22898
  # Opt-in for partial success behavior which provides partial results in case of
21807
- # failure. The default value is false and the logic is the same as today.
22899
+ # failure. The default value is false.
21808
22900
  # @param [String] fields
21809
22901
  # Selector specifying which fields to include in a partial response.
21810
22902
  # @param [String] quota_user
@@ -22068,7 +23160,7 @@ module Google
22068
23160
  # by a previous list request to get the next page of results.
22069
23161
  # @param [Boolean] return_partial_success
22070
23162
  # Opt-in for partial success behavior which provides partial results in case of
22071
- # failure. The default value is false and the logic is the same as today.
23163
+ # failure. The default value is false.
22072
23164
  # @param [String] fields
22073
23165
  # Selector specifying which fields to include in a partial response.
22074
23166
  # @param [String] quota_user
@@ -22291,7 +23383,7 @@ module Google
22291
23383
  # by a previous list request to get the next page of results.
22292
23384
  # @param [Boolean] return_partial_success
22293
23385
  # Opt-in for partial success behavior which provides partial results in case of
22294
- # failure. The default value is false and the logic is the same as today.
23386
+ # failure. The default value is false.
22295
23387
  # @param [String] fields
22296
23388
  # Selector specifying which fields to include in a partial response.
22297
23389
  # @param [String] quota_user
@@ -22554,7 +23646,7 @@ module Google
22554
23646
  # by a previous list request to get the next page of results.
22555
23647
  # @param [Boolean] return_partial_success
22556
23648
  # Opt-in for partial success behavior which provides partial results in case of
22557
- # failure. The default value is false and the logic is the same as today.
23649
+ # failure. The default value is false.
22558
23650
  # @param [String] fields
22559
23651
  # Selector specifying which fields to include in a partial response.
22560
23652
  # @param [String] quota_user
@@ -22722,7 +23814,7 @@ module Google
22722
23814
  # by a previous list request to get the next page of results.
22723
23815
  # @param [Boolean] return_partial_success
22724
23816
  # Opt-in for partial success behavior which provides partial results in case of
22725
- # failure. The default value is false and the logic is the same as today.
23817
+ # failure. The default value is false.
22726
23818
  # @param [String] fields
22727
23819
  # Selector specifying which fields to include in a partial response.
22728
23820
  # @param [String] quota_user
@@ -22894,7 +23986,7 @@ module Google
22894
23986
  # by a previous list request to get the next page of results.
22895
23987
  # @param [Boolean] return_partial_success
22896
23988
  # Opt-in for partial success behavior which provides partial results in case of
22897
- # failure. The default value is false and the logic is the same as today.
23989
+ # failure. The default value is false.
22898
23990
  # @param [String] fields
22899
23991
  # Selector specifying which fields to include in a partial response.
22900
23992
  # @param [String] quota_user
@@ -23064,7 +24156,7 @@ module Google
23064
24156
  # by a previous list request to get the next page of results.
23065
24157
  # @param [Boolean] return_partial_success
23066
24158
  # Opt-in for partial success behavior which provides partial results in case of
23067
- # failure. The default value is false and the logic is the same as today.
24159
+ # failure. The default value is false.
23068
24160
  # @param [String] fields
23069
24161
  # Selector specifying which fields to include in a partial response.
23070
24162
  # @param [String] quota_user
@@ -23430,7 +24522,7 @@ module Google
23430
24522
  # by a previous list request to get the next page of results.
23431
24523
  # @param [Boolean] return_partial_success
23432
24524
  # Opt-in for partial success behavior which provides partial results in case of
23433
- # failure. The default value is false and the logic is the same as today.
24525
+ # failure. The default value is false.
23434
24526
  # @param [String] fields
23435
24527
  # Selector specifying which fields to include in a partial response.
23436
24528
  # @param [String] quota_user
@@ -23716,7 +24808,7 @@ module Google
23716
24808
  # by a previous list request to get the next page of results.
23717
24809
  # @param [Boolean] return_partial_success
23718
24810
  # Opt-in for partial success behavior which provides partial results in case of
23719
- # failure. The default value is false and the logic is the same as today.
24811
+ # failure. The default value is false.
23720
24812
  # @param [String] fields
23721
24813
  # Selector specifying which fields to include in a partial response.
23722
24814
  # @param [String] quota_user
@@ -23792,7 +24884,7 @@ module Google
23792
24884
  # by a previous list request to get the next page of results.
23793
24885
  # @param [Boolean] return_partial_success
23794
24886
  # Opt-in for partial success behavior which provides partial results in case of
23795
- # failure. The default value is false and the logic is the same as today.
24887
+ # failure. The default value is false.
23796
24888
  # @param [String] fields
23797
24889
  # Selector specifying which fields to include in a partial response.
23798
24890
  # @param [String] quota_user
@@ -24131,7 +25223,7 @@ module Google
24131
25223
  # by a previous list request to get the next page of results.
24132
25224
  # @param [Boolean] return_partial_success
24133
25225
  # Opt-in for partial success behavior which provides partial results in case of
24134
- # failure. The default value is false and the logic is the same as today.
25226
+ # failure. The default value is false.
24135
25227
  # @param [String] fields
24136
25228
  # Selector specifying which fields to include in a partial response.
24137
25229
  # @param [String] quota_user
@@ -24333,7 +25425,7 @@ module Google
24333
25425
  # by a previous list request to get the next page of results.
24334
25426
  # @param [Boolean] return_partial_success
24335
25427
  # Opt-in for partial success behavior which provides partial results in case of
24336
- # failure. The default value is false and the logic is the same as today.
25428
+ # failure. The default value is false.
24337
25429
  # @param [String] fields
24338
25430
  # Selector specifying which fields to include in a partial response.
24339
25431
  # @param [String] quota_user
@@ -24544,7 +25636,7 @@ module Google
24544
25636
  # by a previous list request to get the next page of results.
24545
25637
  # @param [Boolean] return_partial_success
24546
25638
  # Opt-in for partial success behavior which provides partial results in case of
24547
- # failure. The default value is false and the logic is the same as today.
25639
+ # failure. The default value is false.
24548
25640
  # @param [String] fields
24549
25641
  # Selector specifying which fields to include in a partial response.
24550
25642
  # @param [String] quota_user
@@ -24755,7 +25847,7 @@ module Google
24755
25847
  # by a previous list request to get the next page of results.
24756
25848
  # @param [Boolean] return_partial_success
24757
25849
  # Opt-in for partial success behavior which provides partial results in case of
24758
- # failure. The default value is false and the logic is the same as today.
25850
+ # failure. The default value is false.
24759
25851
  # @param [String] fields
24760
25852
  # Selector specifying which fields to include in a partial response.
24761
25853
  # @param [String] quota_user
@@ -24831,7 +25923,7 @@ module Google
24831
25923
  # by a previous list request to get the next page of results.
24832
25924
  # @param [Boolean] return_partial_success
24833
25925
  # Opt-in for partial success behavior which provides partial results in case of
24834
- # failure. The default value is false and the logic is the same as today.
25926
+ # failure. The default value is false.
24835
25927
  # @param [String] fields
24836
25928
  # Selector specifying which fields to include in a partial response.
24837
25929
  # @param [String] quota_user
@@ -24965,7 +26057,7 @@ module Google
24965
26057
  # by a previous list request to get the next page of results.
24966
26058
  # @param [Boolean] return_partial_success
24967
26059
  # Opt-in for partial success behavior which provides partial results in case of
24968
- # failure. The default value is false and the logic is the same as today.
26060
+ # failure. The default value is false.
24969
26061
  # @param [String] fields
24970
26062
  # Selector specifying which fields to include in a partial response.
24971
26063
  # @param [String] quota_user
@@ -25283,7 +26375,7 @@ module Google
25283
26375
  # by a previous list request to get the next page of results.
25284
26376
  # @param [Boolean] return_partial_success
25285
26377
  # Opt-in for partial success behavior which provides partial results in case of
25286
- # failure. The default value is false and the logic is the same as today.
26378
+ # failure. The default value is false.
25287
26379
  # @param [String] fields
25288
26380
  # Selector specifying which fields to include in a partial response.
25289
26381
  # @param [String] quota_user
@@ -25359,7 +26451,7 @@ module Google
25359
26451
  # by a previous list request to get the next page of results.
25360
26452
  # @param [Boolean] return_partial_success
25361
26453
  # Opt-in for partial success behavior which provides partial results in case of
25362
- # failure. The default value is false and the logic is the same as today.
26454
+ # failure. The default value is false.
25363
26455
  # @param [String] fields
25364
26456
  # Selector specifying which fields to include in a partial response.
25365
26457
  # @param [String] quota_user
@@ -25773,7 +26865,7 @@ module Google
25773
26865
  # by a previous list request to get the next page of results.
25774
26866
  # @param [Boolean] return_partial_success
25775
26867
  # Opt-in for partial success behavior which provides partial results in case of
25776
- # failure. The default value is false and the logic is the same as today.
26868
+ # failure. The default value is false.
25777
26869
  # @param [String] fields
25778
26870
  # Selector specifying which fields to include in a partial response.
25779
26871
  # @param [String] quota_user
@@ -25909,7 +27001,7 @@ module Google
25909
27001
  # by a previous list request to get the next page of results.
25910
27002
  # @param [Boolean] return_partial_success
25911
27003
  # Opt-in for partial success behavior which provides partial results in case of
25912
- # failure. The default value is false and the logic is the same as today.
27004
+ # failure. The default value is false.
25913
27005
  # @param [String] fields
25914
27006
  # Selector specifying which fields to include in a partial response.
25915
27007
  # @param [String] quota_user
@@ -26120,7 +27212,7 @@ module Google
26120
27212
  # by a previous list request to get the next page of results.
26121
27213
  # @param [Boolean] return_partial_success
26122
27214
  # Opt-in for partial success behavior which provides partial results in case of
26123
- # failure. The default value is false and the logic is the same as today.
27215
+ # failure. The default value is false.
26124
27216
  # @param [String] fields
26125
27217
  # Selector specifying which fields to include in a partial response.
26126
27218
  # @param [String] quota_user
@@ -26307,7 +27399,7 @@ module Google
26307
27399
  # by a previous list request to get the next page of results.
26308
27400
  # @param [Boolean] return_partial_success
26309
27401
  # Opt-in for partial success behavior which provides partial results in case of
26310
- # failure. The default value is false and the logic is the same as today.
27402
+ # failure. The default value is false.
26311
27403
  # @param [String] fields
26312
27404
  # Selector specifying which fields to include in a partial response.
26313
27405
  # @param [String] quota_user
@@ -26518,7 +27610,7 @@ module Google
26518
27610
  # by a previous list request to get the next page of results.
26519
27611
  # @param [Boolean] return_partial_success
26520
27612
  # Opt-in for partial success behavior which provides partial results in case of
26521
- # failure. The default value is false and the logic is the same as today.
27613
+ # failure. The default value is false.
26522
27614
  # @param [String] fields
26523
27615
  # Selector specifying which fields to include in a partial response.
26524
27616
  # @param [String] quota_user
@@ -26554,6 +27646,59 @@ module Google
26554
27646
  execute_or_queue_command(command, &block)
26555
27647
  end
26556
27648
 
27649
+ # Patches the specified TargetHttpsProxy resource with the data included in the
27650
+ # request. This method supports PATCH semantics and uses JSON merge patch format
27651
+ # and processing rules. (== suppress_warning http-rest-shadowed ==)
27652
+ # @param [String] project
27653
+ # Project ID for this request.
27654
+ # @param [String] target_https_proxy
27655
+ # Name of the TargetHttpsProxy resource to patch.
27656
+ # @param [Google::Apis::ComputeV1::TargetHttpsProxy] target_https_proxy_object
27657
+ # @param [String] request_id
27658
+ # An optional request ID to identify requests. Specify a unique request ID so
27659
+ # that if you must retry your request, the server will know to ignore the
27660
+ # request if it has already been completed.
27661
+ # For example, consider a situation where you make an initial request and the
27662
+ # request times out. If you make the request again with the same request ID, the
27663
+ # server can check if original operation with the same request ID was received,
27664
+ # and if so, will ignore the second request. This prevents clients from
27665
+ # accidentally creating duplicate commitments.
27666
+ # The request ID must be a valid UUID with the exception that zero UUID is not
27667
+ # supported (00000000-0000-0000-0000-000000000000).
27668
+ # @param [String] fields
27669
+ # Selector specifying which fields to include in a partial response.
27670
+ # @param [String] quota_user
27671
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
27672
+ # characters.
27673
+ # @param [String] user_ip
27674
+ # Deprecated. Please use quotaUser instead.
27675
+ # @param [Google::Apis::RequestOptions] options
27676
+ # Request-specific options
27677
+ #
27678
+ # @yield [result, err] Result & error if block supplied
27679
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
27680
+ # @yieldparam err [StandardError] error object if request failed
27681
+ #
27682
+ # @return [Google::Apis::ComputeV1::Operation]
27683
+ #
27684
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27685
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27686
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27687
+ def patch_target_https_proxy(project, target_https_proxy, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27688
+ command = make_simple_command(:patch, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
27689
+ command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation
27690
+ command.request_object = target_https_proxy_object
27691
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
27692
+ command.response_class = Google::Apis::ComputeV1::Operation
27693
+ command.params['project'] = project unless project.nil?
27694
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
27695
+ command.query['requestId'] = request_id unless request_id.nil?
27696
+ command.query['fields'] = fields unless fields.nil?
27697
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27698
+ command.query['userIp'] = user_ip unless user_ip.nil?
27699
+ execute_or_queue_command(command, &block)
27700
+ end
27701
+
26557
27702
  # Sets the QUIC override policy for TargetHttpsProxy.
26558
27703
  # @param [String] project
26559
27704
  # Project ID for this request.
@@ -26809,7 +27954,7 @@ module Google
26809
27954
  # by a previous list request to get the next page of results.
26810
27955
  # @param [Boolean] return_partial_success
26811
27956
  # Opt-in for partial success behavior which provides partial results in case of
26812
- # failure. The default value is false and the logic is the same as today.
27957
+ # failure. The default value is false.
26813
27958
  # @param [String] fields
26814
27959
  # Selector specifying which fields to include in a partial response.
26815
27960
  # @param [String] quota_user
@@ -27031,7 +28176,7 @@ module Google
27031
28176
  # by a previous list request to get the next page of results.
27032
28177
  # @param [Boolean] return_partial_success
27033
28178
  # Opt-in for partial success behavior which provides partial results in case of
27034
- # failure. The default value is false and the logic is the same as today.
28179
+ # failure. The default value is false.
27035
28180
  # @param [String] fields
27036
28181
  # Selector specifying which fields to include in a partial response.
27037
28182
  # @param [String] quota_user
@@ -27222,7 +28367,7 @@ module Google
27222
28367
  # by a previous list request to get the next page of results.
27223
28368
  # @param [Boolean] return_partial_success
27224
28369
  # Opt-in for partial success behavior which provides partial results in case of
27225
- # failure. The default value is false and the logic is the same as today.
28370
+ # failure. The default value is false.
27226
28371
  # @param [String] fields
27227
28372
  # Selector specifying which fields to include in a partial response.
27228
28373
  # @param [String] quota_user
@@ -27486,7 +28631,7 @@ module Google
27486
28631
  # by a previous list request to get the next page of results.
27487
28632
  # @param [Boolean] return_partial_success
27488
28633
  # Opt-in for partial success behavior which provides partial results in case of
27489
- # failure. The default value is false and the logic is the same as today.
28634
+ # failure. The default value is false.
27490
28635
  # @param [String] fields
27491
28636
  # Selector specifying which fields to include in a partial response.
27492
28637
  # @param [String] quota_user
@@ -27862,7 +29007,7 @@ module Google
27862
29007
  # by a previous list request to get the next page of results.
27863
29008
  # @param [Boolean] return_partial_success
27864
29009
  # Opt-in for partial success behavior which provides partial results in case of
27865
- # failure. The default value is false and the logic is the same as today.
29010
+ # failure. The default value is false.
27866
29011
  # @param [String] fields
27867
29012
  # Selector specifying which fields to include in a partial response.
27868
29013
  # @param [String] quota_user
@@ -28280,7 +29425,7 @@ module Google
28280
29425
  # by a previous list request to get the next page of results.
28281
29426
  # @param [Boolean] return_partial_success
28282
29427
  # Opt-in for partial success behavior which provides partial results in case of
28283
- # failure. The default value is false and the logic is the same as today.
29428
+ # failure. The default value is false.
28284
29429
  # @param [String] fields
28285
29430
  # Selector specifying which fields to include in a partial response.
28286
29431
  # @param [String] quota_user
@@ -28464,7 +29609,7 @@ module Google
28464
29609
  # by a previous list request to get the next page of results.
28465
29610
  # @param [Boolean] return_partial_success
28466
29611
  # Opt-in for partial success behavior which provides partial results in case of
28467
- # failure. The default value is false and the logic is the same as today.
29612
+ # failure. The default value is false.
28468
29613
  # @param [String] fields
28469
29614
  # Selector specifying which fields to include in a partial response.
28470
29615
  # @param [String] quota_user
@@ -28686,7 +29831,7 @@ module Google
28686
29831
  # by a previous list request to get the next page of results.
28687
29832
  # @param [Boolean] return_partial_success
28688
29833
  # Opt-in for partial success behavior which provides partial results in case of
28689
- # failure. The default value is false and the logic is the same as today.
29834
+ # failure. The default value is false.
28690
29835
  # @param [String] fields
28691
29836
  # Selector specifying which fields to include in a partial response.
28692
29837
  # @param [String] quota_user
@@ -28770,7 +29915,7 @@ module Google
28770
29915
  # by a previous list request to get the next page of results.
28771
29916
  # @param [Boolean] return_partial_success
28772
29917
  # Opt-in for partial success behavior which provides partial results in case of
28773
- # failure. The default value is false and the logic is the same as today.
29918
+ # failure. The default value is false.
28774
29919
  # @param [String] fields
28775
29920
  # Selector specifying which fields to include in a partial response.
28776
29921
  # @param [String] quota_user
@@ -29034,7 +30179,7 @@ module Google
29034
30179
  # by a previous list request to get the next page of results.
29035
30180
  # @param [Boolean] return_partial_success
29036
30181
  # Opt-in for partial success behavior which provides partial results in case of
29037
- # failure. The default value is false and the logic is the same as today.
30182
+ # failure. The default value is false.
29038
30183
  # @param [String] fields
29039
30184
  # Selector specifying which fields to include in a partial response.
29040
30185
  # @param [String] quota_user
@@ -29260,7 +30405,7 @@ module Google
29260
30405
  # by a previous list request to get the next page of results.
29261
30406
  # @param [Boolean] return_partial_success
29262
30407
  # Opt-in for partial success behavior which provides partial results in case of
29263
- # failure. The default value is false and the logic is the same as today.
30408
+ # failure. The default value is false.
29264
30409
  # @param [String] fields
29265
30410
  # Selector specifying which fields to include in a partial response.
29266
30411
  # @param [String] quota_user
@@ -29520,7 +30665,7 @@ module Google
29520
30665
  # by a previous list request to get the next page of results.
29521
30666
  # @param [Boolean] return_partial_success
29522
30667
  # Opt-in for partial success behavior which provides partial results in case of
29523
- # failure. The default value is false and the logic is the same as today.
30668
+ # failure. The default value is false.
29524
30669
  # @param [String] fields
29525
30670
  # Selector specifying which fields to include in a partial response.
29526
30671
  # @param [String] quota_user
@@ -29700,7 +30845,7 @@ module Google
29700
30845
  # by a previous list request to get the next page of results.
29701
30846
  # @param [Boolean] return_partial_success
29702
30847
  # Opt-in for partial success behavior which provides partial results in case of
29703
- # failure. The default value is false and the logic is the same as today.
30848
+ # failure. The default value is false.
29704
30849
  # @param [String] fields
29705
30850
  # Selector specifying which fields to include in a partial response.
29706
30851
  # @param [String] quota_user
@@ -29922,7 +31067,7 @@ module Google
29922
31067
  # by a previous list request to get the next page of results.
29923
31068
  # @param [Boolean] return_partial_success
29924
31069
  # Opt-in for partial success behavior which provides partial results in case of
29925
- # failure. The default value is false and the logic is the same as today.
31070
+ # failure. The default value is false.
29926
31071
  # @param [String] fields
29927
31072
  # Selector specifying which fields to include in a partial response.
29928
31073
  # @param [String] quota_user
@@ -30076,7 +31221,7 @@ module Google
30076
31221
  # by a previous list request to get the next page of results.
30077
31222
  # @param [Boolean] return_partial_success
30078
31223
  # Opt-in for partial success behavior which provides partial results in case of
30079
- # failure. The default value is false and the logic is the same as today.
31224
+ # failure. The default value is false.
30080
31225
  # @param [String] fields
30081
31226
  # Selector specifying which fields to include in a partial response.
30082
31227
  # @param [String] quota_user
@@ -30238,7 +31383,7 @@ module Google
30238
31383
  # by a previous list request to get the next page of results.
30239
31384
  # @param [Boolean] return_partial_success
30240
31385
  # Opt-in for partial success behavior which provides partial results in case of
30241
- # failure. The default value is false and the logic is the same as today.
31386
+ # failure. The default value is false.
30242
31387
  # @param [String] fields
30243
31388
  # Selector specifying which fields to include in a partial response.
30244
31389
  # @param [String] quota_user