google-apis-compute_beta 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15834,6 +15834,293 @@ module Google
15834
15834
  execute_or_queue_command(command, &block)
15835
15835
  end
15836
15836
 
15837
+ # Retrieves the list of all NetworkEdgeSecurityService resources available to
15838
+ # the specified project.
15839
+ # @param [String] project
15840
+ # Name of the project scoping this request.
15841
+ # @param [String] filter
15842
+ # A filter expression that filters resources listed in the response. The
15843
+ # expression must specify the field name, an operator, and the value that you
15844
+ # want to use for filtering. The value must be a string, a number, or a boolean.
15845
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
15846
+ # example, if you are filtering Compute Engine instances, you can exclude
15847
+ # instances named `example-instance` by specifying `name != example-instance`.
15848
+ # The `:` operator can be used with string fields to match substrings. For non-
15849
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
15850
+ # used to test whether a key has been defined. For example, to find all objects
15851
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
15852
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
15853
+ # to include instances only if they are not scheduled for automatic restarts.
15854
+ # You can use filtering on nested fields to filter based on resource labels. To
15855
+ # filter on multiple expressions, provide each separate expression within
15856
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
15857
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
15858
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
15859
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
15860
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
15861
+ # @param [Boolean] include_all_scopes
15862
+ # Indicates whether every visible scope for each scope type (zone, region,
15863
+ # global) should be included in the response. For new resource types added after
15864
+ # this field, the flag has no effect as new resource types will always include
15865
+ # every visible scope for each scope type in response. For resource types which
15866
+ # predate this field, if this flag is omitted or false, only scopes of the scope
15867
+ # types where the resource type is expected to be found will be included.
15868
+ # @param [Fixnum] max_results
15869
+ # The maximum number of results per page that should be returned. If the number
15870
+ # of available results is larger than `maxResults`, Compute Engine returns a `
15871
+ # nextPageToken` that can be used to get the next page of results in subsequent
15872
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
15873
+ # @param [String] order_by
15874
+ # Sorts list results by a certain order. By default, results are returned in
15875
+ # alphanumerical order based on the resource name. You can also sort results in
15876
+ # descending order based on the creation timestamp using `orderBy="
15877
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
15878
+ # field in reverse chronological order (newest result first). Use this to sort
15879
+ # resources like operations so that the newest operation is returned first.
15880
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
15881
+ # @param [String] page_token
15882
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
15883
+ # by a previous list request to get the next page of results.
15884
+ # @param [Boolean] return_partial_success
15885
+ # Opt-in for partial success behavior which provides partial results in case of
15886
+ # failure. The default value is false.
15887
+ # @param [String] fields
15888
+ # Selector specifying which fields to include in a partial response.
15889
+ # @param [String] quota_user
15890
+ # Available to use for quota purposes for server-side applications. Can be any
15891
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15892
+ # @param [String] user_ip
15893
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15894
+ # @param [Google::Apis::RequestOptions] options
15895
+ # Request-specific options
15896
+ #
15897
+ # @yield [result, err] Result & error if block supplied
15898
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEdgeSecurityServiceAggregatedList] parsed result object
15899
+ # @yieldparam err [StandardError] error object if request failed
15900
+ #
15901
+ # @return [Google::Apis::ComputeBeta::NetworkEdgeSecurityServiceAggregatedList]
15902
+ #
15903
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15904
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15905
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15906
+ 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)
15907
+ command = make_simple_command(:get, 'projects/{project}/aggregated/networkEdgeSecurityServices', options)
15908
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEdgeSecurityServiceAggregatedList::Representation
15909
+ command.response_class = Google::Apis::ComputeBeta::NetworkEdgeSecurityServiceAggregatedList
15910
+ command.params['project'] = project unless project.nil?
15911
+ command.query['filter'] = filter unless filter.nil?
15912
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
15913
+ command.query['maxResults'] = max_results unless max_results.nil?
15914
+ command.query['orderBy'] = order_by unless order_by.nil?
15915
+ command.query['pageToken'] = page_token unless page_token.nil?
15916
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
15917
+ command.query['fields'] = fields unless fields.nil?
15918
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15919
+ command.query['userIp'] = user_ip unless user_ip.nil?
15920
+ execute_or_queue_command(command, &block)
15921
+ end
15922
+
15923
+ # Deletes the specified service.
15924
+ # @param [String] project
15925
+ # Project ID for this request.
15926
+ # @param [String] region
15927
+ # Name of the region scoping this request.
15928
+ # @param [String] network_edge_security_service
15929
+ # Name of the network edge security service to delete.
15930
+ # @param [String] request_id
15931
+ # An optional request ID to identify requests. Specify a unique request ID so
15932
+ # that if you must retry your request, the server will know to ignore the
15933
+ # request if it has already been completed. For example, consider a situation
15934
+ # where you make an initial request and the request times out. If you make the
15935
+ # request again with the same request ID, the server can check if original
15936
+ # operation with the same request ID was received, and if so, will ignore the
15937
+ # second request. This prevents clients from accidentally creating duplicate
15938
+ # commitments. The request ID must be a valid UUID with the exception that zero
15939
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15940
+ # @param [String] fields
15941
+ # Selector specifying which fields to include in a partial response.
15942
+ # @param [String] quota_user
15943
+ # Available to use for quota purposes for server-side applications. Can be any
15944
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15945
+ # @param [String] user_ip
15946
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15947
+ # @param [Google::Apis::RequestOptions] options
15948
+ # Request-specific options
15949
+ #
15950
+ # @yield [result, err] Result & error if block supplied
15951
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15952
+ # @yieldparam err [StandardError] error object if request failed
15953
+ #
15954
+ # @return [Google::Apis::ComputeBeta::Operation]
15955
+ #
15956
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15957
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15958
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15959
+ 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)
15960
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
15961
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15962
+ command.response_class = Google::Apis::ComputeBeta::Operation
15963
+ command.params['project'] = project unless project.nil?
15964
+ command.params['region'] = region unless region.nil?
15965
+ command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
15966
+ command.query['requestId'] = request_id unless request_id.nil?
15967
+ command.query['fields'] = fields unless fields.nil?
15968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15969
+ command.query['userIp'] = user_ip unless user_ip.nil?
15970
+ execute_or_queue_command(command, &block)
15971
+ end
15972
+
15973
+ # Gets a specified NetworkEdgeSecurityService.
15974
+ # @param [String] project
15975
+ # Project ID for this request.
15976
+ # @param [String] region
15977
+ # Name of the region scoping this request.
15978
+ # @param [String] network_edge_security_service
15979
+ # Name of the network edge security service to get.
15980
+ # @param [String] fields
15981
+ # Selector specifying which fields to include in a partial response.
15982
+ # @param [String] quota_user
15983
+ # Available to use for quota purposes for server-side applications. Can be any
15984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15985
+ # @param [String] user_ip
15986
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15987
+ # @param [Google::Apis::RequestOptions] options
15988
+ # Request-specific options
15989
+ #
15990
+ # @yield [result, err] Result & error if block supplied
15991
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEdgeSecurityService] parsed result object
15992
+ # @yieldparam err [StandardError] error object if request failed
15993
+ #
15994
+ # @return [Google::Apis::ComputeBeta::NetworkEdgeSecurityService]
15995
+ #
15996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15999
+ def get_network_edge_security_service(project, region, network_edge_security_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16000
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
16001
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEdgeSecurityService::Representation
16002
+ command.response_class = Google::Apis::ComputeBeta::NetworkEdgeSecurityService
16003
+ command.params['project'] = project unless project.nil?
16004
+ command.params['region'] = region unless region.nil?
16005
+ command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
16006
+ command.query['fields'] = fields unless fields.nil?
16007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16008
+ command.query['userIp'] = user_ip unless user_ip.nil?
16009
+ execute_or_queue_command(command, &block)
16010
+ end
16011
+
16012
+ # Creates a new service in the specified project using the data included in the
16013
+ # request.
16014
+ # @param [String] project
16015
+ # Project ID for this request.
16016
+ # @param [String] region
16017
+ # Name of the region scoping this request.
16018
+ # @param [Google::Apis::ComputeBeta::NetworkEdgeSecurityService] network_edge_security_service_object
16019
+ # @param [String] request_id
16020
+ # An optional request ID to identify requests. Specify a unique request ID so
16021
+ # that if you must retry your request, the server will know to ignore the
16022
+ # request if it has already been completed. For example, consider a situation
16023
+ # where you make an initial request and the request times out. If you make the
16024
+ # request again with the same request ID, the server can check if original
16025
+ # operation with the same request ID was received, and if so, will ignore the
16026
+ # second request. This prevents clients from accidentally creating duplicate
16027
+ # commitments. The request ID must be a valid UUID with the exception that zero
16028
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
16029
+ # @param [Boolean] validate_only
16030
+ # If true, the request will not be committed.
16031
+ # @param [String] fields
16032
+ # Selector specifying which fields to include in a partial response.
16033
+ # @param [String] quota_user
16034
+ # Available to use for quota purposes for server-side applications. Can be any
16035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16036
+ # @param [String] user_ip
16037
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16038
+ # @param [Google::Apis::RequestOptions] options
16039
+ # Request-specific options
16040
+ #
16041
+ # @yield [result, err] Result & error if block supplied
16042
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16043
+ # @yieldparam err [StandardError] error object if request failed
16044
+ #
16045
+ # @return [Google::Apis::ComputeBeta::Operation]
16046
+ #
16047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16050
+ 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)
16051
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEdgeSecurityServices', options)
16052
+ command.request_representation = Google::Apis::ComputeBeta::NetworkEdgeSecurityService::Representation
16053
+ command.request_object = network_edge_security_service_object
16054
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16055
+ command.response_class = Google::Apis::ComputeBeta::Operation
16056
+ command.params['project'] = project unless project.nil?
16057
+ command.params['region'] = region unless region.nil?
16058
+ command.query['requestId'] = request_id unless request_id.nil?
16059
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
16060
+ command.query['fields'] = fields unless fields.nil?
16061
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16062
+ command.query['userIp'] = user_ip unless user_ip.nil?
16063
+ execute_or_queue_command(command, &block)
16064
+ end
16065
+
16066
+ # Patches the specified policy with the data included in the request.
16067
+ # @param [String] project
16068
+ # Project ID for this request.
16069
+ # @param [String] region
16070
+ # Name of the region scoping this request.
16071
+ # @param [String] network_edge_security_service
16072
+ # Name of the network edge security service to update.
16073
+ # @param [Google::Apis::ComputeBeta::NetworkEdgeSecurityService] network_edge_security_service_object
16074
+ # @param [Array<String>, String] paths
16075
+ # @param [String] request_id
16076
+ # An optional request ID to identify requests. Specify a unique request ID so
16077
+ # that if you must retry your request, the server will know to ignore the
16078
+ # request if it has already been completed. For example, consider a situation
16079
+ # where you make an initial request and the request times out. If you make the
16080
+ # request again with the same request ID, the server can check if original
16081
+ # operation with the same request ID was received, and if so, will ignore the
16082
+ # second request. This prevents clients from accidentally creating duplicate
16083
+ # commitments. The request ID must be a valid UUID with the exception that zero
16084
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
16085
+ # @param [String] update_mask
16086
+ # Indicates fields to be updated as part of this request.
16087
+ # @param [String] fields
16088
+ # Selector specifying which fields to include in a partial response.
16089
+ # @param [String] quota_user
16090
+ # Available to use for quota purposes for server-side applications. Can be any
16091
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16092
+ # @param [String] user_ip
16093
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16094
+ # @param [Google::Apis::RequestOptions] options
16095
+ # Request-specific options
16096
+ #
16097
+ # @yield [result, err] Result & error if block supplied
16098
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16099
+ # @yieldparam err [StandardError] error object if request failed
16100
+ #
16101
+ # @return [Google::Apis::ComputeBeta::Operation]
16102
+ #
16103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16106
+ 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)
16107
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
16108
+ command.request_representation = Google::Apis::ComputeBeta::NetworkEdgeSecurityService::Representation
16109
+ command.request_object = network_edge_security_service_object
16110
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16111
+ command.response_class = Google::Apis::ComputeBeta::Operation
16112
+ command.params['project'] = project unless project.nil?
16113
+ command.params['region'] = region unless region.nil?
16114
+ command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
16115
+ command.query['paths'] = paths unless paths.nil?
16116
+ command.query['requestId'] = request_id unless request_id.nil?
16117
+ command.query['updateMask'] = update_mask unless update_mask.nil?
16118
+ command.query['fields'] = fields unless fields.nil?
16119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16120
+ command.query['userIp'] = user_ip unless user_ip.nil?
16121
+ execute_or_queue_command(command, &block)
16122
+ end
16123
+
15837
16124
  # Retrieves the list of network endpoint groups and sorts them by zone.
15838
16125
  # @param [String] project
15839
16126
  # Project ID for this request.
@@ -27598,13 +27885,13 @@ module Google
27598
27885
  execute_or_queue_command(command, &block)
27599
27886
  end
27600
27887
 
27601
- # Deletes the specified SslCertificate resource in the region.
27888
+ # Deletes the specified policy.
27602
27889
  # @param [String] project
27603
27890
  # Project ID for this request.
27604
27891
  # @param [String] region
27605
27892
  # Name of the region scoping this request.
27606
- # @param [String] ssl_certificate
27607
- # Name of the SslCertificate resource to delete.
27893
+ # @param [String] security_policy
27894
+ # Name of the security policy to delete.
27608
27895
  # @param [String] request_id
27609
27896
  # An optional request ID to identify requests. Specify a unique request ID so
27610
27897
  # that if you must retry your request, the server will know to ignore the
@@ -27634,7 +27921,284 @@ module Google
27634
27921
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27635
27922
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27636
27923
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27637
- def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27924
+ def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27925
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
27926
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
27927
+ command.response_class = Google::Apis::ComputeBeta::Operation
27928
+ command.params['project'] = project unless project.nil?
27929
+ command.params['region'] = region unless region.nil?
27930
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
27931
+ command.query['requestId'] = request_id unless request_id.nil?
27932
+ command.query['fields'] = fields unless fields.nil?
27933
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27934
+ command.query['userIp'] = user_ip unless user_ip.nil?
27935
+ execute_or_queue_command(command, &block)
27936
+ end
27937
+
27938
+ # List all of the ordered rules present in a single specified policy.
27939
+ # @param [String] project
27940
+ # Project ID for this request.
27941
+ # @param [String] region
27942
+ # Name of the region scoping this request.
27943
+ # @param [String] security_policy
27944
+ # Name of the security policy to get.
27945
+ # @param [String] fields
27946
+ # Selector specifying which fields to include in a partial response.
27947
+ # @param [String] quota_user
27948
+ # Available to use for quota purposes for server-side applications. Can be any
27949
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27950
+ # @param [String] user_ip
27951
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27952
+ # @param [Google::Apis::RequestOptions] options
27953
+ # Request-specific options
27954
+ #
27955
+ # @yield [result, err] Result & error if block supplied
27956
+ # @yieldparam result [Google::Apis::ComputeBeta::SecurityPolicy] parsed result object
27957
+ # @yieldparam err [StandardError] error object if request failed
27958
+ #
27959
+ # @return [Google::Apis::ComputeBeta::SecurityPolicy]
27960
+ #
27961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27964
+ def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27965
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
27966
+ command.response_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
27967
+ command.response_class = Google::Apis::ComputeBeta::SecurityPolicy
27968
+ command.params['project'] = project unless project.nil?
27969
+ command.params['region'] = region unless region.nil?
27970
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
27971
+ command.query['fields'] = fields unless fields.nil?
27972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27973
+ command.query['userIp'] = user_ip unless user_ip.nil?
27974
+ execute_or_queue_command(command, &block)
27975
+ end
27976
+
27977
+ # Creates a new policy in the specified project using the data included in the
27978
+ # request.
27979
+ # @param [String] project
27980
+ # Project ID for this request.
27981
+ # @param [String] region
27982
+ # Name of the region scoping this request.
27983
+ # @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
27984
+ # @param [String] request_id
27985
+ # An optional request ID to identify requests. Specify a unique request ID so
27986
+ # that if you must retry your request, the server will know to ignore the
27987
+ # request if it has already been completed. For example, consider a situation
27988
+ # where you make an initial request and the request times out. If you make the
27989
+ # request again with the same request ID, the server can check if original
27990
+ # operation with the same request ID was received, and if so, will ignore the
27991
+ # second request. This prevents clients from accidentally creating duplicate
27992
+ # commitments. The request ID must be a valid UUID with the exception that zero
27993
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
27994
+ # @param [Boolean] validate_only
27995
+ # If true, the request will not be committed.
27996
+ # @param [String] fields
27997
+ # Selector specifying which fields to include in a partial response.
27998
+ # @param [String] quota_user
27999
+ # Available to use for quota purposes for server-side applications. Can be any
28000
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28001
+ # @param [String] user_ip
28002
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28003
+ # @param [Google::Apis::RequestOptions] options
28004
+ # Request-specific options
28005
+ #
28006
+ # @yield [result, err] Result & error if block supplied
28007
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
28008
+ # @yieldparam err [StandardError] error object if request failed
28009
+ #
28010
+ # @return [Google::Apis::ComputeBeta::Operation]
28011
+ #
28012
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28013
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28014
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28015
+ 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)
28016
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
28017
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
28018
+ command.request_object = security_policy_object
28019
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
28020
+ command.response_class = Google::Apis::ComputeBeta::Operation
28021
+ command.params['project'] = project unless project.nil?
28022
+ command.params['region'] = region unless region.nil?
28023
+ command.query['requestId'] = request_id unless request_id.nil?
28024
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
28025
+ command.query['fields'] = fields unless fields.nil?
28026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28027
+ command.query['userIp'] = user_ip unless user_ip.nil?
28028
+ execute_or_queue_command(command, &block)
28029
+ end
28030
+
28031
+ # List all the policies that have been configured for the specified project and
28032
+ # region.
28033
+ # @param [String] project
28034
+ # Project ID for this request.
28035
+ # @param [String] region
28036
+ # Name of the region scoping this request.
28037
+ # @param [String] filter
28038
+ # A filter expression that filters resources listed in the response. The
28039
+ # expression must specify the field name, an operator, and the value that you
28040
+ # want to use for filtering. The value must be a string, a number, or a boolean.
28041
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
28042
+ # example, if you are filtering Compute Engine instances, you can exclude
28043
+ # instances named `example-instance` by specifying `name != example-instance`.
28044
+ # The `:` operator can be used with string fields to match substrings. For non-
28045
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
28046
+ # used to test whether a key has been defined. For example, to find all objects
28047
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
28048
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
28049
+ # to include instances only if they are not scheduled for automatic restarts.
28050
+ # You can use filtering on nested fields to filter based on resource labels. To
28051
+ # filter on multiple expressions, provide each separate expression within
28052
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
28053
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
28054
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
28055
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
28056
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
28057
+ # @param [Fixnum] max_results
28058
+ # The maximum number of results per page that should be returned. If the number
28059
+ # of available results is larger than `maxResults`, Compute Engine returns a `
28060
+ # nextPageToken` that can be used to get the next page of results in subsequent
28061
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
28062
+ # @param [String] order_by
28063
+ # Sorts list results by a certain order. By default, results are returned in
28064
+ # alphanumerical order based on the resource name. You can also sort results in
28065
+ # descending order based on the creation timestamp using `orderBy="
28066
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
28067
+ # field in reverse chronological order (newest result first). Use this to sort
28068
+ # resources like operations so that the newest operation is returned first.
28069
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
28070
+ # @param [String] page_token
28071
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
28072
+ # by a previous list request to get the next page of results.
28073
+ # @param [Boolean] return_partial_success
28074
+ # Opt-in for partial success behavior which provides partial results in case of
28075
+ # failure. The default value is false.
28076
+ # @param [String] fields
28077
+ # Selector specifying which fields to include in a partial response.
28078
+ # @param [String] quota_user
28079
+ # Available to use for quota purposes for server-side applications. Can be any
28080
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28081
+ # @param [String] user_ip
28082
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28083
+ # @param [Google::Apis::RequestOptions] options
28084
+ # Request-specific options
28085
+ #
28086
+ # @yield [result, err] Result & error if block supplied
28087
+ # @yieldparam result [Google::Apis::ComputeBeta::SecurityPolicyList] parsed result object
28088
+ # @yieldparam err [StandardError] error object if request failed
28089
+ #
28090
+ # @return [Google::Apis::ComputeBeta::SecurityPolicyList]
28091
+ #
28092
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28093
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28094
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28095
+ 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)
28096
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
28097
+ command.response_representation = Google::Apis::ComputeBeta::SecurityPolicyList::Representation
28098
+ command.response_class = Google::Apis::ComputeBeta::SecurityPolicyList
28099
+ command.params['project'] = project unless project.nil?
28100
+ command.params['region'] = region unless region.nil?
28101
+ command.query['filter'] = filter unless filter.nil?
28102
+ command.query['maxResults'] = max_results unless max_results.nil?
28103
+ command.query['orderBy'] = order_by unless order_by.nil?
28104
+ command.query['pageToken'] = page_token unless page_token.nil?
28105
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
28106
+ command.query['fields'] = fields unless fields.nil?
28107
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28108
+ command.query['userIp'] = user_ip unless user_ip.nil?
28109
+ execute_or_queue_command(command, &block)
28110
+ end
28111
+
28112
+ # Patches the specified policy with the data included in the request.
28113
+ # @param [String] project
28114
+ # Project ID for this request.
28115
+ # @param [String] region
28116
+ # Name of the region scoping this request.
28117
+ # @param [String] security_policy
28118
+ # Name of the security policy to update.
28119
+ # @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
28120
+ # @param [String] request_id
28121
+ # An optional request ID to identify requests. Specify a unique request ID so
28122
+ # that if you must retry your request, the server will know to ignore the
28123
+ # request if it has already been completed. For example, consider a situation
28124
+ # where you make an initial request and the request times out. If you make the
28125
+ # request again with the same request ID, the server can check if original
28126
+ # operation with the same request ID was received, and if so, will ignore the
28127
+ # second request. This prevents clients from accidentally creating duplicate
28128
+ # commitments. The request ID must be a valid UUID with the exception that zero
28129
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28130
+ # @param [String] fields
28131
+ # Selector specifying which fields to include in a partial response.
28132
+ # @param [String] quota_user
28133
+ # Available to use for quota purposes for server-side applications. Can be any
28134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28135
+ # @param [String] user_ip
28136
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28137
+ # @param [Google::Apis::RequestOptions] options
28138
+ # Request-specific options
28139
+ #
28140
+ # @yield [result, err] Result & error if block supplied
28141
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
28142
+ # @yieldparam err [StandardError] error object if request failed
28143
+ #
28144
+ # @return [Google::Apis::ComputeBeta::Operation]
28145
+ #
28146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28149
+ 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)
28150
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
28151
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
28152
+ command.request_object = security_policy_object
28153
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
28154
+ command.response_class = Google::Apis::ComputeBeta::Operation
28155
+ command.params['project'] = project unless project.nil?
28156
+ command.params['region'] = region unless region.nil?
28157
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
28158
+ command.query['requestId'] = request_id unless request_id.nil?
28159
+ command.query['fields'] = fields unless fields.nil?
28160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28161
+ command.query['userIp'] = user_ip unless user_ip.nil?
28162
+ execute_or_queue_command(command, &block)
28163
+ end
28164
+
28165
+ # Deletes the specified SslCertificate resource in the region.
28166
+ # @param [String] project
28167
+ # Project ID for this request.
28168
+ # @param [String] region
28169
+ # Name of the region scoping this request.
28170
+ # @param [String] ssl_certificate
28171
+ # Name of the SslCertificate resource to delete.
28172
+ # @param [String] request_id
28173
+ # An optional request ID to identify requests. Specify a unique request ID so
28174
+ # that if you must retry your request, the server will know to ignore the
28175
+ # request if it has already been completed. For example, consider a situation
28176
+ # where you make an initial request and the request times out. If you make the
28177
+ # request again with the same request ID, the server can check if original
28178
+ # operation with the same request ID was received, and if so, will ignore the
28179
+ # second request. This prevents clients from accidentally creating duplicate
28180
+ # commitments. The request ID must be a valid UUID with the exception that zero
28181
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28182
+ # @param [String] fields
28183
+ # Selector specifying which fields to include in a partial response.
28184
+ # @param [String] quota_user
28185
+ # Available to use for quota purposes for server-side applications. Can be any
28186
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28187
+ # @param [String] user_ip
28188
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28189
+ # @param [Google::Apis::RequestOptions] options
28190
+ # Request-specific options
28191
+ #
28192
+ # @yield [result, err] Result & error if block supplied
28193
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
28194
+ # @yieldparam err [StandardError] error object if request failed
28195
+ #
28196
+ # @return [Google::Apis::ComputeBeta::Operation]
28197
+ #
28198
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28199
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28200
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28201
+ def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27638
28202
  command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options)
27639
28203
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
27640
28204
  command.response_class = Google::Apis::ComputeBeta::Operation
@@ -31060,6 +31624,92 @@ module Google
31060
31624
  execute_or_queue_command(command, &block)
31061
31625
  end
31062
31626
 
31627
+ # Retrieves the list of all SecurityPolicy resources, regional and global,
31628
+ # available to the specified project.
31629
+ # @param [String] project
31630
+ # Name of the project scoping this request.
31631
+ # @param [String] filter
31632
+ # A filter expression that filters resources listed in the response. The
31633
+ # expression must specify the field name, an operator, and the value that you
31634
+ # want to use for filtering. The value must be a string, a number, or a boolean.
31635
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
31636
+ # example, if you are filtering Compute Engine instances, you can exclude
31637
+ # instances named `example-instance` by specifying `name != example-instance`.
31638
+ # The `:` operator can be used with string fields to match substrings. For non-
31639
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
31640
+ # used to test whether a key has been defined. For example, to find all objects
31641
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
31642
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
31643
+ # to include instances only if they are not scheduled for automatic restarts.
31644
+ # You can use filtering on nested fields to filter based on resource labels. To
31645
+ # filter on multiple expressions, provide each separate expression within
31646
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
31647
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
31648
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
31649
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
31650
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
31651
+ # @param [Boolean] include_all_scopes
31652
+ # Indicates whether every visible scope for each scope type (zone, region,
31653
+ # global) should be included in the response. For new resource types added after
31654
+ # this field, the flag has no effect as new resource types will always include
31655
+ # every visible scope for each scope type in response. For resource types which
31656
+ # predate this field, if this flag is omitted or false, only scopes of the scope
31657
+ # types where the resource type is expected to be found will be included.
31658
+ # @param [Fixnum] max_results
31659
+ # The maximum number of results per page that should be returned. If the number
31660
+ # of available results is larger than `maxResults`, Compute Engine returns a `
31661
+ # nextPageToken` that can be used to get the next page of results in subsequent
31662
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
31663
+ # @param [String] order_by
31664
+ # Sorts list results by a certain order. By default, results are returned in
31665
+ # alphanumerical order based on the resource name. You can also sort results in
31666
+ # descending order based on the creation timestamp using `orderBy="
31667
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
31668
+ # field in reverse chronological order (newest result first). Use this to sort
31669
+ # resources like operations so that the newest operation is returned first.
31670
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
31671
+ # @param [String] page_token
31672
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
31673
+ # by a previous list request to get the next page of results.
31674
+ # @param [Boolean] return_partial_success
31675
+ # Opt-in for partial success behavior which provides partial results in case of
31676
+ # failure. The default value is false.
31677
+ # @param [String] fields
31678
+ # Selector specifying which fields to include in a partial response.
31679
+ # @param [String] quota_user
31680
+ # Available to use for quota purposes for server-side applications. Can be any
31681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31682
+ # @param [String] user_ip
31683
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31684
+ # @param [Google::Apis::RequestOptions] options
31685
+ # Request-specific options
31686
+ #
31687
+ # @yield [result, err] Result & error if block supplied
31688
+ # @yieldparam result [Google::Apis::ComputeBeta::SecurityPoliciesAggregatedList] parsed result object
31689
+ # @yieldparam err [StandardError] error object if request failed
31690
+ #
31691
+ # @return [Google::Apis::ComputeBeta::SecurityPoliciesAggregatedList]
31692
+ #
31693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31696
+ 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)
31697
+ command = make_simple_command(:get, 'projects/{project}/aggregated/securityPolicies', options)
31698
+ command.response_representation = Google::Apis::ComputeBeta::SecurityPoliciesAggregatedList::Representation
31699
+ command.response_class = Google::Apis::ComputeBeta::SecurityPoliciesAggregatedList
31700
+ command.params['project'] = project unless project.nil?
31701
+ command.query['filter'] = filter unless filter.nil?
31702
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
31703
+ command.query['maxResults'] = max_results unless max_results.nil?
31704
+ command.query['orderBy'] = order_by unless order_by.nil?
31705
+ command.query['pageToken'] = page_token unless page_token.nil?
31706
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31707
+ command.query['fields'] = fields unless fields.nil?
31708
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31709
+ command.query['userIp'] = user_ip unless user_ip.nil?
31710
+ execute_or_queue_command(command, &block)
31711
+ end
31712
+
31063
31713
  # Deletes the specified policy.
31064
31714
  # @param [String] project
31065
31715
  # Project ID for this request.