google-apis-compute_v1 0.27.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/compute_v1/classes.rb +810 -235
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +236 -0
- data/lib/google/apis/compute_v1/service.rb +710 -5
- metadata +3 -3
@@ -11325,7 +11325,7 @@ module Google
|
|
11325
11325
|
execute_or_queue_command(command, &block)
|
11326
11326
|
end
|
11327
11327
|
|
11328
|
-
# Performs a reset on the instance. This is a hard reset
|
11328
|
+
# Performs a reset on the instance. This is a hard reset. The VM does not do a
|
11329
11329
|
# graceful shutdown. For more information, see Resetting an instance.
|
11330
11330
|
# @param [String] project
|
11331
11331
|
# Project ID for this request.
|
@@ -14434,6 +14434,293 @@ module Google
|
|
14434
14434
|
execute_or_queue_command(command, &block)
|
14435
14435
|
end
|
14436
14436
|
|
14437
|
+
# Retrieves the list of all NetworkEdgeSecurityService resources available to
|
14438
|
+
# the specified project.
|
14439
|
+
# @param [String] project
|
14440
|
+
# Name of the project scoping this request.
|
14441
|
+
# @param [String] filter
|
14442
|
+
# A filter expression that filters resources listed in the response. The
|
14443
|
+
# expression must specify the field name, an operator, and the value that you
|
14444
|
+
# want to use for filtering. The value must be a string, a number, or a boolean.
|
14445
|
+
# The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
|
14446
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
14447
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
14448
|
+
# The `:` operator can be used with string fields to match substrings. For non-
|
14449
|
+
# string fields it is equivalent to the `=` operator. The `:*` comparison can be
|
14450
|
+
# used to test whether a key has been defined. For example, to find all objects
|
14451
|
+
# with `owner` label use: ``` labels.owner:* ``` You can also filter nested
|
14452
|
+
# fields. For example, you could specify `scheduling.automaticRestart = false`
|
14453
|
+
# to include instances only if they are not scheduled for automatic restarts.
|
14454
|
+
# You can use filtering on nested fields to filter based on resource labels. To
|
14455
|
+
# filter on multiple expressions, provide each separate expression within
|
14456
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
14457
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
14458
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
14459
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
14460
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
14461
|
+
# @param [Boolean] include_all_scopes
|
14462
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
14463
|
+
# global) should be included in the response. For new resource types added after
|
14464
|
+
# this field, the flag has no effect as new resource types will always include
|
14465
|
+
# every visible scope for each scope type in response. For resource types which
|
14466
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
14467
|
+
# types where the resource type is expected to be found will be included.
|
14468
|
+
# @param [Fixnum] max_results
|
14469
|
+
# The maximum number of results per page that should be returned. If the number
|
14470
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
14471
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
14472
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
14473
|
+
# @param [String] order_by
|
14474
|
+
# Sorts list results by a certain order. By default, results are returned in
|
14475
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
14476
|
+
# descending order based on the creation timestamp using `orderBy="
|
14477
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
14478
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
14479
|
+
# resources like operations so that the newest operation is returned first.
|
14480
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
14481
|
+
# @param [String] page_token
|
14482
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
14483
|
+
# by a previous list request to get the next page of results.
|
14484
|
+
# @param [Boolean] return_partial_success
|
14485
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
14486
|
+
# failure. The default value is false.
|
14487
|
+
# @param [String] fields
|
14488
|
+
# Selector specifying which fields to include in a partial response.
|
14489
|
+
# @param [String] quota_user
|
14490
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14491
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14492
|
+
# @param [String] user_ip
|
14493
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14494
|
+
# @param [Google::Apis::RequestOptions] options
|
14495
|
+
# Request-specific options
|
14496
|
+
#
|
14497
|
+
# @yield [result, err] Result & error if block supplied
|
14498
|
+
# @yieldparam result [Google::Apis::ComputeV1::NetworkEdgeSecurityServiceAggregatedList] parsed result object
|
14499
|
+
# @yieldparam err [StandardError] error object if request failed
|
14500
|
+
#
|
14501
|
+
# @return [Google::Apis::ComputeV1::NetworkEdgeSecurityServiceAggregatedList]
|
14502
|
+
#
|
14503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14506
|
+
def aggregated_network_edge_security_service_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14507
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkEdgeSecurityServices', options)
|
14508
|
+
command.response_representation = Google::Apis::ComputeV1::NetworkEdgeSecurityServiceAggregatedList::Representation
|
14509
|
+
command.response_class = Google::Apis::ComputeV1::NetworkEdgeSecurityServiceAggregatedList
|
14510
|
+
command.params['project'] = project unless project.nil?
|
14511
|
+
command.query['filter'] = filter unless filter.nil?
|
14512
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
14513
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
14514
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
14515
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
14516
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
14517
|
+
command.query['fields'] = fields unless fields.nil?
|
14518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14519
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14520
|
+
execute_or_queue_command(command, &block)
|
14521
|
+
end
|
14522
|
+
|
14523
|
+
# Deletes the specified service.
|
14524
|
+
# @param [String] project
|
14525
|
+
# Project ID for this request.
|
14526
|
+
# @param [String] region
|
14527
|
+
# Name of the region scoping this request.
|
14528
|
+
# @param [String] network_edge_security_service
|
14529
|
+
# Name of the network edge security service to delete.
|
14530
|
+
# @param [String] request_id
|
14531
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14532
|
+
# that if you must retry your request, the server will know to ignore the
|
14533
|
+
# request if it has already been completed. For example, consider a situation
|
14534
|
+
# where you make an initial request and the request times out. If you make the
|
14535
|
+
# request again with the same request ID, the server can check if original
|
14536
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14537
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14538
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14539
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14540
|
+
# @param [String] fields
|
14541
|
+
# Selector specifying which fields to include in a partial response.
|
14542
|
+
# @param [String] quota_user
|
14543
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14544
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14545
|
+
# @param [String] user_ip
|
14546
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14547
|
+
# @param [Google::Apis::RequestOptions] options
|
14548
|
+
# Request-specific options
|
14549
|
+
#
|
14550
|
+
# @yield [result, err] Result & error if block supplied
|
14551
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
14552
|
+
# @yieldparam err [StandardError] error object if request failed
|
14553
|
+
#
|
14554
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
14555
|
+
#
|
14556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14559
|
+
def delete_network_edge_security_service(project, region, network_edge_security_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14560
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
14561
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
14562
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
14563
|
+
command.params['project'] = project unless project.nil?
|
14564
|
+
command.params['region'] = region unless region.nil?
|
14565
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
14566
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14567
|
+
command.query['fields'] = fields unless fields.nil?
|
14568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14569
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14570
|
+
execute_or_queue_command(command, &block)
|
14571
|
+
end
|
14572
|
+
|
14573
|
+
# Gets a specified NetworkEdgeSecurityService.
|
14574
|
+
# @param [String] project
|
14575
|
+
# Project ID for this request.
|
14576
|
+
# @param [String] region
|
14577
|
+
# Name of the region scoping this request.
|
14578
|
+
# @param [String] network_edge_security_service
|
14579
|
+
# Name of the network edge security service to get.
|
14580
|
+
# @param [String] fields
|
14581
|
+
# Selector specifying which fields to include in a partial response.
|
14582
|
+
# @param [String] quota_user
|
14583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14585
|
+
# @param [String] user_ip
|
14586
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14587
|
+
# @param [Google::Apis::RequestOptions] options
|
14588
|
+
# Request-specific options
|
14589
|
+
#
|
14590
|
+
# @yield [result, err] Result & error if block supplied
|
14591
|
+
# @yieldparam result [Google::Apis::ComputeV1::NetworkEdgeSecurityService] parsed result object
|
14592
|
+
# @yieldparam err [StandardError] error object if request failed
|
14593
|
+
#
|
14594
|
+
# @return [Google::Apis::ComputeV1::NetworkEdgeSecurityService]
|
14595
|
+
#
|
14596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14599
|
+
def get_network_edge_security_service(project, region, network_edge_security_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14600
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
14601
|
+
command.response_representation = Google::Apis::ComputeV1::NetworkEdgeSecurityService::Representation
|
14602
|
+
command.response_class = Google::Apis::ComputeV1::NetworkEdgeSecurityService
|
14603
|
+
command.params['project'] = project unless project.nil?
|
14604
|
+
command.params['region'] = region unless region.nil?
|
14605
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
14606
|
+
command.query['fields'] = fields unless fields.nil?
|
14607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14608
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14609
|
+
execute_or_queue_command(command, &block)
|
14610
|
+
end
|
14611
|
+
|
14612
|
+
# Creates a new service in the specified project using the data included in the
|
14613
|
+
# request.
|
14614
|
+
# @param [String] project
|
14615
|
+
# Project ID for this request.
|
14616
|
+
# @param [String] region
|
14617
|
+
# Name of the region scoping this request.
|
14618
|
+
# @param [Google::Apis::ComputeV1::NetworkEdgeSecurityService] network_edge_security_service_object
|
14619
|
+
# @param [String] request_id
|
14620
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14621
|
+
# that if you must retry your request, the server will know to ignore the
|
14622
|
+
# request if it has already been completed. For example, consider a situation
|
14623
|
+
# where you make an initial request and the request times out. If you make the
|
14624
|
+
# request again with the same request ID, the server can check if original
|
14625
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14626
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14627
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14628
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14629
|
+
# @param [Boolean] validate_only
|
14630
|
+
# If true, the request will not be committed.
|
14631
|
+
# @param [String] fields
|
14632
|
+
# Selector specifying which fields to include in a partial response.
|
14633
|
+
# @param [String] quota_user
|
14634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14636
|
+
# @param [String] user_ip
|
14637
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14638
|
+
# @param [Google::Apis::RequestOptions] options
|
14639
|
+
# Request-specific options
|
14640
|
+
#
|
14641
|
+
# @yield [result, err] Result & error if block supplied
|
14642
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
14643
|
+
# @yieldparam err [StandardError] error object if request failed
|
14644
|
+
#
|
14645
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
14646
|
+
#
|
14647
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14648
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14649
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14650
|
+
def insert_network_edge_security_service(project, region, network_edge_security_service_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14651
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEdgeSecurityServices', options)
|
14652
|
+
command.request_representation = Google::Apis::ComputeV1::NetworkEdgeSecurityService::Representation
|
14653
|
+
command.request_object = network_edge_security_service_object
|
14654
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
14655
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
14656
|
+
command.params['project'] = project unless project.nil?
|
14657
|
+
command.params['region'] = region unless region.nil?
|
14658
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14659
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
14660
|
+
command.query['fields'] = fields unless fields.nil?
|
14661
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14662
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14663
|
+
execute_or_queue_command(command, &block)
|
14664
|
+
end
|
14665
|
+
|
14666
|
+
# Patches the specified policy with the data included in the request.
|
14667
|
+
# @param [String] project
|
14668
|
+
# Project ID for this request.
|
14669
|
+
# @param [String] region
|
14670
|
+
# Name of the region scoping this request.
|
14671
|
+
# @param [String] network_edge_security_service
|
14672
|
+
# Name of the network edge security service to update.
|
14673
|
+
# @param [Google::Apis::ComputeV1::NetworkEdgeSecurityService] network_edge_security_service_object
|
14674
|
+
# @param [Array<String>, String] paths
|
14675
|
+
# @param [String] request_id
|
14676
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14677
|
+
# that if you must retry your request, the server will know to ignore the
|
14678
|
+
# request if it has already been completed. For example, consider a situation
|
14679
|
+
# where you make an initial request and the request times out. If you make the
|
14680
|
+
# request again with the same request ID, the server can check if original
|
14681
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14682
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14683
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14684
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14685
|
+
# @param [String] update_mask
|
14686
|
+
# Indicates fields to be updated as part of this request.
|
14687
|
+
# @param [String] fields
|
14688
|
+
# Selector specifying which fields to include in a partial response.
|
14689
|
+
# @param [String] quota_user
|
14690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14692
|
+
# @param [String] user_ip
|
14693
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14694
|
+
# @param [Google::Apis::RequestOptions] options
|
14695
|
+
# Request-specific options
|
14696
|
+
#
|
14697
|
+
# @yield [result, err] Result & error if block supplied
|
14698
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
14699
|
+
# @yieldparam err [StandardError] error object if request failed
|
14700
|
+
#
|
14701
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
14702
|
+
#
|
14703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14706
|
+
def patch_network_edge_security_service(project, region, network_edge_security_service, network_edge_security_service_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14707
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
14708
|
+
command.request_representation = Google::Apis::ComputeV1::NetworkEdgeSecurityService::Representation
|
14709
|
+
command.request_object = network_edge_security_service_object
|
14710
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
14711
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
14712
|
+
command.params['project'] = project unless project.nil?
|
14713
|
+
command.params['region'] = region unless region.nil?
|
14714
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
14715
|
+
command.query['paths'] = paths unless paths.nil?
|
14716
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14717
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
14718
|
+
command.query['fields'] = fields unless fields.nil?
|
14719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14720
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14721
|
+
execute_or_queue_command(command, &block)
|
14722
|
+
end
|
14723
|
+
|
14437
14724
|
# Retrieves the list of network endpoint groups and sorts them by zone.
|
14438
14725
|
# @param [String] project
|
14439
14726
|
# Project ID for this request.
|
@@ -24750,13 +25037,13 @@ module Google
|
|
24750
25037
|
execute_or_queue_command(command, &block)
|
24751
25038
|
end
|
24752
25039
|
|
24753
|
-
# Deletes the specified
|
25040
|
+
# Deletes the specified policy.
|
24754
25041
|
# @param [String] project
|
24755
25042
|
# Project ID for this request.
|
24756
25043
|
# @param [String] region
|
24757
25044
|
# Name of the region scoping this request.
|
24758
|
-
# @param [String]
|
24759
|
-
# Name of the
|
25045
|
+
# @param [String] security_policy
|
25046
|
+
# Name of the security policy to delete.
|
24760
25047
|
# @param [String] request_id
|
24761
25048
|
# An optional request ID to identify requests. Specify a unique request ID so
|
24762
25049
|
# that if you must retry your request, the server will know to ignore the
|
@@ -24786,7 +25073,284 @@ module Google
|
|
24786
25073
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24787
25074
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24788
25075
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24789
|
-
def
|
25076
|
+
def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25077
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
25078
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
25079
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
25080
|
+
command.params['project'] = project unless project.nil?
|
25081
|
+
command.params['region'] = region unless region.nil?
|
25082
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
25083
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
25084
|
+
command.query['fields'] = fields unless fields.nil?
|
25085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25086
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25087
|
+
execute_or_queue_command(command, &block)
|
25088
|
+
end
|
25089
|
+
|
25090
|
+
# List all of the ordered rules present in a single specified policy.
|
25091
|
+
# @param [String] project
|
25092
|
+
# Project ID for this request.
|
25093
|
+
# @param [String] region
|
25094
|
+
# Name of the region scoping this request.
|
25095
|
+
# @param [String] security_policy
|
25096
|
+
# Name of the security policy to get.
|
25097
|
+
# @param [String] fields
|
25098
|
+
# Selector specifying which fields to include in a partial response.
|
25099
|
+
# @param [String] quota_user
|
25100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25102
|
+
# @param [String] user_ip
|
25103
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25104
|
+
# @param [Google::Apis::RequestOptions] options
|
25105
|
+
# Request-specific options
|
25106
|
+
#
|
25107
|
+
# @yield [result, err] Result & error if block supplied
|
25108
|
+
# @yieldparam result [Google::Apis::ComputeV1::SecurityPolicy] parsed result object
|
25109
|
+
# @yieldparam err [StandardError] error object if request failed
|
25110
|
+
#
|
25111
|
+
# @return [Google::Apis::ComputeV1::SecurityPolicy]
|
25112
|
+
#
|
25113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25116
|
+
def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25117
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
25118
|
+
command.response_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
|
25119
|
+
command.response_class = Google::Apis::ComputeV1::SecurityPolicy
|
25120
|
+
command.params['project'] = project unless project.nil?
|
25121
|
+
command.params['region'] = region unless region.nil?
|
25122
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
25123
|
+
command.query['fields'] = fields unless fields.nil?
|
25124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25125
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25126
|
+
execute_or_queue_command(command, &block)
|
25127
|
+
end
|
25128
|
+
|
25129
|
+
# Creates a new policy in the specified project using the data included in the
|
25130
|
+
# request.
|
25131
|
+
# @param [String] project
|
25132
|
+
# Project ID for this request.
|
25133
|
+
# @param [String] region
|
25134
|
+
# Name of the region scoping this request.
|
25135
|
+
# @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
|
25136
|
+
# @param [String] request_id
|
25137
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
25138
|
+
# that if you must retry your request, the server will know to ignore the
|
25139
|
+
# request if it has already been completed. For example, consider a situation
|
25140
|
+
# where you make an initial request and the request times out. If you make the
|
25141
|
+
# request again with the same request ID, the server can check if original
|
25142
|
+
# operation with the same request ID was received, and if so, will ignore the
|
25143
|
+
# second request. This prevents clients from accidentally creating duplicate
|
25144
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
25145
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25146
|
+
# @param [Boolean] validate_only
|
25147
|
+
# If true, the request will not be committed.
|
25148
|
+
# @param [String] fields
|
25149
|
+
# Selector specifying which fields to include in a partial response.
|
25150
|
+
# @param [String] quota_user
|
25151
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25152
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25153
|
+
# @param [String] user_ip
|
25154
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25155
|
+
# @param [Google::Apis::RequestOptions] options
|
25156
|
+
# Request-specific options
|
25157
|
+
#
|
25158
|
+
# @yield [result, err] Result & error if block supplied
|
25159
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
25160
|
+
# @yieldparam err [StandardError] error object if request failed
|
25161
|
+
#
|
25162
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
25163
|
+
#
|
25164
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25165
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25166
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25167
|
+
def insert_region_security_policy(project, region, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25168
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
|
25169
|
+
command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
|
25170
|
+
command.request_object = security_policy_object
|
25171
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
25172
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
25173
|
+
command.params['project'] = project unless project.nil?
|
25174
|
+
command.params['region'] = region unless region.nil?
|
25175
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
25176
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
25177
|
+
command.query['fields'] = fields unless fields.nil?
|
25178
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25179
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25180
|
+
execute_or_queue_command(command, &block)
|
25181
|
+
end
|
25182
|
+
|
25183
|
+
# List all the policies that have been configured for the specified project and
|
25184
|
+
# region.
|
25185
|
+
# @param [String] project
|
25186
|
+
# Project ID for this request.
|
25187
|
+
# @param [String] region
|
25188
|
+
# Name of the region scoping this request.
|
25189
|
+
# @param [String] filter
|
25190
|
+
# A filter expression that filters resources listed in the response. The
|
25191
|
+
# expression must specify the field name, an operator, and the value that you
|
25192
|
+
# want to use for filtering. The value must be a string, a number, or a boolean.
|
25193
|
+
# The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
|
25194
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
25195
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
25196
|
+
# The `:` operator can be used with string fields to match substrings. For non-
|
25197
|
+
# string fields it is equivalent to the `=` operator. The `:*` comparison can be
|
25198
|
+
# used to test whether a key has been defined. For example, to find all objects
|
25199
|
+
# with `owner` label use: ``` labels.owner:* ``` You can also filter nested
|
25200
|
+
# fields. For example, you could specify `scheduling.automaticRestart = false`
|
25201
|
+
# to include instances only if they are not scheduled for automatic restarts.
|
25202
|
+
# You can use filtering on nested fields to filter based on resource labels. To
|
25203
|
+
# filter on multiple expressions, provide each separate expression within
|
25204
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
25205
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
25206
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
25207
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
25208
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
25209
|
+
# @param [Fixnum] max_results
|
25210
|
+
# The maximum number of results per page that should be returned. If the number
|
25211
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
25212
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
25213
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
25214
|
+
# @param [String] order_by
|
25215
|
+
# Sorts list results by a certain order. By default, results are returned in
|
25216
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
25217
|
+
# descending order based on the creation timestamp using `orderBy="
|
25218
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
25219
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
25220
|
+
# resources like operations so that the newest operation is returned first.
|
25221
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
25222
|
+
# @param [String] page_token
|
25223
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
25224
|
+
# by a previous list request to get the next page of results.
|
25225
|
+
# @param [Boolean] return_partial_success
|
25226
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
25227
|
+
# failure. The default value is false.
|
25228
|
+
# @param [String] fields
|
25229
|
+
# Selector specifying which fields to include in a partial response.
|
25230
|
+
# @param [String] quota_user
|
25231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25233
|
+
# @param [String] user_ip
|
25234
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25235
|
+
# @param [Google::Apis::RequestOptions] options
|
25236
|
+
# Request-specific options
|
25237
|
+
#
|
25238
|
+
# @yield [result, err] Result & error if block supplied
|
25239
|
+
# @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyList] parsed result object
|
25240
|
+
# @yieldparam err [StandardError] error object if request failed
|
25241
|
+
#
|
25242
|
+
# @return [Google::Apis::ComputeV1::SecurityPolicyList]
|
25243
|
+
#
|
25244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25247
|
+
def list_region_security_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25248
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
|
25249
|
+
command.response_representation = Google::Apis::ComputeV1::SecurityPolicyList::Representation
|
25250
|
+
command.response_class = Google::Apis::ComputeV1::SecurityPolicyList
|
25251
|
+
command.params['project'] = project unless project.nil?
|
25252
|
+
command.params['region'] = region unless region.nil?
|
25253
|
+
command.query['filter'] = filter unless filter.nil?
|
25254
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
25255
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
25256
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
25257
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
25258
|
+
command.query['fields'] = fields unless fields.nil?
|
25259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25260
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25261
|
+
execute_or_queue_command(command, &block)
|
25262
|
+
end
|
25263
|
+
|
25264
|
+
# Patches the specified policy with the data included in the request.
|
25265
|
+
# @param [String] project
|
25266
|
+
# Project ID for this request.
|
25267
|
+
# @param [String] region
|
25268
|
+
# Name of the region scoping this request.
|
25269
|
+
# @param [String] security_policy
|
25270
|
+
# Name of the security policy to update.
|
25271
|
+
# @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
|
25272
|
+
# @param [String] request_id
|
25273
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
25274
|
+
# that if you must retry your request, the server will know to ignore the
|
25275
|
+
# request if it has already been completed. For example, consider a situation
|
25276
|
+
# where you make an initial request and the request times out. If you make the
|
25277
|
+
# request again with the same request ID, the server can check if original
|
25278
|
+
# operation with the same request ID was received, and if so, will ignore the
|
25279
|
+
# second request. This prevents clients from accidentally creating duplicate
|
25280
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
25281
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25282
|
+
# @param [String] fields
|
25283
|
+
# Selector specifying which fields to include in a partial response.
|
25284
|
+
# @param [String] quota_user
|
25285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25287
|
+
# @param [String] user_ip
|
25288
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25289
|
+
# @param [Google::Apis::RequestOptions] options
|
25290
|
+
# Request-specific options
|
25291
|
+
#
|
25292
|
+
# @yield [result, err] Result & error if block supplied
|
25293
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
25294
|
+
# @yieldparam err [StandardError] error object if request failed
|
25295
|
+
#
|
25296
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
25297
|
+
#
|
25298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25301
|
+
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25302
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
25303
|
+
command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
|
25304
|
+
command.request_object = security_policy_object
|
25305
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
25306
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
25307
|
+
command.params['project'] = project unless project.nil?
|
25308
|
+
command.params['region'] = region unless region.nil?
|
25309
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
25310
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
25311
|
+
command.query['fields'] = fields unless fields.nil?
|
25312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25313
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25314
|
+
execute_or_queue_command(command, &block)
|
25315
|
+
end
|
25316
|
+
|
25317
|
+
# Deletes the specified SslCertificate resource in the region.
|
25318
|
+
# @param [String] project
|
25319
|
+
# Project ID for this request.
|
25320
|
+
# @param [String] region
|
25321
|
+
# Name of the region scoping this request.
|
25322
|
+
# @param [String] ssl_certificate
|
25323
|
+
# Name of the SslCertificate resource to delete.
|
25324
|
+
# @param [String] request_id
|
25325
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
25326
|
+
# that if you must retry your request, the server will know to ignore the
|
25327
|
+
# request if it has already been completed. For example, consider a situation
|
25328
|
+
# where you make an initial request and the request times out. If you make the
|
25329
|
+
# request again with the same request ID, the server can check if original
|
25330
|
+
# operation with the same request ID was received, and if so, will ignore the
|
25331
|
+
# second request. This prevents clients from accidentally creating duplicate
|
25332
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
25333
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25334
|
+
# @param [String] fields
|
25335
|
+
# Selector specifying which fields to include in a partial response.
|
25336
|
+
# @param [String] quota_user
|
25337
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25338
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25339
|
+
# @param [String] user_ip
|
25340
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25341
|
+
# @param [Google::Apis::RequestOptions] options
|
25342
|
+
# Request-specific options
|
25343
|
+
#
|
25344
|
+
# @yield [result, err] Result & error if block supplied
|
25345
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
25346
|
+
# @yieldparam err [StandardError] error object if request failed
|
25347
|
+
#
|
25348
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
25349
|
+
#
|
25350
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25351
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25352
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25353
|
+
def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24790
25354
|
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options)
|
24791
25355
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
24792
25356
|
command.response_class = Google::Apis::ComputeV1::Operation
|
@@ -25469,6 +26033,61 @@ module Google
|
|
25469
26033
|
execute_or_queue_command(command, &block)
|
25470
26034
|
end
|
25471
26035
|
|
26036
|
+
# Patches the specified regional TargetHttpsProxy resource with the data
|
26037
|
+
# included in the request. This method supports PATCH semantics and uses JSON
|
26038
|
+
# merge patch format and processing rules.
|
26039
|
+
# @param [String] project
|
26040
|
+
# Project ID for this request.
|
26041
|
+
# @param [String] region
|
26042
|
+
# Name of the region for this request.
|
26043
|
+
# @param [String] target_https_proxy
|
26044
|
+
# Name of the TargetHttpsProxy resource to patch.
|
26045
|
+
# @param [Google::Apis::ComputeV1::TargetHttpsProxy] target_https_proxy_object
|
26046
|
+
# @param [String] request_id
|
26047
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26048
|
+
# that if you must retry your request, the server will know to ignore the
|
26049
|
+
# request if it has already been completed. For example, consider a situation
|
26050
|
+
# where you make an initial request and the request times out. If you make the
|
26051
|
+
# request again with the same request ID, the server can check if original
|
26052
|
+
# operation with the same request ID was received, and if so, will ignore the
|
26053
|
+
# second request. This prevents clients from accidentally creating duplicate
|
26054
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
26055
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
26056
|
+
# @param [String] fields
|
26057
|
+
# Selector specifying which fields to include in a partial response.
|
26058
|
+
# @param [String] quota_user
|
26059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26061
|
+
# @param [String] user_ip
|
26062
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26063
|
+
# @param [Google::Apis::RequestOptions] options
|
26064
|
+
# Request-specific options
|
26065
|
+
#
|
26066
|
+
# @yield [result, err] Result & error if block supplied
|
26067
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
26068
|
+
# @yieldparam err [StandardError] error object if request failed
|
26069
|
+
#
|
26070
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
26071
|
+
#
|
26072
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26073
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26074
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26075
|
+
def patch_region_target_https_proxy(project, region, target_https_proxy, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26076
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
|
26077
|
+
command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation
|
26078
|
+
command.request_object = target_https_proxy_object
|
26079
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
26080
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
26081
|
+
command.params['project'] = project unless project.nil?
|
26082
|
+
command.params['region'] = region unless region.nil?
|
26083
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
26084
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26085
|
+
command.query['fields'] = fields unless fields.nil?
|
26086
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26087
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26088
|
+
execute_or_queue_command(command, &block)
|
26089
|
+
end
|
26090
|
+
|
25472
26091
|
# Replaces SslCertificates for TargetHttpsProxy.
|
25473
26092
|
# @param [String] project
|
25474
26093
|
# Project ID for this request.
|
@@ -27853,6 +28472,92 @@ module Google
|
|
27853
28472
|
execute_or_queue_command(command, &block)
|
27854
28473
|
end
|
27855
28474
|
|
28475
|
+
# Retrieves the list of all SecurityPolicy resources, regional and global,
|
28476
|
+
# available to the specified project.
|
28477
|
+
# @param [String] project
|
28478
|
+
# Name of the project scoping this request.
|
28479
|
+
# @param [String] filter
|
28480
|
+
# A filter expression that filters resources listed in the response. The
|
28481
|
+
# expression must specify the field name, an operator, and the value that you
|
28482
|
+
# want to use for filtering. The value must be a string, a number, or a boolean.
|
28483
|
+
# The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
|
28484
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
28485
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
28486
|
+
# The `:` operator can be used with string fields to match substrings. For non-
|
28487
|
+
# string fields it is equivalent to the `=` operator. The `:*` comparison can be
|
28488
|
+
# used to test whether a key has been defined. For example, to find all objects
|
28489
|
+
# with `owner` label use: ``` labels.owner:* ``` You can also filter nested
|
28490
|
+
# fields. For example, you could specify `scheduling.automaticRestart = false`
|
28491
|
+
# to include instances only if they are not scheduled for automatic restarts.
|
28492
|
+
# You can use filtering on nested fields to filter based on resource labels. To
|
28493
|
+
# filter on multiple expressions, provide each separate expression within
|
28494
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
28495
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
28496
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
28497
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
28498
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
28499
|
+
# @param [Boolean] include_all_scopes
|
28500
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
28501
|
+
# global) should be included in the response. For new resource types added after
|
28502
|
+
# this field, the flag has no effect as new resource types will always include
|
28503
|
+
# every visible scope for each scope type in response. For resource types which
|
28504
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
28505
|
+
# types where the resource type is expected to be found will be included.
|
28506
|
+
# @param [Fixnum] max_results
|
28507
|
+
# The maximum number of results per page that should be returned. If the number
|
28508
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28509
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
28510
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28511
|
+
# @param [String] order_by
|
28512
|
+
# Sorts list results by a certain order. By default, results are returned in
|
28513
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
28514
|
+
# descending order based on the creation timestamp using `orderBy="
|
28515
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
28516
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
28517
|
+
# resources like operations so that the newest operation is returned first.
|
28518
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28519
|
+
# @param [String] page_token
|
28520
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28521
|
+
# by a previous list request to get the next page of results.
|
28522
|
+
# @param [Boolean] return_partial_success
|
28523
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
28524
|
+
# failure. The default value is false.
|
28525
|
+
# @param [String] fields
|
28526
|
+
# Selector specifying which fields to include in a partial response.
|
28527
|
+
# @param [String] quota_user
|
28528
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28529
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28530
|
+
# @param [String] user_ip
|
28531
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28532
|
+
# @param [Google::Apis::RequestOptions] options
|
28533
|
+
# Request-specific options
|
28534
|
+
#
|
28535
|
+
# @yield [result, err] Result & error if block supplied
|
28536
|
+
# @yieldparam result [Google::Apis::ComputeV1::SecurityPoliciesAggregatedList] parsed result object
|
28537
|
+
# @yieldparam err [StandardError] error object if request failed
|
28538
|
+
#
|
28539
|
+
# @return [Google::Apis::ComputeV1::SecurityPoliciesAggregatedList]
|
28540
|
+
#
|
28541
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28542
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28543
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28544
|
+
def aggregated_security_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28545
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/securityPolicies', options)
|
28546
|
+
command.response_representation = Google::Apis::ComputeV1::SecurityPoliciesAggregatedList::Representation
|
28547
|
+
command.response_class = Google::Apis::ComputeV1::SecurityPoliciesAggregatedList
|
28548
|
+
command.params['project'] = project unless project.nil?
|
28549
|
+
command.query['filter'] = filter unless filter.nil?
|
28550
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
28551
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
28552
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
28553
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
28554
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28555
|
+
command.query['fields'] = fields unless fields.nil?
|
28556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28557
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28558
|
+
execute_or_queue_command(command, &block)
|
28559
|
+
end
|
28560
|
+
|
27856
28561
|
# Deletes the specified policy.
|
27857
28562
|
# @param [String] project
|
27858
28563
|
# Project ID for this request.
|