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

public abstract class SSERealmServiceClient

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

SSERealmService client wrapper, for convenient use.

Inheritance

object > SSERealmServiceClient

Namespace

Google.Cloud.NetworkSecurity.V1

Assembly

Google.Cloud.NetworkSecurity.V1.dll

Remarks

Service describing handlers for resources

Properties

CreateSACAttachmentOperationsClient

public virtual OperationsClient CreateSACAttachmentOperationsClient { get; }

The long-running operations client for CreateSACAttachment.

Property Value
Type Description
OperationsClient

CreateSACRealmOperationsClient

public virtual OperationsClient CreateSACRealmOperationsClient { get; }

The long-running operations client for CreateSACRealm.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the SSERealmService 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 SSERealmService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default SSERealmService scopes are:

DeleteSACAttachmentOperationsClient

public virtual OperationsClient DeleteSACAttachmentOperationsClient { get; }

The long-running operations client for DeleteSACAttachment.

Property Value
Type Description
OperationsClient

DeleteSACRealmOperationsClient

public virtual OperationsClient DeleteSACRealmOperationsClient { get; }

The long-running operations client for DeleteSACRealm.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual SSERealmService.SSERealmServiceClient GrpcClient { get; }

The underlying gRPC SSERealmService client

Property Value
Type Description
SSERealmServiceSSERealmServiceClient

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

Methods

Create()

public static SSERealmServiceClient Create()

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

Returns
Type Description
SSERealmServiceClient

The created SSERealmServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskSSERealmServiceClient

The task representing the created SSERealmServiceClient.

CreateSACAttachment(LocationName, SACAttachment, string, CallSettings)

public virtual Operation<SACAttachment, OperationMetadata> CreateSACAttachment(LocationName parent, SACAttachment sacAttachment, string sacAttachmentId, CallSettings callSettings = null)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/{location}.

sacAttachment SACAttachment

Required. The resource being created.

sacAttachmentId string

Required. ID of the created attachment. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACAttachmentOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SACAttachment sacAttachment = new SACAttachment();
string sacAttachmentId = "";
// Make the request
Operation<SACAttachment, OperationMetadata> response = sSERealmServiceClient.CreateSACAttachment(parent, sacAttachment, sacAttachmentId);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = sSERealmServiceClient.PollOnceCreateSACAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachment(CreateSACAttachmentRequest, CallSettings)

public virtual Operation<SACAttachment, OperationMetadata> CreateSACAttachment(CreateSACAttachmentRequest request, CallSettings callSettings = null)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
request CreateSACAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACAttachmentOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
CreateSACAttachmentRequest request = new CreateSACAttachmentRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SacAttachmentId = "",
    SacAttachment = new SACAttachment(),
    RequestId = "",
};
// Make the request
Operation<SACAttachment, OperationMetadata> response = sSERealmServiceClient.CreateSACAttachment(request);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = sSERealmServiceClient.PollOnceCreateSACAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachment(string, SACAttachment, string, CallSettings)

public virtual Operation<SACAttachment, OperationMetadata> CreateSACAttachment(string parent, SACAttachment sacAttachment, string sacAttachmentId, CallSettings callSettings = null)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/{location}.

sacAttachment SACAttachment

Required. The resource being created.

sacAttachmentId string

Required. ID of the created attachment. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACAttachmentOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SACAttachment sacAttachment = new SACAttachment();
string sacAttachmentId = "";
// Make the request
Operation<SACAttachment, OperationMetadata> response = sSERealmServiceClient.CreateSACAttachment(parent, sacAttachment, sacAttachmentId);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = sSERealmServiceClient.PollOnceCreateSACAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachmentAsync(LocationName, SACAttachment, string, CallSettings)

public virtual Task<Operation<SACAttachment, OperationMetadata>> CreateSACAttachmentAsync(LocationName parent, SACAttachment sacAttachment, string sacAttachmentId, CallSettings callSettings = null)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/{location}.

sacAttachment SACAttachment

Required. The resource being created.

sacAttachmentId string

Required. ID of the created attachment. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SACAttachment sacAttachment = new SACAttachment();
string sacAttachmentId = "";
// Make the request
Operation<SACAttachment, OperationMetadata> response = await sSERealmServiceClient.CreateSACAttachmentAsync(parent, sacAttachment, sacAttachmentId);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachmentAsync(LocationName, SACAttachment, string, CancellationToken)

public virtual Task<Operation<SACAttachment, OperationMetadata>> CreateSACAttachmentAsync(LocationName parent, SACAttachment sacAttachment, string sacAttachmentId, CancellationToken cancellationToken)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/{location}.

sacAttachment SACAttachment

Required. The resource being created.

sacAttachmentId string

Required. ID of the created attachment. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SACAttachment sacAttachment = new SACAttachment();
string sacAttachmentId = "";
// Make the request
Operation<SACAttachment, OperationMetadata> response = await sSERealmServiceClient.CreateSACAttachmentAsync(parent, sacAttachment, sacAttachmentId);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachmentAsync(CreateSACAttachmentRequest, CallSettings)

public virtual Task<Operation<SACAttachment, OperationMetadata>> CreateSACAttachmentAsync(CreateSACAttachmentRequest request, CallSettings callSettings = null)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
request CreateSACAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSACAttachmentRequest request = new CreateSACAttachmentRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SacAttachmentId = "",
    SacAttachment = new SACAttachment(),
    RequestId = "",
};
// Make the request
Operation<SACAttachment, OperationMetadata> response = await sSERealmServiceClient.CreateSACAttachmentAsync(request);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachmentAsync(CreateSACAttachmentRequest, CancellationToken)

public virtual Task<Operation<SACAttachment, OperationMetadata>> CreateSACAttachmentAsync(CreateSACAttachmentRequest request, CancellationToken cancellationToken)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
request CreateSACAttachmentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSACAttachmentRequest request = new CreateSACAttachmentRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SacAttachmentId = "",
    SacAttachment = new SACAttachment(),
    RequestId = "",
};
// Make the request
Operation<SACAttachment, OperationMetadata> response = await sSERealmServiceClient.CreateSACAttachmentAsync(request);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachmentAsync(string, SACAttachment, string, CallSettings)

public virtual Task<Operation<SACAttachment, OperationMetadata>> CreateSACAttachmentAsync(string parent, SACAttachment sacAttachment, string sacAttachmentId, CallSettings callSettings = null)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/{location}.

sacAttachment SACAttachment

Required. The resource being created.

sacAttachmentId string

Required. ID of the created attachment. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SACAttachment sacAttachment = new SACAttachment();
string sacAttachmentId = "";
// Make the request
Operation<SACAttachment, OperationMetadata> response = await sSERealmServiceClient.CreateSACAttachmentAsync(parent, sacAttachment, sacAttachmentId);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACAttachmentAsync(string, SACAttachment, string, CancellationToken)

public virtual Task<Operation<SACAttachment, OperationMetadata>> CreateSACAttachmentAsync(string parent, SACAttachment sacAttachment, string sacAttachmentId, CancellationToken cancellationToken)

Creates a new SACAttachment in a given project and location.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/{location}.

sacAttachment SACAttachment

Required. The resource being created.

sacAttachmentId string

Required. ID of the created attachment. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SACAttachment sacAttachment = new SACAttachment();
string sacAttachmentId = "";
// Make the request
Operation<SACAttachment, OperationMetadata> response = await sSERealmServiceClient.CreateSACAttachmentAsync(parent, sacAttachment, sacAttachmentId);

// Poll until the returned long-running operation is complete
Operation<SACAttachment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACAttachment 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<SACAttachment, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACAttachment retrievedResult = retrievedResponse.Result;
}

CreateSACRealm(LocationName, SACRealm, string, CallSettings)

public virtual Operation<SACRealm, OperationMetadata> CreateSACRealm(LocationName parent, SACRealm sacRealm, string sacRealmId, CallSettings callSettings = null)

Creates a new SACRealm in a given project.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/global.

sacRealm SACRealm

Required. The resource being created.

sacRealmId string

Required. ID of the created realm. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACRealmOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SACRealm sacRealm = new SACRealm();
string sacRealmId = "";
// Make the request
Operation<SACRealm, OperationMetadata> response = sSERealmServiceClient.CreateSACRealm(parent, sacRealm, sacRealmId);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = sSERealmServiceClient.PollOnceCreateSACRealm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealm(CreateSACRealmRequest, CallSettings)

public virtual Operation<SACRealm, OperationMetadata> CreateSACRealm(CreateSACRealmRequest request, CallSettings callSettings = null)

Creates a new SACRealm in a given project.

Parameters
Name Description
request CreateSACRealmRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACRealmOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
CreateSACRealmRequest request = new CreateSACRealmRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SacRealmId = "",
    SacRealm = new SACRealm(),
    RequestId = "",
};
// Make the request
Operation<SACRealm, OperationMetadata> response = sSERealmServiceClient.CreateSACRealm(request);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = sSERealmServiceClient.PollOnceCreateSACRealm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealm(string, SACRealm, string, CallSettings)

public virtual Operation<SACRealm, OperationMetadata> CreateSACRealm(string parent, SACRealm sacRealm, string sacRealmId, CallSettings callSettings = null)

Creates a new SACRealm in a given project.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/global.

sacRealm SACRealm

Required. The resource being created.

sacRealmId string

Required. ID of the created realm. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACRealmOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SACRealm sacRealm = new SACRealm();
string sacRealmId = "";
// Make the request
Operation<SACRealm, OperationMetadata> response = sSERealmServiceClient.CreateSACRealm(parent, sacRealm, sacRealmId);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = sSERealmServiceClient.PollOnceCreateSACRealm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealmAsync(LocationName, SACRealm, string, CallSettings)

public virtual Task<Operation<SACRealm, OperationMetadata>> CreateSACRealmAsync(LocationName parent, SACRealm sacRealm, string sacRealmId, CallSettings callSettings = null)

Creates a new SACRealm in a given project.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/global.

sacRealm SACRealm

Required. The resource being created.

sacRealmId string

Required. ID of the created realm. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SACRealm sacRealm = new SACRealm();
string sacRealmId = "";
// Make the request
Operation<SACRealm, OperationMetadata> response = await sSERealmServiceClient.CreateSACRealmAsync(parent, sacRealm, sacRealmId);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACRealmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealmAsync(LocationName, SACRealm, string, CancellationToken)

public virtual Task<Operation<SACRealm, OperationMetadata>> CreateSACRealmAsync(LocationName parent, SACRealm sacRealm, string sacRealmId, CancellationToken cancellationToken)

Creates a new SACRealm in a given project.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/global.

sacRealm SACRealm

Required. The resource being created.

sacRealmId string

Required. ID of the created realm. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SACRealm sacRealm = new SACRealm();
string sacRealmId = "";
// Make the request
Operation<SACRealm, OperationMetadata> response = await sSERealmServiceClient.CreateSACRealmAsync(parent, sacRealm, sacRealmId);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACRealmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealmAsync(CreateSACRealmRequest, CallSettings)

public virtual Task<Operation<SACRealm, OperationMetadata>> CreateSACRealmAsync(CreateSACRealmRequest request, CallSettings callSettings = null)

Creates a new SACRealm in a given project.

Parameters
Name Description
request CreateSACRealmRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSACRealmRequest request = new CreateSACRealmRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SacRealmId = "",
    SacRealm = new SACRealm(),
    RequestId = "",
};
// Make the request
Operation<SACRealm, OperationMetadata> response = await sSERealmServiceClient.CreateSACRealmAsync(request);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACRealmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealmAsync(CreateSACRealmRequest, CancellationToken)

public virtual Task<Operation<SACRealm, OperationMetadata>> CreateSACRealmAsync(CreateSACRealmRequest request, CancellationToken cancellationToken)

Creates a new SACRealm in a given project.

Parameters
Name Description
request CreateSACRealmRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSACRealmRequest request = new CreateSACRealmRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SacRealmId = "",
    SacRealm = new SACRealm(),
    RequestId = "",
};
// Make the request
Operation<SACRealm, OperationMetadata> response = await sSERealmServiceClient.CreateSACRealmAsync(request);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACRealmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealmAsync(string, SACRealm, string, CallSettings)

public virtual Task<Operation<SACRealm, OperationMetadata>> CreateSACRealmAsync(string parent, SACRealm sacRealm, string sacRealmId, CallSettings callSettings = null)

Creates a new SACRealm in a given project.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/global.

sacRealm SACRealm

Required. The resource being created.

sacRealmId string

Required. ID of the created realm. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SACRealm sacRealm = new SACRealm();
string sacRealmId = "";
// Make the request
Operation<SACRealm, OperationMetadata> response = await sSERealmServiceClient.CreateSACRealmAsync(parent, sacRealm, sacRealmId);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACRealmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

CreateSACRealmAsync(string, SACRealm, string, CancellationToken)

public virtual Task<Operation<SACRealm, OperationMetadata>> CreateSACRealmAsync(string parent, SACRealm sacRealm, string sacRealmId, CancellationToken cancellationToken)

Creates a new SACRealm in a given project.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/global.

sacRealm SACRealm

Required. The resource being created.

sacRealmId string

Required. ID of the created realm. The ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SACRealm sacRealm = new SACRealm();
string sacRealmId = "";
// Make the request
Operation<SACRealm, OperationMetadata> response = await sSERealmServiceClient.CreateSACRealmAsync(parent, sacRealm, sacRealmId);

// Poll until the returned long-running operation is complete
Operation<SACRealm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SACRealm 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<SACRealm, OperationMetadata> retrievedResponse = await sSERealmServiceClient.PollOnceCreateSACRealmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SACRealm retrievedResult = retrievedResponse.Result;
}

DeleteSACAttachment(DeleteSACAttachmentRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSACAttachment(DeleteSACAttachmentRequest request, CallSettings callSettings = null)

Deletes the specified attachment.

Parameters
Name Description
request DeleteSACAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
DeleteSACAttachmentRequest request = new DeleteSACAttachmentRequest
{
    SACAttachmentName = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = sSERealmServiceClient.DeleteSACAttachment(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 = sSERealmServiceClient.PollOnceDeleteSACAttachment(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;
}

DeleteSACAttachment(SACAttachmentName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSACAttachment(SACAttachmentName name, CallSettings callSettings = null)

Deletes the specified attachment.

Parameters
Name Description
name SACAttachmentName

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
SACAttachmentName name = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]");
// Make the request
Operation<Empty, OperationMetadata> response = sSERealmServiceClient.DeleteSACAttachment(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 = sSERealmServiceClient.PollOnceDeleteSACAttachment(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;
}

DeleteSACAttachment(string, CallSettings)

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

Deletes the specified attachment.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacAttachments/[SAC_ATTACHMENT]";
// Make the request
Operation<Empty, OperationMetadata> response = sSERealmServiceClient.DeleteSACAttachment(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 = sSERealmServiceClient.PollOnceDeleteSACAttachment(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;
}

DeleteSACAttachmentAsync(DeleteSACAttachmentRequest, CallSettings)

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

Deletes the specified attachment.

Parameters
Name Description
request DeleteSACAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSACAttachmentRequest request = new DeleteSACAttachmentRequest
{
    SACAttachmentName = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACAttachmentAsync(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 sSERealmServiceClient.PollOnceDeleteSACAttachmentAsync(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;
}

DeleteSACAttachmentAsync(DeleteSACAttachmentRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSACAttachmentAsync(DeleteSACAttachmentRequest request, CancellationToken cancellationToken)

Deletes the specified attachment.

Parameters
Name Description
request DeleteSACAttachmentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSACAttachmentRequest request = new DeleteSACAttachmentRequest
{
    SACAttachmentName = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACAttachmentAsync(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 sSERealmServiceClient.PollOnceDeleteSACAttachmentAsync(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;
}

DeleteSACAttachmentAsync(SACAttachmentName, CallSettings)

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

Deletes the specified attachment.

Parameters
Name Description
name SACAttachmentName

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACAttachmentName name = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]");
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACAttachmentAsync(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 sSERealmServiceClient.PollOnceDeleteSACAttachmentAsync(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;
}

DeleteSACAttachmentAsync(SACAttachmentName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSACAttachmentAsync(SACAttachmentName name, CancellationToken cancellationToken)

Deletes the specified attachment.

Parameters
Name Description
name SACAttachmentName

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACAttachmentName name = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]");
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACAttachmentAsync(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 sSERealmServiceClient.PollOnceDeleteSACAttachmentAsync(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;
}

DeleteSACAttachmentAsync(string, CallSettings)

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

Deletes the specified attachment.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacAttachments/[SAC_ATTACHMENT]";
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACAttachmentAsync(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 sSERealmServiceClient.PollOnceDeleteSACAttachmentAsync(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;
}

DeleteSACAttachmentAsync(string, CancellationToken)

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

Deletes the specified attachment.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacAttachments/[SAC_ATTACHMENT]";
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACAttachmentAsync(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 sSERealmServiceClient.PollOnceDeleteSACAttachmentAsync(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;
}

DeleteSACRealm(DeleteSACRealmRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSACRealm(DeleteSACRealmRequest request, CallSettings callSettings = null)

Deletes the specified realm.

Parameters
Name Description
request DeleteSACRealmRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
DeleteSACRealmRequest request = new DeleteSACRealmRequest
{
    SACRealmName = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = sSERealmServiceClient.DeleteSACRealm(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 = sSERealmServiceClient.PollOnceDeleteSACRealm(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;
}

DeleteSACRealm(SACRealmName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSACRealm(SACRealmName name, CallSettings callSettings = null)

Deletes the specified realm.

Parameters
Name Description
name SACRealmName

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
SACRealmName name = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]");
// Make the request
Operation<Empty, OperationMetadata> response = sSERealmServiceClient.DeleteSACRealm(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 = sSERealmServiceClient.PollOnceDeleteSACRealm(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;
}

DeleteSACRealm(string, CallSettings)

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

Deletes the specified realm.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacRealms/[SAC_REALM]";
// Make the request
Operation<Empty, OperationMetadata> response = sSERealmServiceClient.DeleteSACRealm(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 = sSERealmServiceClient.PollOnceDeleteSACRealm(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;
}

DeleteSACRealmAsync(DeleteSACRealmRequest, CallSettings)

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

Deletes the specified realm.

Parameters
Name Description
request DeleteSACRealmRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSACRealmRequest request = new DeleteSACRealmRequest
{
    SACRealmName = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACRealmAsync(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 sSERealmServiceClient.PollOnceDeleteSACRealmAsync(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;
}

DeleteSACRealmAsync(DeleteSACRealmRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSACRealmAsync(DeleteSACRealmRequest request, CancellationToken cancellationToken)

Deletes the specified realm.

Parameters
Name Description
request DeleteSACRealmRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSACRealmRequest request = new DeleteSACRealmRequest
{
    SACRealmName = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACRealmAsync(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 sSERealmServiceClient.PollOnceDeleteSACRealmAsync(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;
}

DeleteSACRealmAsync(SACRealmName, CallSettings)

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

Deletes the specified realm.

Parameters
Name Description
name SACRealmName

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACRealmName name = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]");
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACRealmAsync(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 sSERealmServiceClient.PollOnceDeleteSACRealmAsync(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;
}

DeleteSACRealmAsync(SACRealmName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSACRealmAsync(SACRealmName name, CancellationToken cancellationToken)

Deletes the specified realm.

Parameters
Name Description
name SACRealmName

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACRealmName name = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]");
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACRealmAsync(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 sSERealmServiceClient.PollOnceDeleteSACRealmAsync(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;
}

DeleteSACRealmAsync(string, CallSettings)

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

Deletes the specified realm.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacRealms/[SAC_REALM]";
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACRealmAsync(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 sSERealmServiceClient.PollOnceDeleteSACRealmAsync(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;
}

DeleteSACRealmAsync(string, CancellationToken)

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

Deletes the specified realm.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacRealms/[SAC_REALM]";
// Make the request
Operation<Empty, OperationMetadata> response = await sSERealmServiceClient.DeleteSACRealmAsync(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 sSERealmServiceClient.PollOnceDeleteSACRealmAsync(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;
}

GetSACAttachment(GetSACAttachmentRequest, CallSettings)

public virtual SACAttachment GetSACAttachment(GetSACAttachmentRequest request, CallSettings callSettings = null)

Returns the specified attachment.

Parameters
Name Description
request GetSACAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SACAttachment

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
GetSACAttachmentRequest request = new GetSACAttachmentRequest
{
    SACAttachmentName = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]"),
};
// Make the request
SACAttachment response = sSERealmServiceClient.GetSACAttachment(request);

GetSACAttachment(SACAttachmentName, CallSettings)

public virtual SACAttachment GetSACAttachment(SACAttachmentName name, CallSettings callSettings = null)

Returns the specified attachment.

Parameters
Name Description
name SACAttachmentName

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SACAttachment

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
SACAttachmentName name = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]");
// Make the request
SACAttachment response = sSERealmServiceClient.GetSACAttachment(name);

GetSACAttachment(string, CallSettings)

public virtual SACAttachment GetSACAttachment(string name, CallSettings callSettings = null)

Returns the specified attachment.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SACAttachment

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacAttachments/[SAC_ATTACHMENT]";
// Make the request
SACAttachment response = sSERealmServiceClient.GetSACAttachment(name);

GetSACAttachmentAsync(GetSACAttachmentRequest, CallSettings)

public virtual Task<SACAttachment> GetSACAttachmentAsync(GetSACAttachmentRequest request, CallSettings callSettings = null)

Returns the specified attachment.

Parameters
Name Description
request GetSACAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSACAttachment

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
GetSACAttachmentRequest request = new GetSACAttachmentRequest
{
    SACAttachmentName = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]"),
};
// Make the request
SACAttachment response = await sSERealmServiceClient.GetSACAttachmentAsync(request);

GetSACAttachmentAsync(GetSACAttachmentRequest, CancellationToken)

public virtual Task<SACAttachment> GetSACAttachmentAsync(GetSACAttachmentRequest request, CancellationToken cancellationToken)

Returns the specified attachment.

Parameters
Name Description
request GetSACAttachmentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSACAttachment

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
GetSACAttachmentRequest request = new GetSACAttachmentRequest
{
    SACAttachmentName = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]"),
};
// Make the request
SACAttachment response = await sSERealmServiceClient.GetSACAttachmentAsync(request);

GetSACAttachmentAsync(SACAttachmentName, CallSettings)

public virtual Task<SACAttachment> GetSACAttachmentAsync(SACAttachmentName name, CallSettings callSettings = null)

Returns the specified attachment.

Parameters
Name Description
name SACAttachmentName

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSACAttachment

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACAttachmentName name = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]");
// Make the request
SACAttachment response = await sSERealmServiceClient.GetSACAttachmentAsync(name);

GetSACAttachmentAsync(SACAttachmentName, CancellationToken)

public virtual Task<SACAttachment> GetSACAttachmentAsync(SACAttachmentName name, CancellationToken cancellationToken)

Returns the specified attachment.

Parameters
Name Description
name SACAttachmentName

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSACAttachment

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACAttachmentName name = SACAttachmentName.FromProjectLocationSacAttachment("[PROJECT]", "[LOCATION]", "[SAC_ATTACHMENT]");
// Make the request
SACAttachment response = await sSERealmServiceClient.GetSACAttachmentAsync(name);

GetSACAttachmentAsync(string, CallSettings)

public virtual Task<SACAttachment> GetSACAttachmentAsync(string name, CallSettings callSettings = null)

Returns the specified attachment.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSACAttachment

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacAttachments/[SAC_ATTACHMENT]";
// Make the request
SACAttachment response = await sSERealmServiceClient.GetSACAttachmentAsync(name);

GetSACAttachmentAsync(string, CancellationToken)

public virtual Task<SACAttachment> GetSACAttachmentAsync(string name, CancellationToken cancellationToken)

Returns the specified attachment.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSACAttachment

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacAttachments/[SAC_ATTACHMENT]";
// Make the request
SACAttachment response = await sSERealmServiceClient.GetSACAttachmentAsync(name);

GetSACRealm(GetSACRealmRequest, CallSettings)

public virtual SACRealm GetSACRealm(GetSACRealmRequest request, CallSettings callSettings = null)

Returns the specified realm.

Parameters
Name Description
request GetSACRealmRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SACRealm

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
GetSACRealmRequest request = new GetSACRealmRequest
{
    SACRealmName = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]"),
};
// Make the request
SACRealm response = sSERealmServiceClient.GetSACRealm(request);

GetSACRealm(SACRealmName, CallSettings)

public virtual SACRealm GetSACRealm(SACRealmName name, CallSettings callSettings = null)

Returns the specified realm.

Parameters
Name Description
name SACRealmName

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SACRealm

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
SACRealmName name = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]");
// Make the request
SACRealm response = sSERealmServiceClient.GetSACRealm(name);

GetSACRealm(string, CallSettings)

public virtual SACRealm GetSACRealm(string name, CallSettings callSettings = null)

Returns the specified realm.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SACRealm

The RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacRealms/[SAC_REALM]";
// Make the request
SACRealm response = sSERealmServiceClient.GetSACRealm(name);

GetSACRealmAsync(GetSACRealmRequest, CallSettings)

public virtual Task<SACRealm> GetSACRealmAsync(GetSACRealmRequest request, CallSettings callSettings = null)

Returns the specified realm.

Parameters
Name Description
request GetSACRealmRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSACRealm

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
GetSACRealmRequest request = new GetSACRealmRequest
{
    SACRealmName = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]"),
};
// Make the request
SACRealm response = await sSERealmServiceClient.GetSACRealmAsync(request);

GetSACRealmAsync(GetSACRealmRequest, CancellationToken)

public virtual Task<SACRealm> GetSACRealmAsync(GetSACRealmRequest request, CancellationToken cancellationToken)

Returns the specified realm.

Parameters
Name Description
request GetSACRealmRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSACRealm

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
GetSACRealmRequest request = new GetSACRealmRequest
{
    SACRealmName = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]"),
};
// Make the request
SACRealm response = await sSERealmServiceClient.GetSACRealmAsync(request);

GetSACRealmAsync(SACRealmName, CallSettings)

public virtual Task<SACRealm> GetSACRealmAsync(SACRealmName name, CallSettings callSettings = null)

Returns the specified realm.

Parameters
Name Description
name SACRealmName

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSACRealm

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACRealmName name = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]");
// Make the request
SACRealm response = await sSERealmServiceClient.GetSACRealmAsync(name);

GetSACRealmAsync(SACRealmName, CancellationToken)

public virtual Task<SACRealm> GetSACRealmAsync(SACRealmName name, CancellationToken cancellationToken)

Returns the specified realm.

Parameters
Name Description
name SACRealmName

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSACRealm

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
SACRealmName name = SACRealmName.FromProjectLocationSacRealm("[PROJECT]", "[LOCATION]", "[SAC_REALM]");
// Make the request
SACRealm response = await sSERealmServiceClient.GetSACRealmAsync(name);

GetSACRealmAsync(string, CallSettings)

public virtual Task<SACRealm> GetSACRealmAsync(string name, CallSettings callSettings = null)

Returns the specified realm.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSACRealm

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacRealms/[SAC_REALM]";
// Make the request
SACRealm response = await sSERealmServiceClient.GetSACRealmAsync(name);

GetSACRealmAsync(string, CancellationToken)

public virtual Task<SACRealm> GetSACRealmAsync(string name, CancellationToken cancellationToken)

Returns the specified realm.

Parameters
Name Description
name string

Required. Name of the resource, in the form projects/{project}/locations/global/sacRealms/{sacRealm}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSACRealm

A Task containing the RPC response.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sacRealms/[SAC_REALM]";
// Make the request
SACRealm response = await sSERealmServiceClient.GetSACRealmAsync(name);

ListSACAttachments(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSACAttachmentsResponse, SACAttachment> ListSACAttachments(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACAttachments in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/{location}.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSACAttachmentsResponseSACAttachment

A pageable sequence of SACAttachment resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSACAttachmentsResponse, SACAttachment> response = sSERealmServiceClient.ListSACAttachments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SACAttachment 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 (ListSACAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACAttachment 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<SACAttachment> 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 (SACAttachment 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;

ListSACAttachments(ListSACAttachmentsRequest, CallSettings)

public virtual PagedEnumerable<ListSACAttachmentsResponse, SACAttachment> ListSACAttachments(ListSACAttachmentsRequest request, CallSettings callSettings = null)

Lists SACAttachments in a given project and location.

Parameters
Name Description
request ListSACAttachmentsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSACAttachmentsResponseSACAttachment

A pageable sequence of SACAttachment resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
ListSACAttachmentsRequest request = new ListSACAttachmentsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListSACAttachmentsResponse, SACAttachment> response = sSERealmServiceClient.ListSACAttachments(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SACAttachment 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 (ListSACAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACAttachment 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<SACAttachment> 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 (SACAttachment 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;

ListSACAttachments(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSACAttachmentsResponse, SACAttachment> ListSACAttachments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACAttachments in a given project and location.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/{location}.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSACAttachmentsResponseSACAttachment

A pageable sequence of SACAttachment resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSACAttachmentsResponse, SACAttachment> response = sSERealmServiceClient.ListSACAttachments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SACAttachment 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 (ListSACAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACAttachment 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<SACAttachment> 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 (SACAttachment 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;

ListSACAttachmentsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSACAttachmentsResponse, SACAttachment> ListSACAttachmentsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACAttachments in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/{location}.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSACAttachmentsResponseSACAttachment

A pageable asynchronous sequence of SACAttachment resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSACAttachmentsResponse, SACAttachment> response = sSERealmServiceClient.ListSACAttachmentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SACAttachment 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 (ListSACAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACAttachment 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<SACAttachment> 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 (SACAttachment 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;

ListSACAttachmentsAsync(ListSACAttachmentsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSACAttachmentsResponse, SACAttachment> ListSACAttachmentsAsync(ListSACAttachmentsRequest request, CallSettings callSettings = null)

Lists SACAttachments in a given project and location.

Parameters
Name Description
request ListSACAttachmentsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSACAttachmentsResponseSACAttachment

A pageable asynchronous sequence of SACAttachment resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
ListSACAttachmentsRequest request = new ListSACAttachmentsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSACAttachmentsResponse, SACAttachment> response = sSERealmServiceClient.ListSACAttachmentsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SACAttachment 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 (ListSACAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACAttachment 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<SACAttachment> 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 (SACAttachment 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;

ListSACAttachmentsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSACAttachmentsResponse, SACAttachment> ListSACAttachmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACAttachments in a given project and location.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/{location}.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSACAttachmentsResponseSACAttachment

A pageable asynchronous sequence of SACAttachment resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSACAttachmentsResponse, SACAttachment> response = sSERealmServiceClient.ListSACAttachmentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SACAttachment 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 (ListSACAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACAttachment 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<SACAttachment> 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 (SACAttachment 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;

ListSACRealms(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSACRealmsResponse, SACRealm> ListSACRealms(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACRealms in a given project.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/global.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSACRealmsResponseSACRealm

A pageable sequence of SACRealm resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSACRealmsResponse, SACRealm> response = sSERealmServiceClient.ListSACRealms(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SACRealm 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 (ListSACRealmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACRealm 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<SACRealm> 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 (SACRealm 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;

ListSACRealms(ListSACRealmsRequest, CallSettings)

public virtual PagedEnumerable<ListSACRealmsResponse, SACRealm> ListSACRealms(ListSACRealmsRequest request, CallSettings callSettings = null)

Lists SACRealms in a given project.

Parameters
Name Description
request ListSACRealmsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSACRealmsResponseSACRealm

A pageable sequence of SACRealm resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
ListSACRealmsRequest request = new ListSACRealmsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListSACRealmsResponse, SACRealm> response = sSERealmServiceClient.ListSACRealms(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SACRealm 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 (ListSACRealmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACRealm 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<SACRealm> 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 (SACRealm 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;

ListSACRealms(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSACRealmsResponse, SACRealm> ListSACRealms(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACRealms in a given project.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/global.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSACRealmsResponseSACRealm

A pageable sequence of SACRealm resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = SSERealmServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSACRealmsResponse, SACRealm> response = sSERealmServiceClient.ListSACRealms(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SACRealm 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 (ListSACRealmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACRealm 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<SACRealm> 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 (SACRealm 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;

ListSACRealmsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSACRealmsResponse, SACRealm> ListSACRealmsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACRealms in a given project.

Parameters
Name Description
parent LocationName

Required. The parent, in the form projects/{project}/locations/global.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSACRealmsResponseSACRealm

A pageable asynchronous sequence of SACRealm resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSACRealmsResponse, SACRealm> response = sSERealmServiceClient.ListSACRealmsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SACRealm 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 (ListSACRealmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACRealm 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<SACRealm> 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 (SACRealm 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;

ListSACRealmsAsync(ListSACRealmsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSACRealmsResponse, SACRealm> ListSACRealmsAsync(ListSACRealmsRequest request, CallSettings callSettings = null)

Lists SACRealms in a given project.

Parameters
Name Description
request ListSACRealmsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSACRealmsResponseSACRealm

A pageable asynchronous sequence of SACRealm resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
ListSACRealmsRequest request = new ListSACRealmsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSACRealmsResponse, SACRealm> response = sSERealmServiceClient.ListSACRealmsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SACRealm 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 (ListSACRealmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACRealm 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<SACRealm> 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 (SACRealm 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;

ListSACRealmsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSACRealmsResponse, SACRealm> ListSACRealmsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SACRealms in a given project.

Parameters
Name Description
parent string

Required. The parent, in the form projects/{project}/locations/global.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSACRealmsResponseSACRealm

A pageable asynchronous sequence of SACRealm resources.

Example
// Create client
SSERealmServiceClient sSERealmServiceClient = await SSERealmServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSACRealmsResponse, SACRealm> response = sSERealmServiceClient.ListSACRealmsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SACRealm 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 (ListSACRealmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SACRealm 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<SACRealm> 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 (SACRealm 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;

PollOnceCreateSACAttachment(string, CallSettings)

public virtual Operation<SACAttachment, OperationMetadata> PollOnceCreateSACAttachment(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACAttachmentOperationMetadata

The result of polling the operation.

PollOnceCreateSACAttachmentAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACAttachmentOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateSACRealm(string, CallSettings)

public virtual Operation<SACRealm, OperationMetadata> PollOnceCreateSACRealm(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSACRealmOperationMetadata

The result of polling the operation.

PollOnceCreateSACRealmAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSACRealmOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSACAttachment(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSACAttachmentAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSACRealm(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSACRealmAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

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

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

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