Network Security v1 API - Class OrganizationSecurityProfileGroupServiceClient (1.0.0-beta01)

public abstract class OrganizationSecurityProfileGroupServiceClient

Reference documentation and code samples for the Network Security v1 API class OrganizationSecurityProfileGroupServiceClient.

OrganizationSecurityProfileGroupService client wrapper, for convenient use.

Inheritance

object > OrganizationSecurityProfileGroupServiceClient

Namespace

Google.Cloud.NetworkSecurity.V1

Assembly

Google.Cloud.NetworkSecurity.V1.dll

Remarks

Organization SecurityProfileGroup is created under organization.

Properties

CreateSecurityProfileGroupOperationsClient

public virtual OperationsClient CreateSecurityProfileGroupOperationsClient { get; }

The long-running operations client for CreateSecurityProfileGroup.

Property Value
Type Description
OperationsClient

CreateSecurityProfileOperationsClient

public virtual OperationsClient CreateSecurityProfileOperationsClient { get; }

The long-running operations client for CreateSecurityProfile.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the OrganizationSecurityProfileGroupService service, which is a host of "networksecurity.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default OrganizationSecurityProfileGroupService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default OrganizationSecurityProfileGroupService scopes are:

DeleteSecurityProfileGroupOperationsClient

public virtual OperationsClient DeleteSecurityProfileGroupOperationsClient { get; }

The long-running operations client for DeleteSecurityProfileGroup.

Property Value
Type Description
OperationsClient

DeleteSecurityProfileOperationsClient

public virtual OperationsClient DeleteSecurityProfileOperationsClient { get; }

The long-running operations client for DeleteSecurityProfile.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual OrganizationSecurityProfileGroupService.OrganizationSecurityProfileGroupServiceClient GrpcClient { get; }

The underlying gRPC OrganizationSecurityProfileGroupService client

Property Value
Type Description
OrganizationSecurityProfileGroupServiceOrganizationSecurityProfileGroupServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateSecurityProfileGroupOperationsClient

public virtual OperationsClient UpdateSecurityProfileGroupOperationsClient { get; }

The long-running operations client for UpdateSecurityProfileGroup.

Property Value
Type Description
OperationsClient

UpdateSecurityProfileOperationsClient

public virtual OperationsClient UpdateSecurityProfileOperationsClient { get; }

The long-running operations client for UpdateSecurityProfile.

Property Value
Type Description
OperationsClient

Methods

Create()

public static OrganizationSecurityProfileGroupServiceClient Create()

Synchronously creates a OrganizationSecurityProfileGroupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OrganizationSecurityProfileGroupServiceClientBuilder.

Returns
Type Description
OrganizationSecurityProfileGroupServiceClient

The created OrganizationSecurityProfileGroupServiceClient.

CreateAsync(CancellationToken)

public static Task<OrganizationSecurityProfileGroupServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a OrganizationSecurityProfileGroupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OrganizationSecurityProfileGroupServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskOrganizationSecurityProfileGroupServiceClient

The task representing the created OrganizationSecurityProfileGroupServiceClient.

CreateSecurityProfile(LocationName, SecurityProfile, string, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> CreateSecurityProfile(LocationName parent, SecurityProfile securityProfile, string securityProfileId, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfile(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfile(CreateSecurityProfileRequest, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> CreateSecurityProfile(CreateSecurityProfileRequest request, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
request CreateSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
CreateSecurityProfileRequest request = new CreateSecurityProfileRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    SecurityProfileId = "",
    SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfile(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfile(OrganizationLocationName, SecurityProfile, string, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> CreateSecurityProfile(OrganizationLocationName parent, SecurityProfile securityProfile, string securityProfileId, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfile(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfile(string, SecurityProfile, string, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> CreateSecurityProfile(string parent, SecurityProfile securityProfile, string securityProfileId, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent string

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfile(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(LocationName, SecurityProfile, string, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(LocationName parent, SecurityProfile securityProfile, string securityProfileId, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(LocationName, SecurityProfile, string, CancellationToken)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(LocationName parent, SecurityProfile securityProfile, string securityProfileId, CancellationToken cancellationToken)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(CreateSecurityProfileRequest, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(CreateSecurityProfileRequest request, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
request CreateSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityProfileRequest request = new CreateSecurityProfileRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    SecurityProfileId = "",
    SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(CreateSecurityProfileRequest, CancellationToken)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(CreateSecurityProfileRequest request, CancellationToken cancellationToken)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
request CreateSecurityProfileRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityProfileRequest request = new CreateSecurityProfileRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    SecurityProfileId = "",
    SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(OrganizationLocationName, SecurityProfile, string, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(OrganizationLocationName parent, SecurityProfile securityProfile, string securityProfileId, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(OrganizationLocationName, SecurityProfile, string, CancellationToken)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(OrganizationLocationName parent, SecurityProfile securityProfile, string securityProfileId, CancellationToken cancellationToken)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(string, SecurityProfile, string, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(string parent, SecurityProfile securityProfile, string securityProfileId, CallSettings callSettings = null)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent string

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileAsync(string, SecurityProfile, string, CancellationToken)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> CreateSecurityProfileAsync(string parent, SecurityProfile securityProfile, string securityProfileId, CancellationToken cancellationToken)

Creates a new SecurityProfile in a given organization and location.

Parameters
Name Description
parent string

Required. The parent resource of the SecurityProfile. Must be in the format projects|organizations/*/locations/{location}.

securityProfile SecurityProfile

Required. SecurityProfile resource to be created.

securityProfileId 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".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileAsync(parent, securityProfile, securityProfileId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroup(LocationName, SecurityProfileGroup, string, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> CreateSecurityProfileGroup(LocationName parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroup(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroup(CreateSecurityProfileGroupRequest, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> CreateSecurityProfileGroup(CreateSecurityProfileGroupRequest request, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
request CreateSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
CreateSecurityProfileGroupRequest request = new CreateSecurityProfileGroupRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    SecurityProfileGroupId = "",
    SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroup(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroup(OrganizationLocationName, SecurityProfileGroup, string, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> CreateSecurityProfileGroup(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroup(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroup(string, SecurityProfileGroup, string, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> CreateSecurityProfileGroup(string parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent string

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroup(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(LocationName, SecurityProfileGroup, string, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(LocationName parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(LocationName, SecurityProfileGroup, string, CancellationToken)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(LocationName parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CancellationToken cancellationToken)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
request CreateSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityProfileGroupRequest request = new CreateSecurityProfileGroupRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    SecurityProfileGroupId = "",
    SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest, CancellationToken)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request, CancellationToken cancellationToken)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
request CreateSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityProfileGroupRequest request = new CreateSecurityProfileGroupRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    SecurityProfileGroupId = "",
    SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(OrganizationLocationName, SecurityProfileGroup, string, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(OrganizationLocationName, SecurityProfileGroup, string, CancellationToken)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CancellationToken cancellationToken)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(string, SecurityProfileGroup, string, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(string parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CallSettings callSettings = null)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent string

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

CreateSecurityProfileGroupAsync(string, SecurityProfileGroup, string, CancellationToken)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> CreateSecurityProfileGroupAsync(string parent, SecurityProfileGroup securityProfileGroup, string securityProfileGroupId, CancellationToken cancellationToken)

Creates a new SecurityProfileGroup in a given organization and location.

Parameters
Name Description
parent string

Required. The parent resource of the SecurityProfileGroup. Must be in the format projects|organizations/*/locations/{location}.

securityProfileGroup SecurityProfileGroup

Required. SecurityProfileGroup resource to be created.

securityProfileGroupId 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".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.CreateSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceCreateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfile(DeleteSecurityProfileRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSecurityProfile(DeleteSecurityProfileRequest request, CallSettings callSettings = null)

Deletes a single SecurityProfile.

Parameters
Name Description
request DeleteSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
DeleteSecurityProfileRequest request = new DeleteSecurityProfileRequest
{
    SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.DeleteSecurityProfile(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfile(SecurityProfileName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSecurityProfile(SecurityProfileName name, CallSettings callSettings = null)

Deletes a single SecurityProfile.

Parameters
Name Description
name SecurityProfileName

Required. A name of the SecurityProfile to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.DeleteSecurityProfile(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfile(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSecurityProfile(string name, CallSettings callSettings = null)

Deletes a single SecurityProfile.

Parameters
Name Description
name string

Required. A name of the SecurityProfile to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.DeleteSecurityProfile(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileAsync(DeleteSecurityProfileRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileAsync(DeleteSecurityProfileRequest request, CallSettings callSettings = null)

Deletes a single SecurityProfile.

Parameters
Name Description
request DeleteSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityProfileRequest request = new DeleteSecurityProfileRequest
{
    SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileAsync(DeleteSecurityProfileRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileAsync(DeleteSecurityProfileRequest request, CancellationToken cancellationToken)

Deletes a single SecurityProfile.

Parameters
Name Description
request DeleteSecurityProfileRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityProfileRequest request = new DeleteSecurityProfileRequest
{
    SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileAsync(SecurityProfileName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileAsync(SecurityProfileName name, CallSettings callSettings = null)

Deletes a single SecurityProfile.

Parameters
Name Description
name SecurityProfileName

Required. A name of the SecurityProfile to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileAsync(SecurityProfileName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileAsync(SecurityProfileName name, CancellationToken cancellationToken)

Deletes a single SecurityProfile.

Parameters
Name Description
name SecurityProfileName

Required. A name of the SecurityProfile to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileAsync(string name, CallSettings callSettings = null)

Deletes a single SecurityProfile.

Parameters
Name Description
name string

Required. A name of the SecurityProfile to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileAsync(string name, CancellationToken cancellationToken)

Deletes a single SecurityProfile.

Parameters
Name Description
name string

Required. A name of the SecurityProfile to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroup(DeleteSecurityProfileGroupRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSecurityProfileGroup(DeleteSecurityProfileGroupRequest request, CallSettings callSettings = null)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
request DeleteSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
DeleteSecurityProfileGroupRequest request = new DeleteSecurityProfileGroupRequest
{
    SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroup(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroup(SecurityProfileGroupName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSecurityProfileGroup(SecurityProfileGroupName name, CallSettings callSettings = null)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
name SecurityProfileGroupName

Required. A name of the SecurityProfileGroup to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroup(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSecurityProfileGroup(string name, CallSettings callSettings = null)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
name string

Required. A name of the SecurityProfileGroup to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroup(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest request, CallSettings callSettings = null)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
request DeleteSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityProfileGroupRequest request = new DeleteSecurityProfileGroupRequest
{
    SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest request, CancellationToken cancellationToken)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
request DeleteSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityProfileGroupRequest request = new DeleteSecurityProfileGroupRequest
{
    SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroupAsync(SecurityProfileGroupName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileGroupAsync(SecurityProfileGroupName name, CallSettings callSettings = null)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
name SecurityProfileGroupName

Required. A name of the SecurityProfileGroup to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroupAsync(SecurityProfileGroupName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileGroupAsync(SecurityProfileGroupName name, CancellationToken cancellationToken)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
name SecurityProfileGroupName

Required. A name of the SecurityProfileGroup to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroupAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileGroupAsync(string name, CallSettings callSettings = null)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
name string

Required. A name of the SecurityProfileGroup to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSecurityProfileGroupAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSecurityProfileGroupAsync(string name, CancellationToken cancellationToken)

Deletes a single SecurityProfileGroup.

Parameters
Name Description
name string

Required. A name of the SecurityProfileGroup to delete. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.DeleteSecurityProfileGroupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceDeleteSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetSecurityProfile(GetSecurityProfileRequest, CallSettings)

public virtual SecurityProfile GetSecurityProfile(GetSecurityProfileRequest request, CallSettings callSettings = null)

Gets details of a single SecurityProfile.

Parameters
Name Description
request GetSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SecurityProfile

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
GetSecurityProfileRequest request = new GetSecurityProfileRequest
{
    SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
};
// Make the request
SecurityProfile response = organizationSecurityProfileGroupServiceClient.GetSecurityProfile(request);

GetSecurityProfile(SecurityProfileName, CallSettings)

public virtual SecurityProfile GetSecurityProfile(SecurityProfileName name, CallSettings callSettings = null)

Gets details of a single SecurityProfile.

Parameters
Name Description
name SecurityProfileName

Required. A name of the SecurityProfile to get. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SecurityProfile

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
SecurityProfile response = organizationSecurityProfileGroupServiceClient.GetSecurityProfile(name);

GetSecurityProfile(string, CallSettings)

public virtual SecurityProfile GetSecurityProfile(string name, CallSettings callSettings = null)

Gets details of a single SecurityProfile.

Parameters
Name Description
name string

Required. A name of the SecurityProfile to get. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SecurityProfile

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
SecurityProfile response = organizationSecurityProfileGroupServiceClient.GetSecurityProfile(name);

GetSecurityProfileAsync(GetSecurityProfileRequest, CallSettings)

public virtual Task<SecurityProfile> GetSecurityProfileAsync(GetSecurityProfileRequest request, CallSettings callSettings = null)

Gets details of a single SecurityProfile.

Parameters
Name Description
request GetSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSecurityProfile

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileRequest request = new GetSecurityProfileRequest
{
    SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
};
// Make the request
SecurityProfile response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileAsync(request);

GetSecurityProfileAsync(GetSecurityProfileRequest, CancellationToken)

public virtual Task<SecurityProfile> GetSecurityProfileAsync(GetSecurityProfileRequest request, CancellationToken cancellationToken)

Gets details of a single SecurityProfile.

Parameters
Name Description
request GetSecurityProfileRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSecurityProfile

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileRequest request = new GetSecurityProfileRequest
{
    SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
};
// Make the request
SecurityProfile response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileAsync(request);

GetSecurityProfileAsync(SecurityProfileName, CallSettings)

public virtual Task<SecurityProfile> GetSecurityProfileAsync(SecurityProfileName name, CallSettings callSettings = null)

Gets details of a single SecurityProfile.

Parameters
Name Description
name SecurityProfileName

Required. A name of the SecurityProfile to get. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSecurityProfile

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
SecurityProfile response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileAsync(name);

GetSecurityProfileAsync(SecurityProfileName, CancellationToken)

public virtual Task<SecurityProfile> GetSecurityProfileAsync(SecurityProfileName name, CancellationToken cancellationToken)

Gets details of a single SecurityProfile.

Parameters
Name Description
name SecurityProfileName

Required. A name of the SecurityProfile to get. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSecurityProfile

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
SecurityProfile response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileAsync(name);

GetSecurityProfileAsync(string, CallSettings)

public virtual Task<SecurityProfile> GetSecurityProfileAsync(string name, CallSettings callSettings = null)

Gets details of a single SecurityProfile.

Parameters
Name Description
name string

Required. A name of the SecurityProfile to get. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSecurityProfile

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
SecurityProfile response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileAsync(name);

GetSecurityProfileAsync(string, CancellationToken)

public virtual Task<SecurityProfile> GetSecurityProfileAsync(string name, CancellationToken cancellationToken)

Gets details of a single SecurityProfile.

Parameters
Name Description
name string

Required. A name of the SecurityProfile to get. Must be in the format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSecurityProfile

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
SecurityProfile response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileAsync(name);

GetSecurityProfileGroup(GetSecurityProfileGroupRequest, CallSettings)

public virtual SecurityProfileGroup GetSecurityProfileGroup(GetSecurityProfileGroupRequest request, CallSettings callSettings = null)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
request GetSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SecurityProfileGroup

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
GetSecurityProfileGroupRequest request = new GetSecurityProfileGroupRequest
{
    SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
};
// Make the request
SecurityProfileGroup response = organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroup(request);

GetSecurityProfileGroup(SecurityProfileGroupName, CallSettings)

public virtual SecurityProfileGroup GetSecurityProfileGroup(SecurityProfileGroupName name, CallSettings callSettings = null)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
name SecurityProfileGroupName

Required. A name of the SecurityProfileGroup to get. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SecurityProfileGroup

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
SecurityProfileGroup response = organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroup(name);

GetSecurityProfileGroup(string, CallSettings)

public virtual SecurityProfileGroup GetSecurityProfileGroup(string name, CallSettings callSettings = null)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
name string

Required. A name of the SecurityProfileGroup to get. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SecurityProfileGroup

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
SecurityProfileGroup response = organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroup(name);

GetSecurityProfileGroupAsync(GetSecurityProfileGroupRequest, CallSettings)

public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(GetSecurityProfileGroupRequest request, CallSettings callSettings = null)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
request GetSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSecurityProfileGroup

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileGroupRequest request = new GetSecurityProfileGroupRequest
{
    SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
};
// Make the request
SecurityProfileGroup response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroupAsync(request);

GetSecurityProfileGroupAsync(GetSecurityProfileGroupRequest, CancellationToken)

public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(GetSecurityProfileGroupRequest request, CancellationToken cancellationToken)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
request GetSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSecurityProfileGroup

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileGroupRequest request = new GetSecurityProfileGroupRequest
{
    SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
};
// Make the request
SecurityProfileGroup response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroupAsync(request);

GetSecurityProfileGroupAsync(SecurityProfileGroupName, CallSettings)

public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(SecurityProfileGroupName name, CallSettings callSettings = null)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
name SecurityProfileGroupName

Required. A name of the SecurityProfileGroup to get. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSecurityProfileGroup

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
SecurityProfileGroup response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroupAsync(name);

GetSecurityProfileGroupAsync(SecurityProfileGroupName, CancellationToken)

public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(SecurityProfileGroupName name, CancellationToken cancellationToken)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
name SecurityProfileGroupName

Required. A name of the SecurityProfileGroup to get. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSecurityProfileGroup

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
SecurityProfileGroup response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroupAsync(name);

GetSecurityProfileGroupAsync(string, CallSettings)

public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(string name, CallSettings callSettings = null)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
name string

Required. A name of the SecurityProfileGroup to get. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSecurityProfileGroup

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
SecurityProfileGroup response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroupAsync(name);

GetSecurityProfileGroupAsync(string, CancellationToken)

public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(string name, CancellationToken cancellationToken)

Gets details of a single SecurityProfileGroup.

Parameters
Name Description
name string

Required. A name of the SecurityProfileGroup to get. Must be in the format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSecurityProfileGroup

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
SecurityProfileGroup response = await organizationSecurityProfileGroupServiceClient.GetSecurityProfileGroupAsync(name);

ListSecurityProfileGroups(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroups(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroups(ListSecurityProfileGroupsRequest, CallSettings)

public virtual PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroups(ListSecurityProfileGroupsRequest request, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
request ListSecurityProfileGroupsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
ListSecurityProfileGroupsRequest request = new ListSecurityProfileGroupsRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroups(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroups(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroups(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
parent string

Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroupsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroupsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable asynchronous sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroupsAsync(ListSecurityProfileGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroupsAsync(ListSecurityProfileGroupsRequest request, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
request ListSecurityProfileGroupsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable asynchronous sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
ListSecurityProfileGroupsRequest request = new ListSecurityProfileGroupsRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroupsAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroupsAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable asynchronous sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfileGroupsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> ListSecurityProfileGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfileGroups in a given organization and location.

Parameters
Name Description
parent string

Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup

A pageable asynchronous sequence of SecurityProfileGroup resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfileGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfileGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfileGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfileGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfileGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfiles(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfilesResponseSecurityProfile

A pageable sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfiles(ListSecurityProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfiles(ListSecurityProfilesRequest request, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
request ListSecurityProfilesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfilesResponseSecurityProfile

A pageable sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
ListSecurityProfilesRequest request = new ListSecurityProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfiles(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfilesResponseSecurityProfile

A pageable sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
parent string

Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSecurityProfilesResponseSecurityProfile

A pageable sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfilesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
parent LocationName

Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile

A pageable asynchronous sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfilesAsync(ListSecurityProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfilesAsync(ListSecurityProfilesRequest request, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
request ListSecurityProfilesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile

A pageable asynchronous sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
ListSecurityProfilesRequest request = new ListSecurityProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfilesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
parent OrganizationLocationName

Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile

A pageable asynchronous sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSecurityProfilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> ListSecurityProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SecurityProfiles in a given organization and location.

Parameters
Name Description
parent string

Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format projects|organizations/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile

A pageable asynchronous sequence of SecurityProfile resources.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = organizationSecurityProfileGroupServiceClient.ListSecurityProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SecurityProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSecurityProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SecurityProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SecurityProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SecurityProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateSecurityProfile(string, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> PollOnceCreateSecurityProfile(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateSecurityProfile .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The result of polling the operation.

PollOnceCreateSecurityProfileAsync(string, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> PollOnceCreateSecurityProfileAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateSecurityProfile.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateSecurityProfileGroup(string, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> PollOnceCreateSecurityProfileGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateSecurityProfileGroup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The result of polling the operation.

PollOnceCreateSecurityProfileGroupAsync(string, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> PollOnceCreateSecurityProfileGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateSecurityProfileGroup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSecurityProfile(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSecurityProfile(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSecurityProfile .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSecurityProfileAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSecurityProfileAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSecurityProfile.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSecurityProfileGroup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSecurityProfileGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSecurityProfileGroup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSecurityProfileGroupAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSecurityProfileGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSecurityProfileGroup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateSecurityProfile(string, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> PollOnceUpdateSecurityProfile(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateSecurityProfile .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The result of polling the operation.

PollOnceUpdateSecurityProfileAsync(string, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> PollOnceUpdateSecurityProfileAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateSecurityProfile.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateSecurityProfileGroup(string, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> PollOnceUpdateSecurityProfileGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateSecurityProfileGroup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The result of polling the operation.

PollOnceUpdateSecurityProfileGroupAsync(string, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> PollOnceUpdateSecurityProfileGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateSecurityProfileGroup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateSecurityProfile(SecurityProfile, FieldMask, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> UpdateSecurityProfile(SecurityProfile securityProfile, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfile.

Parameters
Name Description
securityProfile SecurityProfile

Required. Updated SecurityProfile resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfile securityProfile = new SecurityProfile();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfile, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.UpdateSecurityProfile(securityProfile, updateMask);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfile(UpdateSecurityProfileRequest, CallSettings)

public virtual Operation<SecurityProfile, OperationMetadata> UpdateSecurityProfile(UpdateSecurityProfileRequest request, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfile.

Parameters
Name Description
request UpdateSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
UpdateSecurityProfileRequest request = new UpdateSecurityProfileRequest
{
    UpdateMask = new FieldMask(),
    SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.UpdateSecurityProfile(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileAsync(SecurityProfile, FieldMask, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> UpdateSecurityProfileAsync(SecurityProfile securityProfile, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfile.

Parameters
Name Description
securityProfile SecurityProfile

Required. Updated SecurityProfile resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfile securityProfile = new SecurityProfile();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileAsync(securityProfile, updateMask);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileAsync(SecurityProfile, FieldMask, CancellationToken)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> UpdateSecurityProfileAsync(SecurityProfile securityProfile, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single SecurityProfile.

Parameters
Name Description
securityProfile SecurityProfile

Required. Updated SecurityProfile resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfile securityProfile = new SecurityProfile();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileAsync(securityProfile, updateMask);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileAsync(UpdateSecurityProfileRequest, CallSettings)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> UpdateSecurityProfileAsync(UpdateSecurityProfileRequest request, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfile.

Parameters
Name Description
request UpdateSecurityProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileRequest request = new UpdateSecurityProfileRequest
{
    UpdateMask = new FieldMask(),
    SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileAsync(UpdateSecurityProfileRequest, CancellationToken)

public virtual Task<Operation<SecurityProfile, OperationMetadata>> UpdateSecurityProfileAsync(UpdateSecurityProfileRequest request, CancellationToken cancellationToken)

Updates the parameters of a single SecurityProfile.

Parameters
Name Description
request UpdateSecurityProfileRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileRequest request = new UpdateSecurityProfileRequest
{
    UpdateMask = new FieldMask(),
    SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfile, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfile retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileGroup(SecurityProfileGroup, FieldMask, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> UpdateSecurityProfileGroup(SecurityProfileGroup securityProfileGroup, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfileGroup.

Parameters
Name Description
securityProfileGroup SecurityProfileGroup

Required. Updated SecurityProfileGroup resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileGroup(securityProfileGroup, updateMask);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileGroup(UpdateSecurityProfileGroupRequest, CallSettings)

public virtual Operation<SecurityProfileGroup, OperationMetadata> UpdateSecurityProfileGroup(UpdateSecurityProfileGroupRequest request, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfileGroup.

Parameters
Name Description
request UpdateSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSecurityProfileGroupOperationMetadata

The RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = OrganizationSecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
UpdateSecurityProfileGroupRequest request = new UpdateSecurityProfileGroupRequest
{
    UpdateMask = new FieldMask(),
    SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileGroup(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileGroupAsync(SecurityProfileGroup, FieldMask, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> UpdateSecurityProfileGroupAsync(SecurityProfileGroup securityProfileGroup, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfileGroup.

Parameters
Name Description
securityProfileGroup SecurityProfileGroup

Required. Updated SecurityProfileGroup resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileGroupAsync(securityProfileGroup, updateMask);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileGroupAsync(SecurityProfileGroup, FieldMask, CancellationToken)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> UpdateSecurityProfileGroupAsync(SecurityProfileGroup securityProfileGroup, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single SecurityProfileGroup.

Parameters
Name Description
securityProfileGroup SecurityProfileGroup

Required. Updated SecurityProfileGroup resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileGroupAsync(securityProfileGroup, updateMask);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest, CallSettings)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> UpdateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request, CallSettings callSettings = null)

Updates the parameters of a single SecurityProfileGroup.

Parameters
Name Description
request UpdateSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileGroupRequest request = new UpdateSecurityProfileGroupRequest
{
    UpdateMask = new FieldMask(),
    SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}

UpdateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest, CancellationToken)

public virtual Task<Operation<SecurityProfileGroup, OperationMetadata>> UpdateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request, CancellationToken cancellationToken)

Updates the parameters of a single SecurityProfileGroup.

Parameters
Name Description
request UpdateSecurityProfileGroupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSecurityProfileGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = await OrganizationSecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileGroupRequest request = new UpdateSecurityProfileGroupRequest
{
    UpdateMask = new FieldMask(),
    SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await organizationSecurityProfileGroupServiceClient.UpdateSecurityProfileGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<SecurityProfileGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SecurityProfileGroup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SecurityProfileGroup, OperationMetadata> retrievedResponse = await organizationSecurityProfileGroupServiceClient.PollOnceUpdateSecurityProfileGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SecurityProfileGroup retrievedResult = retrievedResponse.Result;
}