Infrastructure Manager v1 API - Class Preview (1.1.0)

public sealed class Preview : IMessage<Preview>, IEquatable<Preview>, IDeepCloneable<Preview>, IBufferMessage, IMessage

Reference documentation and code samples for the Infrastructure Manager v1 API class Preview.

A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.

Inheritance

object > Preview

Namespace

Google.Cloud.Config.V1

Assembly

Google.Cloud.Config.V1.dll

Constructors

Preview()

public Preview()

Preview(Preview)

public Preview(Preview other)
Parameter
NameDescription
otherPreview

Properties

ArtifactsGcsBucket

public string ArtifactsGcsBucket { get; set; }

Optional. User-defined location of Cloud Build logs, artifacts, and in Google Cloud Storage. Format: gs://{bucket}/{folder} A default bucket will be bootstrapped if the field is not set or empty Default Bucket Format: gs://<project number>-<region>-blueprint-config Constraints:

  • The bucket needs to be in the same project as the deployment
  • The path cannot be within the path of gcs_source If omitted and deployment resource ref provided has artifacts_gcs_bucket defined, that artifact bucket is used.
Property Value
TypeDescription
string

BlueprintCase

public Preview.BlueprintOneofCase BlueprintCase { get; }
Property Value
TypeDescription
PreviewBlueprintOneofCase

Build

public string Build { get; set; }

Output only. Cloud Build instance UUID associated with this preview.

Property Value
TypeDescription
string

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Time the preview was created.

Property Value
TypeDescription
Timestamp

Deployment

public string Deployment { get; set; }

Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment's current state and use any relevant fields from the deployment unless explicitly specified in the preview create request.

Property Value
TypeDescription
string

DeploymentAsDeploymentName

public DeploymentName DeploymentAsDeploymentName { get; set; }

DeploymentName-typed view over the Deployment resource name property.

Property Value
TypeDescription
DeploymentName

ErrorCode

public Preview.Types.ErrorCode ErrorCode { get; set; }

Output only. Code describing any errors that may have occurred.

Property Value
TypeDescription
PreviewTypesErrorCode

ErrorLogs

public string ErrorLogs { get; set; }

Output only. Link to tf-error.ndjson file, which contains the full list of the errors encountered during a Terraform preview. Format: gs://{bucket}/{object}.

Property Value
TypeDescription
string

ErrorStatus

public Status ErrorStatus { get; set; }

Output only. Additional information regarding the current state.

Property Value
TypeDescription
Status

HasArtifactsGcsBucket

public bool HasArtifactsGcsBucket { get; }

Gets whether the "artifacts_gcs_bucket" field is set

Property Value
TypeDescription
bool

HasWorkerPool

public bool HasWorkerPool { get; }

Gets whether the "worker_pool" field is set

Property Value
TypeDescription
bool

Labels

public MapField<string, string> Labels { get; }

Optional. User-defined labels for the preview.

Property Value
TypeDescription
MapFieldstringstring

Logs

public string Logs { get; set; }

Output only. Location of preview logs in gs://{bucket}/{object} format.

Property Value
TypeDescription
string

Name

public string Name { get; set; }

Identifier. Resource name of the preview. Resource name can be user provided or server generated ID if unspecified. Format: projects/{project}/locations/{location}/previews/{preview}

Property Value
TypeDescription
string

PreviewArtifacts

public PreviewArtifacts PreviewArtifacts { get; set; }

Output only. Artifacts from preview.

Property Value
TypeDescription
PreviewArtifacts

PreviewMode

public Preview.Types.PreviewMode PreviewMode { get; set; }

Optional. Current mode of preview.

Property Value
TypeDescription
PreviewTypesPreviewMode

PreviewName

public PreviewName PreviewName { get; set; }

PreviewName-typed view over the Name resource name property.

Property Value
TypeDescription
PreviewName

ServiceAccount

public string ServiceAccount { get; set; }

Optional. Optional service account. If omitted, the deployment resource reference must be provided, and the service account attached to the deployment will be used.

Property Value
TypeDescription
string

ServiceAccountAsServiceAccountName

public ServiceAccountName ServiceAccountAsServiceAccountName { get; set; }

ServiceAccountName-typed view over the ServiceAccount resource name property.

Property Value
TypeDescription
ServiceAccountName

State

public Preview.Types.State State { get; set; }

Output only. Current state of the preview.

Property Value
TypeDescription
PreviewTypesState

TerraformBlueprint

public TerraformBlueprint TerraformBlueprint { get; set; }

The terraform blueprint to preview.

Property Value
TypeDescription
TerraformBlueprint

TfErrors

public RepeatedField<TerraformError> TfErrors { get; }

Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here.

Property Value
TypeDescription
RepeatedFieldTerraformError

WorkerPool

public string WorkerPool { get; set; }

Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is unspecified, the default Cloud Build worker pool will be used. If omitted and deployment resource ref provided has worker_pool defined, that worker pool is used.

Property Value
TypeDescription
string

WorkerPoolAsWorkerPoolName

public WorkerPoolName WorkerPoolAsWorkerPoolName { get; set; }

WorkerPoolName-typed view over the WorkerPool resource name property.

Property Value
TypeDescription
WorkerPoolName