public abstract class ConfigClientReference documentation and code samples for the Infrastructure Manager v1 API class ConfigClient.
Config client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Config.V1Assembly
Google.Cloud.Config.V1.dll
Remarks
Infrastructure Manager is a managed service that automates the deployment and management of Google Cloud infrastructure resources.
Properties
CreateDeploymentOperationsClient
public virtual OperationsClient CreateDeploymentOperationsClient { get; }The long-running operations client for CreateDeployment.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreatePreviewOperationsClient
public virtual OperationsClient CreatePreviewOperationsClient { get; }The long-running operations client for CreatePreview.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the Config service, which is a host of "config.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default Config scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default Config scopes are:
DeleteDeploymentOperationsClient
public virtual OperationsClient DeleteDeploymentOperationsClient { get; }The long-running operations client for DeleteDeployment.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeletePreviewOperationsClient
public virtual OperationsClient DeletePreviewOperationsClient { get; }The long-running operations client for DeletePreview.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual Config.ConfigClient GrpcClient { get; }The underlying gRPC Config client
| Property Value | |
|---|---|
| Type | Description |
ConfigConfigClient |
|
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 |
|
LockDeploymentOperationsClient
public virtual OperationsClient LockDeploymentOperationsClient { get; }The long-running operations client for LockDeployment.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
UnlockDeploymentOperationsClient
public virtual OperationsClient UnlockDeploymentOperationsClient { get; }The long-running operations client for UnlockDeployment.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateDeploymentOperationsClient
public virtual OperationsClient UpdateDeploymentOperationsClient { get; }The long-running operations client for UpdateDeployment.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
Create()
public static ConfigClient Create()Synchronously creates a ConfigClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConfigClientBuilder.
| Returns | |
|---|---|
| Type | Description |
ConfigClient |
The created ConfigClient. |
CreateAsync(CancellationToken)
public static Task<ConfigClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a ConfigClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConfigClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskConfigClient |
The task representing the created ConfigClient. |
CreateDeployment(LocationName, Deployment, string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> CreateDeployment(LocationName parent, Deployment deployment, string deploymentId, CallSettings callSettings = null)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] resource to be created. |
deploymentId |
stringRequired. The Deployment ID. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Deployment deployment = new Deployment();
string deploymentId = "";
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.CreateDeployment(parent, deployment, deploymentId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceCreateDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeployment(CreateDeploymentRequest, CallSettings)
public virtual Operation<Deployment, OperationMetadata> CreateDeployment(CreateDeploymentRequest request, CallSettings callSettings = null)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
CreateDeploymentRequest request = new CreateDeploymentRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DeploymentId = "",
Deployment = new Deployment(),
RequestId = "",
};
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.CreateDeployment(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceCreateDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeployment(string, Deployment, string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> CreateDeployment(string parent, Deployment deployment, string deploymentId, CallSettings callSettings = null)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] resource to be created. |
deploymentId |
stringRequired. The Deployment ID. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Deployment deployment = new Deployment();
string deploymentId = "";
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.CreateDeployment(parent, deployment, deploymentId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceCreateDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeploymentAsync(LocationName, Deployment, string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> CreateDeploymentAsync(LocationName parent, Deployment deployment, string deploymentId, CallSettings callSettings = null)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] resource to be created. |
deploymentId |
stringRequired. The Deployment ID. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Deployment deployment = new Deployment();
string deploymentId = "";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.CreateDeploymentAsync(parent, deployment, deploymentId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceCreateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeploymentAsync(LocationName, Deployment, string, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> CreateDeploymentAsync(LocationName parent, Deployment deployment, string deploymentId, CancellationToken cancellationToken)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] resource to be created. |
deploymentId |
stringRequired. The Deployment ID. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Deployment deployment = new Deployment();
string deploymentId = "";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.CreateDeploymentAsync(parent, deployment, deploymentId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceCreateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeploymentAsync(CreateDeploymentRequest, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> CreateDeploymentAsync(CreateDeploymentRequest request, CallSettings callSettings = null)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
CreateDeploymentRequest request = new CreateDeploymentRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DeploymentId = "",
Deployment = new Deployment(),
RequestId = "",
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.CreateDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceCreateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeploymentAsync(CreateDeploymentRequest, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> CreateDeploymentAsync(CreateDeploymentRequest request, CancellationToken cancellationToken)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeploymentRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
CreateDeploymentRequest request = new CreateDeploymentRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DeploymentId = "",
Deployment = new Deployment(),
RequestId = "",
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.CreateDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceCreateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeploymentAsync(string, Deployment, string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> CreateDeploymentAsync(string parent, Deployment deployment, string deploymentId, CallSettings callSettings = null)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] resource to be created. |
deploymentId |
stringRequired. The Deployment ID. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Deployment deployment = new Deployment();
string deploymentId = "";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.CreateDeploymentAsync(parent, deployment, deploymentId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceCreateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreateDeploymentAsync(string, Deployment, string, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> CreateDeploymentAsync(string parent, Deployment deployment, string deploymentId, CancellationToken cancellationToken)Creates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] resource to be created. |
deploymentId |
stringRequired. The Deployment ID. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Deployment deployment = new Deployment();
string deploymentId = "";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.CreateDeploymentAsync(parent, deployment, deploymentId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceCreateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
CreatePreview(LocationName, Preview, CallSettings)
public virtual Operation<Preview, OperationMetadata> CreatePreview(LocationName parent, Preview preview, CallSettings callSettings = null)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
preview |
PreviewRequired. [Preview][google.cloud.config.v1.Preview] resource to be created. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Preview preview = new Preview();
// Make the request
Operation<Preview, OperationMetadata> response = configClient.CreatePreview(parent, preview);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = configClient.PollOnceCreatePreview(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreview(CreatePreviewRequest, CallSettings)
public virtual Operation<Preview, OperationMetadata> CreatePreview(CreatePreviewRequest request, CallSettings callSettings = null)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
CreatePreviewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
CreatePreviewRequest request = new CreatePreviewRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PreviewId = "",
Preview = new Preview(),
RequestId = "",
};
// Make the request
Operation<Preview, OperationMetadata> response = configClient.CreatePreview(request);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = configClient.PollOnceCreatePreview(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreview(string, Preview, CallSettings)
public virtual Operation<Preview, OperationMetadata> CreatePreview(string parent, Preview preview, CallSettings callSettings = null)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
preview |
PreviewRequired. [Preview][google.cloud.config.v1.Preview] resource to be created. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Preview preview = new Preview();
// Make the request
Operation<Preview, OperationMetadata> response = configClient.CreatePreview(parent, preview);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = configClient.PollOnceCreatePreview(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreviewAsync(LocationName, Preview, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> CreatePreviewAsync(LocationName parent, Preview preview, CallSettings callSettings = null)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
preview |
PreviewRequired. [Preview][google.cloud.config.v1.Preview] resource to be created. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Preview preview = new Preview();
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.CreatePreviewAsync(parent, preview);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceCreatePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreviewAsync(LocationName, Preview, CancellationToken)
public virtual Task<Operation<Preview, OperationMetadata>> CreatePreviewAsync(LocationName parent, Preview preview, CancellationToken cancellationToken)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
preview |
PreviewRequired. [Preview][google.cloud.config.v1.Preview] resource to be created. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Preview preview = new Preview();
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.CreatePreviewAsync(parent, preview);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceCreatePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreviewAsync(CreatePreviewRequest, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> CreatePreviewAsync(CreatePreviewRequest request, CallSettings callSettings = null)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
CreatePreviewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
CreatePreviewRequest request = new CreatePreviewRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PreviewId = "",
Preview = new Preview(),
RequestId = "",
};
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.CreatePreviewAsync(request);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceCreatePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreviewAsync(CreatePreviewRequest, CancellationToken)
public virtual Task<Operation<Preview, OperationMetadata>> CreatePreviewAsync(CreatePreviewRequest request, CancellationToken cancellationToken)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
CreatePreviewRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
CreatePreviewRequest request = new CreatePreviewRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PreviewId = "",
Preview = new Preview(),
RequestId = "",
};
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.CreatePreviewAsync(request);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceCreatePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreviewAsync(string, Preview, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> CreatePreviewAsync(string parent, Preview preview, CallSettings callSettings = null)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
preview |
PreviewRequired. [Preview][google.cloud.config.v1.Preview] resource to be created. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Preview preview = new Preview();
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.CreatePreviewAsync(parent, preview);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceCreatePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
CreatePreviewAsync(string, Preview, CancellationToken)
public virtual Task<Operation<Preview, OperationMetadata>> CreatePreviewAsync(string parent, Preview preview, CancellationToken cancellationToken)Creates a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
preview |
PreviewRequired. [Preview][google.cloud.config.v1.Preview] resource to be created. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Preview preview = new Preview();
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.CreatePreviewAsync(parent, preview);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceCreatePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeleteDeployment(DeleteDeploymentRequest, CallSettings)
public virtual Operation<Deployment, OperationMetadata> DeleteDeployment(DeleteDeploymentRequest request, CallSettings callSettings = null)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeleteDeploymentRequest request = new DeleteDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
RequestId = "",
Force = false,
DeletePolicy = DeleteDeploymentRequest.Types.DeletePolicy.Unspecified,
};
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.DeleteDeployment(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceDeleteDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeployment(DeploymentName, CallSettings)
public virtual Operation<Deployment, OperationMetadata> DeleteDeployment(DeploymentName name, CallSettings callSettings = null)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.DeleteDeployment(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceDeleteDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> DeleteDeployment(string name, CallSettings callSettings = null)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.DeleteDeployment(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceDeleteDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentAsync(DeleteDeploymentRequest, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> DeleteDeploymentAsync(DeleteDeploymentRequest request, CallSettings callSettings = null)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeleteDeploymentRequest request = new DeleteDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
RequestId = "",
Force = false,
DeletePolicy = DeleteDeploymentRequest.Types.DeletePolicy.Unspecified,
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.DeleteDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceDeleteDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentAsync(DeleteDeploymentRequest, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> DeleteDeploymentAsync(DeleteDeploymentRequest request, CancellationToken cancellationToken)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeploymentRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeleteDeploymentRequest request = new DeleteDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
RequestId = "",
Force = false,
DeletePolicy = DeleteDeploymentRequest.Types.DeletePolicy.Unspecified,
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.DeleteDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceDeleteDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentAsync(DeploymentName, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> DeleteDeploymentAsync(DeploymentName name, CallSettings callSettings = null)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.DeleteDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceDeleteDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentAsync(DeploymentName, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> DeleteDeploymentAsync(DeploymentName name, CancellationToken cancellationToken)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.DeleteDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceDeleteDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> DeleteDeploymentAsync(string name, CallSettings callSettings = null)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.DeleteDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceDeleteDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentAsync(string, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> DeleteDeploymentAsync(string name, CancellationToken cancellationToken)Deletes a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.DeleteDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceDeleteDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
DeletePreview(DeletePreviewRequest, CallSettings)
public virtual Operation<Preview, OperationMetadata> DeletePreview(DeletePreviewRequest request, CallSettings callSettings = null)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
DeletePreviewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeletePreviewRequest request = new DeletePreviewRequest
{
PreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
RequestId = "",
};
// Make the request
Operation<Preview, OperationMetadata> response = configClient.DeletePreview(request);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = configClient.PollOnceDeletePreview(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreview(PreviewName, CallSettings)
public virtual Operation<Preview, OperationMetadata> DeletePreview(PreviewName name, CallSettings callSettings = null)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
PreviewNameRequired. The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
PreviewName name = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
Operation<Preview, OperationMetadata> response = configClient.DeletePreview(name);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = configClient.PollOnceDeletePreview(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreview(string, CallSettings)
public virtual Operation<Preview, OperationMetadata> DeletePreview(string name, CallSettings callSettings = null)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
Operation<Preview, OperationMetadata> response = configClient.DeletePreview(name);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = configClient.PollOnceDeletePreview(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreviewAsync(DeletePreviewRequest, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> DeletePreviewAsync(DeletePreviewRequest request, CallSettings callSettings = null)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
DeletePreviewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeletePreviewRequest request = new DeletePreviewRequest
{
PreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
RequestId = "",
};
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.DeletePreviewAsync(request);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceDeletePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreviewAsync(DeletePreviewRequest, CancellationToken)
public virtual Task<Operation<Preview, OperationMetadata>> DeletePreviewAsync(DeletePreviewRequest request, CancellationToken cancellationToken)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
DeletePreviewRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeletePreviewRequest request = new DeletePreviewRequest
{
PreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
RequestId = "",
};
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.DeletePreviewAsync(request);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceDeletePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreviewAsync(PreviewName, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> DeletePreviewAsync(PreviewName name, CallSettings callSettings = null)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
PreviewNameRequired. The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
PreviewName name = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.DeletePreviewAsync(name);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceDeletePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreviewAsync(PreviewName, CancellationToken)
public virtual Task<Operation<Preview, OperationMetadata>> DeletePreviewAsync(PreviewName name, CancellationToken cancellationToken)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
PreviewNameRequired. The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
PreviewName name = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.DeletePreviewAsync(name);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceDeletePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreviewAsync(string, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> DeletePreviewAsync(string name, CallSettings callSettings = null)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.DeletePreviewAsync(name);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceDeletePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeletePreviewAsync(string, CancellationToken)
public virtual Task<Operation<Preview, OperationMetadata>> DeletePreviewAsync(string name, CancellationToken cancellationToken)Deletes a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
Operation<Preview, OperationMetadata> response = await configClient.DeletePreviewAsync(name);
// Poll until the returned long-running operation is complete
Operation<Preview, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Preview 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<Preview, OperationMetadata> retrievedResponse = await configClient.PollOnceDeletePreviewAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Preview retrievedResult = retrievedResponse.Result;
}
DeleteStatefile(DeleteStatefileRequest, CallSettings)
public virtual void DeleteStatefile(DeleteStatefileRequest request, CallSettings callSettings = null)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeleteStatefileRequest request = new DeleteStatefileRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
};
// Make the request
configClient.DeleteStatefile(request);
DeleteStatefile(DeploymentName, CallSettings)
public virtual void DeleteStatefile(DeploymentName name, CallSettings callSettings = null)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
configClient.DeleteStatefile(name);
DeleteStatefile(string, CallSettings)
public virtual void DeleteStatefile(string name, CallSettings callSettings = null)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
configClient.DeleteStatefile(name);
DeleteStatefileAsync(DeleteStatefileRequest, CallSettings)
public virtual Task DeleteStatefileAsync(DeleteStatefileRequest request, CallSettings callSettings = null)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeleteStatefileRequest request = new DeleteStatefileRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
};
// Make the request
await configClient.DeleteStatefileAsync(request);
DeleteStatefileAsync(DeleteStatefileRequest, CancellationToken)
public virtual Task DeleteStatefileAsync(DeleteStatefileRequest request, CancellationToken cancellationToken)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteStatefileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeleteStatefileRequest request = new DeleteStatefileRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
};
// Make the request
await configClient.DeleteStatefileAsync(request);
DeleteStatefileAsync(DeploymentName, CallSettings)
public virtual Task DeleteStatefileAsync(DeploymentName name, CallSettings callSettings = null)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
await configClient.DeleteStatefileAsync(name);
DeleteStatefileAsync(DeploymentName, CancellationToken)
public virtual Task DeleteStatefileAsync(DeploymentName name, CancellationToken cancellationToken)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
await configClient.DeleteStatefileAsync(name);
DeleteStatefileAsync(string, CallSettings)
public virtual Task DeleteStatefileAsync(string name, CallSettings callSettings = null)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
await configClient.DeleteStatefileAsync(name);
DeleteStatefileAsync(string, CancellationToken)
public virtual Task DeleteStatefileAsync(string name, CancellationToken cancellationToken)Deletes Terraform state file in a given deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
await configClient.DeleteStatefileAsync(name);
ExportDeploymentStatefile(ExportDeploymentStatefileRequest, CallSettings)
public virtual Statefile ExportDeploymentStatefile(ExportDeploymentStatefileRequest request, CallSettings callSettings = null)Exports Terraform state file from a given deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportDeploymentStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Statefile |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ExportDeploymentStatefileRequest request = new ExportDeploymentStatefileRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
Draft = false,
};
// Make the request
Statefile response = configClient.ExportDeploymentStatefile(request);
ExportDeploymentStatefileAsync(ExportDeploymentStatefileRequest, CallSettings)
public virtual Task<Statefile> ExportDeploymentStatefileAsync(ExportDeploymentStatefileRequest request, CallSettings callSettings = null)Exports Terraform state file from a given deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportDeploymentStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportDeploymentStatefileRequest request = new ExportDeploymentStatefileRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
Draft = false,
};
// Make the request
Statefile response = await configClient.ExportDeploymentStatefileAsync(request);
ExportDeploymentStatefileAsync(ExportDeploymentStatefileRequest, CancellationToken)
public virtual Task<Statefile> ExportDeploymentStatefileAsync(ExportDeploymentStatefileRequest request, CancellationToken cancellationToken)Exports Terraform state file from a given deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportDeploymentStatefileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportDeploymentStatefileRequest request = new ExportDeploymentStatefileRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
Draft = false,
};
// Make the request
Statefile response = await configClient.ExportDeploymentStatefileAsync(request);
ExportLockInfo(DeploymentName, CallSettings)
public virtual LockInfo ExportLockInfo(DeploymentName name, CallSettings callSettings = null)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LockInfo |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
LockInfo response = configClient.ExportLockInfo(name);
ExportLockInfo(ExportLockInfoRequest, CallSettings)
public virtual LockInfo ExportLockInfo(ExportLockInfoRequest request, CallSettings callSettings = null)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportLockInfoRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LockInfo |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ExportLockInfoRequest request = new ExportLockInfoRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
LockInfo response = configClient.ExportLockInfo(request);
ExportLockInfo(string, CallSettings)
public virtual LockInfo ExportLockInfo(string name, CallSettings callSettings = null)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LockInfo |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
LockInfo response = configClient.ExportLockInfo(name);
ExportLockInfoAsync(DeploymentName, CallSettings)
public virtual Task<LockInfo> ExportLockInfoAsync(DeploymentName name, CallSettings callSettings = null)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLockInfo |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
LockInfo response = await configClient.ExportLockInfoAsync(name);
ExportLockInfoAsync(DeploymentName, CancellationToken)
public virtual Task<LockInfo> ExportLockInfoAsync(DeploymentName name, CancellationToken cancellationToken)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLockInfo |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
LockInfo response = await configClient.ExportLockInfoAsync(name);
ExportLockInfoAsync(ExportLockInfoRequest, CallSettings)
public virtual Task<LockInfo> ExportLockInfoAsync(ExportLockInfoRequest request, CallSettings callSettings = null)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportLockInfoRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLockInfo |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportLockInfoRequest request = new ExportLockInfoRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
LockInfo response = await configClient.ExportLockInfoAsync(request);
ExportLockInfoAsync(ExportLockInfoRequest, CancellationToken)
public virtual Task<LockInfo> ExportLockInfoAsync(ExportLockInfoRequest request, CancellationToken cancellationToken)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportLockInfoRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLockInfo |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportLockInfoRequest request = new ExportLockInfoRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
LockInfo response = await configClient.ExportLockInfoAsync(request);
ExportLockInfoAsync(string, CallSettings)
public virtual Task<LockInfo> ExportLockInfoAsync(string name, CallSettings callSettings = null)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLockInfo |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
LockInfo response = await configClient.ExportLockInfoAsync(name);
ExportLockInfoAsync(string, CancellationToken)
public virtual Task<LockInfo> ExportLockInfoAsync(string name, CancellationToken cancellationToken)Exports the lock info on a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLockInfo |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
LockInfo response = await configClient.ExportLockInfoAsync(name);
ExportPreviewResult(ExportPreviewResultRequest, CallSettings)
public virtual ExportPreviewResultResponse ExportPreviewResult(ExportPreviewResultRequest request, CallSettings callSettings = null)Export [Preview][google.cloud.config.v1.Preview] results.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportPreviewResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ExportPreviewResultResponse |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ExportPreviewResultRequest request = new ExportPreviewResultRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
};
// Make the request
ExportPreviewResultResponse response = configClient.ExportPreviewResult(request);
ExportPreviewResultAsync(ExportPreviewResultRequest, CallSettings)
public virtual Task<ExportPreviewResultResponse> ExportPreviewResultAsync(ExportPreviewResultRequest request, CallSettings callSettings = null)Export [Preview][google.cloud.config.v1.Preview] results.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportPreviewResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskExportPreviewResultResponse |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportPreviewResultRequest request = new ExportPreviewResultRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
};
// Make the request
ExportPreviewResultResponse response = await configClient.ExportPreviewResultAsync(request);
ExportPreviewResultAsync(ExportPreviewResultRequest, CancellationToken)
public virtual Task<ExportPreviewResultResponse> ExportPreviewResultAsync(ExportPreviewResultRequest request, CancellationToken cancellationToken)Export [Preview][google.cloud.config.v1.Preview] results.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportPreviewResultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskExportPreviewResultResponse |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportPreviewResultRequest request = new ExportPreviewResultRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
};
// Make the request
ExportPreviewResultResponse response = await configClient.ExportPreviewResultAsync(request);
ExportRevisionStatefile(ExportRevisionStatefileRequest, CallSettings)
public virtual Statefile ExportRevisionStatefile(ExportRevisionStatefileRequest request, CallSettings callSettings = null)Exports Terraform state file from a given revision.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportRevisionStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Statefile |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ExportRevisionStatefileRequest request = new ExportRevisionStatefileRequest
{
ParentAsRevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
};
// Make the request
Statefile response = configClient.ExportRevisionStatefile(request);
ExportRevisionStatefileAsync(ExportRevisionStatefileRequest, CallSettings)
public virtual Task<Statefile> ExportRevisionStatefileAsync(ExportRevisionStatefileRequest request, CallSettings callSettings = null)Exports Terraform state file from a given revision.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportRevisionStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportRevisionStatefileRequest request = new ExportRevisionStatefileRequest
{
ParentAsRevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
};
// Make the request
Statefile response = await configClient.ExportRevisionStatefileAsync(request);
ExportRevisionStatefileAsync(ExportRevisionStatefileRequest, CancellationToken)
public virtual Task<Statefile> ExportRevisionStatefileAsync(ExportRevisionStatefileRequest request, CancellationToken cancellationToken)Exports Terraform state file from a given revision.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportRevisionStatefileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ExportRevisionStatefileRequest request = new ExportRevisionStatefileRequest
{
ParentAsRevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
};
// Make the request
Statefile response = await configClient.ExportRevisionStatefileAsync(request);
GetDeployment(DeploymentName, CallSettings)
public virtual Deployment GetDeployment(DeploymentName name, CallSettings callSettings = null)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Deployment |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Deployment response = configClient.GetDeployment(name);
GetDeployment(GetDeploymentRequest, CallSettings)
public virtual Deployment GetDeployment(GetDeploymentRequest request, CallSettings callSettings = null)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Deployment |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetDeploymentRequest request = new GetDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
Deployment response = configClient.GetDeployment(request);
GetDeployment(string, CallSettings)
public virtual Deployment GetDeployment(string name, CallSettings callSettings = null)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Deployment |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Deployment response = configClient.GetDeployment(name);
GetDeploymentAsync(DeploymentName, CallSettings)
public virtual Task<Deployment> GetDeploymentAsync(DeploymentName name, CallSettings callSettings = null)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeployment |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Deployment response = await configClient.GetDeploymentAsync(name);
GetDeploymentAsync(DeploymentName, CancellationToken)
public virtual Task<Deployment> GetDeploymentAsync(DeploymentName name, CancellationToken cancellationToken)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDeployment |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Deployment response = await configClient.GetDeploymentAsync(name);
GetDeploymentAsync(GetDeploymentRequest, CallSettings)
public virtual Task<Deployment> GetDeploymentAsync(GetDeploymentRequest request, CallSettings callSettings = null)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeployment |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetDeploymentRequest request = new GetDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
Deployment response = await configClient.GetDeploymentAsync(request);
GetDeploymentAsync(GetDeploymentRequest, CancellationToken)
public virtual Task<Deployment> GetDeploymentAsync(GetDeploymentRequest request, CancellationToken cancellationToken)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeploymentRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDeployment |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetDeploymentRequest request = new GetDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
Deployment response = await configClient.GetDeploymentAsync(request);
GetDeploymentAsync(string, CallSettings)
public virtual Task<Deployment> GetDeploymentAsync(string name, CallSettings callSettings = null)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeployment |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Deployment response = await configClient.GetDeploymentAsync(name);
GetDeploymentAsync(string, CancellationToken)
public virtual Task<Deployment> GetDeploymentAsync(string name, CancellationToken cancellationToken)Gets details about a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDeployment |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Deployment response = await configClient.GetDeploymentAsync(name);
GetPreview(GetPreviewRequest, CallSettings)
public virtual Preview GetPreview(GetPreviewRequest request, CallSettings callSettings = null)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
GetPreviewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Preview |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetPreviewRequest request = new GetPreviewRequest
{
PreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
};
// Make the request
Preview response = configClient.GetPreview(request);
GetPreview(PreviewName, CallSettings)
public virtual Preview GetPreview(PreviewName name, CallSettings callSettings = null)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
PreviewNameRequired. The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Preview |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
PreviewName name = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
Preview response = configClient.GetPreview(name);
GetPreview(string, CallSettings)
public virtual Preview GetPreview(string name, CallSettings callSettings = null)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Preview |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
Preview response = configClient.GetPreview(name);
GetPreviewAsync(GetPreviewRequest, CallSettings)
public virtual Task<Preview> GetPreviewAsync(GetPreviewRequest request, CallSettings callSettings = null)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
GetPreviewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPreview |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetPreviewRequest request = new GetPreviewRequest
{
PreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
};
// Make the request
Preview response = await configClient.GetPreviewAsync(request);
GetPreviewAsync(GetPreviewRequest, CancellationToken)
public virtual Task<Preview> GetPreviewAsync(GetPreviewRequest request, CancellationToken cancellationToken)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
request |
GetPreviewRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPreview |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetPreviewRequest request = new GetPreviewRequest
{
PreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
};
// Make the request
Preview response = await configClient.GetPreviewAsync(request);
GetPreviewAsync(PreviewName, CallSettings)
public virtual Task<Preview> GetPreviewAsync(PreviewName name, CallSettings callSettings = null)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
PreviewNameRequired. The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPreview |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
PreviewName name = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
Preview response = await configClient.GetPreviewAsync(name);
GetPreviewAsync(PreviewName, CancellationToken)
public virtual Task<Preview> GetPreviewAsync(PreviewName name, CancellationToken cancellationToken)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
PreviewNameRequired. The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPreview |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
PreviewName name = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
Preview response = await configClient.GetPreviewAsync(name);
GetPreviewAsync(string, CallSettings)
public virtual Task<Preview> GetPreviewAsync(string name, CallSettings callSettings = null)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPreview |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
Preview response = await configClient.GetPreviewAsync(name);
GetPreviewAsync(string, CancellationToken)
public virtual Task<Preview> GetPreviewAsync(string name, CancellationToken cancellationToken)Gets details about a [Preview][google.cloud.config.v1.Preview].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPreview |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
Preview response = await configClient.GetPreviewAsync(name);
GetResource(GetResourceRequest, CallSettings)
public virtual Resource GetResource(GetResourceRequest request, CallSettings callSettings = null)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Resource |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetResourceRequest request = new GetResourceRequest
{
ResourceName = ResourceName.FromProjectLocationDeploymentRevisionResource("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]", "[RESOURCE]"),
};
// Make the request
Resource response = configClient.GetResource(request);
GetResource(ResourceName, CallSettings)
public virtual Resource GetResource(ResourceName name, CallSettings callSettings = null)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceNameRequired. The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Resource |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ResourceName name = ResourceName.FromProjectLocationDeploymentRevisionResource("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]", "[RESOURCE]");
// Make the request
Resource response = configClient.GetResource(name);
GetResource(string, CallSettings)
public virtual Resource GetResource(string name, CallSettings callSettings = null)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Resource |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]/resources/[RESOURCE]";
// Make the request
Resource response = configClient.GetResource(name);
GetResourceAsync(GetResourceRequest, CallSettings)
public virtual Task<Resource> GetResourceAsync(GetResourceRequest request, CallSettings callSettings = null)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResource |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetResourceRequest request = new GetResourceRequest
{
ResourceName = ResourceName.FromProjectLocationDeploymentRevisionResource("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]", "[RESOURCE]"),
};
// Make the request
Resource response = await configClient.GetResourceAsync(request);
GetResourceAsync(GetResourceRequest, CancellationToken)
public virtual Task<Resource> GetResourceAsync(GetResourceRequest request, CancellationToken cancellationToken)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResource |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetResourceRequest request = new GetResourceRequest
{
ResourceName = ResourceName.FromProjectLocationDeploymentRevisionResource("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]", "[RESOURCE]"),
};
// Make the request
Resource response = await configClient.GetResourceAsync(request);
GetResourceAsync(ResourceName, CallSettings)
public virtual Task<Resource> GetResourceAsync(ResourceName name, CallSettings callSettings = null)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceNameRequired. The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResource |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ResourceName name = ResourceName.FromProjectLocationDeploymentRevisionResource("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]", "[RESOURCE]");
// Make the request
Resource response = await configClient.GetResourceAsync(name);
GetResourceAsync(ResourceName, CancellationToken)
public virtual Task<Resource> GetResourceAsync(ResourceName name, CancellationToken cancellationToken)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceNameRequired. The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResource |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ResourceName name = ResourceName.FromProjectLocationDeploymentRevisionResource("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]", "[RESOURCE]");
// Make the request
Resource response = await configClient.GetResourceAsync(name);
GetResourceAsync(string, CallSettings)
public virtual Task<Resource> GetResourceAsync(string name, CallSettings callSettings = null)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResource |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]/resources/[RESOURCE]";
// Make the request
Resource response = await configClient.GetResourceAsync(name);
GetResourceAsync(string, CancellationToken)
public virtual Task<Resource> GetResourceAsync(string name, CancellationToken cancellationToken)Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResource |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]/resources/[RESOURCE]";
// Make the request
Resource response = await configClient.GetResourceAsync(name);
GetResourceChange(GetResourceChangeRequest, CallSettings)
public virtual ResourceChange GetResourceChange(GetResourceChangeRequest request, CallSettings callSettings = null)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceChangeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResourceChange |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetResourceChangeRequest request = new GetResourceChangeRequest
{
ResourceChangeName = ResourceChangeName.FromProjectLocationPreviewResourceChange("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"),
};
// Make the request
ResourceChange response = configClient.GetResourceChange(request);
GetResourceChange(ResourceChangeName, CallSettings)
public virtual ResourceChange GetResourceChange(ResourceChangeName name, CallSettings callSettings = null)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceChangeNameRequired. The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResourceChange |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ResourceChangeName name = ResourceChangeName.FromProjectLocationPreviewResourceChange("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]");
// Make the request
ResourceChange response = configClient.GetResourceChange(name);
GetResourceChange(string, CallSettings)
public virtual ResourceChange GetResourceChange(string name, CallSettings callSettings = null)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResourceChange |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]/resourceChanges/[RESOURCE_CHANGE]";
// Make the request
ResourceChange response = configClient.GetResourceChange(name);
GetResourceChangeAsync(GetResourceChangeRequest, CallSettings)
public virtual Task<ResourceChange> GetResourceChangeAsync(GetResourceChangeRequest request, CallSettings callSettings = null)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceChangeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceChange |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetResourceChangeRequest request = new GetResourceChangeRequest
{
ResourceChangeName = ResourceChangeName.FromProjectLocationPreviewResourceChange("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"),
};
// Make the request
ResourceChange response = await configClient.GetResourceChangeAsync(request);
GetResourceChangeAsync(GetResourceChangeRequest, CancellationToken)
public virtual Task<ResourceChange> GetResourceChangeAsync(GetResourceChangeRequest request, CancellationToken cancellationToken)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceChangeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceChange |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetResourceChangeRequest request = new GetResourceChangeRequest
{
ResourceChangeName = ResourceChangeName.FromProjectLocationPreviewResourceChange("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"),
};
// Make the request
ResourceChange response = await configClient.GetResourceChangeAsync(request);
GetResourceChangeAsync(ResourceChangeName, CallSettings)
public virtual Task<ResourceChange> GetResourceChangeAsync(ResourceChangeName name, CallSettings callSettings = null)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceChangeNameRequired. The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceChange |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ResourceChangeName name = ResourceChangeName.FromProjectLocationPreviewResourceChange("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]");
// Make the request
ResourceChange response = await configClient.GetResourceChangeAsync(name);
GetResourceChangeAsync(ResourceChangeName, CancellationToken)
public virtual Task<ResourceChange> GetResourceChangeAsync(ResourceChangeName name, CancellationToken cancellationToken)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceChangeNameRequired. The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceChange |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ResourceChangeName name = ResourceChangeName.FromProjectLocationPreviewResourceChange("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]");
// Make the request
ResourceChange response = await configClient.GetResourceChangeAsync(name);
GetResourceChangeAsync(string, CallSettings)
public virtual Task<ResourceChange> GetResourceChangeAsync(string name, CallSettings callSettings = null)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceChange |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]/resourceChanges/[RESOURCE_CHANGE]";
// Make the request
ResourceChange response = await configClient.GetResourceChangeAsync(name);
GetResourceChangeAsync(string, CancellationToken)
public virtual Task<ResourceChange> GetResourceChangeAsync(string name, CancellationToken cancellationToken)Get a ResourceChange for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceChange |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]/resourceChanges/[RESOURCE_CHANGE]";
// Make the request
ResourceChange response = await configClient.GetResourceChangeAsync(name);
GetResourceDrift(GetResourceDriftRequest, CallSettings)
public virtual ResourceDrift GetResourceDrift(GetResourceDriftRequest request, CallSettings callSettings = null)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceDriftRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResourceDrift |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetResourceDriftRequest request = new GetResourceDriftRequest
{
ResourceDriftName = ResourceDriftName.FromProjectLocationPreviewResourceDrift("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"),
};
// Make the request
ResourceDrift response = configClient.GetResourceDrift(request);
GetResourceDrift(ResourceDriftName, CallSettings)
public virtual ResourceDrift GetResourceDrift(ResourceDriftName name, CallSettings callSettings = null)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceDriftNameRequired. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResourceDrift |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ResourceDriftName name = ResourceDriftName.FromProjectLocationPreviewResourceDrift("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]");
// Make the request
ResourceDrift response = configClient.GetResourceDrift(name);
GetResourceDrift(string, CallSettings)
public virtual ResourceDrift GetResourceDrift(string name, CallSettings callSettings = null)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResourceDrift |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]/resourceDrifts/[RESOURCE_DRIFT]";
// Make the request
ResourceDrift response = configClient.GetResourceDrift(name);
GetResourceDriftAsync(GetResourceDriftRequest, CallSettings)
public virtual Task<ResourceDrift> GetResourceDriftAsync(GetResourceDriftRequest request, CallSettings callSettings = null)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceDriftRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceDrift |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetResourceDriftRequest request = new GetResourceDriftRequest
{
ResourceDriftName = ResourceDriftName.FromProjectLocationPreviewResourceDrift("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"),
};
// Make the request
ResourceDrift response = await configClient.GetResourceDriftAsync(request);
GetResourceDriftAsync(GetResourceDriftRequest, CancellationToken)
public virtual Task<ResourceDrift> GetResourceDriftAsync(GetResourceDriftRequest request, CancellationToken cancellationToken)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceDriftRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceDrift |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetResourceDriftRequest request = new GetResourceDriftRequest
{
ResourceDriftName = ResourceDriftName.FromProjectLocationPreviewResourceDrift("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"),
};
// Make the request
ResourceDrift response = await configClient.GetResourceDriftAsync(request);
GetResourceDriftAsync(ResourceDriftName, CallSettings)
public virtual Task<ResourceDrift> GetResourceDriftAsync(ResourceDriftName name, CallSettings callSettings = null)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceDriftNameRequired. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceDrift |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ResourceDriftName name = ResourceDriftName.FromProjectLocationPreviewResourceDrift("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]");
// Make the request
ResourceDrift response = await configClient.GetResourceDriftAsync(name);
GetResourceDriftAsync(ResourceDriftName, CancellationToken)
public virtual Task<ResourceDrift> GetResourceDriftAsync(ResourceDriftName name, CancellationToken cancellationToken)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
ResourceDriftNameRequired. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceDrift |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ResourceDriftName name = ResourceDriftName.FromProjectLocationPreviewResourceDrift("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]");
// Make the request
ResourceDrift response = await configClient.GetResourceDriftAsync(name);
GetResourceDriftAsync(string, CallSettings)
public virtual Task<ResourceDrift> GetResourceDriftAsync(string name, CallSettings callSettings = null)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceDrift |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]/resourceDrifts/[RESOURCE_DRIFT]";
// Make the request
ResourceDrift response = await configClient.GetResourceDriftAsync(name);
GetResourceDriftAsync(string, CancellationToken)
public virtual Task<ResourceDrift> GetResourceDriftAsync(string name, CancellationToken cancellationToken)Get a ResourceDrift for a given preview.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskResourceDrift |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]/resourceDrifts/[RESOURCE_DRIFT]";
// Make the request
ResourceDrift response = await configClient.GetResourceDriftAsync(name);
GetRevision(GetRevisionRequest, CallSettings)
public virtual Revision GetRevision(GetRevisionRequest request, CallSettings callSettings = null)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
request |
GetRevisionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Revision |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetRevisionRequest request = new GetRevisionRequest
{
RevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
};
// Make the request
Revision response = configClient.GetRevision(request);
GetRevision(RevisionName, CallSettings)
public virtual Revision GetRevision(RevisionName name, CallSettings callSettings = null)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
name |
RevisionNameRequired. The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Revision |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
RevisionName name = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]");
// Make the request
Revision response = configClient.GetRevision(name);
GetRevision(string, CallSettings)
public virtual Revision GetRevision(string name, CallSettings callSettings = null)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Revision |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]";
// Make the request
Revision response = configClient.GetRevision(name);
GetRevisionAsync(GetRevisionRequest, CallSettings)
public virtual Task<Revision> GetRevisionAsync(GetRevisionRequest request, CallSettings callSettings = null)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
request |
GetRevisionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRevision |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetRevisionRequest request = new GetRevisionRequest
{
RevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
};
// Make the request
Revision response = await configClient.GetRevisionAsync(request);
GetRevisionAsync(GetRevisionRequest, CancellationToken)
public virtual Task<Revision> GetRevisionAsync(GetRevisionRequest request, CancellationToken cancellationToken)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
request |
GetRevisionRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRevision |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetRevisionRequest request = new GetRevisionRequest
{
RevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
};
// Make the request
Revision response = await configClient.GetRevisionAsync(request);
GetRevisionAsync(RevisionName, CallSettings)
public virtual Task<Revision> GetRevisionAsync(RevisionName name, CallSettings callSettings = null)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
name |
RevisionNameRequired. The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRevision |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
RevisionName name = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]");
// Make the request
Revision response = await configClient.GetRevisionAsync(name);
GetRevisionAsync(RevisionName, CancellationToken)
public virtual Task<Revision> GetRevisionAsync(RevisionName name, CancellationToken cancellationToken)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
name |
RevisionNameRequired. The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRevision |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
RevisionName name = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]");
// Make the request
Revision response = await configClient.GetRevisionAsync(name);
GetRevisionAsync(string, CallSettings)
public virtual Task<Revision> GetRevisionAsync(string name, CallSettings callSettings = null)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRevision |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]";
// Make the request
Revision response = await configClient.GetRevisionAsync(name);
GetRevisionAsync(string, CancellationToken)
public virtual Task<Revision> GetRevisionAsync(string name, CancellationToken cancellationToken)Gets details about a [Revision][google.cloud.config.v1.Revision].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRevision |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]";
// Make the request
Revision response = await configClient.GetRevisionAsync(name);
GetTerraformVersion(GetTerraformVersionRequest, CallSettings)
public virtual TerraformVersion GetTerraformVersion(GetTerraformVersionRequest request, CallSettings callSettings = null)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
request |
GetTerraformVersionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TerraformVersion |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
GetTerraformVersionRequest request = new GetTerraformVersionRequest
{
TerraformVersionName = TerraformVersionName.FromProjectLocationTerraformVersion("[PROJECT]", "[LOCATION]", "[TERRAFORM_VERSION]"),
};
// Make the request
TerraformVersion response = configClient.GetTerraformVersion(request);
GetTerraformVersion(TerraformVersionName, CallSettings)
public virtual TerraformVersion GetTerraformVersion(TerraformVersionName name, CallSettings callSettings = null)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
name |
TerraformVersionNameRequired. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TerraformVersion |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
TerraformVersionName name = TerraformVersionName.FromProjectLocationTerraformVersion("[PROJECT]", "[LOCATION]", "[TERRAFORM_VERSION]");
// Make the request
TerraformVersion response = configClient.GetTerraformVersion(name);
GetTerraformVersion(string, CallSettings)
public virtual TerraformVersion GetTerraformVersion(string name, CallSettings callSettings = null)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TerraformVersion |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/terraformVersions/[TERRAFORM_VERSION]";
// Make the request
TerraformVersion response = configClient.GetTerraformVersion(name);
GetTerraformVersionAsync(GetTerraformVersionRequest, CallSettings)
public virtual Task<TerraformVersion> GetTerraformVersionAsync(GetTerraformVersionRequest request, CallSettings callSettings = null)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
request |
GetTerraformVersionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTerraformVersion |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetTerraformVersionRequest request = new GetTerraformVersionRequest
{
TerraformVersionName = TerraformVersionName.FromProjectLocationTerraformVersion("[PROJECT]", "[LOCATION]", "[TERRAFORM_VERSION]"),
};
// Make the request
TerraformVersion response = await configClient.GetTerraformVersionAsync(request);
GetTerraformVersionAsync(GetTerraformVersionRequest, CancellationToken)
public virtual Task<TerraformVersion> GetTerraformVersionAsync(GetTerraformVersionRequest request, CancellationToken cancellationToken)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
request |
GetTerraformVersionRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTerraformVersion |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
GetTerraformVersionRequest request = new GetTerraformVersionRequest
{
TerraformVersionName = TerraformVersionName.FromProjectLocationTerraformVersion("[PROJECT]", "[LOCATION]", "[TERRAFORM_VERSION]"),
};
// Make the request
TerraformVersion response = await configClient.GetTerraformVersionAsync(request);
GetTerraformVersionAsync(TerraformVersionName, CallSettings)
public virtual Task<TerraformVersion> GetTerraformVersionAsync(TerraformVersionName name, CallSettings callSettings = null)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
name |
TerraformVersionNameRequired. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTerraformVersion |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
TerraformVersionName name = TerraformVersionName.FromProjectLocationTerraformVersion("[PROJECT]", "[LOCATION]", "[TERRAFORM_VERSION]");
// Make the request
TerraformVersion response = await configClient.GetTerraformVersionAsync(name);
GetTerraformVersionAsync(TerraformVersionName, CancellationToken)
public virtual Task<TerraformVersion> GetTerraformVersionAsync(TerraformVersionName name, CancellationToken cancellationToken)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
name |
TerraformVersionNameRequired. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTerraformVersion |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
TerraformVersionName name = TerraformVersionName.FromProjectLocationTerraformVersion("[PROJECT]", "[LOCATION]", "[TERRAFORM_VERSION]");
// Make the request
TerraformVersion response = await configClient.GetTerraformVersionAsync(name);
GetTerraformVersionAsync(string, CallSettings)
public virtual Task<TerraformVersion> GetTerraformVersionAsync(string name, CallSettings callSettings = null)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTerraformVersion |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/terraformVersions/[TERRAFORM_VERSION]";
// Make the request
TerraformVersion response = await configClient.GetTerraformVersionAsync(name);
GetTerraformVersionAsync(string, CancellationToken)
public virtual Task<TerraformVersion> GetTerraformVersionAsync(string name, CancellationToken cancellationToken)Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTerraformVersion |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/terraformVersions/[TERRAFORM_VERSION]";
// Make the request
TerraformVersion response = await configClient.GetTerraformVersionAsync(name);
ImportStatefile(DeploymentName, long, CallSettings)
public virtual Statefile ImportStatefile(DeploymentName parent, long lockId, CallSettings callSettings = null)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
parent |
DeploymentNameRequired. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Statefile |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName parent = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
long lockId = 0L;
// Make the request
Statefile response = configClient.ImportStatefile(parent, lockId);
ImportStatefile(ImportStatefileRequest, CallSettings)
public virtual Statefile ImportStatefile(ImportStatefileRequest request, CallSettings callSettings = null)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Statefile |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ImportStatefileRequest request = new ImportStatefileRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
SkipDraft = false,
};
// Make the request
Statefile response = configClient.ImportStatefile(request);
ImportStatefile(string, long, CallSettings)
public virtual Statefile ImportStatefile(string parent, long lockId, CallSettings callSettings = null)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Statefile |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
long lockId = 0L;
// Make the request
Statefile response = configClient.ImportStatefile(parent, lockId);
ImportStatefileAsync(DeploymentName, long, CallSettings)
public virtual Task<Statefile> ImportStatefileAsync(DeploymentName parent, long lockId, CallSettings callSettings = null)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
parent |
DeploymentNameRequired. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName parent = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
long lockId = 0L;
// Make the request
Statefile response = await configClient.ImportStatefileAsync(parent, lockId);
ImportStatefileAsync(DeploymentName, long, CancellationToken)
public virtual Task<Statefile> ImportStatefileAsync(DeploymentName parent, long lockId, CancellationToken cancellationToken)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
parent |
DeploymentNameRequired. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName parent = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
long lockId = 0L;
// Make the request
Statefile response = await configClient.ImportStatefileAsync(parent, lockId);
ImportStatefileAsync(ImportStatefileRequest, CallSettings)
public virtual Task<Statefile> ImportStatefileAsync(ImportStatefileRequest request, CallSettings callSettings = null)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportStatefileRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ImportStatefileRequest request = new ImportStatefileRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
SkipDraft = false,
};
// Make the request
Statefile response = await configClient.ImportStatefileAsync(request);
ImportStatefileAsync(ImportStatefileRequest, CancellationToken)
public virtual Task<Statefile> ImportStatefileAsync(ImportStatefileRequest request, CancellationToken cancellationToken)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportStatefileRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ImportStatefileRequest request = new ImportStatefileRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
SkipDraft = false,
};
// Make the request
Statefile response = await configClient.ImportStatefileAsync(request);
ImportStatefileAsync(string, long, CallSettings)
public virtual Task<Statefile> ImportStatefileAsync(string parent, long lockId, CallSettings callSettings = null)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
long lockId = 0L;
// Make the request
Statefile response = await configClient.ImportStatefileAsync(parent, lockId);
ImportStatefileAsync(string, long, CancellationToken)
public virtual Task<Statefile> ImportStatefileAsync(string parent, long lockId, CancellationToken cancellationToken)Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStatefile |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
long lockId = 0L;
// Make the request
Statefile response = await configClient.ImportStatefileAsync(parent, lockId);
ListDeployments(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeploymentsResponse, Deployment> ListDeployments(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Deployments are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDeploymentsResponseDeployment |
A pageable sequence of Deployment resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDeploymentsResponse, Deployment> response = configClient.ListDeployments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Deployment 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 (ListDeploymentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Deployment 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<Deployment> 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 (Deployment 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;
ListDeployments(ListDeploymentsRequest, CallSettings)
public virtual PagedEnumerable<ListDeploymentsResponse, Deployment> ListDeployments(ListDeploymentsRequest request, CallSettings callSettings = null)Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeploymentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDeploymentsResponseDeployment |
A pageable sequence of Deployment resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListDeploymentsRequest request = new ListDeploymentsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListDeploymentsResponse, Deployment> response = configClient.ListDeployments(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Deployment 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 (ListDeploymentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Deployment 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<Deployment> 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 (Deployment 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;
ListDeployments(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeploymentsResponse, Deployment> ListDeployments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Deployments are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDeploymentsResponseDeployment |
A pageable sequence of Deployment resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDeploymentsResponse, Deployment> response = configClient.ListDeployments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Deployment 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 (ListDeploymentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Deployment 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<Deployment> 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 (Deployment 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;
ListDeploymentsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeploymentsResponse, Deployment> ListDeploymentsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Deployments are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDeploymentsResponseDeployment |
A pageable asynchronous sequence of Deployment resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDeploymentsResponse, Deployment> response = configClient.ListDeploymentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Deployment 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((ListDeploymentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Deployment 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<Deployment> 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 (Deployment 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;
ListDeploymentsAsync(ListDeploymentsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDeploymentsResponse, Deployment> ListDeploymentsAsync(ListDeploymentsRequest request, CallSettings callSettings = null)Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeploymentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDeploymentsResponseDeployment |
A pageable asynchronous sequence of Deployment resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListDeploymentsRequest request = new ListDeploymentsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDeploymentsResponse, Deployment> response = configClient.ListDeploymentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Deployment 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((ListDeploymentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Deployment 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<Deployment> 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 (Deployment 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;
ListDeploymentsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeploymentsResponse, Deployment> ListDeploymentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Deployments are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDeploymentsResponseDeployment |
A pageable asynchronous sequence of Deployment resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDeploymentsResponse, Deployment> response = configClient.ListDeploymentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Deployment 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((ListDeploymentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Deployment 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<Deployment> 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 (Deployment 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;
ListPreviews(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPreviewsResponse, Preview> ListPreviews(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Previews are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPreviewsResponsePreview |
A pageable sequence of Preview resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPreviewsResponse, Preview> response = configClient.ListPreviews(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Preview 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 (ListPreviewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Preview 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<Preview> 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 (Preview 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;
ListPreviews(ListPreviewsRequest, CallSettings)
public virtual PagedEnumerable<ListPreviewsResponse, Preview> ListPreviews(ListPreviewsRequest request, CallSettings callSettings = null)Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPreviewsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPreviewsResponsePreview |
A pageable sequence of Preview resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListPreviewsRequest request = new ListPreviewsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListPreviewsResponse, Preview> response = configClient.ListPreviews(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Preview 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 (ListPreviewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Preview 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<Preview> 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 (Preview 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;
ListPreviews(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPreviewsResponse, Preview> ListPreviews(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Previews are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPreviewsResponsePreview |
A pageable sequence of Preview resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPreviewsResponse, Preview> response = configClient.ListPreviews(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Preview 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 (ListPreviewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Preview 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<Preview> 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 (Preview 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;
ListPreviewsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPreviewsResponse, Preview> ListPreviewsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the Previews are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPreviewsResponsePreview |
A pageable asynchronous sequence of Preview resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPreviewsResponse, Preview> response = configClient.ListPreviewsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Preview 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((ListPreviewsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Preview 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<Preview> 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 (Preview 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;
ListPreviewsAsync(ListPreviewsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPreviewsResponse, Preview> ListPreviewsAsync(ListPreviewsRequest request, CallSettings callSettings = null)Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPreviewsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPreviewsResponsePreview |
A pageable asynchronous sequence of Preview resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListPreviewsRequest request = new ListPreviewsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListPreviewsResponse, Preview> response = configClient.ListPreviewsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Preview 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((ListPreviewsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Preview 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<Preview> 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 (Preview 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;
ListPreviewsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPreviewsResponse, Preview> ListPreviewsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Previews are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPreviewsResponsePreview |
A pageable asynchronous sequence of Preview resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPreviewsResponse, Preview> response = configClient.ListPreviewsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Preview 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((ListPreviewsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Preview 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<Preview> 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 (Preview 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;
ListResourceChanges(ListResourceChangesRequest, CallSettings)
public virtual PagedEnumerable<ListResourceChangesResponse, ResourceChange> ListResourceChanges(ListResourceChangesRequest request, CallSettings callSettings = null)Lists ResourceChanges for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceChangesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourceChangesResponseResourceChange |
A pageable sequence of ResourceChange resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListResourceChangesRequest request = new ListResourceChangesRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListResourceChangesResponse, ResourceChange> response = configClient.ListResourceChanges(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceChange 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 (ListResourceChangesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceChange 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<ResourceChange> 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 (ResourceChange 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;
ListResourceChanges(PreviewName, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourceChangesResponse, ResourceChange> ListResourceChanges(PreviewName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists ResourceChanges for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
PreviewNameRequired. The parent in whose context the ResourceChanges are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourceChangesResponseResourceChange |
A pageable sequence of ResourceChange resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
PreviewName parent = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
PagedEnumerable<ListResourceChangesResponse, ResourceChange> response = configClient.ListResourceChanges(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceChange 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 (ListResourceChangesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceChange 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<ResourceChange> 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 (ResourceChange 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;
ListResourceChanges(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourceChangesResponse, ResourceChange> ListResourceChanges(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists ResourceChanges for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the ResourceChanges are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourceChangesResponseResourceChange |
A pageable sequence of ResourceChange resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
PagedEnumerable<ListResourceChangesResponse, ResourceChange> response = configClient.ListResourceChanges(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceChange 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 (ListResourceChangesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceChange 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<ResourceChange> 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 (ResourceChange 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;
ListResourceChangesAsync(ListResourceChangesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceChangesResponse, ResourceChange> ListResourceChangesAsync(ListResourceChangesRequest request, CallSettings callSettings = null)Lists ResourceChanges for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceChangesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourceChangesResponseResourceChange |
A pageable asynchronous sequence of ResourceChange resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListResourceChangesRequest request = new ListResourceChangesRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListResourceChangesResponse, ResourceChange> response = configClient.ListResourceChangesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceChange 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((ListResourceChangesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceChange 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<ResourceChange> 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 (ResourceChange 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;
ListResourceChangesAsync(PreviewName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceChangesResponse, ResourceChange> ListResourceChangesAsync(PreviewName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists ResourceChanges for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
PreviewNameRequired. The parent in whose context the ResourceChanges are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourceChangesResponseResourceChange |
A pageable asynchronous sequence of ResourceChange resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
PreviewName parent = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
PagedAsyncEnumerable<ListResourceChangesResponse, ResourceChange> response = configClient.ListResourceChangesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceChange 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((ListResourceChangesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceChange 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<ResourceChange> 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 (ResourceChange 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;
ListResourceChangesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceChangesResponse, ResourceChange> ListResourceChangesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists ResourceChanges for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the ResourceChanges are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourceChangesResponseResourceChange |
A pageable asynchronous sequence of ResourceChange resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
PagedAsyncEnumerable<ListResourceChangesResponse, ResourceChange> response = configClient.ListResourceChangesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceChange 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((ListResourceChangesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceChange 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<ResourceChange> 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 (ResourceChange 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;
ListResourceDrifts(ListResourceDriftsRequest, CallSettings)
public virtual PagedEnumerable<ListResourceDriftsResponse, ResourceDrift> ListResourceDrifts(ListResourceDriftsRequest request, CallSettings callSettings = null)List ResourceDrifts for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceDriftsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourceDriftsResponseResourceDrift |
A pageable sequence of ResourceDrift resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListResourceDriftsRequest request = new ListResourceDriftsRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListResourceDriftsResponse, ResourceDrift> response = configClient.ListResourceDrifts(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceDrift 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 (ListResourceDriftsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceDrift 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<ResourceDrift> 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 (ResourceDrift 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;
ListResourceDrifts(PreviewName, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourceDriftsResponse, ResourceDrift> ListResourceDrifts(PreviewName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List ResourceDrifts for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
PreviewNameRequired. The parent in whose context the ResourceDrifts are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourceDriftsResponseResourceDrift |
A pageable sequence of ResourceDrift resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
PreviewName parent = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
PagedEnumerable<ListResourceDriftsResponse, ResourceDrift> response = configClient.ListResourceDrifts(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceDrift 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 (ListResourceDriftsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceDrift 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<ResourceDrift> 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 (ResourceDrift 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;
ListResourceDrifts(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourceDriftsResponse, ResourceDrift> ListResourceDrifts(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List ResourceDrifts for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the ResourceDrifts are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourceDriftsResponseResourceDrift |
A pageable sequence of ResourceDrift resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
PagedEnumerable<ListResourceDriftsResponse, ResourceDrift> response = configClient.ListResourceDrifts(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceDrift 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 (ListResourceDriftsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceDrift 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<ResourceDrift> 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 (ResourceDrift 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;
ListResourceDriftsAsync(ListResourceDriftsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceDriftsResponse, ResourceDrift> ListResourceDriftsAsync(ListResourceDriftsRequest request, CallSettings callSettings = null)List ResourceDrifts for a given preview.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceDriftsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourceDriftsResponseResourceDrift |
A pageable asynchronous sequence of ResourceDrift resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListResourceDriftsRequest request = new ListResourceDriftsRequest
{
ParentAsPreviewName = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListResourceDriftsResponse, ResourceDrift> response = configClient.ListResourceDriftsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceDrift 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((ListResourceDriftsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceDrift 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<ResourceDrift> 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 (ResourceDrift 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;
ListResourceDriftsAsync(PreviewName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceDriftsResponse, ResourceDrift> ListResourceDriftsAsync(PreviewName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List ResourceDrifts for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
PreviewNameRequired. The parent in whose context the ResourceDrifts are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourceDriftsResponseResourceDrift |
A pageable asynchronous sequence of ResourceDrift resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
PreviewName parent = PreviewName.FromProjectLocationPreview("[PROJECT]", "[LOCATION]", "[PREVIEW]");
// Make the request
PagedAsyncEnumerable<ListResourceDriftsResponse, ResourceDrift> response = configClient.ListResourceDriftsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceDrift 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((ListResourceDriftsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceDrift 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<ResourceDrift> 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 (ResourceDrift 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;
ListResourceDriftsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceDriftsResponse, ResourceDrift> ListResourceDriftsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List ResourceDrifts for a given preview.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the ResourceDrifts are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourceDriftsResponseResourceDrift |
A pageable asynchronous sequence of ResourceDrift resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/previews/[PREVIEW]";
// Make the request
PagedAsyncEnumerable<ListResourceDriftsResponse, ResourceDrift> response = configClient.ListResourceDriftsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceDrift 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((ListResourceDriftsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceDrift 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<ResourceDrift> 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 (ResourceDrift 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;
ListResources(ListResourcesRequest, CallSettings)
public virtual PagedEnumerable<ListResourcesResponse, Resource> ListResources(ListResourcesRequest request, CallSettings callSettings = null)Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourcesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourcesResponseResource |
A pageable sequence of Resource resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListResourcesRequest request = new ListResourcesRequest
{
ParentAsRevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListResourcesResponse, Resource> response = configClient.ListResources(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Resource 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 (ListResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Resource 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<Resource> 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 (Resource 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;
ListResources(RevisionName, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourcesResponse, Resource> ListResources(RevisionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
| Parameters | |
|---|---|
| Name | Description |
parent |
RevisionNameRequired. The parent in whose context the Resources are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourcesResponseResource |
A pageable sequence of Resource resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
RevisionName parent = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]");
// Make the request
PagedEnumerable<ListResourcesResponse, Resource> response = configClient.ListResources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Resource 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 (ListResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Resource 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<Resource> 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 (Resource 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;
ListResources(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourcesResponse, Resource> ListResources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Resources are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListResourcesResponseResource |
A pageable sequence of Resource resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]";
// Make the request
PagedEnumerable<ListResourcesResponse, Resource> response = configClient.ListResources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Resource 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 (ListResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Resource 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<Resource> 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 (Resource 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;
ListResourcesAsync(ListResourcesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListResourcesResponse, Resource> ListResourcesAsync(ListResourcesRequest request, CallSettings callSettings = null)Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourcesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourcesResponseResource |
A pageable asynchronous sequence of Resource resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListResourcesRequest request = new ListResourcesRequest
{
ParentAsRevisionName = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListResourcesResponse, Resource> response = configClient.ListResourcesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Resource 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((ListResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Resource 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<Resource> 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 (Resource 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;
ListResourcesAsync(RevisionName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourcesResponse, Resource> ListResourcesAsync(RevisionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
| Parameters | |
|---|---|
| Name | Description |
parent |
RevisionNameRequired. The parent in whose context the Resources are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourcesResponseResource |
A pageable asynchronous sequence of Resource resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
RevisionName parent = RevisionName.FromProjectLocationDeploymentRevision("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[REVISION]");
// Make the request
PagedAsyncEnumerable<ListResourcesResponse, Resource> response = configClient.ListResourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Resource 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((ListResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Resource 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<Resource> 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 (Resource 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;
ListResourcesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourcesResponse, Resource> ListResourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Resources are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListResourcesResponseResource |
A pageable asynchronous sequence of Resource resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]/revisions/[REVISION]";
// Make the request
PagedAsyncEnumerable<ListResourcesResponse, Resource> response = configClient.ListResourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Resource 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((ListResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Resource 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<Resource> 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 (Resource 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;
ListRevisions(DeploymentName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRevisionsResponse, Revision> ListRevisions(DeploymentName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
| Parameters | |
|---|---|
| Name | Description |
parent |
DeploymentNameRequired. The parent in whose context the Revisions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRevisionsResponseRevision |
A pageable sequence of Revision resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName parent = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
PagedEnumerable<ListRevisionsResponse, Revision> response = configClient.ListRevisions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Revision 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 (ListRevisionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Revision 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<Revision> 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 (Revision 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;
ListRevisions(ListRevisionsRequest, CallSettings)
public virtual PagedEnumerable<ListRevisionsResponse, Revision> ListRevisions(ListRevisionsRequest request, CallSettings callSettings = null)Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRevisionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRevisionsResponseRevision |
A pageable sequence of Revision resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListRevisionsRequest request = new ListRevisionsRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListRevisionsResponse, Revision> response = configClient.ListRevisions(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Revision 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 (ListRevisionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Revision 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<Revision> 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 (Revision 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;
ListRevisions(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRevisionsResponse, Revision> ListRevisions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Revisions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRevisionsResponseRevision |
A pageable sequence of Revision resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
PagedEnumerable<ListRevisionsResponse, Revision> response = configClient.ListRevisions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Revision 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 (ListRevisionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Revision 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<Revision> 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 (Revision 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;
ListRevisionsAsync(DeploymentName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRevisionsResponse, Revision> ListRevisionsAsync(DeploymentName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
| Parameters | |
|---|---|
| Name | Description |
parent |
DeploymentNameRequired. The parent in whose context the Revisions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRevisionsResponseRevision |
A pageable asynchronous sequence of Revision resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName parent = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
PagedAsyncEnumerable<ListRevisionsResponse, Revision> response = configClient.ListRevisionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Revision 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((ListRevisionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Revision 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<Revision> 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 (Revision 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;
ListRevisionsAsync(ListRevisionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRevisionsResponse, Revision> ListRevisionsAsync(ListRevisionsRequest request, CallSettings callSettings = null)Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRevisionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRevisionsResponseRevision |
A pageable asynchronous sequence of Revision resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListRevisionsRequest request = new ListRevisionsRequest
{
ParentAsDeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRevisionsResponse, Revision> response = configClient.ListRevisionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Revision 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((ListRevisionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Revision 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<Revision> 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 (Revision 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;
ListRevisionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRevisionsResponse, Revision> ListRevisionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the Revisions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRevisionsResponseRevision |
A pageable asynchronous sequence of Revision resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
PagedAsyncEnumerable<ListRevisionsResponse, Revision> response = configClient.ListRevisionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Revision 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((ListRevisionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Revision 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<Revision> 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 (Revision 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;
ListTerraformVersions(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListTerraformVersionsResponse, TerraformVersion> ListTerraformVersions(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTerraformVersionsResponseTerraformVersion |
A pageable sequence of TerraformVersion resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTerraformVersionsResponse, TerraformVersion> response = configClient.ListTerraformVersions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TerraformVersion 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 (ListTerraformVersionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TerraformVersion 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<TerraformVersion> 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 (TerraformVersion 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;
ListTerraformVersions(ListTerraformVersionsRequest, CallSettings)
public virtual PagedEnumerable<ListTerraformVersionsResponse, TerraformVersion> ListTerraformVersions(ListTerraformVersionsRequest request, CallSettings callSettings = null)Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTerraformVersionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTerraformVersionsResponseTerraformVersion |
A pageable sequence of TerraformVersion resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
ListTerraformVersionsRequest request = new ListTerraformVersionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListTerraformVersionsResponse, TerraformVersion> response = configClient.ListTerraformVersions(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (TerraformVersion 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 (ListTerraformVersionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TerraformVersion 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<TerraformVersion> 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 (TerraformVersion 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;
ListTerraformVersions(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListTerraformVersionsResponse, TerraformVersion> ListTerraformVersions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTerraformVersionsResponseTerraformVersion |
A pageable sequence of TerraformVersion resources. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTerraformVersionsResponse, TerraformVersion> response = configClient.ListTerraformVersions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TerraformVersion 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 (ListTerraformVersionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TerraformVersion 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<TerraformVersion> 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 (TerraformVersion 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;
ListTerraformVersionsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTerraformVersionsResponse, TerraformVersion> ListTerraformVersionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTerraformVersionsResponseTerraformVersion |
A pageable asynchronous sequence of TerraformVersion resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTerraformVersionsResponse, TerraformVersion> response = configClient.ListTerraformVersionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TerraformVersion 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((ListTerraformVersionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TerraformVersion 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<TerraformVersion> 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 (TerraformVersion 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;
ListTerraformVersionsAsync(ListTerraformVersionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListTerraformVersionsResponse, TerraformVersion> ListTerraformVersionsAsync(ListTerraformVersionsRequest request, CallSettings callSettings = null)Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTerraformVersionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTerraformVersionsResponseTerraformVersion |
A pageable asynchronous sequence of TerraformVersion resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
ListTerraformVersionsRequest request = new ListTerraformVersionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListTerraformVersionsResponse, TerraformVersion> response = configClient.ListTerraformVersionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TerraformVersion 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((ListTerraformVersionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TerraformVersion 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<TerraformVersion> 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 (TerraformVersion 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;
ListTerraformVersionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTerraformVersionsResponse, TerraformVersion> ListTerraformVersionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTerraformVersionsResponseTerraformVersion |
A pageable asynchronous sequence of TerraformVersion resources. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTerraformVersionsResponse, TerraformVersion> response = configClient.ListTerraformVersionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TerraformVersion 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((ListTerraformVersionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TerraformVersion 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<TerraformVersion> 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 (TerraformVersion 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;
LockDeployment(DeploymentName, CallSettings)
public virtual Operation<Deployment, OperationMetadata> LockDeployment(DeploymentName name, CallSettings callSettings = null)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.LockDeployment(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceLockDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeployment(LockDeploymentRequest, CallSettings)
public virtual Operation<Deployment, OperationMetadata> LockDeployment(LockDeploymentRequest request, CallSettings callSettings = null)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
LockDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
LockDeploymentRequest request = new LockDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.LockDeployment(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceLockDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> LockDeployment(string name, CallSettings callSettings = null)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.LockDeployment(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceLockDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeploymentAsync(DeploymentName, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> LockDeploymentAsync(DeploymentName name, CallSettings callSettings = null)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.LockDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceLockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeploymentAsync(DeploymentName, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> LockDeploymentAsync(DeploymentName name, CancellationToken cancellationToken)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.LockDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceLockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeploymentAsync(LockDeploymentRequest, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> LockDeploymentAsync(LockDeploymentRequest request, CallSettings callSettings = null)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
LockDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LockDeploymentRequest request = new LockDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.LockDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceLockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeploymentAsync(LockDeploymentRequest, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> LockDeploymentAsync(LockDeploymentRequest request, CancellationToken cancellationToken)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
LockDeploymentRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
LockDeploymentRequest request = new LockDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.LockDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceLockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> LockDeploymentAsync(string name, CallSettings callSettings = null)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.LockDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceLockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
LockDeploymentAsync(string, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> LockDeploymentAsync(string name, CancellationToken cancellationToken)Locks a deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.LockDeploymentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceLockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
PollOnceCreateDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> PollOnceCreateDeployment(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The result of polling the operation. |
PollOnceCreateDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> PollOnceCreateDeploymentAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreatePreview(string, CallSettings)
public virtual Operation<Preview, OperationMetadata> PollOnceCreatePreview(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreatePreview.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The result of polling the operation. |
PollOnceCreatePreviewAsync(string, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> PollOnceCreatePreviewAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreatePreview.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> PollOnceDeleteDeployment(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The result of polling the operation. |
PollOnceDeleteDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> PollOnceDeleteDeploymentAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePreview(string, CallSettings)
public virtual Operation<Preview, OperationMetadata> PollOnceDeletePreview(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeletePreview.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationPreviewOperationMetadata |
The result of polling the operation. |
PollOnceDeletePreviewAsync(string, CallSettings)
public virtual Task<Operation<Preview, OperationMetadata>> PollOnceDeletePreviewAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeletePreview.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationPreviewOperationMetadata |
A task representing the result of polling the operation. |
PollOnceLockDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> PollOnceLockDeployment(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of LockDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The result of polling the operation. |
PollOnceLockDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> PollOnceLockDeploymentAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
LockDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUnlockDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> PollOnceUnlockDeployment(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UnlockDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The result of polling the operation. |
PollOnceUnlockDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> PollOnceUnlockDeploymentAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UnlockDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateDeployment(string, CallSettings)
public virtual Operation<Deployment, OperationMetadata> PollOnceUpdateDeployment(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The result of polling the operation. |
PollOnceUpdateDeploymentAsync(string, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> PollOnceUpdateDeploymentAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateDeployment.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
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.
UnlockDeployment(DeploymentName, long, CallSettings)
public virtual Operation<Deployment, OperationMetadata> UnlockDeployment(DeploymentName name, long lockId, CallSettings callSettings = null)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to be unlocked. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
long lockId = 0L;
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.UnlockDeployment(name, lockId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceUnlockDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeployment(UnlockDeploymentRequest, CallSettings)
public virtual Operation<Deployment, OperationMetadata> UnlockDeployment(UnlockDeploymentRequest request, CallSettings callSettings = null)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
UnlockDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
UnlockDeploymentRequest request = new UnlockDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
};
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.UnlockDeployment(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceUnlockDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeployment(string, long, CallSettings)
public virtual Operation<Deployment, OperationMetadata> UnlockDeployment(string name, long lockId, CallSettings callSettings = null)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to be unlocked. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
long lockId = 0L;
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.UnlockDeployment(name, lockId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceUnlockDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeploymentAsync(DeploymentName, long, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> UnlockDeploymentAsync(DeploymentName name, long lockId, CallSettings callSettings = null)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to be unlocked. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
long lockId = 0L;
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UnlockDeploymentAsync(name, lockId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUnlockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeploymentAsync(DeploymentName, long, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> UnlockDeploymentAsync(DeploymentName name, long lockId, CancellationToken cancellationToken)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
DeploymentNameRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to be unlocked. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
DeploymentName name = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
long lockId = 0L;
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UnlockDeploymentAsync(name, lockId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUnlockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeploymentAsync(UnlockDeploymentRequest, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> UnlockDeploymentAsync(UnlockDeploymentRequest request, CallSettings callSettings = null)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
UnlockDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
UnlockDeploymentRequest request = new UnlockDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UnlockDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUnlockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeploymentAsync(UnlockDeploymentRequest, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> UnlockDeploymentAsync(UnlockDeploymentRequest request, CancellationToken cancellationToken)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
request |
UnlockDeploymentRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
UnlockDeploymentRequest request = new UnlockDeploymentRequest
{
DeploymentName = DeploymentName.FromProjectLocationDeployment("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"),
LockId = 0L,
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UnlockDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUnlockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeploymentAsync(string, long, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> UnlockDeploymentAsync(string name, long lockId, CallSettings callSettings = null)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to be unlocked. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
long lockId = 0L;
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UnlockDeploymentAsync(name, lockId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUnlockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UnlockDeploymentAsync(string, long, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> UnlockDeploymentAsync(string name, long lockId, CancellationToken cancellationToken)Unlocks a locked deployment.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
lockId |
longRequired. Lock ID of the lock file to be unlocked. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deployments/[DEPLOYMENT]";
long lockId = 0L;
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UnlockDeploymentAsync(name, lockId);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUnlockDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UpdateDeployment(Deployment, FieldMask, CallSettings)
public virtual Operation<Deployment, OperationMetadata> UpdateDeployment(Deployment deployment, FieldMask updateMask, CallSettings callSettings = null)Updates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] to update. The deployment's |
updateMask |
FieldMaskOptional. Field mask used to specify the fields to be overwritten in the Deployment 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
Deployment deployment = new Deployment();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.UpdateDeployment(deployment, updateMask);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceUpdateDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UpdateDeployment(UpdateDeploymentRequest, CallSettings)
public virtual Operation<Deployment, OperationMetadata> UpdateDeployment(UpdateDeploymentRequest request, CallSettings callSettings = null)Updates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDeploymentOperationMetadata |
The RPC response. |
// Create client
ConfigClient configClient = ConfigClient.Create();
// Initialize request argument(s)
UpdateDeploymentRequest request = new UpdateDeploymentRequest
{
UpdateMask = new FieldMask(),
Deployment = new Deployment(),
RequestId = "",
};
// Make the request
Operation<Deployment, OperationMetadata> response = configClient.UpdateDeployment(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = configClient.PollOnceUpdateDeployment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentAsync(Deployment, FieldMask, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> UpdateDeploymentAsync(Deployment deployment, FieldMask updateMask, CallSettings callSettings = null)Updates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] to update. The deployment's |
updateMask |
FieldMaskOptional. Field mask used to specify the fields to be overwritten in the Deployment 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
Deployment deployment = new Deployment();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UpdateDeploymentAsync(deployment, updateMask);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUpdateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentAsync(Deployment, FieldMask, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> UpdateDeploymentAsync(Deployment deployment, FieldMask updateMask, CancellationToken cancellationToken)Updates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
deployment |
DeploymentRequired. [Deployment][google.cloud.config.v1.Deployment] to update. The deployment's |
updateMask |
FieldMaskOptional. Field mask used to specify the fields to be overwritten in the Deployment 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
Deployment deployment = new Deployment();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UpdateDeploymentAsync(deployment, updateMask);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUpdateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentAsync(UpdateDeploymentRequest, CallSettings)
public virtual Task<Operation<Deployment, OperationMetadata>> UpdateDeploymentAsync(UpdateDeploymentRequest request, CallSettings callSettings = null)Updates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeploymentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
UpdateDeploymentRequest request = new UpdateDeploymentRequest
{
UpdateMask = new FieldMask(),
Deployment = new Deployment(),
RequestId = "",
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UpdateDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUpdateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentAsync(UpdateDeploymentRequest, CancellationToken)
public virtual Task<Operation<Deployment, OperationMetadata>> UpdateDeploymentAsync(UpdateDeploymentRequest request, CancellationToken cancellationToken)Updates a [Deployment][google.cloud.config.v1.Deployment].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeploymentRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDeploymentOperationMetadata |
A Task containing the RPC response. |
// Create client
ConfigClient configClient = await ConfigClient.CreateAsync();
// Initialize request argument(s)
UpdateDeploymentRequest request = new UpdateDeploymentRequest
{
UpdateMask = new FieldMask(),
Deployment = new Deployment(),
RequestId = "",
};
// Make the request
Operation<Deployment, OperationMetadata> response = await configClient.UpdateDeploymentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Deployment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Deployment 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<Deployment, OperationMetadata> retrievedResponse = await configClient.PollOnceUpdateDeploymentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Deployment retrievedResult = retrievedResponse.Result;
}