Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.
Client for the OrganizationSecurityProfileGroupService service.
Organization SecurityProfileGroup is created under organization.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the OrganizationSecurityProfileGroupService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all OrganizationSecurityProfileGroupService clients ::Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the OrganizationSecurityProfileGroupService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_security_profile
def create_security_profile(request, options = nil) -> ::Gapic::Operation
def create_security_profile(parent: nil, security_profile_id: nil, security_profile: nil) -> ::Gapic::OperationCreates a new SecurityProfile in a given organization and location.
def create_security_profile(request, options = nil) -> ::Gapic::Operationcreate_security_profile via a request object, either of type
CreateSecurityProfileRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateSecurityProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_security_profile(parent: nil, security_profile_id: nil, security_profile: nil) -> ::Gapic::Operationcreate_security_profile via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource of the SecurityProfile. Must be in the format
projects|organizations/*/locations/{location}. - security_profile_id (::String) — Required. Short name of the SecurityProfile resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile1".
- security_profile (::Google::Cloud::NetworkSecurity::V1::SecurityProfile, ::Hash) — Required. SecurityProfile resource to be created.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateSecurityProfileRequest.new # Call the create_security_profile method. result = client.create_security_profile request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_security_profile_group
def create_security_profile_group(request, options = nil) -> ::Gapic::Operation
def create_security_profile_group(parent: nil, security_profile_group_id: nil, security_profile_group: nil) -> ::Gapic::OperationCreates a new SecurityProfileGroup in a given organization and location.
def create_security_profile_group(request, options = nil) -> ::Gapic::Operationcreate_security_profile_group via a request object, either of type
CreateSecurityProfileGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateSecurityProfileGroupRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_security_profile_group(parent: nil, security_profile_group_id: nil, security_profile_group: nil) -> ::Gapic::Operationcreate_security_profile_group via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource of the SecurityProfileGroup. Must be in the
format
projects|organizations/*/locations/{location}. - security_profile_group_id (::String) — Required. Short name of the SecurityProfileGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile_group1".
- security_profile_group (::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup, ::Hash) — Required. SecurityProfileGroup resource to be created.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateSecurityProfileGroupRequest.new # Call the create_security_profile_group method. result = client.create_security_profile_group request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_security_profile
def delete_security_profile(request, options = nil) -> ::Gapic::Operation
def delete_security_profile(name: nil, etag: nil) -> ::Gapic::OperationDeletes a single SecurityProfile.
def delete_security_profile(request, options = nil) -> ::Gapic::Operationdelete_security_profile via a request object, either of type
DeleteSecurityProfileRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteSecurityProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_security_profile(name: nil, etag: nil) -> ::Gapic::Operationdelete_security_profile via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. A name of the SecurityProfile to delete. Must be in the format
projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}. - etag (::String) — Optional. If client provided etag is out of date, delete will return FAILED_PRECONDITION error.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteSecurityProfileRequest.new # Call the delete_security_profile method. result = client.delete_security_profile request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_security_profile_group
def delete_security_profile_group(request, options = nil) -> ::Gapic::Operation
def delete_security_profile_group(name: nil, etag: nil) -> ::Gapic::OperationDeletes a single SecurityProfileGroup.
def delete_security_profile_group(request, options = nil) -> ::Gapic::Operationdelete_security_profile_group via a request object, either of type
DeleteSecurityProfileGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteSecurityProfileGroupRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_security_profile_group(name: nil, etag: nil) -> ::Gapic::Operationdelete_security_profile_group via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. A name of the SecurityProfileGroup to delete. Must be in the
format
projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}. - etag (::String) — Optional. If client provided etag is out of date, delete will return FAILED_PRECONDITION error.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteSecurityProfileGroupRequest.new # Call the delete_security_profile_group method. result = client.delete_security_profile_group request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_security_profile
def get_security_profile(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfile
def get_security_profile(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileGets details of a single SecurityProfile.
def get_security_profile(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileget_security_profile via a request object, either of type
GetSecurityProfileRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetSecurityProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_security_profile(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileget_security_profile via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. A name of the SecurityProfile to get. Must be in the format
projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::SecurityProfile)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetSecurityProfileRequest.new # Call the get_security_profile method. result = client.get_security_profile request # The returned object is of type Google::Cloud::NetworkSecurity::V1::SecurityProfile. p result
#get_security_profile_group
def get_security_profile_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup
def get_security_profile_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroupGets details of a single SecurityProfileGroup.
def get_security_profile_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroupget_security_profile_group via a request object, either of type
GetSecurityProfileGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetSecurityProfileGroupRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_security_profile_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroupget_security_profile_group via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. A name of the SecurityProfileGroup to get. Must be in the format
projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetSecurityProfileGroupRequest.new # Call the get_security_profile_group method. result = client.get_security_profile_group request # The returned object is of type Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new OrganizationSecurityProfileGroupService client object.
- (config) — Configure the OrganizationSecurityProfileGroupService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new do |config| config.timeout = 10.0 end
#list_security_profile_groups
def list_security_profile_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup>
def list_security_profile_groups(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup>Lists SecurityProfileGroups in a given organization and location.
def list_security_profile_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup>list_security_profile_groups via a request object, either of type
ListSecurityProfileGroupsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListSecurityProfileGroupsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_security_profile_groups(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup>list_security_profile_groups via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
projects|organizations/*/locations/{location}. - page_size (::Integer) — Optional. Maximum number of SecurityProfileGroups to return per call.
-
page_token (::String) — Optional. The value returned by the last
ListSecurityProfileGroupsResponseIndicates that this is a continuation of a priorListSecurityProfileGroupscall, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListSecurityProfileGroupsRequest.new # Call the list_security_profile_groups method. result = client.list_security_profile_groups request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup. p item end
#list_security_profiles
def list_security_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfile>
def list_security_profiles(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfile>Lists SecurityProfiles in a given organization and location.
def list_security_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfile>list_security_profiles via a request object, either of type
ListSecurityProfilesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListSecurityProfilesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_security_profiles(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfile>list_security_profiles via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
projects|organizations/*/locations/{location}. - page_size (::Integer) — Optional. Maximum number of SecurityProfiles to return per call.
-
page_token (::String) — Optional. The value returned by the last
ListSecurityProfilesResponseIndicates that this is a continuation of a priorListSecurityProfilescall, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfile>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SecurityProfile>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListSecurityProfilesRequest.new # Call the list_security_profiles method. result = client.list_security_profiles request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetworkSecurity::V1::SecurityProfile. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_security_profile
def update_security_profile(request, options = nil) -> ::Gapic::Operation
def update_security_profile(update_mask: nil, security_profile: nil) -> ::Gapic::OperationUpdates the parameters of a single SecurityProfile.
def update_security_profile(request, options = nil) -> ::Gapic::Operationupdate_security_profile via a request object, either of type
UpdateSecurityProfileRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateSecurityProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_security_profile(update_mask: nil, security_profile: nil) -> ::Gapic::Operationupdate_security_profile via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the SecurityProfile resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask.
- security_profile (::Google::Cloud::NetworkSecurity::V1::SecurityProfile, ::Hash) — Required. Updated SecurityProfile resource.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateSecurityProfileRequest.new # Call the update_security_profile method. result = client.update_security_profile request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_security_profile_group
def update_security_profile_group(request, options = nil) -> ::Gapic::Operation
def update_security_profile_group(update_mask: nil, security_profile_group: nil) -> ::Gapic::OperationUpdates the parameters of a single SecurityProfileGroup.
def update_security_profile_group(request, options = nil) -> ::Gapic::Operationupdate_security_profile_group via a request object, either of type
UpdateSecurityProfileGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateSecurityProfileGroupRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_security_profile_group(update_mask: nil, security_profile_group: nil) -> ::Gapic::Operationupdate_security_profile_group via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the SecurityProfileGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask.
- security_profile_group (::Google::Cloud::NetworkSecurity::V1::SecurityProfileGroup, ::Hash) — Required. Updated SecurityProfileGroup resource.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::OrganizationSecurityProfileGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateSecurityProfileGroupRequest.new # Call the update_security_profile_group method. result = client.update_security_profile_group request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end