public abstract class SecurityProfileGroupServiceClientReference documentation and code samples for the Network Security v1 API class SecurityProfileGroupServiceClient.
SecurityProfileGroupService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.NetworkSecurity.V1Assembly
Google.Cloud.NetworkSecurity.V1.dll
Remarks
SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.
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 SecurityProfileGroupService 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 SecurityProfileGroupService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default SecurityProfileGroupService 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 SecurityProfileGroupService.SecurityProfileGroupServiceClient GrpcClient { get; }The underlying gRPC SecurityProfileGroupService client
| Property Value | |
|---|---|
| Type | Description |
SecurityProfileGroupServiceSecurityProfileGroupServiceClient |
|
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 SecurityProfileGroupServiceClient Create()Synchronously creates a SecurityProfileGroupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityProfileGroupServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
SecurityProfileGroupServiceClient |
The created SecurityProfileGroupServiceClient. |
CreateAsync(CancellationToken)
public static Task<SecurityProfileGroupServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a SecurityProfileGroupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityProfileGroupServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroupServiceClient |
The task representing the created SecurityProfileGroupServiceClient. |
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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfile securityProfile = new SecurityProfile();
string securityProfileId = "";
// Make the request
Operation<SecurityProfile, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSecurityProfileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the SecurityProfile. Must be in the format
|
securityProfile |
SecurityProfileRequired. SecurityProfile resource to be created. |
securityProfileId |
stringRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileGroupOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileGroupOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileGroupOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileGroupOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
string securityProfileGroupId = "";
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the SecurityProfileGroup. Must be in the
format |
securityProfileGroup |
SecurityProfileGroupRequired. SecurityProfileGroup resource to be created. |
securityProfileGroupId |
stringRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
DeleteSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
DeleteSecurityProfileRequest request = new DeleteSecurityProfileRequest
{
SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
SecurityProfileNameRequired. A name of the SecurityProfile to delete. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfile to delete. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
DeleteSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
DeleteSecurityProfileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileNameRequired. A name of the SecurityProfile to delete. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileNameRequired. A name of the SecurityProfile to delete. Must be in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfile to delete. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfile to delete. Must be in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
DeleteSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
SecurityProfileGroupNameRequired. A name of the SecurityProfileGroup to delete. Must be in the
format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfileGroup to delete. Must be in the
format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
DeleteSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
DeleteSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileGroupNameRequired. A name of the SecurityProfileGroup to delete. Must be in the
format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileGroupNameRequired. A name of the SecurityProfileGroup to delete. Must be in the
format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfileGroup to delete. Must be in the
format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfileGroup to delete. Must be in the
format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
GetSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityProfile |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
GetSecurityProfileRequest request = new GetSecurityProfileRequest
{
SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
};
// Make the request
SecurityProfile response = securityProfileGroupServiceClient.GetSecurityProfile(request);
GetSecurityProfile(SecurityProfileName, CallSettings)
public virtual SecurityProfile GetSecurityProfile(SecurityProfileName name, CallSettings callSettings = null)Gets details of a single SecurityProfile.
| Parameters | |
|---|---|
| Name | Description |
name |
SecurityProfileNameRequired. A name of the SecurityProfile to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityProfile |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
SecurityProfile response = securityProfileGroupServiceClient.GetSecurityProfile(name);
GetSecurityProfile(string, CallSettings)
public virtual SecurityProfile GetSecurityProfile(string name, CallSettings callSettings = null)Gets details of a single SecurityProfile.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. A name of the SecurityProfile to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityProfile |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
SecurityProfile response = securityProfileGroupServiceClient.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 |
GetSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfile |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileRequest request = new GetSecurityProfileRequest
{
SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
};
// Make the request
SecurityProfile response = await securityProfileGroupServiceClient.GetSecurityProfileAsync(request);
GetSecurityProfileAsync(GetSecurityProfileRequest, CancellationToken)
public virtual Task<SecurityProfile> GetSecurityProfileAsync(GetSecurityProfileRequest request, CancellationToken cancellationToken)Gets details of a single SecurityProfile.
| Parameters | |
|---|---|
| Name | Description |
request |
GetSecurityProfileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfile |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileRequest request = new GetSecurityProfileRequest
{
SecurityProfileName = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"),
};
// Make the request
SecurityProfile response = await securityProfileGroupServiceClient.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 |
SecurityProfileNameRequired. A name of the SecurityProfile to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfile |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
SecurityProfile response = await securityProfileGroupServiceClient.GetSecurityProfileAsync(name);
GetSecurityProfileAsync(SecurityProfileName, CancellationToken)
public virtual Task<SecurityProfile> GetSecurityProfileAsync(SecurityProfileName name, CancellationToken cancellationToken)Gets details of a single SecurityProfile.
| Parameters | |
|---|---|
| Name | Description |
name |
SecurityProfileNameRequired. A name of the SecurityProfile to get. Must be in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfile |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileName name = SecurityProfileName.FromOrganizationLocationSecurityProfile("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
// Make the request
SecurityProfile response = await securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfile to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfile |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
SecurityProfile response = await securityProfileGroupServiceClient.GetSecurityProfileAsync(name);
GetSecurityProfileAsync(string, CancellationToken)
public virtual Task<SecurityProfile> GetSecurityProfileAsync(string name, CancellationToken cancellationToken)Gets details of a single SecurityProfile.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. A name of the SecurityProfile to get. Must be in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfile |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfiles/[SECURITY_PROFILE]";
// Make the request
SecurityProfile response = await securityProfileGroupServiceClient.GetSecurityProfileAsync(name);
GetSecurityProfileGroup(GetSecurityProfileGroupRequest, CallSettings)
public virtual SecurityProfileGroup GetSecurityProfileGroup(GetSecurityProfileGroupRequest request, CallSettings callSettings = null)Gets details of a single SecurityProfileGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityProfileGroup |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
GetSecurityProfileGroupRequest request = new GetSecurityProfileGroupRequest
{
SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
};
// Make the request
SecurityProfileGroup response = securityProfileGroupServiceClient.GetSecurityProfileGroup(request);
GetSecurityProfileGroup(SecurityProfileGroupName, CallSettings)
public virtual SecurityProfileGroup GetSecurityProfileGroup(SecurityProfileGroupName name, CallSettings callSettings = null)Gets details of a single SecurityProfileGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
SecurityProfileGroupNameRequired. A name of the SecurityProfileGroup to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityProfileGroup |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
SecurityProfileGroup response = securityProfileGroupServiceClient.GetSecurityProfileGroup(name);
GetSecurityProfileGroup(string, CallSettings)
public virtual SecurityProfileGroup GetSecurityProfileGroup(string name, CallSettings callSettings = null)Gets details of a single SecurityProfileGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. A name of the SecurityProfileGroup to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityProfileGroup |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
SecurityProfileGroup response = securityProfileGroupServiceClient.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 |
GetSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroup |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileGroupRequest request = new GetSecurityProfileGroupRequest
{
SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
};
// Make the request
SecurityProfileGroup response = await securityProfileGroupServiceClient.GetSecurityProfileGroupAsync(request);
GetSecurityProfileGroupAsync(GetSecurityProfileGroupRequest, CancellationToken)
public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(GetSecurityProfileGroupRequest request, CancellationToken cancellationToken)Gets details of a single SecurityProfileGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroup |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecurityProfileGroupRequest request = new GetSecurityProfileGroupRequest
{
SecurityProfileGroupName = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"),
};
// Make the request
SecurityProfileGroup response = await securityProfileGroupServiceClient.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 |
SecurityProfileGroupNameRequired. A name of the SecurityProfileGroup to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroup |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
SecurityProfileGroup response = await securityProfileGroupServiceClient.GetSecurityProfileGroupAsync(name);
GetSecurityProfileGroupAsync(SecurityProfileGroupName, CancellationToken)
public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(SecurityProfileGroupName name, CancellationToken cancellationToken)Gets details of a single SecurityProfileGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
SecurityProfileGroupNameRequired. A name of the SecurityProfileGroup to get. Must be in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroup |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroupName name = SecurityProfileGroupName.FromOrganizationLocationSecurityProfileGroup("[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
// Make the request
SecurityProfileGroup response = await securityProfileGroupServiceClient.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 |
stringRequired. A name of the SecurityProfileGroup to get. Must be in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroup |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
SecurityProfileGroup response = await securityProfileGroupServiceClient.GetSecurityProfileGroupAsync(name);
GetSecurityProfileGroupAsync(string, CancellationToken)
public virtual Task<SecurityProfileGroup> GetSecurityProfileGroupAsync(string name, CancellationToken cancellationToken)Gets details of a single SecurityProfileGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. A name of the SecurityProfileGroup to get. Must be in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityProfileGroup |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/securityProfileGroups/[SECURITY_PROFILE_GROUP]";
// Make the request
SecurityProfileGroup response = await securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListSecurityProfileGroupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
ListSecurityProfileGroupsRequest request = new ListSecurityProfileGroupsRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable asynchronous sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListSecurityProfileGroupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable asynchronous sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
ListSecurityProfileGroupsRequest request = new ListSecurityProfileGroupsRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable asynchronous sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The project or organization and location from which the
SecurityProfileGroups should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfileGroupsResponseSecurityProfileGroup |
A pageable asynchronous sequence of SecurityProfileGroup resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSecurityProfileGroupsResponse, SecurityProfileGroup> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListSecurityProfilesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
ListSecurityProfilesRequest request = new ListSecurityProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable asynchronous sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListSecurityProfilesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable asynchronous sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
ListSecurityProfilesRequest request = new ListSecurityProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable asynchronous sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The project or organization and location from which the
SecurityProfiles should be listed, specified in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSecurityProfilesResponseSecurityProfile |
A pageable asynchronous sequence of SecurityProfile resources. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSecurityProfilesResponse, SecurityProfile> response = securityProfileGroupServiceClient.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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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. |
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 |
SecurityProfileRequired. Updated SecurityProfile resource. |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfile securityProfile = new SecurityProfile();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfile, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
UpdateSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
UpdateSecurityProfileRequest request = new UpdateSecurityProfileRequest
{
UpdateMask = new FieldMask(),
SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
SecurityProfileRequired. Updated SecurityProfile resource. |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfile securityProfile = new SecurityProfile();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileRequired. Updated SecurityProfile resource. |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfile securityProfile = new SecurityProfile();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
UpdateSecurityProfileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileRequest request = new UpdateSecurityProfileRequest
{
UpdateMask = new FieldMask(),
SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
UpdateSecurityProfileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileRequest request = new UpdateSecurityProfileRequest
{
UpdateMask = new FieldMask(),
SecurityProfile = new SecurityProfile(),
};
// Make the request
Operation<SecurityProfile, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileGroupRequired. Updated SecurityProfileGroup resource. |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileGroupOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
UpdateSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecurityProfileGroupOperationMetadata |
The RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = SecurityProfileGroupServiceClient.Create();
// Initialize request argument(s)
UpdateSecurityProfileGroupRequest request = new UpdateSecurityProfileGroupRequest
{
UpdateMask = new FieldMask(),
SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = securityProfileGroupServiceClient.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 = securityProfileGroupServiceClient.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 |
SecurityProfileGroupRequired. Updated SecurityProfileGroup resource. |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
SecurityProfileGroupRequired. Updated SecurityProfileGroup resource. |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
SecurityProfileGroup securityProfileGroup = new SecurityProfileGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
UpdateSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileGroupRequest request = new UpdateSecurityProfileGroupRequest
{
UpdateMask = new FieldMask(),
SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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 |
UpdateSecurityProfileGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecurityProfileGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
SecurityProfileGroupServiceClient securityProfileGroupServiceClient = await SecurityProfileGroupServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityProfileGroupRequest request = new UpdateSecurityProfileGroupRequest
{
UpdateMask = new FieldMask(),
SecurityProfileGroup = new SecurityProfileGroup(),
};
// Make the request
Operation<SecurityProfileGroup, OperationMetadata> response = await securityProfileGroupServiceClient.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 securityProfileGroupServiceClient.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;
}