public abstract class CrossNetworkAutomationServiceClient
Reference documentation and code samples for the Network Connectivity v1 API class CrossNetworkAutomationServiceClient.
CrossNetworkAutomationService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.NetworkConnectivity.V1Assembly
Google.Cloud.NetworkConnectivity.V1.dll
Remarks
The service for CrossNetworkAutomation resources.
Properties
CreateServiceConnectionMapOperationsClient
public virtual OperationsClient CreateServiceConnectionMapOperationsClient { get; }
The long-running operations client for CreateServiceConnectionMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateServiceConnectionPolicyOperationsClient
public virtual OperationsClient CreateServiceConnectionPolicyOperationsClient { get; }
The long-running operations client for CreateServiceConnectionPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateServiceConnectionTokenOperationsClient
public virtual OperationsClient CreateServiceConnectionTokenOperationsClient { get; }
The long-running operations client for CreateServiceConnectionToken
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the CrossNetworkAutomationService service, which is a host of "networkconnectivity.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default CrossNetworkAutomationService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default CrossNetworkAutomationService scopes are:
DeleteServiceClassOperationsClient
public virtual OperationsClient DeleteServiceClassOperationsClient { get; }
The long-running operations client for DeleteServiceClass
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteServiceConnectionMapOperationsClient
public virtual OperationsClient DeleteServiceConnectionMapOperationsClient { get; }
The long-running operations client for DeleteServiceConnectionMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteServiceConnectionPolicyOperationsClient
public virtual OperationsClient DeleteServiceConnectionPolicyOperationsClient { get; }
The long-running operations client for DeleteServiceConnectionPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteServiceConnectionTokenOperationsClient
public virtual OperationsClient DeleteServiceConnectionTokenOperationsClient { get; }
The long-running operations client for DeleteServiceConnectionToken
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual CrossNetworkAutomationService.CrossNetworkAutomationServiceClient GrpcClient { get; }
The underlying gRPC CrossNetworkAutomationService client
Property Value | |
---|---|
Type | Description |
CrossNetworkAutomationServiceCrossNetworkAutomationServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UpdateServiceClassOperationsClient
public virtual OperationsClient UpdateServiceClassOperationsClient { get; }
The long-running operations client for UpdateServiceClass
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateServiceConnectionMapOperationsClient
public virtual OperationsClient UpdateServiceConnectionMapOperationsClient { get; }
The long-running operations client for UpdateServiceConnectionMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateServiceConnectionPolicyOperationsClient
public virtual OperationsClient UpdateServiceConnectionPolicyOperationsClient { get; }
The long-running operations client for UpdateServiceConnectionPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static CrossNetworkAutomationServiceClient Create()
Synchronously creates a CrossNetworkAutomationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CrossNetworkAutomationServiceClientBuilder.
Returns | |
---|---|
Type | Description |
CrossNetworkAutomationServiceClient |
The created CrossNetworkAutomationServiceClient. |
CreateAsync(CancellationToken)
public static Task<CrossNetworkAutomationServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a CrossNetworkAutomationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CrossNetworkAutomationServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskCrossNetworkAutomationServiceClient |
The task representing the created CrossNetworkAutomationServiceClient. |
CreateServiceConnectionMap(LocationName, ServiceConnectionMap, string, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> CreateServiceConnectionMap(LocationName parent, ServiceConnectionMap serviceConnectionMap, string serviceConnectionMapId, CallSettings callSettings = null)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 |
serviceConnectionMap |
ServiceConnectionMap Required. Initial values for a new ServiceConnectionMaps |
serviceConnectionMapId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionMapOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
string serviceConnectionMapId = "";
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionMap(parent, serviceConnectionMap, serviceConnectionMapId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMap(CreateServiceConnectionMapRequest, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> CreateServiceConnectionMap(CreateServiceConnectionMapRequest request, CallSettings callSettings = null)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionMapRequest 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 |
OperationServiceConnectionMapOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
CreateServiceConnectionMapRequest request = new CreateServiceConnectionMapRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionMapId = "",
ServiceConnectionMap = new ServiceConnectionMap(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionMap(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMap(string, ServiceConnectionMap, string, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> CreateServiceConnectionMap(string parent, ServiceConnectionMap serviceConnectionMap, string serviceConnectionMapId, CallSettings callSettings = null)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 |
serviceConnectionMap |
ServiceConnectionMap Required. Initial values for a new ServiceConnectionMaps |
serviceConnectionMapId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionMapOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
string serviceConnectionMapId = "";
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionMap(parent, serviceConnectionMap, serviceConnectionMapId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMapAsync(LocationName, ServiceConnectionMap, string, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> CreateServiceConnectionMapAsync(LocationName parent, ServiceConnectionMap serviceConnectionMap, string serviceConnectionMapId, CallSettings callSettings = null)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 |
serviceConnectionMap |
ServiceConnectionMap Required. Initial values for a new ServiceConnectionMaps |
serviceConnectionMapId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
string serviceConnectionMapId = "";
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionMapAsync(parent, serviceConnectionMap, serviceConnectionMapId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMapAsync(LocationName, ServiceConnectionMap, string, CancellationToken)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> CreateServiceConnectionMapAsync(LocationName parent, ServiceConnectionMap serviceConnectionMap, string serviceConnectionMapId, CancellationToken cancellationToken)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 |
serviceConnectionMap |
ServiceConnectionMap Required. Initial values for a new ServiceConnectionMaps |
serviceConnectionMapId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
string serviceConnectionMapId = "";
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionMapAsync(parent, serviceConnectionMap, serviceConnectionMapId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMapAsync(CreateServiceConnectionMapRequest, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> CreateServiceConnectionMapAsync(CreateServiceConnectionMapRequest request, CallSettings callSettings = null)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionMapRequest 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 |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceConnectionMapRequest request = new CreateServiceConnectionMapRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionMapId = "",
ServiceConnectionMap = new ServiceConnectionMap(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionMapAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMapAsync(CreateServiceConnectionMapRequest, CancellationToken)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> CreateServiceConnectionMapAsync(CreateServiceConnectionMapRequest request, CancellationToken cancellationToken)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionMapRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceConnectionMapRequest request = new CreateServiceConnectionMapRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionMapId = "",
ServiceConnectionMap = new ServiceConnectionMap(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionMapAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMapAsync(string, ServiceConnectionMap, string, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> CreateServiceConnectionMapAsync(string parent, ServiceConnectionMap serviceConnectionMap, string serviceConnectionMapId, CallSettings callSettings = null)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 |
serviceConnectionMap |
ServiceConnectionMap Required. Initial values for a new ServiceConnectionMaps |
serviceConnectionMapId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
string serviceConnectionMapId = "";
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionMapAsync(parent, serviceConnectionMap, serviceConnectionMapId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionMapAsync(string, ServiceConnectionMap, string, CancellationToken)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> CreateServiceConnectionMapAsync(string parent, ServiceConnectionMap serviceConnectionMap, string serviceConnectionMapId, CancellationToken cancellationToken)
Creates a new ServiceConnectionMap in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 |
serviceConnectionMap |
ServiceConnectionMap Required. Initial values for a new ServiceConnectionMaps |
serviceConnectionMapId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
string serviceConnectionMapId = "";
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionMapAsync(parent, serviceConnectionMap, serviceConnectionMapId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicy(LocationName, ServiceConnectionPolicy, string, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> CreateServiceConnectionPolicy(LocationName parent, ServiceConnectionPolicy serviceConnectionPolicy, string serviceConnectionPolicyId, CallSettings callSettings = null)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. Initial values for a new ServiceConnectionPolicies |
serviceConnectionPolicyId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionPolicyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
string serviceConnectionPolicyId = "";
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionPolicy(parent, serviceConnectionPolicy, serviceConnectionPolicyId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicy(CreateServiceConnectionPolicyRequest, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> CreateServiceConnectionPolicy(CreateServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionPolicyRequest 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 |
OperationServiceConnectionPolicyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
CreateServiceConnectionPolicyRequest request = new CreateServiceConnectionPolicyRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionPolicyId = "",
ServiceConnectionPolicy = new ServiceConnectionPolicy(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionPolicy(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicy(string, ServiceConnectionPolicy, string, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> CreateServiceConnectionPolicy(string parent, ServiceConnectionPolicy serviceConnectionPolicy, string serviceConnectionPolicyId, CallSettings callSettings = null)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. Initial values for a new ServiceConnectionPolicies |
serviceConnectionPolicyId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionPolicyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
string serviceConnectionPolicyId = "";
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionPolicy(parent, serviceConnectionPolicy, serviceConnectionPolicyId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicyAsync(LocationName, ServiceConnectionPolicy, string, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> CreateServiceConnectionPolicyAsync(LocationName parent, ServiceConnectionPolicy serviceConnectionPolicy, string serviceConnectionPolicyId, CallSettings callSettings = null)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. Initial values for a new ServiceConnectionPolicies |
serviceConnectionPolicyId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
string serviceConnectionPolicyId = "";
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionPolicyAsync(parent, serviceConnectionPolicy, serviceConnectionPolicyId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicyAsync(LocationName, ServiceConnectionPolicy, string, CancellationToken)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> CreateServiceConnectionPolicyAsync(LocationName parent, ServiceConnectionPolicy serviceConnectionPolicy, string serviceConnectionPolicyId, CancellationToken cancellationToken)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. Initial values for a new ServiceConnectionPolicies |
serviceConnectionPolicyId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
string serviceConnectionPolicyId = "";
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionPolicyAsync(parent, serviceConnectionPolicy, serviceConnectionPolicyId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicyAsync(CreateServiceConnectionPolicyRequest, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> CreateServiceConnectionPolicyAsync(CreateServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionPolicyRequest 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 |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceConnectionPolicyRequest request = new CreateServiceConnectionPolicyRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionPolicyId = "",
ServiceConnectionPolicy = new ServiceConnectionPolicy(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicyAsync(CreateServiceConnectionPolicyRequest, CancellationToken)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> CreateServiceConnectionPolicyAsync(CreateServiceConnectionPolicyRequest request, CancellationToken cancellationToken)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceConnectionPolicyRequest request = new CreateServiceConnectionPolicyRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionPolicyId = "",
ServiceConnectionPolicy = new ServiceConnectionPolicy(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicyAsync(string, ServiceConnectionPolicy, string, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> CreateServiceConnectionPolicyAsync(string parent, ServiceConnectionPolicy serviceConnectionPolicy, string serviceConnectionPolicyId, CallSettings callSettings = null)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. Initial values for a new ServiceConnectionPolicies |
serviceConnectionPolicyId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
string serviceConnectionPolicyId = "";
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionPolicyAsync(parent, serviceConnectionPolicy, serviceConnectionPolicyId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionPolicyAsync(string, ServiceConnectionPolicy, string, CancellationToken)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> CreateServiceConnectionPolicyAsync(string parent, ServiceConnectionPolicy serviceConnectionPolicy, string serviceConnectionPolicyId, CancellationToken cancellationToken)
Creates a new ServiceConnectionPolicy in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. Initial values for a new ServiceConnectionPolicies |
serviceConnectionPolicyId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
string serviceConnectionPolicyId = "";
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionPolicyAsync(parent, serviceConnectionPolicy, serviceConnectionPolicyId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionToken(LocationName, ServiceConnectionToken, string, CallSettings)
public virtual Operation<ServiceConnectionToken, OperationMetadata> CreateServiceConnectionToken(LocationName parent, ServiceConnectionToken serviceConnectionToken, string serviceConnectionTokenId, CallSettings callSettings = null)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 |
serviceConnectionToken |
ServiceConnectionToken Required. Initial values for a new ServiceConnectionTokens |
serviceConnectionTokenId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionTokenOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionToken serviceConnectionToken = new ServiceConnectionToken();
string serviceConnectionTokenId = "";
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionToken(parent, serviceConnectionToken, serviceConnectionTokenId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionToken(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionToken(CreateServiceConnectionTokenRequest, CallSettings)
public virtual Operation<ServiceConnectionToken, OperationMetadata> CreateServiceConnectionToken(CreateServiceConnectionTokenRequest request, CallSettings callSettings = null)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionTokenRequest 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 |
OperationServiceConnectionTokenOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
CreateServiceConnectionTokenRequest request = new CreateServiceConnectionTokenRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionTokenId = "",
ServiceConnectionToken = new ServiceConnectionToken(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionToken(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionToken(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionToken(string, ServiceConnectionToken, string, CallSettings)
public virtual Operation<ServiceConnectionToken, OperationMetadata> CreateServiceConnectionToken(string parent, ServiceConnectionToken serviceConnectionToken, string serviceConnectionTokenId, CallSettings callSettings = null)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 |
serviceConnectionToken |
ServiceConnectionToken Required. Initial values for a new ServiceConnectionTokens |
serviceConnectionTokenId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionTokenOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionToken serviceConnectionToken = new ServiceConnectionToken();
string serviceConnectionTokenId = "";
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = crossNetworkAutomationServiceClient.CreateServiceConnectionToken(parent, serviceConnectionToken, serviceConnectionTokenId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionToken(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionTokenAsync(LocationName, ServiceConnectionToken, string, CallSettings)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> CreateServiceConnectionTokenAsync(LocationName parent, ServiceConnectionToken serviceConnectionToken, string serviceConnectionTokenId, CallSettings callSettings = null)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 |
serviceConnectionToken |
ServiceConnectionToken Required. Initial values for a new ServiceConnectionTokens |
serviceConnectionTokenId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionTokenOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionToken serviceConnectionToken = new ServiceConnectionToken();
string serviceConnectionTokenId = "";
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionTokenAsync(parent, serviceConnectionToken, serviceConnectionTokenId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionTokenAsync(LocationName, ServiceConnectionToken, string, CancellationToken)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> CreateServiceConnectionTokenAsync(LocationName parent, ServiceConnectionToken serviceConnectionToken, string serviceConnectionTokenId, CancellationToken cancellationToken)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 |
serviceConnectionToken |
ServiceConnectionToken Required. Initial values for a new ServiceConnectionTokens |
serviceConnectionTokenId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionTokenOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceConnectionToken serviceConnectionToken = new ServiceConnectionToken();
string serviceConnectionTokenId = "";
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionTokenAsync(parent, serviceConnectionToken, serviceConnectionTokenId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionTokenAsync(CreateServiceConnectionTokenRequest, CallSettings)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> CreateServiceConnectionTokenAsync(CreateServiceConnectionTokenRequest request, CallSettings callSettings = null)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionTokenRequest 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 |
TaskOperationServiceConnectionTokenOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceConnectionTokenRequest request = new CreateServiceConnectionTokenRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionTokenId = "",
ServiceConnectionToken = new ServiceConnectionToken(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionTokenAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionTokenAsync(CreateServiceConnectionTokenRequest, CancellationToken)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> CreateServiceConnectionTokenAsync(CreateServiceConnectionTokenRequest request, CancellationToken cancellationToken)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceConnectionTokenRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionTokenOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceConnectionTokenRequest request = new CreateServiceConnectionTokenRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ServiceConnectionTokenId = "",
ServiceConnectionToken = new ServiceConnectionToken(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionTokenAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionTokenAsync(string, ServiceConnectionToken, string, CallSettings)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> CreateServiceConnectionTokenAsync(string parent, ServiceConnectionToken serviceConnectionToken, string serviceConnectionTokenId, CallSettings callSettings = null)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 |
serviceConnectionToken |
ServiceConnectionToken Required. Initial values for a new ServiceConnectionTokens |
serviceConnectionTokenId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionTokenOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionToken serviceConnectionToken = new ServiceConnectionToken();
string serviceConnectionTokenId = "";
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionTokenAsync(parent, serviceConnectionToken, serviceConnectionTokenId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
CreateServiceConnectionTokenAsync(string, ServiceConnectionToken, string, CancellationToken)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> CreateServiceConnectionTokenAsync(string parent, ServiceConnectionToken serviceConnectionToken, string serviceConnectionTokenId, CancellationToken cancellationToken)
Creates a new ServiceConnectionToken in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 |
serviceConnectionToken |
ServiceConnectionToken Required. Initial values for a new ServiceConnectionTokens |
serviceConnectionTokenId |
string Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionTokenOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceConnectionToken serviceConnectionToken = new ServiceConnectionToken();
string serviceConnectionTokenId = "";
// Make the request
Operation<ServiceConnectionToken, OperationMetadata> response = await crossNetworkAutomationServiceClient.CreateServiceConnectionTokenAsync(parent, serviceConnectionToken, serviceConnectionTokenId);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionToken, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionToken result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionToken, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceCreateServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionToken retrievedResult = retrievedResponse.Result;
}
DeleteServiceClass(DeleteServiceClassRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceClass(DeleteServiceClassRequest request, CallSettings callSettings = null)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceClassRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
DeleteServiceClassRequest request = new DeleteServiceClassRequest
{
ServiceClassName = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceClass(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceClass(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClass(ServiceClassName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceClass(ServiceClassName name, CallSettings callSettings = null)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
ServiceClassName Required. The name of the ServiceClass to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceClassName name = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]");
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceClass(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceClass(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClass(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceClass(string name, CallSettings callSettings = null)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceClass to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceClasses/[SERVICE_CLASS]";
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceClass(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceClass(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClassAsync(DeleteServiceClassRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceClassAsync(DeleteServiceClassRequest request, CallSettings callSettings = null)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceClassRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceClassRequest request = new DeleteServiceClassRequest
{
ServiceClassName = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceClassAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClassAsync(DeleteServiceClassRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceClassAsync(DeleteServiceClassRequest request, CancellationToken cancellationToken)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceClassRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceClassRequest request = new DeleteServiceClassRequest
{
ServiceClassName = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceClassAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClassAsync(ServiceClassName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceClassAsync(ServiceClassName name, CallSettings callSettings = null)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
ServiceClassName Required. The name of the ServiceClass to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceClassName name = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceClassAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClassAsync(ServiceClassName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceClassAsync(ServiceClassName name, CancellationToken cancellationToken)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
ServiceClassName Required. The name of the ServiceClass to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceClassName name = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceClassAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClassAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceClassAsync(string name, CallSettings callSettings = null)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceClass to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceClasses/[SERVICE_CLASS]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceClassAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceClassAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceClassAsync(string name, CancellationToken cancellationToken)
Deletes a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceClass to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceClasses/[SERVICE_CLASS]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceClassAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMap(DeleteServiceConnectionMapRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionMap(DeleteServiceConnectionMapRequest request, CallSettings callSettings = null)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionMapRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
DeleteServiceConnectionMapRequest request = new DeleteServiceConnectionMapRequest
{
ServiceConnectionMapName = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionMap(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMap(ServiceConnectionMapName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionMap(ServiceConnectionMapName name, CallSettings callSettings = null)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionMapName Required. The name of the ServiceConnectionMap to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionMapName name = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]");
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionMap(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMap(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionMap(string name, CallSettings callSettings = null)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionMap to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionMaps/[SERVICE_CONNECTION_MAP]";
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionMap(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMapAsync(DeleteServiceConnectionMapRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionMapAsync(DeleteServiceConnectionMapRequest request, CallSettings callSettings = null)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionMapRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceConnectionMapRequest request = new DeleteServiceConnectionMapRequest
{
ServiceConnectionMapName = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionMapAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMapAsync(DeleteServiceConnectionMapRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionMapAsync(DeleteServiceConnectionMapRequest request, CancellationToken cancellationToken)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionMapRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceConnectionMapRequest request = new DeleteServiceConnectionMapRequest
{
ServiceConnectionMapName = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionMapAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMapAsync(ServiceConnectionMapName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionMapAsync(ServiceConnectionMapName name, CallSettings callSettings = null)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionMapName Required. The name of the ServiceConnectionMap to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionMapName name = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionMapAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMapAsync(ServiceConnectionMapName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionMapAsync(ServiceConnectionMapName name, CancellationToken cancellationToken)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionMapName Required. The name of the ServiceConnectionMap to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionMapName name = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionMapAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMapAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionMapAsync(string name, CallSettings callSettings = null)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionMap to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionMaps/[SERVICE_CONNECTION_MAP]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionMapAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionMapAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionMapAsync(string name, CancellationToken cancellationToken)
Deletes a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionMap to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionMaps/[SERVICE_CONNECTION_MAP]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionMapAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicy(DeleteServiceConnectionPolicyRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionPolicy(DeleteServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
DeleteServiceConnectionPolicyRequest request = new DeleteServiceConnectionPolicyRequest
{
ServiceConnectionPolicyName = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicy(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicy(ServiceConnectionPolicyName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionPolicy(ServiceConnectionPolicyName name, CallSettings callSettings = null)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionPolicyName Required. The name of the ServiceConnectionPolicy to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionPolicyName name = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicy(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicy(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionPolicy(string name, CallSettings callSettings = null)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionPolicy to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionPolicies/[SERVICE_CONNECTION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicy(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicyAsync(DeleteServiceConnectionPolicyRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionPolicyAsync(DeleteServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceConnectionPolicyRequest request = new DeleteServiceConnectionPolicyRequest
{
ServiceConnectionPolicyName = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicyAsync(DeleteServiceConnectionPolicyRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionPolicyAsync(DeleteServiceConnectionPolicyRequest request, CancellationToken cancellationToken)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceConnectionPolicyRequest request = new DeleteServiceConnectionPolicyRequest
{
ServiceConnectionPolicyName = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicyAsync(ServiceConnectionPolicyName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionPolicyAsync(ServiceConnectionPolicyName name, CallSettings callSettings = null)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionPolicyName Required. The name of the ServiceConnectionPolicy to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionPolicyName name = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicyAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicyAsync(ServiceConnectionPolicyName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionPolicyAsync(ServiceConnectionPolicyName name, CancellationToken cancellationToken)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionPolicyName Required. The name of the ServiceConnectionPolicy to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionPolicyName name = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicyAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicyAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionPolicyAsync(string name, CallSettings callSettings = null)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionPolicy to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionPolicies/[SERVICE_CONNECTION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicyAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionPolicyAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionPolicyAsync(string name, CancellationToken cancellationToken)
Deletes a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionPolicy to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionPolicies/[SERVICE_CONNECTION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionPolicyAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionToken(DeleteServiceConnectionTokenRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionToken(DeleteServiceConnectionTokenRequest request, CallSettings callSettings = null)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionTokenRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
DeleteServiceConnectionTokenRequest request = new DeleteServiceConnectionTokenRequest
{
ServiceConnectionTokenName = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionToken(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionToken(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionToken(ServiceConnectionTokenName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionToken(ServiceConnectionTokenName name, CallSettings callSettings = null)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionTokenName Required. The name of the ServiceConnectionToken to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionTokenName name = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]");
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionToken(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionToken(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionToken(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteServiceConnectionToken(string name, CallSettings callSettings = null)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionToken to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionTokens/[SERVICE_CONNECTION_TOKEN]";
// Make the request
Operation<Empty, OperationMetadata> response = crossNetworkAutomationServiceClient.DeleteServiceConnectionToken(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionToken(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionTokenAsync(DeleteServiceConnectionTokenRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionTokenAsync(DeleteServiceConnectionTokenRequest request, CallSettings callSettings = null)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionTokenRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceConnectionTokenRequest request = new DeleteServiceConnectionTokenRequest
{
ServiceConnectionTokenName = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionTokenAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionTokenAsync(DeleteServiceConnectionTokenRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionTokenAsync(DeleteServiceConnectionTokenRequest request, CancellationToken cancellationToken)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceConnectionTokenRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceConnectionTokenRequest request = new DeleteServiceConnectionTokenRequest
{
ServiceConnectionTokenName = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionTokenAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionTokenAsync(ServiceConnectionTokenName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionTokenAsync(ServiceConnectionTokenName name, CallSettings callSettings = null)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionTokenName Required. The name of the ServiceConnectionToken to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionTokenName name = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionTokenAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionTokenAsync(ServiceConnectionTokenName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionTokenAsync(ServiceConnectionTokenName name, CancellationToken cancellationToken)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionTokenName Required. The name of the ServiceConnectionToken to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionTokenName name = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]");
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionTokenAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionTokenAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionTokenAsync(string name, CallSettings callSettings = null)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionToken to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionTokens/[SERVICE_CONNECTION_TOKEN]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionTokenAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteServiceConnectionTokenAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceConnectionTokenAsync(string name, CancellationToken cancellationToken)
Deletes a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the ServiceConnectionToken to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionTokens/[SERVICE_CONNECTION_TOKEN]";
// Make the request
Operation<Empty, OperationMetadata> response = await crossNetworkAutomationServiceClient.DeleteServiceConnectionTokenAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceDeleteServiceConnectionTokenAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
GetServiceClass(GetServiceClassRequest, CallSettings)
public virtual ServiceClass GetServiceClass(GetServiceClassRequest request, CallSettings callSettings = null)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
GetServiceClassRequest 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 |
ServiceClass |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
GetServiceClassRequest request = new GetServiceClassRequest
{
ServiceClassName = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]"),
};
// Make the request
ServiceClass response = crossNetworkAutomationServiceClient.GetServiceClass(request);
GetServiceClass(ServiceClassName, CallSettings)
public virtual ServiceClass GetServiceClass(ServiceClassName name, CallSettings callSettings = null)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
ServiceClassName Required. Name of the ServiceClass to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceClass |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceClassName name = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]");
// Make the request
ServiceClass response = crossNetworkAutomationServiceClient.GetServiceClass(name);
GetServiceClass(string, CallSettings)
public virtual ServiceClass GetServiceClass(string name, CallSettings callSettings = null)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceClass to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceClass |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceClasses/[SERVICE_CLASS]";
// Make the request
ServiceClass response = crossNetworkAutomationServiceClient.GetServiceClass(name);
GetServiceClassAsync(GetServiceClassRequest, CallSettings)
public virtual Task<ServiceClass> GetServiceClassAsync(GetServiceClassRequest request, CallSettings callSettings = null)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
GetServiceClassRequest 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 |
TaskServiceClass |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceClassRequest request = new GetServiceClassRequest
{
ServiceClassName = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]"),
};
// Make the request
ServiceClass response = await crossNetworkAutomationServiceClient.GetServiceClassAsync(request);
GetServiceClassAsync(GetServiceClassRequest, CancellationToken)
public virtual Task<ServiceClass> GetServiceClassAsync(GetServiceClassRequest request, CancellationToken cancellationToken)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
GetServiceClassRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceClass |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceClassRequest request = new GetServiceClassRequest
{
ServiceClassName = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]"),
};
// Make the request
ServiceClass response = await crossNetworkAutomationServiceClient.GetServiceClassAsync(request);
GetServiceClassAsync(ServiceClassName, CallSettings)
public virtual Task<ServiceClass> GetServiceClassAsync(ServiceClassName name, CallSettings callSettings = null)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
ServiceClassName Required. Name of the ServiceClass to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceClass |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceClassName name = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]");
// Make the request
ServiceClass response = await crossNetworkAutomationServiceClient.GetServiceClassAsync(name);
GetServiceClassAsync(ServiceClassName, CancellationToken)
public virtual Task<ServiceClass> GetServiceClassAsync(ServiceClassName name, CancellationToken cancellationToken)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
ServiceClassName Required. Name of the ServiceClass to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceClass |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceClassName name = ServiceClassName.FromProjectLocationServiceClass("[PROJECT]", "[LOCATION]", "[SERVICE_CLASS]");
// Make the request
ServiceClass response = await crossNetworkAutomationServiceClient.GetServiceClassAsync(name);
GetServiceClassAsync(string, CallSettings)
public virtual Task<ServiceClass> GetServiceClassAsync(string name, CallSettings callSettings = null)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceClass to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceClass |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceClasses/[SERVICE_CLASS]";
// Make the request
ServiceClass response = await crossNetworkAutomationServiceClient.GetServiceClassAsync(name);
GetServiceClassAsync(string, CancellationToken)
public virtual Task<ServiceClass> GetServiceClassAsync(string name, CancellationToken cancellationToken)
Gets details of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceClass to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceClass |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceClasses/[SERVICE_CLASS]";
// Make the request
ServiceClass response = await crossNetworkAutomationServiceClient.GetServiceClassAsync(name);
GetServiceConnectionMap(GetServiceConnectionMapRequest, CallSettings)
public virtual ServiceConnectionMap GetServiceConnectionMap(GetServiceConnectionMapRequest request, CallSettings callSettings = null)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionMapRequest 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 |
ServiceConnectionMap |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
GetServiceConnectionMapRequest request = new GetServiceConnectionMapRequest
{
ServiceConnectionMapName = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]"),
};
// Make the request
ServiceConnectionMap response = crossNetworkAutomationServiceClient.GetServiceConnectionMap(request);
GetServiceConnectionMap(ServiceConnectionMapName, CallSettings)
public virtual ServiceConnectionMap GetServiceConnectionMap(ServiceConnectionMapName name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionMapName Required. Name of the ServiceConnectionMap to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionMapName name = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]");
// Make the request
ServiceConnectionMap response = crossNetworkAutomationServiceClient.GetServiceConnectionMap(name);
GetServiceConnectionMap(string, CallSettings)
public virtual ServiceConnectionMap GetServiceConnectionMap(string name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionMap to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionMaps/[SERVICE_CONNECTION_MAP]";
// Make the request
ServiceConnectionMap response = crossNetworkAutomationServiceClient.GetServiceConnectionMap(name);
GetServiceConnectionMapAsync(GetServiceConnectionMapRequest, CallSettings)
public virtual Task<ServiceConnectionMap> GetServiceConnectionMapAsync(GetServiceConnectionMapRequest request, CallSettings callSettings = null)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionMapRequest 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 |
TaskServiceConnectionMap |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceConnectionMapRequest request = new GetServiceConnectionMapRequest
{
ServiceConnectionMapName = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]"),
};
// Make the request
ServiceConnectionMap response = await crossNetworkAutomationServiceClient.GetServiceConnectionMapAsync(request);
GetServiceConnectionMapAsync(GetServiceConnectionMapRequest, CancellationToken)
public virtual Task<ServiceConnectionMap> GetServiceConnectionMapAsync(GetServiceConnectionMapRequest request, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionMapRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionMap |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceConnectionMapRequest request = new GetServiceConnectionMapRequest
{
ServiceConnectionMapName = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]"),
};
// Make the request
ServiceConnectionMap response = await crossNetworkAutomationServiceClient.GetServiceConnectionMapAsync(request);
GetServiceConnectionMapAsync(ServiceConnectionMapName, CallSettings)
public virtual Task<ServiceConnectionMap> GetServiceConnectionMapAsync(ServiceConnectionMapName name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionMapName Required. Name of the ServiceConnectionMap to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionMap |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionMapName name = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]");
// Make the request
ServiceConnectionMap response = await crossNetworkAutomationServiceClient.GetServiceConnectionMapAsync(name);
GetServiceConnectionMapAsync(ServiceConnectionMapName, CancellationToken)
public virtual Task<ServiceConnectionMap> GetServiceConnectionMapAsync(ServiceConnectionMapName name, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionMapName Required. Name of the ServiceConnectionMap to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionMap |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionMapName name = ServiceConnectionMapName.FromProjectLocationServiceConnectionMap("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_MAP]");
// Make the request
ServiceConnectionMap response = await crossNetworkAutomationServiceClient.GetServiceConnectionMapAsync(name);
GetServiceConnectionMapAsync(string, CallSettings)
public virtual Task<ServiceConnectionMap> GetServiceConnectionMapAsync(string name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionMap to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionMap |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionMaps/[SERVICE_CONNECTION_MAP]";
// Make the request
ServiceConnectionMap response = await crossNetworkAutomationServiceClient.GetServiceConnectionMapAsync(name);
GetServiceConnectionMapAsync(string, CancellationToken)
public virtual Task<ServiceConnectionMap> GetServiceConnectionMapAsync(string name, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionMap to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionMap |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionMaps/[SERVICE_CONNECTION_MAP]";
// Make the request
ServiceConnectionMap response = await crossNetworkAutomationServiceClient.GetServiceConnectionMapAsync(name);
GetServiceConnectionPolicy(GetServiceConnectionPolicyRequest, CallSettings)
public virtual ServiceConnectionPolicy GetServiceConnectionPolicy(GetServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionPolicyRequest 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 |
ServiceConnectionPolicy |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
GetServiceConnectionPolicyRequest request = new GetServiceConnectionPolicyRequest
{
ServiceConnectionPolicyName = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]"),
};
// Make the request
ServiceConnectionPolicy response = crossNetworkAutomationServiceClient.GetServiceConnectionPolicy(request);
GetServiceConnectionPolicy(ServiceConnectionPolicyName, CallSettings)
public virtual ServiceConnectionPolicy GetServiceConnectionPolicy(ServiceConnectionPolicyName name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionPolicyName Required. Name of the ServiceConnectionPolicy to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceConnectionPolicy |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionPolicyName name = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]");
// Make the request
ServiceConnectionPolicy response = crossNetworkAutomationServiceClient.GetServiceConnectionPolicy(name);
GetServiceConnectionPolicy(string, CallSettings)
public virtual ServiceConnectionPolicy GetServiceConnectionPolicy(string name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionPolicy to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceConnectionPolicy |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionPolicies/[SERVICE_CONNECTION_POLICY]";
// Make the request
ServiceConnectionPolicy response = crossNetworkAutomationServiceClient.GetServiceConnectionPolicy(name);
GetServiceConnectionPolicyAsync(GetServiceConnectionPolicyRequest, CallSettings)
public virtual Task<ServiceConnectionPolicy> GetServiceConnectionPolicyAsync(GetServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionPolicyRequest 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 |
TaskServiceConnectionPolicy |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceConnectionPolicyRequest request = new GetServiceConnectionPolicyRequest
{
ServiceConnectionPolicyName = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]"),
};
// Make the request
ServiceConnectionPolicy response = await crossNetworkAutomationServiceClient.GetServiceConnectionPolicyAsync(request);
GetServiceConnectionPolicyAsync(GetServiceConnectionPolicyRequest, CancellationToken)
public virtual Task<ServiceConnectionPolicy> GetServiceConnectionPolicyAsync(GetServiceConnectionPolicyRequest request, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionPolicy |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceConnectionPolicyRequest request = new GetServiceConnectionPolicyRequest
{
ServiceConnectionPolicyName = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]"),
};
// Make the request
ServiceConnectionPolicy response = await crossNetworkAutomationServiceClient.GetServiceConnectionPolicyAsync(request);
GetServiceConnectionPolicyAsync(ServiceConnectionPolicyName, CallSettings)
public virtual Task<ServiceConnectionPolicy> GetServiceConnectionPolicyAsync(ServiceConnectionPolicyName name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionPolicyName Required. Name of the ServiceConnectionPolicy to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionPolicy |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionPolicyName name = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]");
// Make the request
ServiceConnectionPolicy response = await crossNetworkAutomationServiceClient.GetServiceConnectionPolicyAsync(name);
GetServiceConnectionPolicyAsync(ServiceConnectionPolicyName, CancellationToken)
public virtual Task<ServiceConnectionPolicy> GetServiceConnectionPolicyAsync(ServiceConnectionPolicyName name, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionPolicyName Required. Name of the ServiceConnectionPolicy to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionPolicy |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionPolicyName name = ServiceConnectionPolicyName.FromProjectLocationServiceConnectionPolicy("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_POLICY]");
// Make the request
ServiceConnectionPolicy response = await crossNetworkAutomationServiceClient.GetServiceConnectionPolicyAsync(name);
GetServiceConnectionPolicyAsync(string, CallSettings)
public virtual Task<ServiceConnectionPolicy> GetServiceConnectionPolicyAsync(string name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionPolicy to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionPolicy |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionPolicies/[SERVICE_CONNECTION_POLICY]";
// Make the request
ServiceConnectionPolicy response = await crossNetworkAutomationServiceClient.GetServiceConnectionPolicyAsync(name);
GetServiceConnectionPolicyAsync(string, CancellationToken)
public virtual Task<ServiceConnectionPolicy> GetServiceConnectionPolicyAsync(string name, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionPolicy to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionPolicy |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionPolicies/[SERVICE_CONNECTION_POLICY]";
// Make the request
ServiceConnectionPolicy response = await crossNetworkAutomationServiceClient.GetServiceConnectionPolicyAsync(name);
GetServiceConnectionToken(GetServiceConnectionTokenRequest, CallSettings)
public virtual ServiceConnectionToken GetServiceConnectionToken(GetServiceConnectionTokenRequest request, CallSettings callSettings = null)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionTokenRequest 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 |
ServiceConnectionToken |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
GetServiceConnectionTokenRequest request = new GetServiceConnectionTokenRequest
{
ServiceConnectionTokenName = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]"),
};
// Make the request
ServiceConnectionToken response = crossNetworkAutomationServiceClient.GetServiceConnectionToken(request);
GetServiceConnectionToken(ServiceConnectionTokenName, CallSettings)
public virtual ServiceConnectionToken GetServiceConnectionToken(ServiceConnectionTokenName name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionTokenName Required. Name of the ServiceConnectionToken to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceConnectionToken |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionTokenName name = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]");
// Make the request
ServiceConnectionToken response = crossNetworkAutomationServiceClient.GetServiceConnectionToken(name);
GetServiceConnectionToken(string, CallSettings)
public virtual ServiceConnectionToken GetServiceConnectionToken(string name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionToken to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceConnectionToken |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionTokens/[SERVICE_CONNECTION_TOKEN]";
// Make the request
ServiceConnectionToken response = crossNetworkAutomationServiceClient.GetServiceConnectionToken(name);
GetServiceConnectionTokenAsync(GetServiceConnectionTokenRequest, CallSettings)
public virtual Task<ServiceConnectionToken> GetServiceConnectionTokenAsync(GetServiceConnectionTokenRequest request, CallSettings callSettings = null)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionTokenRequest 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 |
TaskServiceConnectionToken |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceConnectionTokenRequest request = new GetServiceConnectionTokenRequest
{
ServiceConnectionTokenName = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]"),
};
// Make the request
ServiceConnectionToken response = await crossNetworkAutomationServiceClient.GetServiceConnectionTokenAsync(request);
GetServiceConnectionTokenAsync(GetServiceConnectionTokenRequest, CancellationToken)
public virtual Task<ServiceConnectionToken> GetServiceConnectionTokenAsync(GetServiceConnectionTokenRequest request, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
request |
GetServiceConnectionTokenRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionToken |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceConnectionTokenRequest request = new GetServiceConnectionTokenRequest
{
ServiceConnectionTokenName = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]"),
};
// Make the request
ServiceConnectionToken response = await crossNetworkAutomationServiceClient.GetServiceConnectionTokenAsync(request);
GetServiceConnectionTokenAsync(ServiceConnectionTokenName, CallSettings)
public virtual Task<ServiceConnectionToken> GetServiceConnectionTokenAsync(ServiceConnectionTokenName name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionTokenName Required. Name of the ServiceConnectionToken to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionToken |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionTokenName name = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]");
// Make the request
ServiceConnectionToken response = await crossNetworkAutomationServiceClient.GetServiceConnectionTokenAsync(name);
GetServiceConnectionTokenAsync(ServiceConnectionTokenName, CancellationToken)
public virtual Task<ServiceConnectionToken> GetServiceConnectionTokenAsync(ServiceConnectionTokenName name, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
ServiceConnectionTokenName Required. Name of the ServiceConnectionToken to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionToken |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionTokenName name = ServiceConnectionTokenName.FromProjectLocationServiceConnectionToken("[PROJECT]", "[LOCATION]", "[SERVICE_CONNECTION_TOKEN]");
// Make the request
ServiceConnectionToken response = await crossNetworkAutomationServiceClient.GetServiceConnectionTokenAsync(name);
GetServiceConnectionTokenAsync(string, CallSettings)
public virtual Task<ServiceConnectionToken> GetServiceConnectionTokenAsync(string name, CallSettings callSettings = null)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionToken to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionToken |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionTokens/[SERVICE_CONNECTION_TOKEN]";
// Make the request
ServiceConnectionToken response = await crossNetworkAutomationServiceClient.GetServiceConnectionTokenAsync(name);
GetServiceConnectionTokenAsync(string, CancellationToken)
public virtual Task<ServiceConnectionToken> GetServiceConnectionTokenAsync(string name, CancellationToken cancellationToken)
Gets details of a single ServiceConnectionToken.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ServiceConnectionToken to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceConnectionToken |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceConnectionTokens/[SERVICE_CONNECTION_TOKEN]";
// Make the request
ServiceConnectionToken response = await crossNetworkAutomationServiceClient.GetServiceConnectionTokenAsync(name);
ListServiceClasses(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceClassesResponse, ServiceClass> ListServiceClasses(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceClasses in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceClassesResponseServiceClass |
A pageable sequence of ServiceClass resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServiceClassesResponse, ServiceClass> response = crossNetworkAutomationServiceClient.ListServiceClasses(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceClass 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 (ListServiceClassesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceClass 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<ServiceClass> 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 (ServiceClass 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;
ListServiceClasses(ListServiceClassesRequest, CallSettings)
public virtual PagedEnumerable<ListServiceClassesResponse, ServiceClass> ListServiceClasses(ListServiceClassesRequest request, CallSettings callSettings = null)
Lists ServiceClasses in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceClassesRequest 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 |
PagedEnumerableListServiceClassesResponseServiceClass |
A pageable sequence of ServiceClass resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ListServiceClassesRequest request = new ListServiceClassesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListServiceClassesResponse, ServiceClass> response = crossNetworkAutomationServiceClient.ListServiceClasses(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceClass 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 (ListServiceClassesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceClass 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<ServiceClass> 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 (ServiceClass 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;
ListServiceClasses(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceClassesResponse, ServiceClass> ListServiceClasses(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceClasses in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceClassesResponseServiceClass |
A pageable sequence of ServiceClass resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServiceClassesResponse, ServiceClass> response = crossNetworkAutomationServiceClient.ListServiceClasses(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceClass 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 (ListServiceClassesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceClass 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<ServiceClass> 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 (ServiceClass 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;
ListServiceClassesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceClassesResponse, ServiceClass> ListServiceClassesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceClasses in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceClassesResponseServiceClass |
A pageable asynchronous sequence of ServiceClass resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServiceClassesResponse, ServiceClass> response = crossNetworkAutomationServiceClient.ListServiceClassesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceClass 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((ListServiceClassesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceClass 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<ServiceClass> 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 (ServiceClass 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;
ListServiceClassesAsync(ListServiceClassesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceClassesResponse, ServiceClass> ListServiceClassesAsync(ListServiceClassesRequest request, CallSettings callSettings = null)
Lists ServiceClasses in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceClassesRequest 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 |
PagedAsyncEnumerableListServiceClassesResponseServiceClass |
A pageable asynchronous sequence of ServiceClass resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ListServiceClassesRequest request = new ListServiceClassesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListServiceClassesResponse, ServiceClass> response = crossNetworkAutomationServiceClient.ListServiceClassesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceClass 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((ListServiceClassesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceClass 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<ServiceClass> 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 (ServiceClass 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;
ListServiceClassesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceClassesResponse, ServiceClass> ListServiceClassesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceClasses in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceClassesResponseServiceClass |
A pageable asynchronous sequence of ServiceClass resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServiceClassesResponse, ServiceClass> response = crossNetworkAutomationServiceClient.ListServiceClassesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceClass 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((ListServiceClassesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceClass 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<ServiceClass> 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 (ServiceClass 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;
ListServiceConnectionMaps(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> ListServiceConnectionMaps(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceConnectionMapsResponseServiceConnectionMap |
A pageable sequence of ServiceConnectionMap resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> response = crossNetworkAutomationServiceClient.ListServiceConnectionMaps(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionMap 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 (ListServiceConnectionMapsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionMap 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<ServiceConnectionMap> 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 (ServiceConnectionMap 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;
ListServiceConnectionMaps(ListServiceConnectionMapsRequest, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> ListServiceConnectionMaps(ListServiceConnectionMapsRequest request, CallSettings callSettings = null)
Lists ServiceConnectionMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceConnectionMapsRequest 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 |
PagedEnumerableListServiceConnectionMapsResponseServiceConnectionMap |
A pageable sequence of ServiceConnectionMap resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ListServiceConnectionMapsRequest request = new ListServiceConnectionMapsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> response = crossNetworkAutomationServiceClient.ListServiceConnectionMaps(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionMap 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 (ListServiceConnectionMapsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionMap 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<ServiceConnectionMap> 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 (ServiceConnectionMap 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;
ListServiceConnectionMaps(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> ListServiceConnectionMaps(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceConnectionMapsResponseServiceConnectionMap |
A pageable sequence of ServiceConnectionMap resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> response = crossNetworkAutomationServiceClient.ListServiceConnectionMaps(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionMap 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 (ListServiceConnectionMapsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionMap 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<ServiceConnectionMap> 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 (ServiceConnectionMap 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;
ListServiceConnectionMapsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> ListServiceConnectionMapsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceConnectionMapsResponseServiceConnectionMap |
A pageable asynchronous sequence of ServiceConnectionMap resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> response = crossNetworkAutomationServiceClient.ListServiceConnectionMapsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionMap 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((ListServiceConnectionMapsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionMap 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<ServiceConnectionMap> 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 (ServiceConnectionMap 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;
ListServiceConnectionMapsAsync(ListServiceConnectionMapsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> ListServiceConnectionMapsAsync(ListServiceConnectionMapsRequest request, CallSettings callSettings = null)
Lists ServiceConnectionMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceConnectionMapsRequest 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 |
PagedAsyncEnumerableListServiceConnectionMapsResponseServiceConnectionMap |
A pageable asynchronous sequence of ServiceConnectionMap resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ListServiceConnectionMapsRequest request = new ListServiceConnectionMapsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> response = crossNetworkAutomationServiceClient.ListServiceConnectionMapsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionMap 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((ListServiceConnectionMapsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionMap 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<ServiceConnectionMap> 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 (ServiceConnectionMap 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;
ListServiceConnectionMapsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> ListServiceConnectionMapsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceConnectionMapsResponseServiceConnectionMap |
A pageable asynchronous sequence of ServiceConnectionMap resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServiceConnectionMapsResponse, ServiceConnectionMap> response = crossNetworkAutomationServiceClient.ListServiceConnectionMapsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionMap 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((ListServiceConnectionMapsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionMap 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<ServiceConnectionMap> 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 (ServiceConnectionMap 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;
ListServiceConnectionPolicies(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> ListServiceConnectionPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionPolicies in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceConnectionPoliciesResponseServiceConnectionPolicy |
A pageable sequence of ServiceConnectionPolicy resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> response = crossNetworkAutomationServiceClient.ListServiceConnectionPolicies(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionPolicy 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 (ListServiceConnectionPoliciesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionPolicy 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<ServiceConnectionPolicy> 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 (ServiceConnectionPolicy 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;
ListServiceConnectionPolicies(ListServiceConnectionPoliciesRequest, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> ListServiceConnectionPolicies(ListServiceConnectionPoliciesRequest request, CallSettings callSettings = null)
Lists ServiceConnectionPolicies in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceConnectionPoliciesRequest 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 |
PagedEnumerableListServiceConnectionPoliciesResponseServiceConnectionPolicy |
A pageable sequence of ServiceConnectionPolicy resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ListServiceConnectionPoliciesRequest request = new ListServiceConnectionPoliciesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> response = crossNetworkAutomationServiceClient.ListServiceConnectionPolicies(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionPolicy 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 (ListServiceConnectionPoliciesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionPolicy 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<ServiceConnectionPolicy> 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 (ServiceConnectionPolicy 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;
ListServiceConnectionPolicies(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> ListServiceConnectionPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionPolicies in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceConnectionPoliciesResponseServiceConnectionPolicy |
A pageable sequence of ServiceConnectionPolicy resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> response = crossNetworkAutomationServiceClient.ListServiceConnectionPolicies(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionPolicy 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 (ListServiceConnectionPoliciesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionPolicy 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<ServiceConnectionPolicy> 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 (ServiceConnectionPolicy 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;
ListServiceConnectionPoliciesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> ListServiceConnectionPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionPolicies in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceConnectionPoliciesResponseServiceConnectionPolicy |
A pageable asynchronous sequence of ServiceConnectionPolicy resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> response = crossNetworkAutomationServiceClient.ListServiceConnectionPoliciesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionPolicy 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((ListServiceConnectionPoliciesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionPolicy 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<ServiceConnectionPolicy> 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 (ServiceConnectionPolicy 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;
ListServiceConnectionPoliciesAsync(ListServiceConnectionPoliciesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> ListServiceConnectionPoliciesAsync(ListServiceConnectionPoliciesRequest request, CallSettings callSettings = null)
Lists ServiceConnectionPolicies in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceConnectionPoliciesRequest 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 |
PagedAsyncEnumerableListServiceConnectionPoliciesResponseServiceConnectionPolicy |
A pageable asynchronous sequence of ServiceConnectionPolicy resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ListServiceConnectionPoliciesRequest request = new ListServiceConnectionPoliciesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> response = crossNetworkAutomationServiceClient.ListServiceConnectionPoliciesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionPolicy 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((ListServiceConnectionPoliciesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionPolicy 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<ServiceConnectionPolicy> 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 (ServiceConnectionPolicy 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;
ListServiceConnectionPoliciesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> ListServiceConnectionPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionPolicies in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceConnectionPoliciesResponseServiceConnectionPolicy |
A pageable asynchronous sequence of ServiceConnectionPolicy resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> response = crossNetworkAutomationServiceClient.ListServiceConnectionPoliciesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionPolicy 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((ListServiceConnectionPoliciesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionPolicy 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<ServiceConnectionPolicy> 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 (ServiceConnectionPolicy 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;
ListServiceConnectionTokens(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> ListServiceConnectionTokens(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionTokens in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceConnectionTokensResponseServiceConnectionToken |
A pageable sequence of ServiceConnectionToken resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> response = crossNetworkAutomationServiceClient.ListServiceConnectionTokens(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionToken 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 (ListServiceConnectionTokensResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionToken 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<ServiceConnectionToken> 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 (ServiceConnectionToken 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;
ListServiceConnectionTokens(ListServiceConnectionTokensRequest, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> ListServiceConnectionTokens(ListServiceConnectionTokensRequest request, CallSettings callSettings = null)
Lists ServiceConnectionTokens in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceConnectionTokensRequest 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 |
PagedEnumerableListServiceConnectionTokensResponseServiceConnectionToken |
A pageable sequence of ServiceConnectionToken resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ListServiceConnectionTokensRequest request = new ListServiceConnectionTokensRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> response = crossNetworkAutomationServiceClient.ListServiceConnectionTokens(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionToken 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 (ListServiceConnectionTokensResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionToken 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<ServiceConnectionToken> 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 (ServiceConnectionToken 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;
ListServiceConnectionTokens(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> ListServiceConnectionTokens(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionTokens in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedEnumerableListServiceConnectionTokensResponseServiceConnectionToken |
A pageable sequence of ServiceConnectionToken resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> response = crossNetworkAutomationServiceClient.ListServiceConnectionTokens(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceConnectionToken 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 (ListServiceConnectionTokensResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionToken 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<ServiceConnectionToken> 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 (ServiceConnectionToken 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;
ListServiceConnectionTokensAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> ListServiceConnectionTokensAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionTokens in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceConnectionTokensResponseServiceConnectionToken |
A pageable asynchronous sequence of ServiceConnectionToken resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> response = crossNetworkAutomationServiceClient.ListServiceConnectionTokensAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionToken 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((ListServiceConnectionTokensResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionToken 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<ServiceConnectionToken> 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 (ServiceConnectionToken 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;
ListServiceConnectionTokensAsync(ListServiceConnectionTokensRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> ListServiceConnectionTokensAsync(ListServiceConnectionTokensRequest request, CallSettings callSettings = null)
Lists ServiceConnectionTokens in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListServiceConnectionTokensRequest 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 |
PagedAsyncEnumerableListServiceConnectionTokensResponseServiceConnectionToken |
A pageable asynchronous sequence of ServiceConnectionToken resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ListServiceConnectionTokensRequest request = new ListServiceConnectionTokensRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> response = crossNetworkAutomationServiceClient.ListServiceConnectionTokensAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionToken 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((ListServiceConnectionTokensResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionToken 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<ServiceConnectionToken> 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 (ServiceConnectionToken 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;
ListServiceConnectionTokensAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> ListServiceConnectionTokensAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists ServiceConnectionTokens in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource's name. ex. projects/123/locations/us-east1 |
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 |
PagedAsyncEnumerableListServiceConnectionTokensResponseServiceConnectionToken |
A pageable asynchronous sequence of ServiceConnectionToken resources. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServiceConnectionTokensResponse, ServiceConnectionToken> response = crossNetworkAutomationServiceClient.ListServiceConnectionTokensAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceConnectionToken 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((ListServiceConnectionTokensResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ServiceConnectionToken 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<ServiceConnectionToken> 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 (ServiceConnectionToken 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;
PollOnceCreateServiceConnectionMap(string, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> PollOnceCreateServiceConnectionMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateServiceConnectionMap
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionMapOperationMetadata |
The result of polling the operation. |
PollOnceCreateServiceConnectionMapAsync(string, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> PollOnceCreateServiceConnectionMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateServiceConnectionMap
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateServiceConnectionPolicy(string, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> PollOnceCreateServiceConnectionPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateServiceConnectionPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionPolicyOperationMetadata |
The result of polling the operation. |
PollOnceCreateServiceConnectionPolicyAsync(string, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> PollOnceCreateServiceConnectionPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateServiceConnectionPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateServiceConnectionToken(string, CallSettings)
public virtual Operation<ServiceConnectionToken, OperationMetadata> PollOnceCreateServiceConnectionToken(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateServiceConnectionToken
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionTokenOperationMetadata |
The result of polling the operation. |
PollOnceCreateServiceConnectionTokenAsync(string, CallSettings)
public virtual Task<Operation<ServiceConnectionToken, OperationMetadata>> PollOnceCreateServiceConnectionTokenAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateServiceConnectionToken
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionTokenOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteServiceClass(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteServiceClass(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteServiceClass
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteServiceClassAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteServiceClassAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteServiceClass
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteServiceConnectionMap(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteServiceConnectionMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteServiceConnectionMap
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteServiceConnectionMapAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteServiceConnectionMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteServiceConnectionMap
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteServiceConnectionPolicy(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteServiceConnectionPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteServiceConnectionPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteServiceConnectionPolicyAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteServiceConnectionPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteServiceConnectionPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteServiceConnectionToken(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteServiceConnectionToken(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteServiceConnectionToken
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteServiceConnectionTokenAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteServiceConnectionTokenAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteServiceConnectionToken
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateServiceClass(string, CallSettings)
public virtual Operation<ServiceClass, OperationMetadata> PollOnceUpdateServiceClass(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateServiceClass
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceClassOperationMetadata |
The result of polling the operation. |
PollOnceUpdateServiceClassAsync(string, CallSettings)
public virtual Task<Operation<ServiceClass, OperationMetadata>> PollOnceUpdateServiceClassAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateServiceClass
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceClassOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateServiceConnectionMap(string, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> PollOnceUpdateServiceConnectionMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateServiceConnectionMap
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionMapOperationMetadata |
The result of polling the operation. |
PollOnceUpdateServiceConnectionMapAsync(string, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> PollOnceUpdateServiceConnectionMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateServiceConnectionMap
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateServiceConnectionPolicy(string, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> PollOnceUpdateServiceConnectionPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateServiceConnectionPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionPolicyOperationMetadata |
The result of polling the operation. |
PollOnceUpdateServiceConnectionPolicyAsync(string, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> PollOnceUpdateServiceConnectionPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateServiceConnectionPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateServiceClass(ServiceClass, FieldMask, CallSettings)
public virtual Operation<ServiceClass, OperationMetadata> UpdateServiceClass(ServiceClass serviceClass, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
serviceClass |
ServiceClass Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceClass resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceClassOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceClass serviceClass = new ServiceClass();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceClass, OperationMetadata> response = crossNetworkAutomationServiceClient.UpdateServiceClass(serviceClass, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceClass, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceClass result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceClass, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceUpdateServiceClass(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceClass retrievedResult = retrievedResponse.Result;
}
UpdateServiceClass(UpdateServiceClassRequest, CallSettings)
public virtual Operation<ServiceClass, OperationMetadata> UpdateServiceClass(UpdateServiceClassRequest request, CallSettings callSettings = null)
Updates the parameters of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceClassRequest 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 |
OperationServiceClassOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
UpdateServiceClassRequest request = new UpdateServiceClassRequest
{
UpdateMask = new FieldMask(),
ServiceClass = new ServiceClass(),
RequestId = "",
};
// Make the request
Operation<ServiceClass, OperationMetadata> response = crossNetworkAutomationServiceClient.UpdateServiceClass(request);
// Poll until the returned long-running operation is complete
Operation<ServiceClass, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceClass result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceClass, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceUpdateServiceClass(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceClass retrievedResult = retrievedResponse.Result;
}
UpdateServiceClassAsync(ServiceClass, FieldMask, CallSettings)
public virtual Task<Operation<ServiceClass, OperationMetadata>> UpdateServiceClassAsync(ServiceClass serviceClass, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
serviceClass |
ServiceClass Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceClass resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceClassOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceClass serviceClass = new ServiceClass();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceClass, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceClassAsync(serviceClass, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceClass, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceClass result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceClass, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceClass retrievedResult = retrievedResponse.Result;
}
UpdateServiceClassAsync(ServiceClass, FieldMask, CancellationToken)
public virtual Task<Operation<ServiceClass, OperationMetadata>> UpdateServiceClassAsync(ServiceClass serviceClass, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
serviceClass |
ServiceClass Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceClass resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceClassOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceClass serviceClass = new ServiceClass();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceClass, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceClassAsync(serviceClass, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceClass, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceClass result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceClass, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceClass retrievedResult = retrievedResponse.Result;
}
UpdateServiceClassAsync(UpdateServiceClassRequest, CallSettings)
public virtual Task<Operation<ServiceClass, OperationMetadata>> UpdateServiceClassAsync(UpdateServiceClassRequest request, CallSettings callSettings = null)
Updates the parameters of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceClassRequest 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 |
TaskOperationServiceClassOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceClassRequest request = new UpdateServiceClassRequest
{
UpdateMask = new FieldMask(),
ServiceClass = new ServiceClass(),
RequestId = "",
};
// Make the request
Operation<ServiceClass, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceClassAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceClass, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceClass result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceClass, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceClass retrievedResult = retrievedResponse.Result;
}
UpdateServiceClassAsync(UpdateServiceClassRequest, CancellationToken)
public virtual Task<Operation<ServiceClass, OperationMetadata>> UpdateServiceClassAsync(UpdateServiceClassRequest request, CancellationToken cancellationToken)
Updates the parameters of a single ServiceClass.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceClassRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceClassOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceClassRequest request = new UpdateServiceClassRequest
{
UpdateMask = new FieldMask(),
ServiceClass = new ServiceClass(),
RequestId = "",
};
// Make the request
Operation<ServiceClass, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceClassAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceClass, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceClass result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceClass, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceClassAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceClass retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionMap(ServiceConnectionMap, FieldMask, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> UpdateServiceConnectionMap(ServiceConnectionMap serviceConnectionMap, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
serviceConnectionMap |
ServiceConnectionMap Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionMap resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionMapOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = crossNetworkAutomationServiceClient.UpdateServiceConnectionMap(serviceConnectionMap, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionMap(UpdateServiceConnectionMapRequest, CallSettings)
public virtual Operation<ServiceConnectionMap, OperationMetadata> UpdateServiceConnectionMap(UpdateServiceConnectionMapRequest request, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceConnectionMapRequest 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 |
OperationServiceConnectionMapOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
UpdateServiceConnectionMapRequest request = new UpdateServiceConnectionMapRequest
{
UpdateMask = new FieldMask(),
ServiceConnectionMap = new ServiceConnectionMap(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = crossNetworkAutomationServiceClient.UpdateServiceConnectionMap(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionMapAsync(ServiceConnectionMap, FieldMask, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> UpdateServiceConnectionMapAsync(ServiceConnectionMap serviceConnectionMap, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
serviceConnectionMap |
ServiceConnectionMap Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionMap resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionMapAsync(serviceConnectionMap, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionMapAsync(ServiceConnectionMap, FieldMask, CancellationToken)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> UpdateServiceConnectionMapAsync(ServiceConnectionMap serviceConnectionMap, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
serviceConnectionMap |
ServiceConnectionMap Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionMap resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionMap serviceConnectionMap = new ServiceConnectionMap();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionMapAsync(serviceConnectionMap, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionMapAsync(UpdateServiceConnectionMapRequest, CallSettings)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> UpdateServiceConnectionMapAsync(UpdateServiceConnectionMapRequest request, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceConnectionMapRequest 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 |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceConnectionMapRequest request = new UpdateServiceConnectionMapRequest
{
UpdateMask = new FieldMask(),
ServiceConnectionMap = new ServiceConnectionMap(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionMapAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionMapAsync(UpdateServiceConnectionMapRequest, CancellationToken)
public virtual Task<Operation<ServiceConnectionMap, OperationMetadata>> UpdateServiceConnectionMapAsync(UpdateServiceConnectionMapRequest request, CancellationToken cancellationToken)
Updates the parameters of a single ServiceConnectionMap.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceConnectionMapRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionMapOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceConnectionMapRequest request = new UpdateServiceConnectionMapRequest
{
UpdateMask = new FieldMask(),
ServiceConnectionMap = new ServiceConnectionMap(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionMap, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionMapAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionMap, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionMap result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionMap, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionMap retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionPolicy(ServiceConnectionPolicy, FieldMask, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> UpdateServiceConnectionPolicy(ServiceConnectionPolicy serviceConnectionPolicy, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationServiceConnectionPolicyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = crossNetworkAutomationServiceClient.UpdateServiceConnectionPolicy(serviceConnectionPolicy, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionPolicy(UpdateServiceConnectionPolicyRequest, CallSettings)
public virtual Operation<ServiceConnectionPolicy, OperationMetadata> UpdateServiceConnectionPolicy(UpdateServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceConnectionPolicyRequest 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 |
OperationServiceConnectionPolicyOperationMetadata |
The RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = CrossNetworkAutomationServiceClient.Create();
// Initialize request argument(s)
UpdateServiceConnectionPolicyRequest request = new UpdateServiceConnectionPolicyRequest
{
UpdateMask = new FieldMask(),
ServiceConnectionPolicy = new ServiceConnectionPolicy(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = crossNetworkAutomationServiceClient.UpdateServiceConnectionPolicy(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionPolicyAsync(ServiceConnectionPolicy, FieldMask, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> UpdateServiceConnectionPolicyAsync(ServiceConnectionPolicy serviceConnectionPolicy, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionPolicyAsync(serviceConnectionPolicy, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionPolicyAsync(ServiceConnectionPolicy, FieldMask, CancellationToken)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> UpdateServiceConnectionPolicyAsync(ServiceConnectionPolicy serviceConnectionPolicy, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
serviceConnectionPolicy |
ServiceConnectionPolicy Required. New values to be patched into the resource. |
updateMask |
FieldMask Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceConnectionPolicy serviceConnectionPolicy = new ServiceConnectionPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionPolicyAsync(serviceConnectionPolicy, updateMask);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionPolicyAsync(UpdateServiceConnectionPolicyRequest, CallSettings)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> UpdateServiceConnectionPolicyAsync(UpdateServiceConnectionPolicyRequest request, CallSettings callSettings = null)
Updates the parameters of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceConnectionPolicyRequest 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 |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceConnectionPolicyRequest request = new UpdateServiceConnectionPolicyRequest
{
UpdateMask = new FieldMask(),
ServiceConnectionPolicy = new ServiceConnectionPolicy(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}
UpdateServiceConnectionPolicyAsync(UpdateServiceConnectionPolicyRequest, CancellationToken)
public virtual Task<Operation<ServiceConnectionPolicy, OperationMetadata>> UpdateServiceConnectionPolicyAsync(UpdateServiceConnectionPolicyRequest request, CancellationToken cancellationToken)
Updates the parameters of a single ServiceConnectionPolicy.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceConnectionPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationServiceConnectionPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
CrossNetworkAutomationServiceClient crossNetworkAutomationServiceClient = await CrossNetworkAutomationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceConnectionPolicyRequest request = new UpdateServiceConnectionPolicyRequest
{
UpdateMask = new FieldMask(),
ServiceConnectionPolicy = new ServiceConnectionPolicy(),
RequestId = "",
};
// Make the request
Operation<ServiceConnectionPolicy, OperationMetadata> response = await crossNetworkAutomationServiceClient.UpdateServiceConnectionPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<ServiceConnectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServiceConnectionPolicy result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServiceConnectionPolicy, OperationMetadata> retrievedResponse = await crossNetworkAutomationServiceClient.PollOnceUpdateServiceConnectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ServiceConnectionPolicy retrievedResult = retrievedResponse.Result;
}