public abstract class SecuritySettingsServiceClient
Reference documentation and code samples for the Dialogflow v3 API class SecuritySettingsServiceClient.
SecuritySettingsService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Remarks
Service for managing security settings for Dialogflow.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the SecuritySettingsService service, which is a host of "dialogflow.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default SecuritySettingsService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default SecuritySettingsService scopes are:
GrpcClient
public virtual SecuritySettingsService.SecuritySettingsServiceClient GrpcClient { get; }
The underlying gRPC SecuritySettingsService client
Property Value | |
---|---|
Type | Description |
SecuritySettingsServiceSecuritySettingsServiceClient |
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 SecuritySettingsServiceClient Create()
Synchronously creates a SecuritySettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecuritySettingsServiceClientBuilder.
Returns | |
---|---|
Type | Description |
SecuritySettingsServiceClient | The created SecuritySettingsServiceClient. |
CreateAsync(CancellationToken)
public static Task<SecuritySettingsServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a SecuritySettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecuritySettingsServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettingsServiceClient | The task representing the created SecuritySettingsServiceClient. |
CreateSecuritySettings(LocationName, SecuritySettings, CallSettings)
public virtual SecuritySettings CreateSecuritySettings(LocationName parent, SecuritySettings securitySettings, CallSettings callSettings = null)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The location to create an
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
Format: |
securitySettings | SecuritySettings Required. The security settings to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecuritySettings securitySettings = new SecuritySettings();
// Make the request
SecuritySettings response = securitySettingsServiceClient.CreateSecuritySettings(parent, securitySettings);
CreateSecuritySettings(CreateSecuritySettingsRequest, CallSettings)
public virtual SecuritySettings CreateSecuritySettings(CreateSecuritySettingsRequest request, CallSettings callSettings = null)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
request | CreateSecuritySettingsRequest 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 |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
CreateSecuritySettingsRequest request = new CreateSecuritySettingsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
SecuritySettings = new SecuritySettings(),
};
// Make the request
SecuritySettings response = securitySettingsServiceClient.CreateSecuritySettings(request);
CreateSecuritySettings(string, SecuritySettings, CallSettings)
public virtual SecuritySettings CreateSecuritySettings(string parent, SecuritySettings securitySettings, CallSettings callSettings = null)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The location to create an
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
Format: |
securitySettings | SecuritySettings Required. The security settings to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SecuritySettings securitySettings = new SecuritySettings();
// Make the request
SecuritySettings response = securitySettingsServiceClient.CreateSecuritySettings(parent, securitySettings);
CreateSecuritySettingsAsync(LocationName, SecuritySettings, CallSettings)
public virtual Task<SecuritySettings> CreateSecuritySettingsAsync(LocationName parent, SecuritySettings securitySettings, CallSettings callSettings = null)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The location to create an
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
Format: |
securitySettings | SecuritySettings Required. The security settings to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecuritySettings securitySettings = new SecuritySettings();
// Make the request
SecuritySettings response = await securitySettingsServiceClient.CreateSecuritySettingsAsync(parent, securitySettings);
CreateSecuritySettingsAsync(LocationName, SecuritySettings, CancellationToken)
public virtual Task<SecuritySettings> CreateSecuritySettingsAsync(LocationName parent, SecuritySettings securitySettings, CancellationToken cancellationToken)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The location to create an
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
Format: |
securitySettings | SecuritySettings Required. The security settings to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SecuritySettings securitySettings = new SecuritySettings();
// Make the request
SecuritySettings response = await securitySettingsServiceClient.CreateSecuritySettingsAsync(parent, securitySettings);
CreateSecuritySettingsAsync(CreateSecuritySettingsRequest, CallSettings)
public virtual Task<SecuritySettings> CreateSecuritySettingsAsync(CreateSecuritySettingsRequest request, CallSettings callSettings = null)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
request | CreateSecuritySettingsRequest 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 |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSecuritySettingsRequest request = new CreateSecuritySettingsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
SecuritySettings = new SecuritySettings(),
};
// Make the request
SecuritySettings response = await securitySettingsServiceClient.CreateSecuritySettingsAsync(request);
CreateSecuritySettingsAsync(CreateSecuritySettingsRequest, CancellationToken)
public virtual Task<SecuritySettings> CreateSecuritySettingsAsync(CreateSecuritySettingsRequest request, CancellationToken cancellationToken)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
request | CreateSecuritySettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSecuritySettingsRequest request = new CreateSecuritySettingsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
SecuritySettings = new SecuritySettings(),
};
// Make the request
SecuritySettings response = await securitySettingsServiceClient.CreateSecuritySettingsAsync(request);
CreateSecuritySettingsAsync(string, SecuritySettings, CallSettings)
public virtual Task<SecuritySettings> CreateSecuritySettingsAsync(string parent, SecuritySettings securitySettings, CallSettings callSettings = null)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The location to create an
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
Format: |
securitySettings | SecuritySettings Required. The security settings to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SecuritySettings securitySettings = new SecuritySettings();
// Make the request
SecuritySettings response = await securitySettingsServiceClient.CreateSecuritySettingsAsync(parent, securitySettings);
CreateSecuritySettingsAsync(string, SecuritySettings, CancellationToken)
public virtual Task<SecuritySettings> CreateSecuritySettingsAsync(string parent, SecuritySettings securitySettings, CancellationToken cancellationToken)
Create security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The location to create an
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
Format: |
securitySettings | SecuritySettings Required. The security settings to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SecuritySettings securitySettings = new SecuritySettings();
// Make the request
SecuritySettings response = await securitySettingsServiceClient.CreateSecuritySettingsAsync(parent, securitySettings);
DeleteSecuritySettings(DeleteSecuritySettingsRequest, CallSettings)
public virtual void DeleteSecuritySettings(DeleteSecuritySettingsRequest request, CallSettings callSettings = null)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
request | DeleteSecuritySettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
DeleteSecuritySettingsRequest request = new DeleteSecuritySettingsRequest
{
SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
};
// Make the request
securitySettingsServiceClient.DeleteSecuritySettings(request);
DeleteSecuritySettings(SecuritySettingsName, CallSettings)
public virtual void DeleteSecuritySettings(SecuritySettingsName name, CallSettings callSettings = null)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
name | SecuritySettingsName Required. The name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
delete. Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
SecuritySettingsName name = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]");
// Make the request
securitySettingsServiceClient.DeleteSecuritySettings(name);
DeleteSecuritySettings(string, CallSettings)
public virtual void DeleteSecuritySettings(string name, CallSettings callSettings = null)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
delete. Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/securitySettings/[SECURITY_SETTINGS]";
// Make the request
securitySettingsServiceClient.DeleteSecuritySettings(name);
DeleteSecuritySettingsAsync(DeleteSecuritySettingsRequest, CallSettings)
public virtual Task DeleteSecuritySettingsAsync(DeleteSecuritySettingsRequest request, CallSettings callSettings = null)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
request | DeleteSecuritySettingsRequest 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 |
Task | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSecuritySettingsRequest request = new DeleteSecuritySettingsRequest
{
SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
};
// Make the request
await securitySettingsServiceClient.DeleteSecuritySettingsAsync(request);
DeleteSecuritySettingsAsync(DeleteSecuritySettingsRequest, CancellationToken)
public virtual Task DeleteSecuritySettingsAsync(DeleteSecuritySettingsRequest request, CancellationToken cancellationToken)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
request | DeleteSecuritySettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSecuritySettingsRequest request = new DeleteSecuritySettingsRequest
{
SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
};
// Make the request
await securitySettingsServiceClient.DeleteSecuritySettingsAsync(request);
DeleteSecuritySettingsAsync(SecuritySettingsName, CallSettings)
public virtual Task DeleteSecuritySettingsAsync(SecuritySettingsName name, CallSettings callSettings = null)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
name | SecuritySettingsName Required. The name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
delete. Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SecuritySettingsName name = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]");
// Make the request
await securitySettingsServiceClient.DeleteSecuritySettingsAsync(name);
DeleteSecuritySettingsAsync(SecuritySettingsName, CancellationToken)
public virtual Task DeleteSecuritySettingsAsync(SecuritySettingsName name, CancellationToken cancellationToken)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
name | SecuritySettingsName Required. The name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
delete. Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SecuritySettingsName name = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]");
// Make the request
await securitySettingsServiceClient.DeleteSecuritySettingsAsync(name);
DeleteSecuritySettingsAsync(string, CallSettings)
public virtual Task DeleteSecuritySettingsAsync(string name, CallSettings callSettings = null)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
delete. Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/securitySettings/[SECURITY_SETTINGS]";
// Make the request
await securitySettingsServiceClient.DeleteSecuritySettingsAsync(name);
DeleteSecuritySettingsAsync(string, CancellationToken)
public virtual Task DeleteSecuritySettingsAsync(string name, CancellationToken cancellationToken)
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
delete. Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/securitySettings/[SECURITY_SETTINGS]";
// Make the request
await securitySettingsServiceClient.DeleteSecuritySettingsAsync(name);
GetSecuritySettings(GetSecuritySettingsRequest, CallSettings)
public virtual SecuritySettings GetSecuritySettings(GetSecuritySettingsRequest request, CallSettings callSettings = null)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
request | GetSecuritySettingsRequest 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 |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
GetSecuritySettingsRequest request = new GetSecuritySettingsRequest
{
SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
};
// Make the request
SecuritySettings response = securitySettingsServiceClient.GetSecuritySettings(request);
GetSecuritySettings(SecuritySettingsName, CallSettings)
public virtual SecuritySettings GetSecuritySettings(SecuritySettingsName name, CallSettings callSettings = null)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
name | SecuritySettingsName Required. Resource name of the settings.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
SecuritySettingsName name = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]");
// Make the request
SecuritySettings response = securitySettingsServiceClient.GetSecuritySettings(name);
GetSecuritySettings(string, CallSettings)
public virtual SecuritySettings GetSecuritySettings(string name, CallSettings callSettings = null)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
name | string Required. Resource name of the settings.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/securitySettings/[SECURITY_SETTINGS]";
// Make the request
SecuritySettings response = securitySettingsServiceClient.GetSecuritySettings(name);
GetSecuritySettingsAsync(GetSecuritySettingsRequest, CallSettings)
public virtual Task<SecuritySettings> GetSecuritySettingsAsync(GetSecuritySettingsRequest request, CallSettings callSettings = null)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
request | GetSecuritySettingsRequest 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 |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecuritySettingsRequest request = new GetSecuritySettingsRequest
{
SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
};
// Make the request
SecuritySettings response = await securitySettingsServiceClient.GetSecuritySettingsAsync(request);
GetSecuritySettingsAsync(GetSecuritySettingsRequest, CancellationToken)
public virtual Task<SecuritySettings> GetSecuritySettingsAsync(GetSecuritySettingsRequest request, CancellationToken cancellationToken)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
request | GetSecuritySettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetSecuritySettingsRequest request = new GetSecuritySettingsRequest
{
SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
};
// Make the request
SecuritySettings response = await securitySettingsServiceClient.GetSecuritySettingsAsync(request);
GetSecuritySettingsAsync(SecuritySettingsName, CallSettings)
public virtual Task<SecuritySettings> GetSecuritySettingsAsync(SecuritySettingsName name, CallSettings callSettings = null)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
name | SecuritySettingsName Required. Resource name of the settings.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SecuritySettingsName name = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]");
// Make the request
SecuritySettings response = await securitySettingsServiceClient.GetSecuritySettingsAsync(name);
GetSecuritySettingsAsync(SecuritySettingsName, CancellationToken)
public virtual Task<SecuritySettings> GetSecuritySettingsAsync(SecuritySettingsName name, CancellationToken cancellationToken)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
name | SecuritySettingsName Required. Resource name of the settings.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SecuritySettingsName name = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]");
// Make the request
SecuritySettings response = await securitySettingsServiceClient.GetSecuritySettingsAsync(name);
GetSecuritySettingsAsync(string, CallSettings)
public virtual Task<SecuritySettings> GetSecuritySettingsAsync(string name, CallSettings callSettings = null)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
name | string Required. Resource name of the settings.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/securitySettings/[SECURITY_SETTINGS]";
// Make the request
SecuritySettings response = await securitySettingsServiceClient.GetSecuritySettingsAsync(name);
GetSecuritySettingsAsync(string, CancellationToken)
public virtual Task<SecuritySettings> GetSecuritySettingsAsync(string name, CancellationToken cancellationToken)
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Parameters | |
---|---|
Name | Description |
name | string Required. Resource name of the settings.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/securitySettings/[SECURITY_SETTINGS]";
// Make the request
SecuritySettings response = await securitySettingsServiceClient.GetSecuritySettingsAsync(name);
ListSecuritySettings(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSecuritySettingsResponse, SecuritySettings> ListSecuritySettings(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns the list of all security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The location to list all security settings for.
Format: |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSecuritySettingsResponseSecuritySettings | A pageable sequence of SecuritySettings resources. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSecuritySettingsResponse, SecuritySettings> response = securitySettingsServiceClient.ListSecuritySettings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecuritySettings 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 (ListSecuritySettingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecuritySettings 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<SecuritySettings> 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 (SecuritySettings 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;
ListSecuritySettings(ListSecuritySettingsRequest, CallSettings)
public virtual PagedEnumerable<ListSecuritySettingsResponse, SecuritySettings> ListSecuritySettings(ListSecuritySettingsRequest request, CallSettings callSettings = null)
Returns the list of all security settings in the specified location.
Parameters | |
---|---|
Name | Description |
request | ListSecuritySettingsRequest 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 |
PagedEnumerableListSecuritySettingsResponseSecuritySettings | A pageable sequence of SecuritySettings resources. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
ListSecuritySettingsRequest request = new ListSecuritySettingsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSecuritySettingsResponse, SecuritySettings> response = securitySettingsServiceClient.ListSecuritySettings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecuritySettings 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 (ListSecuritySettingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecuritySettings 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<SecuritySettings> 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 (SecuritySettings 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;
ListSecuritySettings(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSecuritySettingsResponse, SecuritySettings> ListSecuritySettings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns the list of all security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The location to list all security settings for.
Format: |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSecuritySettingsResponseSecuritySettings | A pageable sequence of SecuritySettings resources. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSecuritySettingsResponse, SecuritySettings> response = securitySettingsServiceClient.ListSecuritySettings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecuritySettings 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 (ListSecuritySettingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecuritySettings 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<SecuritySettings> 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 (SecuritySettings 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;
ListSecuritySettingsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSecuritySettingsResponse, SecuritySettings> ListSecuritySettingsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns the list of all security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The location to list all security settings for.
Format: |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSecuritySettingsResponseSecuritySettings | A pageable asynchronous sequence of SecuritySettings resources. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSecuritySettingsResponse, SecuritySettings> response = securitySettingsServiceClient.ListSecuritySettingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecuritySettings item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSecuritySettingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecuritySettings 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<SecuritySettings> 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 (SecuritySettings 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;
ListSecuritySettingsAsync(ListSecuritySettingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSecuritySettingsResponse, SecuritySettings> ListSecuritySettingsAsync(ListSecuritySettingsRequest request, CallSettings callSettings = null)
Returns the list of all security settings in the specified location.
Parameters | |
---|---|
Name | Description |
request | ListSecuritySettingsRequest 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 |
PagedAsyncEnumerableListSecuritySettingsResponseSecuritySettings | A pageable asynchronous sequence of SecuritySettings resources. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ListSecuritySettingsRequest request = new ListSecuritySettingsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSecuritySettingsResponse, SecuritySettings> response = securitySettingsServiceClient.ListSecuritySettingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecuritySettings item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSecuritySettingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecuritySettings 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<SecuritySettings> 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 (SecuritySettings 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;
ListSecuritySettingsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSecuritySettingsResponse, SecuritySettings> ListSecuritySettingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns the list of all security settings in the specified location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The location to list all security settings for.
Format: |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSecuritySettingsResponseSecuritySettings | A pageable asynchronous sequence of SecuritySettings resources. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSecuritySettingsResponse, SecuritySettings> response = securitySettingsServiceClient.ListSecuritySettingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecuritySettings item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSecuritySettingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecuritySettings 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<SecuritySettings> 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 (SecuritySettings 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;
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.
UpdateSecuritySettings(SecuritySettings, FieldMask, CallSettings)
public virtual SecuritySettings UpdateSecuritySettings(SecuritySettings securitySettings, FieldMask updateMask, CallSettings callSettings = null)
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
securitySettings | SecuritySettings Required. [SecuritySettings] object that contains values for each of the fields to update. |
updateMask | FieldMask Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
SecuritySettings securitySettings = new SecuritySettings();
FieldMask updateMask = new FieldMask();
// Make the request
SecuritySettings response = securitySettingsServiceClient.UpdateSecuritySettings(securitySettings, updateMask);
UpdateSecuritySettings(UpdateSecuritySettingsRequest, CallSettings)
public virtual SecuritySettings UpdateSecuritySettings(UpdateSecuritySettingsRequest request, CallSettings callSettings = null)
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
request | UpdateSecuritySettingsRequest 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 |
SecuritySettings | The RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = SecuritySettingsServiceClient.Create();
// Initialize request argument(s)
UpdateSecuritySettingsRequest request = new UpdateSecuritySettingsRequest
{
SecuritySettings = new SecuritySettings(),
UpdateMask = new FieldMask(),
};
// Make the request
SecuritySettings response = securitySettingsServiceClient.UpdateSecuritySettings(request);
UpdateSecuritySettingsAsync(SecuritySettings, FieldMask, CallSettings)
public virtual Task<SecuritySettings> UpdateSecuritySettingsAsync(SecuritySettings securitySettings, FieldMask updateMask, CallSettings callSettings = null)
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
securitySettings | SecuritySettings Required. [SecuritySettings] object that contains values for each of the fields to update. |
updateMask | FieldMask Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SecuritySettings securitySettings = new SecuritySettings();
FieldMask updateMask = new FieldMask();
// Make the request
SecuritySettings response = await securitySettingsServiceClient.UpdateSecuritySettingsAsync(securitySettings, updateMask);
UpdateSecuritySettingsAsync(SecuritySettings, FieldMask, CancellationToken)
public virtual Task<SecuritySettings> UpdateSecuritySettingsAsync(SecuritySettings securitySettings, FieldMask updateMask, CancellationToken cancellationToken)
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
securitySettings | SecuritySettings Required. [SecuritySettings] object that contains values for each of the fields to update. |
updateMask | FieldMask Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SecuritySettings securitySettings = new SecuritySettings();
FieldMask updateMask = new FieldMask();
// Make the request
SecuritySettings response = await securitySettingsServiceClient.UpdateSecuritySettingsAsync(securitySettings, updateMask);
UpdateSecuritySettingsAsync(UpdateSecuritySettingsRequest, CallSettings)
public virtual Task<SecuritySettings> UpdateSecuritySettingsAsync(UpdateSecuritySettingsRequest request, CallSettings callSettings = null)
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
request | UpdateSecuritySettingsRequest 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 |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecuritySettingsRequest request = new UpdateSecuritySettingsRequest
{
SecuritySettings = new SecuritySettings(),
UpdateMask = new FieldMask(),
};
// Make the request
SecuritySettings response = await securitySettingsServiceClient.UpdateSecuritySettingsAsync(request);
UpdateSecuritySettingsAsync(UpdateSecuritySettingsRequest, CancellationToken)
public virtual Task<SecuritySettings> UpdateSecuritySettingsAsync(UpdateSecuritySettingsRequest request, CancellationToken cancellationToken)
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
Parameters | |
---|---|
Name | Description |
request | UpdateSecuritySettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecuritySettings | A Task containing the RPC response. |
// Create client
SecuritySettingsServiceClient securitySettingsServiceClient = await SecuritySettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSecuritySettingsRequest request = new UpdateSecuritySettingsRequest
{
SecuritySettings = new SecuritySettings(),
UpdateMask = new FieldMask(),
};
// Make the request
SecuritySettings response = await securitySettingsServiceClient.UpdateSecuritySettingsAsync(request);