License Manager v1 API - Class LicenseManagerClient (1.0.0-beta01)

public abstract class LicenseManagerClient

Reference documentation and code samples for the License Manager v1 API class LicenseManagerClient.

LicenseManager client wrapper, for convenient use.

Inheritance

object > LicenseManagerClient

Derived Types

Namespace

Google.Cloud.LicenseManager.V1

Assembly

Google.Cloud.LicenseManager.V1.dll

Remarks

Service describing handlers for resources

Properties

CreateConfigurationOperationsClient

public virtual OperationsClient CreateConfigurationOperationsClient { get; }

The long-running operations client for CreateConfiguration.

Property Value
Type Description
OperationsClient

DeactivateConfigurationOperationsClient

public virtual OperationsClient DeactivateConfigurationOperationsClient { get; }

The long-running operations client for DeactivateConfiguration.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default LicenseManager scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default LicenseManager scopes are:

DeleteConfigurationOperationsClient

public virtual OperationsClient DeleteConfigurationOperationsClient { get; }

The long-running operations client for DeleteConfiguration.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual LicenseManager.LicenseManagerClient GrpcClient { get; }

The underlying gRPC LicenseManager client

Property Value
Type Description
LicenseManagerLicenseManagerClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ReactivateConfigurationOperationsClient

public virtual OperationsClient ReactivateConfigurationOperationsClient { get; }

The long-running operations client for ReactivateConfiguration.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateConfigurationOperationsClient

public virtual OperationsClient UpdateConfigurationOperationsClient { get; }

The long-running operations client for UpdateConfiguration.

Property Value
Type Description
OperationsClient

Methods

AggregateUsage(AggregateUsageRequest, CallSettings)

public virtual PagedEnumerable<AggregateUsageResponse, Usage> AggregateUsage(AggregateUsageRequest request, CallSettings callSettings = null)

Aggregates Usage per Instance for a Configuration.

Parameters
Name Description
request AggregateUsageRequest

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
PagedEnumerableAggregateUsageResponseUsage

A pageable sequence of Usage resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
AggregateUsageRequest request = new AggregateUsageRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    Filter = "",
    OrderBy = "",
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
PagedEnumerable<AggregateUsageResponse, Usage> response = licenseManagerClient.AggregateUsage(request);

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

AggregateUsage(ConfigurationName, Timestamp, Timestamp, string, int?, CallSettings)

public virtual PagedEnumerable<AggregateUsageResponse, Usage> AggregateUsage(ConfigurationName name, Timestamp startTime, Timestamp endTime, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Aggregates Usage per Instance for a Configuration.

Parameters
Name Description
name ConfigurationName

Required. Parent value for AggregateUsageRequest

startTime Timestamp

Required. Licenses are purchased per month - so usage track needs start time of a month.

endTime Timestamp

Required. Usage track is always for a month. This parameter is for the end time of the month.

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
PagedEnumerableAggregateUsageResponseUsage

A pageable sequence of Usage resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
PagedEnumerable<AggregateUsageResponse, Usage> response = licenseManagerClient.AggregateUsage(name, startTime, endTime);

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

AggregateUsage(string, Timestamp, Timestamp, string, int?, CallSettings)

public virtual PagedEnumerable<AggregateUsageResponse, Usage> AggregateUsage(string name, Timestamp startTime, Timestamp endTime, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Aggregates Usage per Instance for a Configuration.

Parameters
Name Description
name string

Required. Parent value for AggregateUsageRequest

startTime Timestamp

Required. Licenses are purchased per month - so usage track needs start time of a month.

endTime Timestamp

Required. Usage track is always for a month. This parameter is for the end time of the month.

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
PagedEnumerableAggregateUsageResponseUsage

A pageable sequence of Usage resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
PagedEnumerable<AggregateUsageResponse, Usage> response = licenseManagerClient.AggregateUsage(name, startTime, endTime);

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

AggregateUsageAsync(AggregateUsageRequest, CallSettings)

public virtual PagedAsyncEnumerable<AggregateUsageResponse, Usage> AggregateUsageAsync(AggregateUsageRequest request, CallSettings callSettings = null)

Aggregates Usage per Instance for a Configuration.

Parameters
Name Description
request AggregateUsageRequest

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
PagedAsyncEnumerableAggregateUsageResponseUsage

A pageable asynchronous sequence of Usage resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
AggregateUsageRequest request = new AggregateUsageRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    Filter = "",
    OrderBy = "",
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
PagedAsyncEnumerable<AggregateUsageResponse, Usage> response = licenseManagerClient.AggregateUsageAsync(request);

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

AggregateUsageAsync(ConfigurationName, Timestamp, Timestamp, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<AggregateUsageResponse, Usage> AggregateUsageAsync(ConfigurationName name, Timestamp startTime, Timestamp endTime, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Aggregates Usage per Instance for a Configuration.

Parameters
Name Description
name ConfigurationName

Required. Parent value for AggregateUsageRequest

startTime Timestamp

Required. Licenses are purchased per month - so usage track needs start time of a month.

endTime Timestamp

Required. Usage track is always for a month. This parameter is for the end time of the month.

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
PagedAsyncEnumerableAggregateUsageResponseUsage

A pageable asynchronous sequence of Usage resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
PagedAsyncEnumerable<AggregateUsageResponse, Usage> response = licenseManagerClient.AggregateUsageAsync(name, startTime, endTime);

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

AggregateUsageAsync(string, Timestamp, Timestamp, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<AggregateUsageResponse, Usage> AggregateUsageAsync(string name, Timestamp startTime, Timestamp endTime, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Aggregates Usage per Instance for a Configuration.

Parameters
Name Description
name string

Required. Parent value for AggregateUsageRequest

startTime Timestamp

Required. Licenses are purchased per month - so usage track needs start time of a month.

endTime Timestamp

Required. Usage track is always for a month. This parameter is for the end time of the month.

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
PagedAsyncEnumerableAggregateUsageResponseUsage

A pageable asynchronous sequence of Usage resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
PagedAsyncEnumerable<AggregateUsageResponse, Usage> response = licenseManagerClient.AggregateUsageAsync(name, startTime, endTime);

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

Create()

public static LicenseManagerClient Create()

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

Returns
Type Description
LicenseManagerClient

The created LicenseManagerClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskLicenseManagerClient

The task representing the created LicenseManagerClient.

CreateConfiguration(LocationName, Configuration, string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> CreateConfiguration(LocationName parent, Configuration configuration, string configurationId, CallSettings callSettings = null)

Creates a new Configuration in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

configuration Configuration

Required. The resource being created

configurationId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Configuration configuration = new Configuration();
string configurationId = "";
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.CreateConfiguration(parent, configuration, configurationId);

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

CreateConfiguration(CreateConfigurationRequest, CallSettings)

public virtual Operation<Configuration, OperationMetadata> CreateConfiguration(CreateConfigurationRequest request, CallSettings callSettings = null)

Creates a new Configuration in a given project and location.

Parameters
Name Description
request CreateConfigurationRequest

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
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
CreateConfigurationRequest request = new CreateConfigurationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConfigurationId = "",
    Configuration = new Configuration(),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.CreateConfiguration(request);

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

CreateConfiguration(string, Configuration, string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> CreateConfiguration(string parent, Configuration configuration, string configurationId, CallSettings callSettings = null)

Creates a new Configuration in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

configuration Configuration

Required. The resource being created

configurationId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Configuration configuration = new Configuration();
string configurationId = "";
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.CreateConfiguration(parent, configuration, configurationId);

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

CreateConfigurationAsync(LocationName, Configuration, string, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> CreateConfigurationAsync(LocationName parent, Configuration configuration, string configurationId, CallSettings callSettings = null)

Creates a new Configuration in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

configuration Configuration

Required. The resource being created

configurationId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Configuration configuration = new Configuration();
string configurationId = "";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.CreateConfigurationAsync(parent, configuration, configurationId);

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

CreateConfigurationAsync(LocationName, Configuration, string, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> CreateConfigurationAsync(LocationName parent, Configuration configuration, string configurationId, CancellationToken cancellationToken)

Creates a new Configuration in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

configuration Configuration

Required. The resource being created

configurationId string

Required. Id of the requesting object

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Configuration configuration = new Configuration();
string configurationId = "";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.CreateConfigurationAsync(parent, configuration, configurationId);

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

CreateConfigurationAsync(CreateConfigurationRequest, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> CreateConfigurationAsync(CreateConfigurationRequest request, CallSettings callSettings = null)

Creates a new Configuration in a given project and location.

Parameters
Name Description
request CreateConfigurationRequest

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
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
CreateConfigurationRequest request = new CreateConfigurationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConfigurationId = "",
    Configuration = new Configuration(),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.CreateConfigurationAsync(request);

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

CreateConfigurationAsync(CreateConfigurationRequest, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> CreateConfigurationAsync(CreateConfigurationRequest request, CancellationToken cancellationToken)

Creates a new Configuration in a given project and location.

Parameters
Name Description
request CreateConfigurationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
CreateConfigurationRequest request = new CreateConfigurationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConfigurationId = "",
    Configuration = new Configuration(),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.CreateConfigurationAsync(request);

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

CreateConfigurationAsync(string, Configuration, string, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> CreateConfigurationAsync(string parent, Configuration configuration, string configurationId, CallSettings callSettings = null)

Creates a new Configuration in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

configuration Configuration

Required. The resource being created

configurationId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Configuration configuration = new Configuration();
string configurationId = "";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.CreateConfigurationAsync(parent, configuration, configurationId);

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

CreateConfigurationAsync(string, Configuration, string, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> CreateConfigurationAsync(string parent, Configuration configuration, string configurationId, CancellationToken cancellationToken)

Creates a new Configuration in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

configuration Configuration

Required. The resource being created

configurationId string

Required. Id of the requesting object

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Configuration configuration = new Configuration();
string configurationId = "";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.CreateConfigurationAsync(parent, configuration, configurationId);

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

DeactivateConfiguration(ConfigurationName, CallSettings)

public virtual Operation<Configuration, OperationMetadata> DeactivateConfiguration(ConfigurationName name, CallSettings callSettings = null)

Deactivates the given configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.DeactivateConfiguration(name);

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

DeactivateConfiguration(DeactivateConfigurationRequest, CallSettings)

public virtual Operation<Configuration, OperationMetadata> DeactivateConfiguration(DeactivateConfigurationRequest request, CallSettings callSettings = null)

Deactivates the given configuration.

Parameters
Name Description
request DeactivateConfigurationRequest

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
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
DeactivateConfigurationRequest request = new DeactivateConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.DeactivateConfiguration(request);

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

DeactivateConfiguration(string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> DeactivateConfiguration(string name, CallSettings callSettings = null)

Deactivates the given configuration.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.DeactivateConfiguration(name);

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

DeactivateConfigurationAsync(ConfigurationName, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> DeactivateConfigurationAsync(ConfigurationName name, CallSettings callSettings = null)

Deactivates the given configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.DeactivateConfigurationAsync(name);

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

DeactivateConfigurationAsync(ConfigurationName, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> DeactivateConfigurationAsync(ConfigurationName name, CancellationToken cancellationToken)

Deactivates the given configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.DeactivateConfigurationAsync(name);

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

DeactivateConfigurationAsync(DeactivateConfigurationRequest, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> DeactivateConfigurationAsync(DeactivateConfigurationRequest request, CallSettings callSettings = null)

Deactivates the given configuration.

Parameters
Name Description
request DeactivateConfigurationRequest

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
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
DeactivateConfigurationRequest request = new DeactivateConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.DeactivateConfigurationAsync(request);

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

DeactivateConfigurationAsync(DeactivateConfigurationRequest, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> DeactivateConfigurationAsync(DeactivateConfigurationRequest request, CancellationToken cancellationToken)

Deactivates the given configuration.

Parameters
Name Description
request DeactivateConfigurationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
DeactivateConfigurationRequest request = new DeactivateConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.DeactivateConfigurationAsync(request);

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

DeactivateConfigurationAsync(string, CallSettings)

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

Deactivates the given configuration.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.DeactivateConfigurationAsync(name);

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

DeactivateConfigurationAsync(string, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> DeactivateConfigurationAsync(string name, CancellationToken cancellationToken)

Deactivates the given configuration.

Parameters
Name Description
name string

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.DeactivateConfigurationAsync(name);

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

DeleteConfiguration(ConfigurationName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConfiguration(ConfigurationName name, CallSettings callSettings = null)

Deletes a single Configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Empty, OperationMetadata> response = licenseManagerClient.DeleteConfiguration(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 = licenseManagerClient.PollOnceDeleteConfiguration(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;
}

DeleteConfiguration(DeleteConfigurationRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConfiguration(DeleteConfigurationRequest request, CallSettings callSettings = null)

Deletes a single Configuration.

Parameters
Name Description
request DeleteConfigurationRequest

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
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
DeleteConfigurationRequest request = new DeleteConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = licenseManagerClient.DeleteConfiguration(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 = licenseManagerClient.PollOnceDeleteConfiguration(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;
}

DeleteConfiguration(string, CallSettings)

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

Deletes a single Configuration.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Empty, OperationMetadata> response = licenseManagerClient.DeleteConfiguration(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 = licenseManagerClient.PollOnceDeleteConfiguration(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;
}

DeleteConfigurationAsync(ConfigurationName, CallSettings)

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

Deletes a single Configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await licenseManagerClient.DeleteConfigurationAsync(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 licenseManagerClient.PollOnceDeleteConfigurationAsync(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;
}

DeleteConfigurationAsync(ConfigurationName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConfigurationAsync(ConfigurationName name, CancellationToken cancellationToken)

Deletes a single Configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await licenseManagerClient.DeleteConfigurationAsync(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 licenseManagerClient.PollOnceDeleteConfigurationAsync(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;
}

DeleteConfigurationAsync(DeleteConfigurationRequest, CallSettings)

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

Deletes a single Configuration.

Parameters
Name Description
request DeleteConfigurationRequest

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
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteConfigurationRequest request = new DeleteConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await licenseManagerClient.DeleteConfigurationAsync(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 licenseManagerClient.PollOnceDeleteConfigurationAsync(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;
}

DeleteConfigurationAsync(DeleteConfigurationRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConfigurationAsync(DeleteConfigurationRequest request, CancellationToken cancellationToken)

Deletes a single Configuration.

Parameters
Name Description
request DeleteConfigurationRequest

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
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteConfigurationRequest request = new DeleteConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await licenseManagerClient.DeleteConfigurationAsync(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 licenseManagerClient.PollOnceDeleteConfigurationAsync(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;
}

DeleteConfigurationAsync(string, CallSettings)

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

Deletes a single Configuration.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await licenseManagerClient.DeleteConfigurationAsync(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 licenseManagerClient.PollOnceDeleteConfigurationAsync(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;
}

DeleteConfigurationAsync(string, CancellationToken)

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

Deletes a single Configuration.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await licenseManagerClient.DeleteConfigurationAsync(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 licenseManagerClient.PollOnceDeleteConfigurationAsync(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;
}

GetConfiguration(ConfigurationName, CallSettings)

public virtual Configuration GetConfiguration(ConfigurationName name, CallSettings callSettings = null)

Gets details of a single Configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Configuration

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Configuration response = licenseManagerClient.GetConfiguration(name);

GetConfiguration(GetConfigurationRequest, CallSettings)

public virtual Configuration GetConfiguration(GetConfigurationRequest request, CallSettings callSettings = null)

Gets details of a single Configuration.

Parameters
Name Description
request GetConfigurationRequest

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
Configuration

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
GetConfigurationRequest request = new GetConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
};
// Make the request
Configuration response = licenseManagerClient.GetConfiguration(request);

GetConfiguration(string, CallSettings)

public virtual Configuration GetConfiguration(string name, CallSettings callSettings = null)

Gets details of a single Configuration.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Configuration

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Configuration response = licenseManagerClient.GetConfiguration(name);

GetConfigurationAsync(ConfigurationName, CallSettings)

public virtual Task<Configuration> GetConfigurationAsync(ConfigurationName name, CallSettings callSettings = null)

Gets details of a single Configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConfiguration

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Configuration response = await licenseManagerClient.GetConfigurationAsync(name);

GetConfigurationAsync(ConfigurationName, CancellationToken)

public virtual Task<Configuration> GetConfigurationAsync(ConfigurationName name, CancellationToken cancellationToken)

Gets details of a single Configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConfiguration

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Configuration response = await licenseManagerClient.GetConfigurationAsync(name);

GetConfigurationAsync(GetConfigurationRequest, CallSettings)

public virtual Task<Configuration> GetConfigurationAsync(GetConfigurationRequest request, CallSettings callSettings = null)

Gets details of a single Configuration.

Parameters
Name Description
request GetConfigurationRequest

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
TaskConfiguration

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
GetConfigurationRequest request = new GetConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
};
// Make the request
Configuration response = await licenseManagerClient.GetConfigurationAsync(request);

GetConfigurationAsync(GetConfigurationRequest, CancellationToken)

public virtual Task<Configuration> GetConfigurationAsync(GetConfigurationRequest request, CancellationToken cancellationToken)

Gets details of a single Configuration.

Parameters
Name Description
request GetConfigurationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConfiguration

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
GetConfigurationRequest request = new GetConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
};
// Make the request
Configuration response = await licenseManagerClient.GetConfigurationAsync(request);

GetConfigurationAsync(string, CallSettings)

public virtual Task<Configuration> GetConfigurationAsync(string name, CallSettings callSettings = null)

Gets details of a single Configuration.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConfiguration

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Configuration response = await licenseManagerClient.GetConfigurationAsync(name);

GetConfigurationAsync(string, CancellationToken)

public virtual Task<Configuration> GetConfigurationAsync(string name, CancellationToken cancellationToken)

Gets details of a single Configuration.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConfiguration

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Configuration response = await licenseManagerClient.GetConfigurationAsync(name);

GetInstance(GetInstanceRequest, CallSettings)

public virtual Instance GetInstance(GetInstanceRequest request, CallSettings callSettings = null)

Gets details of a single Instance.

Parameters
Name Description
request GetInstanceRequest

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
Instance

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
GetInstanceRequest request = new GetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Instance response = licenseManagerClient.GetInstance(request);

GetInstance(InstanceName, CallSettings)

public virtual Instance GetInstance(InstanceName name, CallSettings callSettings = null)

Gets details of a single Instance.

Parameters
Name Description
name InstanceName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Instance

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Instance response = licenseManagerClient.GetInstance(name);

GetInstance(string, CallSettings)

public virtual Instance GetInstance(string name, CallSettings callSettings = null)

Gets details of a single Instance.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Instance

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Instance response = licenseManagerClient.GetInstance(name);

GetInstanceAsync(GetInstanceRequest, CallSettings)

public virtual Task<Instance> GetInstanceAsync(GetInstanceRequest request, CallSettings callSettings = null)

Gets details of a single Instance.

Parameters
Name Description
request GetInstanceRequest

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
TaskInstance

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
GetInstanceRequest request = new GetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Instance response = await licenseManagerClient.GetInstanceAsync(request);

GetInstanceAsync(GetInstanceRequest, CancellationToken)

public virtual Task<Instance> GetInstanceAsync(GetInstanceRequest request, CancellationToken cancellationToken)

Gets details of a single Instance.

Parameters
Name Description
request GetInstanceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstance

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
GetInstanceRequest request = new GetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Instance response = await licenseManagerClient.GetInstanceAsync(request);

GetInstanceAsync(InstanceName, CallSettings)

public virtual Task<Instance> GetInstanceAsync(InstanceName name, CallSettings callSettings = null)

Gets details of a single Instance.

Parameters
Name Description
name InstanceName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstance

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Instance response = await licenseManagerClient.GetInstanceAsync(name);

GetInstanceAsync(InstanceName, CancellationToken)

public virtual Task<Instance> GetInstanceAsync(InstanceName name, CancellationToken cancellationToken)

Gets details of a single Instance.

Parameters
Name Description
name InstanceName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstance

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Instance response = await licenseManagerClient.GetInstanceAsync(name);

GetInstanceAsync(string, CallSettings)

public virtual Task<Instance> GetInstanceAsync(string name, CallSettings callSettings = null)

Gets details of a single Instance.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstance

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Instance response = await licenseManagerClient.GetInstanceAsync(name);

GetInstanceAsync(string, CancellationToken)

public virtual Task<Instance> GetInstanceAsync(string name, CancellationToken cancellationToken)

Gets details of a single Instance.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstance

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Instance response = await licenseManagerClient.GetInstanceAsync(name);

GetProduct(GetProductRequest, CallSettings)

public virtual Product GetProduct(GetProductRequest request, CallSettings callSettings = null)

Gets details of a single Product.

Parameters
Name Description
request GetProductRequest

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
Product

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
GetProductRequest request = new GetProductRequest
{
    ProductName = ProductName.FromProjectLocationProduct("[PROJECT]", "[LOCATION]", "[PRODUCT]"),
};
// Make the request
Product response = licenseManagerClient.GetProduct(request);

GetProduct(ProductName, CallSettings)

public virtual Product GetProduct(ProductName name, CallSettings callSettings = null)

Gets details of a single Product.

Parameters
Name Description
name ProductName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Product

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ProductName name = ProductName.FromProjectLocationProduct("[PROJECT]", "[LOCATION]", "[PRODUCT]");
// Make the request
Product response = licenseManagerClient.GetProduct(name);

GetProduct(string, CallSettings)

public virtual Product GetProduct(string name, CallSettings callSettings = null)

Gets details of a single Product.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Product

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/products/[PRODUCT]";
// Make the request
Product response = licenseManagerClient.GetProduct(name);

GetProductAsync(GetProductRequest, CallSettings)

public virtual Task<Product> GetProductAsync(GetProductRequest request, CallSettings callSettings = null)

Gets details of a single Product.

Parameters
Name Description
request GetProductRequest

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
TaskProduct

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
GetProductRequest request = new GetProductRequest
{
    ProductName = ProductName.FromProjectLocationProduct("[PROJECT]", "[LOCATION]", "[PRODUCT]"),
};
// Make the request
Product response = await licenseManagerClient.GetProductAsync(request);

GetProductAsync(GetProductRequest, CancellationToken)

public virtual Task<Product> GetProductAsync(GetProductRequest request, CancellationToken cancellationToken)

Gets details of a single Product.

Parameters
Name Description
request GetProductRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskProduct

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
GetProductRequest request = new GetProductRequest
{
    ProductName = ProductName.FromProjectLocationProduct("[PROJECT]", "[LOCATION]", "[PRODUCT]"),
};
// Make the request
Product response = await licenseManagerClient.GetProductAsync(request);

GetProductAsync(ProductName, CallSettings)

public virtual Task<Product> GetProductAsync(ProductName name, CallSettings callSettings = null)

Gets details of a single Product.

Parameters
Name Description
name ProductName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskProduct

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ProductName name = ProductName.FromProjectLocationProduct("[PROJECT]", "[LOCATION]", "[PRODUCT]");
// Make the request
Product response = await licenseManagerClient.GetProductAsync(name);

GetProductAsync(ProductName, CancellationToken)

public virtual Task<Product> GetProductAsync(ProductName name, CancellationToken cancellationToken)

Gets details of a single Product.

Parameters
Name Description
name ProductName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskProduct

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ProductName name = ProductName.FromProjectLocationProduct("[PROJECT]", "[LOCATION]", "[PRODUCT]");
// Make the request
Product response = await licenseManagerClient.GetProductAsync(name);

GetProductAsync(string, CallSettings)

public virtual Task<Product> GetProductAsync(string name, CallSettings callSettings = null)

Gets details of a single Product.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskProduct

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/products/[PRODUCT]";
// Make the request
Product response = await licenseManagerClient.GetProductAsync(name);

GetProductAsync(string, CancellationToken)

public virtual Task<Product> GetProductAsync(string name, CancellationToken cancellationToken)

Gets details of a single Product.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskProduct

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/products/[PRODUCT]";
// Make the request
Product response = await licenseManagerClient.GetProductAsync(name);

ListConfigurations(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConfigurationsResponse, Configuration> ListConfigurations(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Configurations in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListConfigurationsRequest

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
PagedEnumerableListConfigurationsResponseConfiguration

A pageable sequence of Configuration resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConfigurationsResponse, Configuration> response = licenseManagerClient.ListConfigurations(parent);

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

ListConfigurations(ListConfigurationsRequest, CallSettings)

public virtual PagedEnumerable<ListConfigurationsResponse, Configuration> ListConfigurations(ListConfigurationsRequest request, CallSettings callSettings = null)

Lists Configurations in a given project and location.

Parameters
Name Description
request ListConfigurationsRequest

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
PagedEnumerableListConfigurationsResponseConfiguration

A pageable sequence of Configuration resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ListConfigurationsRequest request = new ListConfigurationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListConfigurationsResponse, Configuration> response = licenseManagerClient.ListConfigurations(request);

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

ListConfigurations(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConfigurationsResponse, Configuration> ListConfigurations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Configurations in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListConfigurationsRequest

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
PagedEnumerableListConfigurationsResponseConfiguration

A pageable sequence of Configuration resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListConfigurationsResponse, Configuration> response = licenseManagerClient.ListConfigurations(parent);

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

ListConfigurationsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConfigurationsResponse, Configuration> ListConfigurationsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Configurations in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListConfigurationsRequest

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
PagedAsyncEnumerableListConfigurationsResponseConfiguration

A pageable asynchronous sequence of Configuration resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConfigurationsResponse, Configuration> response = licenseManagerClient.ListConfigurationsAsync(parent);

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

ListConfigurationsAsync(ListConfigurationsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConfigurationsResponse, Configuration> ListConfigurationsAsync(ListConfigurationsRequest request, CallSettings callSettings = null)

Lists Configurations in a given project and location.

Parameters
Name Description
request ListConfigurationsRequest

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
PagedAsyncEnumerableListConfigurationsResponseConfiguration

A pageable asynchronous sequence of Configuration resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ListConfigurationsRequest request = new ListConfigurationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListConfigurationsResponse, Configuration> response = licenseManagerClient.ListConfigurationsAsync(request);

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

ListConfigurationsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConfigurationsResponse, Configuration> ListConfigurationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Configurations in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListConfigurationsRequest

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
PagedAsyncEnumerableListConfigurationsResponseConfiguration

A pageable asynchronous sequence of Configuration resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListConfigurationsResponse, Configuration> response = licenseManagerClient.ListConfigurationsAsync(parent);

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

ListInstances(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInstancesResponse, Instance> ListInstances(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Instances in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListInstancesRequest

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
PagedEnumerableListInstancesResponseInstance

A pageable sequence of Instance resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInstancesResponse, Instance> response = licenseManagerClient.ListInstances(parent);

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

ListInstances(ListInstancesRequest, CallSettings)

public virtual PagedEnumerable<ListInstancesResponse, Instance> ListInstances(ListInstancesRequest request, CallSettings callSettings = null)

Lists Instances in a given project and location.

Parameters
Name Description
request ListInstancesRequest

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
PagedEnumerableListInstancesResponseInstance

A pageable sequence of Instance resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ListInstancesRequest request = new ListInstancesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListInstancesResponse, Instance> response = licenseManagerClient.ListInstances(request);

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

ListInstances(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListInstancesResponse, Instance> ListInstances(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Instances in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListInstancesRequest

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
PagedEnumerableListInstancesResponseInstance

A pageable sequence of Instance resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListInstancesResponse, Instance> response = licenseManagerClient.ListInstances(parent);

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

ListInstancesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInstancesResponse, Instance> ListInstancesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Instances in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListInstancesRequest

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
PagedAsyncEnumerableListInstancesResponseInstance

A pageable asynchronous sequence of Instance resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInstancesResponse, Instance> response = licenseManagerClient.ListInstancesAsync(parent);

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

ListInstancesAsync(ListInstancesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListInstancesResponse, Instance> ListInstancesAsync(ListInstancesRequest request, CallSettings callSettings = null)

Lists Instances in a given project and location.

Parameters
Name Description
request ListInstancesRequest

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
PagedAsyncEnumerableListInstancesResponseInstance

A pageable asynchronous sequence of Instance resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ListInstancesRequest request = new ListInstancesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListInstancesResponse, Instance> response = licenseManagerClient.ListInstancesAsync(request);

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

ListInstancesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInstancesResponse, Instance> ListInstancesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Instances in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListInstancesRequest

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
PagedAsyncEnumerableListInstancesResponseInstance

A pageable asynchronous sequence of Instance resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListInstancesResponse, Instance> response = licenseManagerClient.ListInstancesAsync(parent);

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

ListProducts(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListProductsResponse, Product> ListProducts(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Products in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListProductsRequest

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
PagedEnumerableListProductsResponseProduct

A pageable sequence of Product resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProductsResponse, Product> response = licenseManagerClient.ListProducts(parent);

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

ListProducts(ListProductsRequest, CallSettings)

public virtual PagedEnumerable<ListProductsResponse, Product> ListProducts(ListProductsRequest request, CallSettings callSettings = null)

Lists Products in a given project and location.

Parameters
Name Description
request ListProductsRequest

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
PagedEnumerableListProductsResponseProduct

A pageable sequence of Product resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ListProductsRequest request = new ListProductsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListProductsResponse, Product> response = licenseManagerClient.ListProducts(request);

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

ListProducts(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListProductsResponse, Product> ListProducts(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Products in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListProductsRequest

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
PagedEnumerableListProductsResponseProduct

A pageable sequence of Product resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListProductsResponse, Product> response = licenseManagerClient.ListProducts(parent);

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

ListProductsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProductsResponse, Product> ListProductsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Products in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListProductsRequest

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
PagedAsyncEnumerableListProductsResponseProduct

A pageable asynchronous sequence of Product resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProductsResponse, Product> response = licenseManagerClient.ListProductsAsync(parent);

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

ListProductsAsync(ListProductsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListProductsResponse, Product> ListProductsAsync(ListProductsRequest request, CallSettings callSettings = null)

Lists Products in a given project and location.

Parameters
Name Description
request ListProductsRequest

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
PagedAsyncEnumerableListProductsResponseProduct

A pageable asynchronous sequence of Product resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ListProductsRequest request = new ListProductsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListProductsResponse, Product> response = licenseManagerClient.ListProductsAsync(request);

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

ListProductsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProductsResponse, Product> ListProductsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Products in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListProductsRequest

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
PagedAsyncEnumerableListProductsResponseProduct

A pageable asynchronous sequence of Product resources.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListProductsResponse, Product> response = licenseManagerClient.ListProductsAsync(parent);

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

PollOnceCreateConfiguration(string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> PollOnceCreateConfiguration(string operationName, CallSettings callSettings = null)

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

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
OperationConfigurationOperationMetadata

The result of polling the operation.

PollOnceCreateConfigurationAsync(string, CallSettings)

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

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

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
TaskOperationConfigurationOperationMetadata

A task representing the result of polling the operation.

PollOnceDeactivateConfiguration(string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> PollOnceDeactivateConfiguration(string operationName, CallSettings callSettings = null)

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

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
OperationConfigurationOperationMetadata

The result of polling the operation.

PollOnceDeactivateConfigurationAsync(string, CallSettings)

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

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

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
TaskOperationConfigurationOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteConfiguration(string, CallSettings)

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

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

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.

PollOnceDeleteConfigurationAsync(string, CallSettings)

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

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

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.

PollOnceReactivateConfiguration(string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> PollOnceReactivateConfiguration(string operationName, CallSettings callSettings = null)

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

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
OperationConfigurationOperationMetadata

The result of polling the operation.

PollOnceReactivateConfigurationAsync(string, CallSettings)

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

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

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
TaskOperationConfigurationOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateConfiguration(string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> PollOnceUpdateConfiguration(string operationName, CallSettings callSettings = null)

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

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
OperationConfigurationOperationMetadata

The result of polling the operation.

PollOnceUpdateConfigurationAsync(string, CallSettings)

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

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

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
TaskOperationConfigurationOperationMetadata

A task representing the result of polling the operation.

QueryConfigurationLicenseUsage(ConfigurationName, Timestamp, Timestamp, CallSettings)

public virtual QueryConfigurationLicenseUsageResponse QueryConfigurationLicenseUsage(ConfigurationName name, Timestamp startTime, Timestamp endTime, CallSettings callSettings = null)

License Usage information for a Configuration.

Parameters
Name Description
name ConfigurationName

Required. The resource path of the Configuration.

startTime Timestamp

Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.

endTime Timestamp

Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
QueryConfigurationLicenseUsageResponse

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
QueryConfigurationLicenseUsageResponse response = licenseManagerClient.QueryConfigurationLicenseUsage(name, startTime, endTime);

QueryConfigurationLicenseUsage(QueryConfigurationLicenseUsageRequest, CallSettings)

public virtual QueryConfigurationLicenseUsageResponse QueryConfigurationLicenseUsage(QueryConfigurationLicenseUsageRequest request, CallSettings callSettings = null)

License Usage information for a Configuration.

Parameters
Name Description
request QueryConfigurationLicenseUsageRequest

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
QueryConfigurationLicenseUsageResponse

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
QueryConfigurationLicenseUsageRequest request = new QueryConfigurationLicenseUsageRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
QueryConfigurationLicenseUsageResponse response = licenseManagerClient.QueryConfigurationLicenseUsage(request);

QueryConfigurationLicenseUsage(string, Timestamp, Timestamp, CallSettings)

public virtual QueryConfigurationLicenseUsageResponse QueryConfigurationLicenseUsage(string name, Timestamp startTime, Timestamp endTime, CallSettings callSettings = null)

License Usage information for a Configuration.

Parameters
Name Description
name string

Required. The resource path of the Configuration.

startTime Timestamp

Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.

endTime Timestamp

Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
QueryConfigurationLicenseUsageResponse

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
QueryConfigurationLicenseUsageResponse response = licenseManagerClient.QueryConfigurationLicenseUsage(name, startTime, endTime);

QueryConfigurationLicenseUsageAsync(ConfigurationName, Timestamp, Timestamp, CallSettings)

public virtual Task<QueryConfigurationLicenseUsageResponse> QueryConfigurationLicenseUsageAsync(ConfigurationName name, Timestamp startTime, Timestamp endTime, CallSettings callSettings = null)

License Usage information for a Configuration.

Parameters
Name Description
name ConfigurationName

Required. The resource path of the Configuration.

startTime Timestamp

Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.

endTime Timestamp

Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskQueryConfigurationLicenseUsageResponse

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
QueryConfigurationLicenseUsageResponse response = await licenseManagerClient.QueryConfigurationLicenseUsageAsync(name, startTime, endTime);

QueryConfigurationLicenseUsageAsync(ConfigurationName, Timestamp, Timestamp, CancellationToken)

public virtual Task<QueryConfigurationLicenseUsageResponse> QueryConfigurationLicenseUsageAsync(ConfigurationName name, Timestamp startTime, Timestamp endTime, CancellationToken cancellationToken)

License Usage information for a Configuration.

Parameters
Name Description
name ConfigurationName

Required. The resource path of the Configuration.

startTime Timestamp

Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.

endTime Timestamp

Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskQueryConfigurationLicenseUsageResponse

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
QueryConfigurationLicenseUsageResponse response = await licenseManagerClient.QueryConfigurationLicenseUsageAsync(name, startTime, endTime);

QueryConfigurationLicenseUsageAsync(QueryConfigurationLicenseUsageRequest, CallSettings)

public virtual Task<QueryConfigurationLicenseUsageResponse> QueryConfigurationLicenseUsageAsync(QueryConfigurationLicenseUsageRequest request, CallSettings callSettings = null)

License Usage information for a Configuration.

Parameters
Name Description
request QueryConfigurationLicenseUsageRequest

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
TaskQueryConfigurationLicenseUsageResponse

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
QueryConfigurationLicenseUsageRequest request = new QueryConfigurationLicenseUsageRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
QueryConfigurationLicenseUsageResponse response = await licenseManagerClient.QueryConfigurationLicenseUsageAsync(request);

QueryConfigurationLicenseUsageAsync(QueryConfigurationLicenseUsageRequest, CancellationToken)

public virtual Task<QueryConfigurationLicenseUsageResponse> QueryConfigurationLicenseUsageAsync(QueryConfigurationLicenseUsageRequest request, CancellationToken cancellationToken)

License Usage information for a Configuration.

Parameters
Name Description
request QueryConfigurationLicenseUsageRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskQueryConfigurationLicenseUsageResponse

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
QueryConfigurationLicenseUsageRequest request = new QueryConfigurationLicenseUsageRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
QueryConfigurationLicenseUsageResponse response = await licenseManagerClient.QueryConfigurationLicenseUsageAsync(request);

QueryConfigurationLicenseUsageAsync(string, Timestamp, Timestamp, CallSettings)

public virtual Task<QueryConfigurationLicenseUsageResponse> QueryConfigurationLicenseUsageAsync(string name, Timestamp startTime, Timestamp endTime, CallSettings callSettings = null)

License Usage information for a Configuration.

Parameters
Name Description
name string

Required. The resource path of the Configuration.

startTime Timestamp

Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.

endTime Timestamp

Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskQueryConfigurationLicenseUsageResponse

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
QueryConfigurationLicenseUsageResponse response = await licenseManagerClient.QueryConfigurationLicenseUsageAsync(name, startTime, endTime);

QueryConfigurationLicenseUsageAsync(string, Timestamp, Timestamp, CancellationToken)

public virtual Task<QueryConfigurationLicenseUsageResponse> QueryConfigurationLicenseUsageAsync(string name, Timestamp startTime, Timestamp endTime, CancellationToken cancellationToken)

License Usage information for a Configuration.

Parameters
Name Description
name string

Required. The resource path of the Configuration.

startTime Timestamp

Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.

endTime Timestamp

Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskQueryConfigurationLicenseUsageResponse

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
Timestamp startTime = new Timestamp();
Timestamp endTime = new Timestamp();
// Make the request
QueryConfigurationLicenseUsageResponse response = await licenseManagerClient.QueryConfigurationLicenseUsageAsync(name, startTime, endTime);

ReactivateConfiguration(ConfigurationName, CallSettings)

public virtual Operation<Configuration, OperationMetadata> ReactivateConfiguration(ConfigurationName name, CallSettings callSettings = null)

Reactivates the given configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.ReactivateConfiguration(name);

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

ReactivateConfiguration(ReactivateConfigurationRequest, CallSettings)

public virtual Operation<Configuration, OperationMetadata> ReactivateConfiguration(ReactivateConfigurationRequest request, CallSettings callSettings = null)

Reactivates the given configuration.

Parameters
Name Description
request ReactivateConfigurationRequest

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
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
ReactivateConfigurationRequest request = new ReactivateConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.ReactivateConfiguration(request);

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

ReactivateConfiguration(string, CallSettings)

public virtual Operation<Configuration, OperationMetadata> ReactivateConfiguration(string name, CallSettings callSettings = null)

Reactivates the given configuration.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.ReactivateConfiguration(name);

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

ReactivateConfigurationAsync(ConfigurationName, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> ReactivateConfigurationAsync(ConfigurationName name, CallSettings callSettings = null)

Reactivates the given configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.ReactivateConfigurationAsync(name);

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

ReactivateConfigurationAsync(ConfigurationName, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> ReactivateConfigurationAsync(ConfigurationName name, CancellationToken cancellationToken)

Reactivates the given configuration.

Parameters
Name Description
name ConfigurationName

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ConfigurationName name = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.ReactivateConfigurationAsync(name);

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

ReactivateConfigurationAsync(ReactivateConfigurationRequest, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> ReactivateConfigurationAsync(ReactivateConfigurationRequest request, CallSettings callSettings = null)

Reactivates the given configuration.

Parameters
Name Description
request ReactivateConfigurationRequest

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
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ReactivateConfigurationRequest request = new ReactivateConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.ReactivateConfigurationAsync(request);

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

ReactivateConfigurationAsync(ReactivateConfigurationRequest, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> ReactivateConfigurationAsync(ReactivateConfigurationRequest request, CancellationToken cancellationToken)

Reactivates the given configuration.

Parameters
Name Description
request ReactivateConfigurationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
ReactivateConfigurationRequest request = new ReactivateConfigurationRequest
{
    ConfigurationName = ConfigurationName.FromProjectLocationConfiguration("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.ReactivateConfigurationAsync(request);

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

ReactivateConfigurationAsync(string, CallSettings)

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

Reactivates the given configuration.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.ReactivateConfigurationAsync(name);

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

ReactivateConfigurationAsync(string, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> ReactivateConfigurationAsync(string name, CancellationToken cancellationToken)

Reactivates the given configuration.

Parameters
Name Description
name string

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/configurations/[CONFIGURATION]";
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.ReactivateConfigurationAsync(name);

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

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.

UpdateConfiguration(Configuration, FieldMask, CallSettings)

public virtual Operation<Configuration, OperationMetadata> UpdateConfiguration(Configuration configuration, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Configuration.

Parameters
Name Description
configuration Configuration

Required. The resource being updated

updateMask FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the Configuration resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
Configuration configuration = new Configuration();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.UpdateConfiguration(configuration, updateMask);

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

UpdateConfiguration(UpdateConfigurationRequest, CallSettings)

public virtual Operation<Configuration, OperationMetadata> UpdateConfiguration(UpdateConfigurationRequest request, CallSettings callSettings = null)

Updates the parameters of a single Configuration.

Parameters
Name Description
request UpdateConfigurationRequest

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
OperationConfigurationOperationMetadata

The RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = LicenseManagerClient.Create();
// Initialize request argument(s)
UpdateConfigurationRequest request = new UpdateConfigurationRequest
{
    UpdateMask = new FieldMask(),
    Configuration = new Configuration(),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = licenseManagerClient.UpdateConfiguration(request);

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

UpdateConfigurationAsync(Configuration, FieldMask, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> UpdateConfigurationAsync(Configuration configuration, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Configuration.

Parameters
Name Description
configuration Configuration

Required. The resource being updated

updateMask FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the Configuration resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
Configuration configuration = new Configuration();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.UpdateConfigurationAsync(configuration, updateMask);

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

UpdateConfigurationAsync(Configuration, FieldMask, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> UpdateConfigurationAsync(Configuration configuration, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Configuration.

Parameters
Name Description
configuration Configuration

Required. The resource being updated

updateMask FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the Configuration resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
Configuration configuration = new Configuration();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.UpdateConfigurationAsync(configuration, updateMask);

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

UpdateConfigurationAsync(UpdateConfigurationRequest, CallSettings)

public virtual Task<Operation<Configuration, OperationMetadata>> UpdateConfigurationAsync(UpdateConfigurationRequest request, CallSettings callSettings = null)

Updates the parameters of a single Configuration.

Parameters
Name Description
request UpdateConfigurationRequest

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
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateConfigurationRequest request = new UpdateConfigurationRequest
{
    UpdateMask = new FieldMask(),
    Configuration = new Configuration(),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.UpdateConfigurationAsync(request);

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

UpdateConfigurationAsync(UpdateConfigurationRequest, CancellationToken)

public virtual Task<Operation<Configuration, OperationMetadata>> UpdateConfigurationAsync(UpdateConfigurationRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Configuration.

Parameters
Name Description
request UpdateConfigurationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConfigurationOperationMetadata

A Task containing the RPC response.

Example
// Create client
LicenseManagerClient licenseManagerClient = await LicenseManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateConfigurationRequest request = new UpdateConfigurationRequest
{
    UpdateMask = new FieldMask(),
    Configuration = new Configuration(),
    RequestId = "",
};
// Make the request
Operation<Configuration, OperationMetadata> response = await licenseManagerClient.UpdateConfigurationAsync(request);

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