Class: Google::Apis::NetworksecurityV1beta1::NetworkSecurityService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::NetworksecurityV1beta1::NetworkSecurityService
- Defined in:
- lib/google/apis/networksecurity_v1beta1/service.rb
Overview
Network Security API
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#add_organization_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Adds items to an address group.
-
#add_project_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Adds items to an address group.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#clone_organization_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Clones items from one address group to another.
-
#clone_project_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Clones items from one address group to another.
-
#create_organization_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new address group in a given project and location.
-
#create_project_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new address group in a given project and location.
-
#create_project_location_authorization_policy(parent, authorization_policy_object = nil, authorization_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new AuthorizationPolicy in a given project and location.
-
#create_project_location_client_tls_policy(parent, client_tls_policy_object = nil, client_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new ClientTlsPolicy in a given project and location.
-
#create_project_location_server_tls_policy(parent, server_tls_policy_object = nil, server_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new ServerTlsPolicy in a given project and location.
-
#delete_organization_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes an address group.
-
#delete_organization_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Deletes a long-running operation.
-
#delete_project_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single address group.
-
#delete_project_location_authorization_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single AuthorizationPolicy.
-
#delete_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single ClientTlsPolicy.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Deletes a long-running operation.
-
#delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single ServerTlsPolicy.
-
#get_organization_location_address_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::AddressGroup
Gets details of a single address group.
-
#get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Location
Gets information about a location.
-
#get_project_location_address_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::AddressGroup
Gets details of a single address group.
-
#get_project_location_address_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource.
-
#get_project_location_authorization_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::AuthorizationPolicy
Gets details of a single AuthorizationPolicy.
-
#get_project_location_authorization_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource.
-
#get_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy
Gets details of a single ClientTlsPolicy.
-
#get_project_location_client_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy
Gets details of a single ServerTlsPolicy.
-
#get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource.
-
#initialize ⇒ NetworkSecurityService
constructor
A new instance of NetworkSecurityService.
-
#list_organization_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
Lists references of an address group.
-
#list_organization_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
Lists address groups in a given project and location.
-
#list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
Lists references of an address group.
-
#list_project_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
Lists address groups in a given project and location.
-
#list_project_location_authorization_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAuthorizationPoliciesResponse
Lists AuthorizationPolicies in a given project and location.
-
#list_project_location_client_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListClientTlsPoliciesResponse
Lists ClientTlsPolicies in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse
Lists ServerTlsPolicies in a given project and location.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_organization_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates parameters of an address group.
-
#patch_project_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single address group.
-
#patch_project_location_authorization_policy(name, authorization_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single AuthorizationPolicy.
-
#patch_project_location_client_tls_policy(name, client_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single ClientTlsPolicy.
-
#patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single ServerTlsPolicy.
-
#remove_organization_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Removes items from an address group.
-
#remove_project_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Removes items from an address group.
-
#set_project_location_address_group_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource.
-
#set_project_location_authorization_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource.
-
#set_project_location_client_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource.
-
#set_project_location_server_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource.
-
#test_project_location_address_group_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_project_location_authorization_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_project_location_client_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_project_location_server_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ NetworkSecurityService
Returns a new instance of NetworkSecurityService.
45 46 47 48 49 50 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 45 def initialize super('https://networksecurity.googleapis.com/', '', client_name: 'google-apis-networksecurity_v1beta1', client_version: Google::Apis::NetworksecurityV1beta1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#add_organization_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Adds items to an address group.
74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 74 def add_organization_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+addressGroup}:addItems', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest::Representation command.request_object = add_address_group_items_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['addressGroup'] = address_group unless address_group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_project_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Adds items to an address group.
650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 650 def add_project_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+addressGroup}:addItems', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest::Representation command.request_object = add_address_group_items_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['addressGroup'] = address_group unless address_group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED.
1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1741 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED.
439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 439 def cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#clone_organization_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Clones items from one address group to another.
108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 108 def clone_organization_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+addressGroup}:cloneItems', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest::Representation command.request_object = clone_address_group_items_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['addressGroup'] = address_group unless address_group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#clone_project_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Clones items from one address group to another.
684 685 686 687 688 689 690 691 692 693 694 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 684 def clone_project_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+addressGroup}:cloneItems', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest::Representation command.request_object = clone_address_group_items_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['addressGroup'] = address_group unless address_group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_organization_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new address group in a given project and location.
157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 157 def create_organization_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/addressGroups', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation command.request_object = address_group_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.query['addressGroupId'] = address_group_id unless address_group_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new address group in a given project and location.
733 734 735 736 737 738 739 740 741 742 743 744 745 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 733 def create_project_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/addressGroups', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation command.request_object = address_group_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.query['addressGroupId'] = address_group_id unless address_group_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_authorization_policy(parent, authorization_policy_object = nil, authorization_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new AuthorizationPolicy in a given project and location.
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1135 def (parent, = nil, authorization_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/authorizationPolicies', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AuthorizationPolicy::Representation command.request_object = command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.query['authorizationPolicyId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_client_tls_policy(parent, client_tls_policy_object = nil, client_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new ClientTlsPolicy in a given project and location.
1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1437 def create_project_location_client_tls_policy(parent, client_tls_policy_object = nil, client_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/clientTlsPolicies', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy::Representation command.request_object = client_tls_policy_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.query['clientTlsPolicyId'] = client_tls_policy_id unless client_tls_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_server_tls_policy(parent, server_tls_policy_object = nil, server_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Creates a new ServerTlsPolicy in a given project and location.
1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1883 def create_project_location_server_tls_policy(parent, server_tls_policy_object = nil, server_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/serverTlsPolicies', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation command.request_object = server_tls_policy_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.query['serverTlsPolicyId'] = server_tls_policy_id unless server_tls_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_organization_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes an address group.
203 204 205 206 207 208 209 210 211 212 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 203 def delete_organization_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_organization_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
474 475 476 477 478 479 480 481 482 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 474 def delete_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single address group.
779 780 781 782 783 784 785 786 787 788 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 779 def delete_project_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_authorization_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single AuthorizationPolicy.
1169 1170 1171 1172 1173 1174 1175 1176 1177 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1169 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single ClientTlsPolicy.
1471 1472 1473 1474 1475 1476 1477 1478 1479 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1471 def delete_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
1776 1777 1778 1779 1780 1781 1782 1783 1784 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1776 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Deletes a single ServerTlsPolicy.
1917 1918 1919 1920 1921 1922 1923 1924 1925 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1917 def delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_location_address_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::AddressGroup
Gets details of a single address group.
235 236 237 238 239 240 241 242 243 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 235 def get_organization_location_address_group(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::AddressGroup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
505 506 507 508 509 510 511 512 513 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 505 def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Location
Gets information about a location.
575 576 577 578 579 580 581 582 583 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 575 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Location::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_address_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::AddressGroup
Gets details of a single address group.
811 812 813 814 815 816 817 818 819 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 811 def get_project_location_address_group(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::AddressGroup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_address_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
855 856 857 858 859 860 861 862 863 864 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 855 def get_project_location_address_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_authorization_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::AuthorizationPolicy
Gets details of a single AuthorizationPolicy.
1200 1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1200 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::AuthorizationPolicy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::AuthorizationPolicy command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_authorization_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1244 def (resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy
Gets details of a single ClientTlsPolicy.
1502 1503 1504 1505 1506 1507 1508 1509 1510 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1502 def get_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_client_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1546 def get_project_location_client_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1807 1808 1809 1810 1811 1812 1813 1814 1815 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1807 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy
Gets details of a single ServerTlsPolicy.
1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1948 def get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1992 def get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
Lists references of an address group.
312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 312 def list_organization_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+addressGroup}:listReferences', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse command.params['addressGroup'] = address_group unless address_group.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
Lists address groups in a given project and location.
272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 272 def list_organization_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/addressGroups', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 542 def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}/operations', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
Lists references of an address group.
933 934 935 936 937 938 939 940 941 942 943 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 933 def list_project_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+addressGroup}:listReferences', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse command.params['addressGroup'] = address_group unless address_group.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
Lists address groups in a given project and location.
893 894 895 896 897 898 899 900 901 902 903 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 893 def list_project_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/addressGroups', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_authorization_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListAuthorizationPoliciesResponse
Lists AuthorizationPolicies in a given project and location.
1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1282 def (parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/authorizationPolicies', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAuthorizationPoliciesResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListAuthorizationPoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_client_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListClientTlsPoliciesResponse
Lists ClientTlsPolicies in a given project and location.
1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1584 def list_project_location_client_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/clientTlsPolicies', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListClientTlsPoliciesResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListClientTlsPoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1844 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}/operations', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse
Lists ServerTlsPolicies in a given project and location.
2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 2030 def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/serverTlsPolicies', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::ListLocationsResponse
Lists information about the supported locations for this service.
615 616 617 618 619 620 621 622 623 624 625 626 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 615 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}/locations', ) command.response_representation = Google::Apis::NetworksecurityV1beta1::ListLocationsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_organization_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates parameters of an address group.
363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 363 def patch_organization_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation command.request_object = address_group_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single address group.
984 985 986 987 988 989 990 991 992 993 994 995 996 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 984 def patch_project_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation command.request_object = address_group_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_authorization_policy(name, authorization_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single AuthorizationPolicy.
1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1322 def (name, = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::AuthorizationPolicy::Representation command.request_object = command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_client_tls_policy(name, client_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single ClientTlsPolicy.
1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1624 def patch_project_location_client_tls_policy(name, client_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy::Representation command.request_object = client_tls_policy_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Updates the parameters of a single ServerTlsPolicy.
2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 2070 def patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation command.request_object = server_tls_policy_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_organization_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Removes items from an address group.
399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 399 def remove_organization_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+addressGroup}:removeItems', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest::Representation command.request_object = remove_address_group_items_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['addressGroup'] = address_group unless address_group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_project_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::Operation
Removes items from an address group.
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1020 def remove_project_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+addressGroup}:removeItems', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest::Representation command.request_object = remove_address_group_items_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::Operation command.params['addressGroup'] = address_group unless address_group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_address_group_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1057 def set_project_location_address_group_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_authorization_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1360 def (resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_client_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1662 def set_project_location_client_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_server_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 2108 def set_project_location_server_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_address_group_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1096 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_authorization_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1399 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_client_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 1701 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_server_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'lib/google/apis/networksecurity_v1beta1/service.rb', line 2147 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |