public abstract class LicenseConfigServiceClientReference documentation and code samples for the Discovery Engine v1beta API class LicenseConfigServiceClient.
LicenseConfigService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Remarks
Service for managing license config related resources.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the LicenseConfigService service, which is a host of "discoveryengine.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default LicenseConfigService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default LicenseConfigService scopes are:
GrpcClient
public virtual LicenseConfigService.LicenseConfigServiceClient GrpcClient { get; }The underlying gRPC LicenseConfigService client
| Property Value | |
|---|---|
| Type | Description |
LicenseConfigServiceLicenseConfigServiceClient |
|
LocationsClient
public virtual LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
Methods
Create()
public static LicenseConfigServiceClient Create()Synchronously creates a LicenseConfigServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LicenseConfigServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
LicenseConfigServiceClient |
The created LicenseConfigServiceClient. |
CreateAsync(CancellationToken)
public static Task<LicenseConfigServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a LicenseConfigServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LicenseConfigServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfigServiceClient |
The task representing the created LicenseConfigServiceClient. |
CreateLicenseConfig(CreateLicenseConfigRequest, CallSettings)
public virtual LicenseConfig CreateLicenseConfig(CreateLicenseConfigRequest request, CallSettings callSettings = null)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
CreateLicenseConfigRequest request = new CreateLicenseConfigRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LicenseConfig = new LicenseConfig(),
LicenseConfigId = "",
};
// Make the request
LicenseConfig response = licenseConfigServiceClient.CreateLicenseConfig(request);
CreateLicenseConfig(LocationName, LicenseConfig, string, CallSettings)
public virtual LicenseConfig CreateLicenseConfig(LocationName parent, LicenseConfig licenseConfig, string licenseConfigId, CallSettings callSettings = null)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource name, such as
|
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. |
licenseConfigId |
stringOptional. The ID to use for the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
will become the final component of the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
resource name. We are using the tier (product edition) name as the license
config id such as |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LicenseConfig licenseConfig = new LicenseConfig();
string licenseConfigId = "";
// Make the request
LicenseConfig response = licenseConfigServiceClient.CreateLicenseConfig(parent, licenseConfig, licenseConfigId);
CreateLicenseConfig(string, LicenseConfig, string, CallSettings)
public virtual LicenseConfig CreateLicenseConfig(string parent, LicenseConfig licenseConfig, string licenseConfigId, CallSettings callSettings = null)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource name, such as
|
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. |
licenseConfigId |
stringOptional. The ID to use for the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
will become the final component of the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
resource name. We are using the tier (product edition) name as the license
config id such as |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LicenseConfig licenseConfig = new LicenseConfig();
string licenseConfigId = "";
// Make the request
LicenseConfig response = licenseConfigServiceClient.CreateLicenseConfig(parent, licenseConfig, licenseConfigId);
CreateLicenseConfigAsync(CreateLicenseConfigRequest, CallSettings)
public virtual Task<LicenseConfig> CreateLicenseConfigAsync(CreateLicenseConfigRequest request, CallSettings callSettings = null)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLicenseConfigRequest request = new CreateLicenseConfigRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LicenseConfig = new LicenseConfig(),
LicenseConfigId = "",
};
// Make the request
LicenseConfig response = await licenseConfigServiceClient.CreateLicenseConfigAsync(request);
CreateLicenseConfigAsync(CreateLicenseConfigRequest, CancellationToken)
public virtual Task<LicenseConfig> CreateLicenseConfigAsync(CreateLicenseConfigRequest request, CancellationToken cancellationToken)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLicenseConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLicenseConfigRequest request = new CreateLicenseConfigRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LicenseConfig = new LicenseConfig(),
LicenseConfigId = "",
};
// Make the request
LicenseConfig response = await licenseConfigServiceClient.CreateLicenseConfigAsync(request);
CreateLicenseConfigAsync(LocationName, LicenseConfig, string, CallSettings)
public virtual Task<LicenseConfig> CreateLicenseConfigAsync(LocationName parent, LicenseConfig licenseConfig, string licenseConfigId, CallSettings callSettings = null)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource name, such as
|
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. |
licenseConfigId |
stringOptional. The ID to use for the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
will become the final component of the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
resource name. We are using the tier (product edition) name as the license
config id such as |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LicenseConfig licenseConfig = new LicenseConfig();
string licenseConfigId = "";
// Make the request
LicenseConfig response = await licenseConfigServiceClient.CreateLicenseConfigAsync(parent, licenseConfig, licenseConfigId);
CreateLicenseConfigAsync(LocationName, LicenseConfig, string, CancellationToken)
public virtual Task<LicenseConfig> CreateLicenseConfigAsync(LocationName parent, LicenseConfig licenseConfig, string licenseConfigId, CancellationToken cancellationToken)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource name, such as
|
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. |
licenseConfigId |
stringOptional. The ID to use for the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
will become the final component of the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
resource name. We are using the tier (product edition) name as the license
config id such as |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LicenseConfig licenseConfig = new LicenseConfig();
string licenseConfigId = "";
// Make the request
LicenseConfig response = await licenseConfigServiceClient.CreateLicenseConfigAsync(parent, licenseConfig, licenseConfigId);
CreateLicenseConfigAsync(string, LicenseConfig, string, CallSettings)
public virtual Task<LicenseConfig> CreateLicenseConfigAsync(string parent, LicenseConfig licenseConfig, string licenseConfigId, CallSettings callSettings = null)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource name, such as
|
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. |
licenseConfigId |
stringOptional. The ID to use for the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
will become the final component of the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
resource name. We are using the tier (product edition) name as the license
config id such as |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LicenseConfig licenseConfig = new LicenseConfig();
string licenseConfigId = "";
// Make the request
LicenseConfig response = await licenseConfigServiceClient.CreateLicenseConfigAsync(parent, licenseConfig, licenseConfigId);
CreateLicenseConfigAsync(string, LicenseConfig, string, CancellationToken)
public virtual Task<LicenseConfig> CreateLicenseConfigAsync(string parent, LicenseConfig licenseConfig, string licenseConfigId, CancellationToken cancellationToken)Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource name, such as
|
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. |
licenseConfigId |
stringOptional. The ID to use for the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
will become the final component of the
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
resource name. We are using the tier (product edition) name as the license
config id such as |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LicenseConfig licenseConfig = new LicenseConfig();
string licenseConfigId = "";
// Make the request
LicenseConfig response = await licenseConfigServiceClient.CreateLicenseConfigAsync(parent, licenseConfig, licenseConfigId);
DistributeLicenseConfig(BillingAccountLicenseConfigName, long, string, long, string, CallSettings)
public virtual DistributeLicenseConfigResponse DistributeLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, string location, long licenseCount, string licenseConfigId, CallSettings callSettings = null)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
BillingAccountLicenseConfigNameRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
projectNumber |
longRequired. The target GCP project number to distribute the license config to. |
location |
stringRequired. The target GCP project region to distribute the license config to. |
licenseCount |
longRequired. The number of licenses to distribute. |
licenseConfigId |
stringOptional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DistributeLicenseConfigResponse |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
BillingAccountLicenseConfigName billingAccountLicenseConfig = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
long projectNumber = 0L;
string location = "";
long licenseCount = 0L;
string licenseConfigId = "";
// Make the request
DistributeLicenseConfigResponse response = licenseConfigServiceClient.DistributeLicenseConfig(billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
DistributeLicenseConfig(DistributeLicenseConfigRequest, CallSettings)
public virtual DistributeLicenseConfigResponse DistributeLicenseConfig(DistributeLicenseConfigRequest request, CallSettings callSettings = null)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
request |
DistributeLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DistributeLicenseConfigResponse |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
DistributeLicenseConfigRequest request = new DistributeLicenseConfigRequest
{
BillingAccountLicenseConfigAsBillingAccountLicenseConfigName = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"),
ProjectNumber = 0L,
Location = "",
LicenseCount = 0L,
LicenseConfigId = "",
};
// Make the request
DistributeLicenseConfigResponse response = licenseConfigServiceClient.DistributeLicenseConfig(request);
DistributeLicenseConfig(string, long, string, long, string, CallSettings)
public virtual DistributeLicenseConfigResponse DistributeLicenseConfig(string billingAccountLicenseConfig, long projectNumber, string location, long licenseCount, string licenseConfigId, CallSettings callSettings = null)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
stringRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
projectNumber |
longRequired. The target GCP project number to distribute the license config to. |
location |
stringRequired. The target GCP project region to distribute the license config to. |
licenseCount |
longRequired. The number of licenses to distribute. |
licenseConfigId |
stringOptional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DistributeLicenseConfigResponse |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
string billingAccountLicenseConfig = "billingAccounts/[BILLING_ACCOUNT]/billingAccountLicenseConfigs/[BILLING_ACCOUNT_LICENSE_CONFIG]";
long projectNumber = 0L;
string location = "";
long licenseCount = 0L;
string licenseConfigId = "";
// Make the request
DistributeLicenseConfigResponse response = licenseConfigServiceClient.DistributeLicenseConfig(billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
DistributeLicenseConfigAsync(BillingAccountLicenseConfigName, long, string, long, string, CallSettings)
public virtual Task<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, string location, long licenseCount, string licenseConfigId, CallSettings callSettings = null)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
BillingAccountLicenseConfigNameRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
projectNumber |
longRequired. The target GCP project number to distribute the license config to. |
location |
stringRequired. The target GCP project region to distribute the license config to. |
licenseCount |
longRequired. The number of licenses to distribute. |
licenseConfigId |
stringOptional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDistributeLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BillingAccountLicenseConfigName billingAccountLicenseConfig = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
long projectNumber = 0L;
string location = "";
long licenseCount = 0L;
string licenseConfigId = "";
// Make the request
DistributeLicenseConfigResponse response = await licenseConfigServiceClient.DistributeLicenseConfigAsync(billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
DistributeLicenseConfigAsync(BillingAccountLicenseConfigName, long, string, long, string, CancellationToken)
public virtual Task<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, string location, long licenseCount, string licenseConfigId, CancellationToken cancellationToken)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
BillingAccountLicenseConfigNameRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
projectNumber |
longRequired. The target GCP project number to distribute the license config to. |
location |
stringRequired. The target GCP project region to distribute the license config to. |
licenseCount |
longRequired. The number of licenses to distribute. |
licenseConfigId |
stringOptional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDistributeLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BillingAccountLicenseConfigName billingAccountLicenseConfig = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
long projectNumber = 0L;
string location = "";
long licenseCount = 0L;
string licenseConfigId = "";
// Make the request
DistributeLicenseConfigResponse response = await licenseConfigServiceClient.DistributeLicenseConfigAsync(billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
DistributeLicenseConfigAsync(DistributeLicenseConfigRequest, CallSettings)
public virtual Task<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(DistributeLicenseConfigRequest request, CallSettings callSettings = null)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
request |
DistributeLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDistributeLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
DistributeLicenseConfigRequest request = new DistributeLicenseConfigRequest
{
BillingAccountLicenseConfigAsBillingAccountLicenseConfigName = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"),
ProjectNumber = 0L,
Location = "",
LicenseCount = 0L,
LicenseConfigId = "",
};
// Make the request
DistributeLicenseConfigResponse response = await licenseConfigServiceClient.DistributeLicenseConfigAsync(request);
DistributeLicenseConfigAsync(DistributeLicenseConfigRequest, CancellationToken)
public virtual Task<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(DistributeLicenseConfigRequest request, CancellationToken cancellationToken)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
request |
DistributeLicenseConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDistributeLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
DistributeLicenseConfigRequest request = new DistributeLicenseConfigRequest
{
BillingAccountLicenseConfigAsBillingAccountLicenseConfigName = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"),
ProjectNumber = 0L,
Location = "",
LicenseCount = 0L,
LicenseConfigId = "",
};
// Make the request
DistributeLicenseConfigResponse response = await licenseConfigServiceClient.DistributeLicenseConfigAsync(request);
DistributeLicenseConfigAsync(string, long, string, long, string, CallSettings)
public virtual Task<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(string billingAccountLicenseConfig, long projectNumber, string location, long licenseCount, string licenseConfigId, CallSettings callSettings = null)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
stringRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
projectNumber |
longRequired. The target GCP project number to distribute the license config to. |
location |
stringRequired. The target GCP project region to distribute the license config to. |
licenseCount |
longRequired. The number of licenses to distribute. |
licenseConfigId |
stringOptional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDistributeLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string billingAccountLicenseConfig = "billingAccounts/[BILLING_ACCOUNT]/billingAccountLicenseConfigs/[BILLING_ACCOUNT_LICENSE_CONFIG]";
long projectNumber = 0L;
string location = "";
long licenseCount = 0L;
string licenseConfigId = "";
// Make the request
DistributeLicenseConfigResponse response = await licenseConfigServiceClient.DistributeLicenseConfigAsync(billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
DistributeLicenseConfigAsync(string, long, string, long, string, CancellationToken)
public virtual Task<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(string billingAccountLicenseConfig, long projectNumber, string location, long licenseCount, string licenseConfigId, CancellationToken cancellationToken)Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
stringRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
projectNumber |
longRequired. The target GCP project number to distribute the license config to. |
location |
stringRequired. The target GCP project region to distribute the license config to. |
licenseCount |
longRequired. The number of licenses to distribute. |
licenseConfigId |
stringOptional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDistributeLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string billingAccountLicenseConfig = "billingAccounts/[BILLING_ACCOUNT]/billingAccountLicenseConfigs/[BILLING_ACCOUNT_LICENSE_CONFIG]";
long projectNumber = 0L;
string location = "";
long licenseCount = 0L;
string licenseConfigId = "";
// Make the request
DistributeLicenseConfigResponse response = await licenseConfigServiceClient.DistributeLicenseConfigAsync(billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
GetLicenseConfig(GetLicenseConfigRequest, CallSettings)
public virtual LicenseConfig GetLicenseConfig(GetLicenseConfigRequest request, CallSettings callSettings = null)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
GetLicenseConfigRequest request = new GetLicenseConfigRequest
{
LicenseConfigName = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"),
};
// Make the request
LicenseConfig response = licenseConfigServiceClient.GetLicenseConfig(request);
GetLicenseConfig(LicenseConfigName, CallSettings)
public virtual LicenseConfig GetLicenseConfig(LicenseConfigName name, CallSettings callSettings = null)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
name |
LicenseConfigNameRequired. Full resource name of
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
If the caller does not have permission to access the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not exist, a NOT_FOUND error is returned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
LicenseConfigName name = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
// Make the request
LicenseConfig response = licenseConfigServiceClient.GetLicenseConfig(name);
GetLicenseConfig(string, CallSettings)
public virtual LicenseConfig GetLicenseConfig(string name, CallSettings callSettings = null)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full resource name of
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
If the caller does not have permission to access the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not exist, a NOT_FOUND error is returned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/licenseConfigs/[LICENSE_CONFIG]";
// Make the request
LicenseConfig response = licenseConfigServiceClient.GetLicenseConfig(name);
GetLicenseConfigAsync(GetLicenseConfigRequest, CallSettings)
public virtual Task<LicenseConfig> GetLicenseConfigAsync(GetLicenseConfigRequest request, CallSettings callSettings = null)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
GetLicenseConfigRequest request = new GetLicenseConfigRequest
{
LicenseConfigName = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"),
};
// Make the request
LicenseConfig response = await licenseConfigServiceClient.GetLicenseConfigAsync(request);
GetLicenseConfigAsync(GetLicenseConfigRequest, CancellationToken)
public virtual Task<LicenseConfig> GetLicenseConfigAsync(GetLicenseConfigRequest request, CancellationToken cancellationToken)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetLicenseConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
GetLicenseConfigRequest request = new GetLicenseConfigRequest
{
LicenseConfigName = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"),
};
// Make the request
LicenseConfig response = await licenseConfigServiceClient.GetLicenseConfigAsync(request);
GetLicenseConfigAsync(LicenseConfigName, CallSettings)
public virtual Task<LicenseConfig> GetLicenseConfigAsync(LicenseConfigName name, CallSettings callSettings = null)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
name |
LicenseConfigNameRequired. Full resource name of
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
If the caller does not have permission to access the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not exist, a NOT_FOUND error is returned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LicenseConfigName name = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
// Make the request
LicenseConfig response = await licenseConfigServiceClient.GetLicenseConfigAsync(name);
GetLicenseConfigAsync(LicenseConfigName, CancellationToken)
public virtual Task<LicenseConfig> GetLicenseConfigAsync(LicenseConfigName name, CancellationToken cancellationToken)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
name |
LicenseConfigNameRequired. Full resource name of
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
If the caller does not have permission to access the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not exist, a NOT_FOUND error is returned. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LicenseConfigName name = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
// Make the request
LicenseConfig response = await licenseConfigServiceClient.GetLicenseConfigAsync(name);
GetLicenseConfigAsync(string, CallSettings)
public virtual Task<LicenseConfig> GetLicenseConfigAsync(string name, CallSettings callSettings = null)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full resource name of
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
If the caller does not have permission to access the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not exist, a NOT_FOUND error is returned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/licenseConfigs/[LICENSE_CONFIG]";
// Make the request
LicenseConfig response = await licenseConfigServiceClient.GetLicenseConfigAsync(name);
GetLicenseConfigAsync(string, CancellationToken)
public virtual Task<LicenseConfig> GetLicenseConfigAsync(string name, CancellationToken cancellationToken)Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full resource name of
[LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
If the caller does not have permission to access the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not exist, a NOT_FOUND error is returned. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/licenseConfigs/[LICENSE_CONFIG]";
// Make the request
LicenseConfig response = await licenseConfigServiceClient.GetLicenseConfigAsync(name);
ListLicenseConfigs(ListLicenseConfigsRequest, CallSettings)
public virtual PagedEnumerable<ListLicenseConfigsResponse, LicenseConfig> ListLicenseConfigs(ListLicenseConfigsRequest request, CallSettings callSettings = null)Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLicenseConfigsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLicenseConfigsResponseLicenseConfig |
A pageable sequence of LicenseConfig resources. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
ListLicenseConfigsRequest request = new ListLicenseConfigsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListLicenseConfigsResponse, LicenseConfig> response = licenseConfigServiceClient.ListLicenseConfigs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (LicenseConfig 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 (ListLicenseConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LicenseConfig 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<LicenseConfig> 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 (LicenseConfig 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;
ListLicenseConfigs(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListLicenseConfigsResponse, LicenseConfig> ListLicenseConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent branch resource name, such as
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLicenseConfigsResponseLicenseConfig |
A pageable sequence of LicenseConfig resources. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListLicenseConfigsResponse, LicenseConfig> response = licenseConfigServiceClient.ListLicenseConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (LicenseConfig 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 (ListLicenseConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LicenseConfig 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<LicenseConfig> 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 (LicenseConfig 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;
ListLicenseConfigs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListLicenseConfigsResponse, LicenseConfig> ListLicenseConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent branch resource name, such as
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLicenseConfigsResponseLicenseConfig |
A pageable sequence of LicenseConfig resources. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListLicenseConfigsResponse, LicenseConfig> response = licenseConfigServiceClient.ListLicenseConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (LicenseConfig 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 (ListLicenseConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LicenseConfig 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<LicenseConfig> 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 (LicenseConfig 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;
ListLicenseConfigsAsync(ListLicenseConfigsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListLicenseConfigsResponse, LicenseConfig> ListLicenseConfigsAsync(ListLicenseConfigsRequest request, CallSettings callSettings = null)Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLicenseConfigsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLicenseConfigsResponseLicenseConfig |
A pageable asynchronous sequence of LicenseConfig resources. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
ListLicenseConfigsRequest request = new ListLicenseConfigsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListLicenseConfigsResponse, LicenseConfig> response = licenseConfigServiceClient.ListLicenseConfigsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (LicenseConfig 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 (ListLicenseConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LicenseConfig 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<LicenseConfig> 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 (LicenseConfig 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;
ListLicenseConfigsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListLicenseConfigsResponse, LicenseConfig> ListLicenseConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent branch resource name, such as
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLicenseConfigsResponseLicenseConfig |
A pageable asynchronous sequence of LicenseConfig resources. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListLicenseConfigsResponse, LicenseConfig> response = licenseConfigServiceClient.ListLicenseConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (LicenseConfig 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 (ListLicenseConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LicenseConfig 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<LicenseConfig> 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 (LicenseConfig 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;
ListLicenseConfigsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListLicenseConfigsResponse, LicenseConfig> ListLicenseConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent branch resource name, such as
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLicenseConfigsResponseLicenseConfig |
A pageable asynchronous sequence of LicenseConfig resources. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListLicenseConfigsResponse, LicenseConfig> response = licenseConfigServiceClient.ListLicenseConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (LicenseConfig 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 (ListLicenseConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LicenseConfig 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<LicenseConfig> 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 (LicenseConfig 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;
RetractLicenseConfig(BillingAccountLicenseConfigName, LicenseConfigName, bool, long, CallSettings)
public virtual RetractLicenseConfigResponse RetractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, LicenseConfigName licenseConfig, bool fullRetract, long licenseCount, CallSettings callSettings = null)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
BillingAccountLicenseConfigNameRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
licenseConfig |
LicenseConfigNameRequired. Full resource name of [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Format:
|
fullRetract |
boolOptional. If set to true, retract the entire license config. Otherwise, retract the specified license count. |
licenseCount |
longOptional. The number of licenses to retract. Only used when full_retract is false. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RetractLicenseConfigResponse |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
BillingAccountLicenseConfigName billingAccountLicenseConfig = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
LicenseConfigName licenseConfig = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
bool fullRetract = false;
long licenseCount = 0L;
// Make the request
RetractLicenseConfigResponse response = licenseConfigServiceClient.RetractLicenseConfig(billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
RetractLicenseConfig(RetractLicenseConfigRequest, CallSettings)
public virtual RetractLicenseConfigResponse RetractLicenseConfig(RetractLicenseConfigRequest request, CallSettings callSettings = null)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
request |
RetractLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RetractLicenseConfigResponse |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
RetractLicenseConfigRequest request = new RetractLicenseConfigRequest
{
BillingAccountLicenseConfigAsBillingAccountLicenseConfigName = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"),
LicenseConfigAsLicenseConfigName = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"),
FullRetract = false,
LicenseCount = 0L,
};
// Make the request
RetractLicenseConfigResponse response = licenseConfigServiceClient.RetractLicenseConfig(request);
RetractLicenseConfig(string, string, bool, long, CallSettings)
public virtual RetractLicenseConfigResponse RetractLicenseConfig(string billingAccountLicenseConfig, string licenseConfig, bool fullRetract, long licenseCount, CallSettings callSettings = null)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
stringRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
licenseConfig |
stringRequired. Full resource name of [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Format:
|
fullRetract |
boolOptional. If set to true, retract the entire license config. Otherwise, retract the specified license count. |
licenseCount |
longOptional. The number of licenses to retract. Only used when full_retract is false. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RetractLicenseConfigResponse |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
string billingAccountLicenseConfig = "billingAccounts/[BILLING_ACCOUNT]/billingAccountLicenseConfigs/[BILLING_ACCOUNT_LICENSE_CONFIG]";
string licenseConfig = "projects/[PROJECT]/locations/[LOCATION]/licenseConfigs/[LICENSE_CONFIG]";
bool fullRetract = false;
long licenseCount = 0L;
// Make the request
RetractLicenseConfigResponse response = licenseConfigServiceClient.RetractLicenseConfig(billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
RetractLicenseConfigAsync(BillingAccountLicenseConfigName, LicenseConfigName, bool, long, CallSettings)
public virtual Task<RetractLicenseConfigResponse> RetractLicenseConfigAsync(BillingAccountLicenseConfigName billingAccountLicenseConfig, LicenseConfigName licenseConfig, bool fullRetract, long licenseCount, CallSettings callSettings = null)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
BillingAccountLicenseConfigNameRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
licenseConfig |
LicenseConfigNameRequired. Full resource name of [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Format:
|
fullRetract |
boolOptional. If set to true, retract the entire license config. Otherwise, retract the specified license count. |
licenseCount |
longOptional. The number of licenses to retract. Only used when full_retract is false. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRetractLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BillingAccountLicenseConfigName billingAccountLicenseConfig = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
LicenseConfigName licenseConfig = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
bool fullRetract = false;
long licenseCount = 0L;
// Make the request
RetractLicenseConfigResponse response = await licenseConfigServiceClient.RetractLicenseConfigAsync(billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
RetractLicenseConfigAsync(BillingAccountLicenseConfigName, LicenseConfigName, bool, long, CancellationToken)
public virtual Task<RetractLicenseConfigResponse> RetractLicenseConfigAsync(BillingAccountLicenseConfigName billingAccountLicenseConfig, LicenseConfigName licenseConfig, bool fullRetract, long licenseCount, CancellationToken cancellationToken)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
BillingAccountLicenseConfigNameRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
licenseConfig |
LicenseConfigNameRequired. Full resource name of [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Format:
|
fullRetract |
boolOptional. If set to true, retract the entire license config. Otherwise, retract the specified license count. |
licenseCount |
longOptional. The number of licenses to retract. Only used when full_retract is false. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRetractLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BillingAccountLicenseConfigName billingAccountLicenseConfig = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
LicenseConfigName licenseConfig = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
bool fullRetract = false;
long licenseCount = 0L;
// Make the request
RetractLicenseConfigResponse response = await licenseConfigServiceClient.RetractLicenseConfigAsync(billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
RetractLicenseConfigAsync(RetractLicenseConfigRequest, CallSettings)
public virtual Task<RetractLicenseConfigResponse> RetractLicenseConfigAsync(RetractLicenseConfigRequest request, CallSettings callSettings = null)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
request |
RetractLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRetractLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
RetractLicenseConfigRequest request = new RetractLicenseConfigRequest
{
BillingAccountLicenseConfigAsBillingAccountLicenseConfigName = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"),
LicenseConfigAsLicenseConfigName = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"),
FullRetract = false,
LicenseCount = 0L,
};
// Make the request
RetractLicenseConfigResponse response = await licenseConfigServiceClient.RetractLicenseConfigAsync(request);
RetractLicenseConfigAsync(RetractLicenseConfigRequest, CancellationToken)
public virtual Task<RetractLicenseConfigResponse> RetractLicenseConfigAsync(RetractLicenseConfigRequest request, CancellationToken cancellationToken)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
request |
RetractLicenseConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRetractLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
RetractLicenseConfigRequest request = new RetractLicenseConfigRequest
{
BillingAccountLicenseConfigAsBillingAccountLicenseConfigName = BillingAccountLicenseConfigName.FromBillingAccountBillingAccountLicenseConfig("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"),
LicenseConfigAsLicenseConfigName = LicenseConfigName.FromProjectLocationLicenseConfig("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"),
FullRetract = false,
LicenseCount = 0L,
};
// Make the request
RetractLicenseConfigResponse response = await licenseConfigServiceClient.RetractLicenseConfigAsync(request);
RetractLicenseConfigAsync(string, string, bool, long, CallSettings)
public virtual Task<RetractLicenseConfigResponse> RetractLicenseConfigAsync(string billingAccountLicenseConfig, string licenseConfig, bool fullRetract, long licenseCount, CallSettings callSettings = null)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
stringRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
licenseConfig |
stringRequired. Full resource name of [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Format:
|
fullRetract |
boolOptional. If set to true, retract the entire license config. Otherwise, retract the specified license count. |
licenseCount |
longOptional. The number of licenses to retract. Only used when full_retract is false. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRetractLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string billingAccountLicenseConfig = "billingAccounts/[BILLING_ACCOUNT]/billingAccountLicenseConfigs/[BILLING_ACCOUNT_LICENSE_CONFIG]";
string licenseConfig = "projects/[PROJECT]/locations/[LOCATION]/licenseConfigs/[LICENSE_CONFIG]";
bool fullRetract = false;
long licenseCount = 0L;
// Make the request
RetractLicenseConfigResponse response = await licenseConfigServiceClient.RetractLicenseConfigAsync(billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
RetractLicenseConfigAsync(string, string, bool, long, CancellationToken)
public virtual Task<RetractLicenseConfigResponse> RetractLicenseConfigAsync(string billingAccountLicenseConfig, string licenseConfig, bool fullRetract, long licenseCount, CancellationToken cancellationToken)This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.
| Parameters | |
|---|---|
| Name | Description |
billingAccountLicenseConfig |
stringRequired. Full resource name of [BillingAccountLicenseConfig][]. Format:
|
licenseConfig |
stringRequired. Full resource name of [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Format:
|
fullRetract |
boolOptional. If set to true, retract the entire license config. Otherwise, retract the specified license count. |
licenseCount |
longOptional. The number of licenses to retract. Only used when full_retract is false. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRetractLicenseConfigResponse |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string billingAccountLicenseConfig = "billingAccounts/[BILLING_ACCOUNT]/billingAccountLicenseConfigs/[BILLING_ACCOUNT_LICENSE_CONFIG]";
string licenseConfig = "projects/[PROJECT]/locations/[LOCATION]/licenseConfigs/[LICENSE_CONFIG]";
bool fullRetract = false;
long licenseCount = 0L;
// Make the request
RetractLicenseConfigResponse response = await licenseConfigServiceClient.RetractLicenseConfigAsync(billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateLicenseConfig(LicenseConfig, FieldMask, CallSettings)
public virtual LicenseConfig UpdateLicenseConfig(LicenseConfig licenseConfig, FieldMask updateMask, CallSettings callSettings = null)Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
| Parameters | |
|---|---|
| Name | Description |
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. |
updateMask |
FieldMaskOptional. Indicates which fields in the provided [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
LicenseConfig licenseConfig = new LicenseConfig();
FieldMask updateMask = new FieldMask();
// Make the request
LicenseConfig response = licenseConfigServiceClient.UpdateLicenseConfig(licenseConfig, updateMask);
UpdateLicenseConfig(UpdateLicenseConfigRequest, CallSettings)
public virtual LicenseConfig UpdateLicenseConfig(UpdateLicenseConfigRequest request, CallSettings callSettings = null)Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
The RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = LicenseConfigServiceClient.Create();
// Initialize request argument(s)
UpdateLicenseConfigRequest request = new UpdateLicenseConfigRequest
{
LicenseConfig = new LicenseConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
LicenseConfig response = licenseConfigServiceClient.UpdateLicenseConfig(request);
UpdateLicenseConfigAsync(LicenseConfig, FieldMask, CallSettings)
public virtual Task<LicenseConfig> UpdateLicenseConfigAsync(LicenseConfig licenseConfig, FieldMask updateMask, CallSettings callSettings = null)Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
| Parameters | |
|---|---|
| Name | Description |
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. |
updateMask |
FieldMaskOptional. Indicates which fields in the provided [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LicenseConfig licenseConfig = new LicenseConfig();
FieldMask updateMask = new FieldMask();
// Make the request
LicenseConfig response = await licenseConfigServiceClient.UpdateLicenseConfigAsync(licenseConfig, updateMask);
UpdateLicenseConfigAsync(LicenseConfig, FieldMask, CancellationToken)
public virtual Task<LicenseConfig> UpdateLicenseConfigAsync(LicenseConfig licenseConfig, FieldMask updateMask, CancellationToken cancellationToken)Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
| Parameters | |
|---|---|
| Name | Description |
licenseConfig |
LicenseConfigRequired. The [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. |
updateMask |
FieldMaskOptional. Indicates which fields in the provided [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
LicenseConfig licenseConfig = new LicenseConfig();
FieldMask updateMask = new FieldMask();
// Make the request
LicenseConfig response = await licenseConfigServiceClient.UpdateLicenseConfigAsync(licenseConfig, updateMask);
UpdateLicenseConfigAsync(UpdateLicenseConfigRequest, CallSettings)
public virtual Task<LicenseConfig> UpdateLicenseConfigAsync(UpdateLicenseConfigRequest request, CallSettings callSettings = null)Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateLicenseConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLicenseConfigRequest request = new UpdateLicenseConfigRequest
{
LicenseConfig = new LicenseConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
LicenseConfig response = await licenseConfigServiceClient.UpdateLicenseConfigAsync(request);
UpdateLicenseConfigAsync(UpdateLicenseConfigRequest, CancellationToken)
public virtual Task<LicenseConfig> UpdateLicenseConfigAsync(UpdateLicenseConfigRequest request, CancellationToken cancellationToken)Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateLicenseConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLicenseConfig |
A Task containing the RPC response. |
// Create client
LicenseConfigServiceClient licenseConfigServiceClient = await LicenseConfigServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLicenseConfigRequest request = new UpdateLicenseConfigRequest
{
LicenseConfig = new LicenseConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
LicenseConfig response = await licenseConfigServiceClient.UpdateLicenseConfigAsync(request);