config

package
v0.280.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package config provides access to the Infrastructure Manager API.

For product documentation, see: https://cloud.google.com/infrastructure-manager/docs

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/config/v1"
...
ctx := context.Background()
configService, err := config.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

configService, err := config.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
configService, err := config.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// See, edit, configure, and delete your Google Cloud data and see the email
	// address for your Google Account.
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyResults

type ApplyResults struct {
	// Artifacts: Location of artifacts (e.g. logs) in Google Cloud Storage.
	// Format: `gs://{bucket}/{object}`
	Artifacts string `json:"artifacts,omitempty"`
	// Content: Location of a blueprint copy and other manifests in Google Cloud
	// Storage. Format: `gs://{bucket}/{object}`
	Content string `json:"content,omitempty"`
	// Outputs: Map of output name to output info.
	Outputs map[string]TerraformOutput `json:"outputs,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Artifacts") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Artifacts") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ApplyResults: Outputs and artifacts from applying a deployment.

func (ApplyResults) MarshalJSON

func (s ApplyResults) MarshalJSON() ([]byte, error)

type AuditConfig

type AuditConfig struct {
	// AuditLogConfigs: The configuration for logging of each type of permission.
	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
	// Service: Specifies a service that will be enabled for audit logging. For
	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
	// is a special value that covers all services.
	Service string `json:"service,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AuditConfig: Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.

func (AuditConfig) MarshalJSON

func (s AuditConfig) MarshalJSON() ([]byte, error)

type AuditLogConfig

type AuditLogConfig struct {
	// ExemptedMembers: Specifies the identities that do not cause logging for this
	// type of permission. Follows the same format of Binding.members.
	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
	// LogType: The log type that this config enables.
	//
	// Possible values:
	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
	LogType string `json:"logType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AuditLogConfig: Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

func (AuditLogConfig) MarshalJSON

func (s AuditLogConfig) MarshalJSON() ([]byte, error)

type AutoMigrationConfig added in v0.258.0

type AutoMigrationConfig struct {
	// AutoMigrationEnabled: Optional. Whether the auto migration is enabled for
	// the project.
	AutoMigrationEnabled bool `json:"autoMigrationEnabled,omitempty"`
	// Name: Identifier. The name of the AutoMigrationConfig. Format:
	// 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
	Name string `json:"name,omitempty"`
	// UpdateTime: Output only. Time the AutoMigrationConfig was last updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AutoMigrationEnabled") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AutoMigrationEnabled") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AutoMigrationConfig: AutoMigrationConfig contains the automigration configuration for a project.

func (AutoMigrationConfig) MarshalJSON added in v0.258.0

func (s AutoMigrationConfig) MarshalJSON() ([]byte, error)

type Binding

type Binding struct {
	// Condition: The condition that is associated with this binding. If the
	// condition evaluates to `true`, then this binding applies to the current
	// request. If the condition evaluates to `false`, then this binding does not
	// apply to the current request. However, a different role binding might grant
	// the same role to one or more of the principals in this binding. To learn
	// which resources support conditions in their IAM policies, see the IAM
	// documentation
	// (https://cloud.google.com/iam/help/conditions/resource-policies).
	Condition *Expr `json:"condition,omitempty"`
	// Members: Specifies the principals requesting access for a Google Cloud
	// resource. `members` can have the following values: * `allUsers`: A special
	// identifier that represents anyone who is on the internet; with or without a
	// Google account. * `allAuthenticatedUsers`: A special identifier that
	// represents anyone who is authenticated with a Google account or a service
	// account. Does not include identities that come from external identity
	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
	// address that represents a specific Google account. For example,
	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
	// represents a Google service account. For example,
	// `my-other-app@appspot.gserviceaccount.com`. *
	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
	// identifier for a Kubernetes service account
	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
	// `group:{emailid}`: An email address that represents a Google group. For
	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
	// (primary) that represents all the users of that domain. For example,
	// `google.com` or `example.com`. *
	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
	// ject/{subject_attribute_value}`: A single identity in a workforce identity
	// pool. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// group/{group_id}`: All workforce identities in a group. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
	// a specific attribute value. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// *`: All identities in a workforce identity pool. *
	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
	// identity in a workload identity pool. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
	// group. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
	// `: All identities in a workload identity pool with a certain attribute. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
	// unique identifier) representing a user that has been recently deleted. For
	// example, `alice@example.com?uid=123456789012345678901`. If the user is
	// recovered, this value reverts to `user:{emailid}` and the recovered user
	// retains the role in the binding. *
	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
	// unique identifier) representing a service account that has been recently
	// deleted. For example,
	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
	// service account is undeleted, this value reverts to
	// `serviceAccount:{emailid}` and the undeleted service account retains the
	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
	// address (plus unique identifier) representing a Google group that has been
	// recently deleted. For example,
	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
	// this value reverts to `group:{emailid}` and the recovered group retains the
	// role in the binding. *
	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
	// workforce identity pool. For example,
	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
	// ol-id/subject/my-subject-attribute-value`.
	Members []string `json:"members,omitempty"`
	// Role: Role that is assigned to the list of `members`, or principals. For
	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
	// of the IAM roles and permissions, see the IAM documentation
	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
	// available pre-defined roles, see here
	// (https://cloud.google.com/iam/docs/understanding-roles).
	Role string `json:"role,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Condition") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Condition") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Binding: Associates `members`, or principals, with a `role`.

func (Binding) MarshalJSON

func (s Binding) MarshalJSON() ([]byte, error)

type CancelOperationRequest

type CancelOperationRequest struct {
}

CancelOperationRequest: The request message for Operations.CancelOperation.

type DeleteStatefileRequest

type DeleteStatefileRequest struct {
	// LockId: Required. Lock ID of the lock file to verify that the user who is
	// deleting the state file previously locked the Deployment.
	LockId int64 `json:"lockId,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "LockId") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LockId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeleteStatefileRequest: A request to delete a state file passed to a 'DeleteStatefile' call.

func (DeleteStatefileRequest) MarshalJSON

func (s DeleteStatefileRequest) MarshalJSON() ([]byte, error)

type Deployment

type Deployment struct {
	// Annotations: Optional. Arbitrary key-value metadata storage e.g. to help
	// client tools identify deployments during automation. See
	// https://google.aip.dev/148#annotations for details on format and size
	// limitations.
	Annotations map[string]string `json:"annotations,omitempty"`
	// ArtifactsGcsBucket: Optional. User-defined location of Cloud Build logs and
	// artifacts 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://--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` - The field cannot be updated, including
	// changing its presence
	ArtifactsGcsBucket string `json:"artifactsGcsBucket,omitempty"`
	// CreateTime: Output only. Time when the deployment was created.
	CreateTime string `json:"createTime,omitempty"`
	// DeleteBuild: Output only. Cloud Build instance UUID associated with deleting
	// this deployment.
	DeleteBuild string `json:"deleteBuild,omitempty"`
	// DeleteLogs: Output only. Location of Cloud Build logs in Google Cloud
	// Storage, populated when deleting this deployment. Format:
	// `gs://{bucket}/{object}`.
	DeleteLogs string `json:"deleteLogs,omitempty"`
	// DeleteResults: Output only. Location of artifacts from a DeleteDeployment
	// operation.
	DeleteResults *ApplyResults `json:"deleteResults,omitempty"`
	// ErrorCode: Output only. Error code describing errors that may have occurred.
	//
	// Possible values:
	//   "ERROR_CODE_UNSPECIFIED" - No error code was specified.
	//   "REVISION_FAILED" - The revision failed. See Revision for more details.
	//   "CLOUD_BUILD_PERMISSION_DENIED" - Cloud Build failed due to a permission
	// issue.
	//   "DELETE_BUILD_API_FAILED" - Cloud Build job associated with a deployment
	// deletion could not be started.
	//   "DELETE_BUILD_RUN_FAILED" - Cloud Build job associated with a deployment
	// deletion was started but failed.
	//   "BUCKET_CREATION_PERMISSION_DENIED" - Cloud Storage bucket creation failed
	// due to a permission issue.
	//   "BUCKET_CREATION_FAILED" - Cloud Storage bucket creation failed due to an
	// issue unrelated to permissions.
	//   "EXTERNAL_VALUE_SOURCE_IMPORT_FAILED" - Failed to import values from an
	// external source.
	ErrorCode string `json:"errorCode,omitempty"`
	// ErrorLogs: Output only. Location of Terraform error logs in Google Cloud
	// Storage. Format: `gs://{bucket}/{object}`.
	ErrorLogs string `json:"errorLogs,omitempty"`
	// ImportExistingResources: By default, Infra Manager will return a failure
	// when Terraform encounters a 409 code (resource conflict error) during
	// actuation. If this flag is set to true, Infra Manager will instead attempt
	// to automatically import the resource into the Terraform state (for supported
	// resource types) and continue actuation. Not all resource types are
	// supported, refer to documentation.
	ImportExistingResources bool `json:"importExistingResources,omitempty"`
	// Labels: Optional. User-defined metadata for the deployment.
	Labels map[string]string `json:"labels,omitempty"`
	// LatestRevision: Output only. Revision name that was most recently applied.
	// Format: `projects/{project}/locations/{location}/deployments/{deployment}/
	// revisions/{revision}`
	LatestRevision string `json:"latestRevision,omitempty"`
	// LockState: Output only. Current lock state of the deployment.
	//
	// Possible values:
	//   "LOCK_STATE_UNSPECIFIED" - The default value. This value is used if the
	// lock state is omitted.
	//   "LOCKED" - The deployment is locked.
	//   "UNLOCKED" - The deployment is unlocked.
	//   "LOCKING" - The deployment is being locked.
	//   "UNLOCKING" - The deployment is being unlocked.
	//   "LOCK_FAILED" - The deployment has failed to lock.
	//   "UNLOCK_FAILED" - The deployment has failed to unlock.
	LockState string `json:"lockState,omitempty"`
	// Name: Identifier. Resource name of the deployment. Format:
	// `projects/{project}/locations/{location}/deployments/{deployment}`
	Name string `json:"name,omitempty"`
	// ProviderConfig: Optional. This field specifies the provider configurations.
	ProviderConfig *ProviderConfig `json:"providerConfig,omitempty"`
	// QuotaValidation: Optional. Input to control quota checks for resources in
	// terraform configuration files. There are limited resources on which quota
	// validation applies.
	//
	// Possible values:
	//   "QUOTA_VALIDATION_UNSPECIFIED" - The default value. QuotaValidation on
	// terraform configuration files will be disabled in this case.
	//   "ENABLED" - Enable computing quotas for resources in terraform
	// configuration files to get visibility on resources with insufficient quotas.
	//   "ENFORCED" - Enforce quota checks so deployment fails if there isn't
	// sufficient quotas available to deploy resources in terraform configuration
	// files.
	QuotaValidation string `json:"quotaValidation,omitempty"`
	// ServiceAccount: Required. User-specified Service Account (SA) credentials to
	// be used when actuating resources. Format:
	// `projects/{projectID}/serviceAccounts/{serviceAccount}`
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// State: Output only. Current state of the deployment.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
	// is omitted.
	//   "CREATING" - The deployment is being created.
	//   "ACTIVE" - The deployment is healthy.
	//   "UPDATING" - The deployment is being updated.
	//   "DELETING" - The deployment is being deleted.
	//   "FAILED" - The deployment has encountered an unexpected error.
	//   "SUSPENDED" - The deployment is no longer being actively reconciled. This
	// may be the result of recovering the project after deletion.
	//   "DELETED" - The deployment has been deleted.
	State string `json:"state,omitempty"`
	// StateDetail: Output only. Additional information regarding the current
	// state.
	StateDetail string `json:"stateDetail,omitempty"`
	// TerraformBlueprint: A blueprint described using Terraform's HashiCorp
	// Configuration Language as a root module.
	TerraformBlueprint *TerraformBlueprint `json:"terraformBlueprint,omitempty"`
	// TfErrors: Output only. Errors encountered when deleting this deployment.
	// Errors are truncated to 10 entries, see `delete_results` and `error_logs`
	// for full details.
	TfErrors []*TerraformError `json:"tfErrors,omitempty"`
	// TfVersion: Output only. The current Terraform version set on the deployment.
	// It is in the format of "Major.Minor.Patch", for example, "1.3.10".
	TfVersion string `json:"tfVersion,omitempty"`
	// TfVersionConstraint: Optional. The user-specified Terraform version
	// constraint. Example: "=1.3.10".
	TfVersionConstraint string `json:"tfVersionConstraint,omitempty"`
	// UpdateTime: Output only. Time when the deployment was last modified.
	UpdateTime string `json:"updateTime,omitempty"`
	// WorkerPool: Optional. The user-specified Cloud Build 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.
	WorkerPool string `json:"workerPool,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Annotations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Annotations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Deployment: A Deployment is a group of resources and configs managed and provisioned by Infra Manager.

func (Deployment) MarshalJSON

func (s Deployment) MarshalJSON() ([]byte, error)

type DeploymentGroup added in v0.274.0

type DeploymentGroup struct {
	// Annotations: Optional. Arbitrary key-value metadata storage e.g. to help
	// client tools identify deployment group during automation. See
	// https://google.aip.dev/148#annotations for details on format and size
	// limitations.
	Annotations map[string]string `json:"annotations,omitempty"`
	// CreateTime: Output only. Time when the deployment group was created.
	CreateTime string `json:"createTime,omitempty"`
	// DeploymentUnits: The deployment units of the deployment group in a DAG like
	// structure. When a deployment group is being provisioned, the deployment
	// units are deployed in a DAG order. The provided units must be in a DAG
	// order, otherwise an error will be returned.
	DeploymentUnits []*DeploymentUnit `json:"deploymentUnits,omitempty"`
	// Labels: Optional. User-defined metadata for the deployment group.
	Labels map[string]string `json:"labels,omitempty"`
	// Name: Identifier. The name of the deployment group. Format:
	// 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_grou
	// p}'.
	Name string `json:"name,omitempty"`
	// ProvisioningError: Output only. The error status of the deployment group
	// provisioning or deprovisioning.
	ProvisioningError *Status `json:"provisioningError,omitempty"`
	// ProvisioningState: Output only. The provisioning state of the deployment
	// group.
	//
	// Possible values:
	//   "PROVISIONING_STATE_UNSPECIFIED" - Unspecified provisioning state.
	//   "PROVISIONING" - The deployment group is being provisioned.
	//   "PROVISIONED" - The deployment group is provisioned.
	//   "FAILED_TO_PROVISION" - The deployment group failed to be provisioned.
	//   "DEPROVISIONING" - The deployment group is being deprovisioned.
	//   "DEPROVISIONED" - The deployment group is deprovisioned.
	//   "FAILED_TO_DEPROVISION" - The deployment group failed to be deprovisioned.
	ProvisioningState string `json:"provisioningState,omitempty"`
	// ProvisioningStateDescription: Output only. Additional information regarding
	// the current provisioning state.
	ProvisioningStateDescription string `json:"provisioningStateDescription,omitempty"`
	// State: Output only. Current state of the deployment group.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
	// is omitted.
	//   "CREATING" - The deployment group is being created.
	//   "ACTIVE" - The deployment group is healthy.
	//   "UPDATING" - The deployment group is being updated.
	//   "DELETING" - The deployment group is being deleted.
	//   "FAILED" - The deployment group has encountered an unexpected error.
	//   "SUSPENDED" - The deployment group is no longer being actively reconciled.
	// This may be the result of recovering the project after deletion.
	//   "DELETED" - The deployment group has been deleted.
	State string `json:"state,omitempty"`
	// StateDescription: Output only. Additional information regarding the current
	// state.
	StateDescription string `json:"stateDescription,omitempty"`
	// UpdateTime: Output only. Time when the deployment group was last updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Annotations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Annotations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentGroup: A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.

func (DeploymentGroup) MarshalJSON added in v0.274.0

func (s DeploymentGroup) MarshalJSON() ([]byte, error)

type DeploymentGroupRevision added in v0.274.0

type DeploymentGroupRevision struct {
	// AlternativeIds: Output only. The alternative IDs of the deployment group
	// revision.
	AlternativeIds []string `json:"alternativeIds,omitempty"`
	// CreateTime: Output only. Time when the deployment group revision was
	// created.
	CreateTime string `json:"createTime,omitempty"`
	// Name: Identifier. The name of the deployment group revision. Format:
	// 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_grou
	// p}/revisions/{revision}'.
	Name string `json:"name,omitempty"`
	// Snapshot: Output only. The snapshot of the deployment group at this
	// revision.
	Snapshot *DeploymentGroup `json:"snapshot,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AlternativeIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AlternativeIds") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentGroupRevision: A DeploymentGroupRevision represents a snapshot of a DeploymentGroup at a given point in time, created when a DeploymentGroup is provisioned or deprovisioned.

func (DeploymentGroupRevision) MarshalJSON added in v0.274.0

func (s DeploymentGroupRevision) MarshalJSON() ([]byte, error)

type DeploymentOperationMetadata

type DeploymentOperationMetadata struct {
	// ApplyResults: Outputs and artifacts from applying a deployment.
	ApplyResults *ApplyResults `json:"applyResults,omitempty"`
	// Build: Output only. Cloud Build instance UUID associated with this
	// operation.
	Build string `json:"build,omitempty"`
	// Logs: Output only. Location of Deployment operations logs in
	// `gs://{bucket}/{object}` format.
	Logs string `json:"logs,omitempty"`
	// Step: The current step the deployment operation is running.
	//
	// Possible values:
	//   "DEPLOYMENT_STEP_UNSPECIFIED" - Unspecified deployment step
	//   "PREPARING_STORAGE_BUCKET" - Infra Manager is creating a Google Cloud
	// Storage bucket to store artifacts and metadata about the deployment and
	// revision
	//   "DOWNLOADING_BLUEPRINT" - Downloading the blueprint onto the Google Cloud
	// Storage bucket
	//   "RUNNING_TF_INIT" - Initializing Terraform using `terraform init`
	//   "RUNNING_TF_PLAN" - Running `terraform plan`
	//   "RUNNING_TF_APPLY" - Actuating resources using Terraform using `terraform
	// apply`
	//   "RUNNING_TF_DESTROY" - Destroying resources using Terraform using
	// `terraform destroy`
	//   "RUNNING_TF_VALIDATE" - Validating the uploaded TF state file when
	// unlocking a deployment
	//   "UNLOCKING_DEPLOYMENT" - Unlocking a deployment
	//   "SUCCEEDED" - Operation was successful
	//   "FAILED" - Operation failed
	//   "VALIDATING_REPOSITORY" - Validating the provided repository.
	//   "RUNNING_QUOTA_VALIDATION" - Running quota validation
	Step string `json:"step,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApplyResults") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApplyResults") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentOperationMetadata: Ephemeral metadata content describing the state of a deployment operation.

func (DeploymentOperationMetadata) MarshalJSON

func (s DeploymentOperationMetadata) MarshalJSON() ([]byte, error)

type DeploymentOperationSummary added in v0.274.0

type DeploymentOperationSummary struct {
	// Artifacts: Output only. Location of Deployment operations artifacts in
	// `gs://{bucket}/{object}` format.
	Artifacts string `json:"artifacts,omitempty"`
	// Build: Output only. Cloud Build instance UUID associated with this
	// operation.
	Build string `json:"build,omitempty"`
	// Content: Output only. Location of Deployment operations content in
	// `gs://{bucket}/{object}` format.
	Content string `json:"content,omitempty"`
	// DeploymentStep: Output only. The current step the deployment operation is
	// running.
	//
	// Possible values:
	//   "DEPLOYMENT_STEP_UNSPECIFIED" - Unspecified deployment step
	//   "PREPARING_STORAGE_BUCKET" - Infra Manager is creating a Google Cloud
	// Storage bucket to store artifacts and metadata about the deployment and
	// revision
	//   "DOWNLOADING_BLUEPRINT" - Downloading the blueprint onto the Google Cloud
	// Storage bucket
	//   "RUNNING_TF_INIT" - Initializing Terraform using `terraform init`
	//   "RUNNING_TF_PLAN" - Running `terraform plan`
	//   "RUNNING_TF_APPLY" - Actuating resources using Terraform using `terraform
	// apply`
	//   "RUNNING_TF_DESTROY" - Destroying resources using Terraform using
	// `terraform destroy`
	//   "RUNNING_TF_VALIDATE" - Validating the uploaded TF state file when
	// unlocking a deployment
	//   "UNLOCKING_DEPLOYMENT" - Unlocking a deployment
	//   "SUCCEEDED" - Operation was successful
	//   "FAILED" - Operation failed
	//   "VALIDATING_REPOSITORY" - Validating the provided repository.
	//   "RUNNING_QUOTA_VALIDATION" - Running quota validation
	DeploymentStep string `json:"deploymentStep,omitempty"`
	// Logs: Output only. Location of Deployment operations logs in
	// `gs://{bucket}/{object}` format.
	Logs string `json:"logs,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Artifacts") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Artifacts") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentOperationSummary: The summary of the deployment operation.

func (DeploymentOperationSummary) MarshalJSON added in v0.274.0

func (s DeploymentOperationSummary) MarshalJSON() ([]byte, error)

type DeploymentSource added in v0.274.0

type DeploymentSource struct {
	// Deployment: Required. The resource name of the source Deployment to import
	// the output from. Format:
	// projects/{project}/locations/{location}/deployments/{deployment} The source
	// deployment must be in the same project and location.
	Deployment string `json:"deployment,omitempty"`
	// OutputName: Required. The name of the output variable in the source
	// deployment's latest successfully applied revision.
	OutputName string `json:"outputName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Deployment") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Deployment") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentSource: Configuration for a value sourced from a Deployment.

func (DeploymentSource) MarshalJSON added in v0.274.0

func (s DeploymentSource) MarshalJSON() ([]byte, error)

type DeploymentSpec added in v0.274.0

type DeploymentSpec struct {
	// Deployment: Required. The deployment to be created.
	Deployment *Deployment `json:"deployment,omitempty"`
	// DeploymentId: Required. The id of the deployment to be created which doesn't
	// include the project id and location.
	DeploymentId string `json:"deploymentId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Deployment") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Deployment") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentSpec: Spec for a deployment to be created.

func (DeploymentSpec) MarshalJSON added in v0.274.0

func (s DeploymentSpec) MarshalJSON() ([]byte, error)

type DeploymentUnit added in v0.274.0

type DeploymentUnit struct {
	// Dependencies: Required. The IDs of the deployment units within the
	// deployment group that this unit depends on.
	Dependencies []string `json:"dependencies,omitempty"`
	// Deployment: Optional. The name of the deployment to be provisioned. Format:
	// 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
	Deployment string `json:"deployment,omitempty"`
	// Id: The id of the deployment unit. Must be unique within the deployment
	// group.
	Id string `json:"id,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Dependencies") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Dependencies") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentUnit: A DeploymentUnit is a container for a deployment and its dependencies. An existing deployment can be provided directly in the unit, or the unit can act as a placeholder to define the DAG, with the deployment specs supplied in a `provisionDeploymentRequest`.

func (DeploymentUnit) MarshalJSON added in v0.274.0

func (s DeploymentUnit) MarshalJSON() ([]byte, error)

type DeploymentUnitProgress added in v0.274.0

type DeploymentUnitProgress struct {
	// Deployment: Output only. The name of the deployment to be provisioned.
	// Format: 'projects/{project}/locations/{location}/deployments/{deployment}'.
	Deployment string `json:"deployment,omitempty"`
	// DeploymentOperationSummary: Output only. The summary of the deployment
	// operation.
	DeploymentOperationSummary *DeploymentOperationSummary `json:"deploymentOperationSummary,omitempty"`
	// Error: Output only. Holds the error status of the deployment unit
	// provisioning.
	Error *Status `json:"error,omitempty"`
	// Intent: Output only. The intent of the deployment unit.
	//
	// Possible values:
	//   "INTENT_UNSPECIFIED" - Unspecified intent.
	//   "CREATE_DEPLOYMENT" - Create deployment in the unit from the deployment
	// spec.
	//   "UPDATE_DEPLOYMENT" - Update deployment in the unit.
	//   "DELETE_DEPLOYMENT" - Delete deployment in the unit.
	//   "RECREATE_DEPLOYMENT" - Recreate deployment in the unit.
	//   "CLEAN_UP" - Delete deployment in latest successful revision while no
	// longer referenced in any deployment unit in the current deployment group.
	//   "UNCHANGED" - Expected to be unchanged.
	Intent string `json:"intent,omitempty"`
	// State: Output only. The current step of the deployment unit provisioning.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is unused.
	//   "QUEUED" - The deployment unit is queued for deployment creation or
	// update.
	//   "APPLYING_DEPLOYMENT" - The underlying deployment of the unit is being
	// created or updated.
	//   "SUCCEEDED" - The underlying deployment operation of the unit has
	// succeeded.
	//   "FAILED" - The underlying deployment operation of the unit has failed.
	//   "ABORTED" - The deployment unit was aborted, likely due to failures in
	// other dependent deployment units.
	//   "SKIPPED" - The deployment unit was skipped because there were no changes
	// to apply.
	//   "DELETING_DEPLOYMENT" - The deployment is being deleted.
	//   "PREVIEWING_DEPLOYMENT" - The deployment is being previewed.
	State string `json:"state,omitempty"`
	// StateDescription: Output only. Additional information regarding the current
	// state.
	StateDescription string `json:"stateDescription,omitempty"`
	// UnitId: Output only. The unit id of the deployment unit to be provisioned.
	UnitId string `json:"unitId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Deployment") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Deployment") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeploymentUnitProgress: The progress of a deployment unit provisioning or deprovisioning.

func (DeploymentUnitProgress) MarshalJSON added in v0.274.0

func (s DeploymentUnitProgress) MarshalJSON() ([]byte, error)

type DeprovisionDeploymentGroupRequest added in v0.274.0

type DeprovisionDeploymentGroupRequest struct {
	// DeletePolicy: Optional. Policy on how resources within each deployment
	// should be handled during deletion. This policy is applied globally to the
	// deletion of all deployments in this group. This corresponds to the
	// 'delete_policy' field in DeleteDeploymentRequest.
	//
	// Possible values:
	//   "DELETE_POLICY_UNSPECIFIED" - Unspecified policy, resources will be
	// deleted.
	//   "DELETE" - Deletes resources actuated by the deployment.
	//   "ABANDON" - Abandons resources and only deletes the deployment and its
	// metadata.
	DeletePolicy string `json:"deletePolicy,omitempty"`
	// Force: Optional. If set to true, this option is propagated to the deletion
	// of each deployment in the group. This corresponds to the 'force' field in
	// DeleteDeploymentRequest.
	Force bool `json:"force,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DeletePolicy") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeletePolicy") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeprovisionDeploymentGroupRequest: The request message for the DeprovisionDeploymentGroup method.

func (DeprovisionDeploymentGroupRequest) MarshalJSON added in v0.274.0

func (s DeprovisionDeploymentGroupRequest) MarshalJSON() ([]byte, error)

type Empty

type Empty struct {
	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type ExportDeploymentStatefileRequest

type ExportDeploymentStatefileRequest struct {
	// Draft: Optional. If this flag is set to true, the exported deployment state
	// file will be the draft state. This will enable the draft file to be
	// validated before copying it over to the working state on unlock.
	Draft bool `json:"draft,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Draft") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Draft") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ExportDeploymentStatefileRequest: A request to export a state file passed to a 'ExportDeploymentStatefile' call.

func (ExportDeploymentStatefileRequest) MarshalJSON

func (s ExportDeploymentStatefileRequest) MarshalJSON() ([]byte, error)

type ExportPreviewResultRequest

type ExportPreviewResultRequest struct {
}

ExportPreviewResultRequest: A request to export preview results.

type ExportPreviewResultResponse

type ExportPreviewResultResponse struct {
	// Result: Output only. Signed URLs for accessing the plan files.
	Result *PreviewResult `json:"result,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Result") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ExportPreviewResultResponse: A response to `ExportPreviewResult` call. Contains preview results.

func (ExportPreviewResultResponse) MarshalJSON

func (s ExportPreviewResultResponse) MarshalJSON() ([]byte, error)

type ExportRevisionStatefileRequest

type ExportRevisionStatefileRequest struct {
}

ExportRevisionStatefileRequest: A request to export a state file passed to a 'ExportRevisionStatefile' call.

type Expr

type Expr struct {
	// Description: Optional. Description of the expression. This is a longer text
	// which describes the expression, e.g. when hovered over it in a UI.
	Description string `json:"description,omitempty"`
	// Expression: Textual representation of an expression in Common Expression
	// Language syntax.
	Expression string `json:"expression,omitempty"`
	// Location: Optional. String indicating the location of the expression for
	// error reporting, e.g. a file name and a position in the file.
	Location string `json:"location,omitempty"`
	// Title: Optional. Title for the expression, i.e. a short string describing
	// its purpose. This can be used e.g. in UIs which allow to enter the
	// expression.
	Title string `json:"title,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Description") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

func (Expr) MarshalJSON

func (s Expr) MarshalJSON() ([]byte, error)

type ExternalValueSource added in v0.274.0

type ExternalValueSource struct {
	// DeploymentSource: A source from a Deployment.
	DeploymentSource *DeploymentSource `json:"deploymentSource,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DeploymentSource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeploymentSource") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ExternalValueSource: Configuration for a source of an external value.

func (ExternalValueSource) MarshalJSON added in v0.274.0

func (s ExternalValueSource) MarshalJSON() ([]byte, error)

type GitSource

type GitSource struct {
	// Directory: Optional. Subdirectory inside the repository. Example:
	// 'staging/my-package'
	Directory string `json:"directory,omitempty"`
	// Ref: Optional. Git reference (e.g. branch or tag).
	Ref string `json:"ref,omitempty"`
	// Repo: Optional. Repository URL. Example:
	// 'https://github.com/kubernetes/examples.git'
	Repo string `json:"repo,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Directory") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Directory") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GitSource: A set of files in a Git repository.

func (GitSource) MarshalJSON

func (s GitSource) MarshalJSON() ([]byte, error)

type ImportStatefileRequest

type ImportStatefileRequest struct {
	// LockId: Required. Lock ID of the lock file to verify that the user who is
	// importing the state file previously locked the Deployment.
	LockId int64 `json:"lockId,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "LockId") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LockId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ImportStatefileRequest: A request to import a state file passed to a 'ImportStatefile' call.

func (ImportStatefileRequest) MarshalJSON

func (s ImportStatefileRequest) MarshalJSON() ([]byte, error)

type ListDeploymentGroupRevisionsResponse added in v0.274.0

type ListDeploymentGroupRevisionsResponse struct {
	// DeploymentGroupRevisions: The deployment group revisions from the specified
	// collection.
	DeploymentGroupRevisions []*DeploymentGroupRevision `json:"deploymentGroupRevisions,omitempty"`
	// NextPageToken: Token to be supplied to the next ListDeploymentGroupRevisions
	// request via `page_token` to obtain the next set of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Unordered list. Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DeploymentGroupRevisions")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeploymentGroupRevisions") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListDeploymentGroupRevisionsResponse: The response message for the ListDeploymentGroupRevisions method.

func (ListDeploymentGroupRevisionsResponse) MarshalJSON added in v0.274.0

func (s ListDeploymentGroupRevisionsResponse) MarshalJSON() ([]byte, error)

type ListDeploymentGroupsResponse added in v0.274.0

type ListDeploymentGroupsResponse struct {
	// DeploymentGroups: The deployment groups from the specified collection.
	DeploymentGroups []*DeploymentGroup `json:"deploymentGroups,omitempty"`
	// NextPageToken: Token to be supplied to the next ListDeploymentGroups request
	// via `page_token` to obtain the next set of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DeploymentGroups") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeploymentGroups") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListDeploymentGroupsResponse: The response message for the ListDeploymentGroups method.

func (ListDeploymentGroupsResponse) MarshalJSON added in v0.274.0

func (s ListDeploymentGroupsResponse) MarshalJSON() ([]byte, error)

type ListDeploymentsResponse

type ListDeploymentsResponse struct {
	// Deployments: List of Deployments.
	Deployments []*Deployment `json:"deployments,omitempty"`
	// NextPageToken: Token to be supplied to the next ListDeployments request via
	// `page_token` to obtain the next set of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Deployments") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Deployments") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ListDeploymentsResponse) MarshalJSON

func (s ListDeploymentsResponse) MarshalJSON() ([]byte, error)

type ListLocationsResponse

type ListLocationsResponse struct {
	// Locations: A list of locations that matches the specified filter in the
	// request.
	Locations []*Location `json:"locations,omitempty"`
	// NextPageToken: The standard List next-page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Locations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Locations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListLocationsResponse: The response message for Locations.ListLocations.

func (ListLocationsResponse) MarshalJSON

func (s ListLocationsResponse) MarshalJSON() ([]byte, error)

type ListOperationsResponse

type ListOperationsResponse struct {
	// NextPageToken: The standard List next-page token.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Operations: A list of operations that matches the specified filter in the
	// request.
	Operations []*Operation `json:"operations,omitempty"`
	// Unreachable: Unordered list. Unreachable resources. Populated when the
	// request sets `ListOperationsRequest.return_partial_success` and reads across
	// collections. For example, when attempting to list all resources across all
	// supported locations.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListOperationsResponse: The response message for Operations.ListOperations.

func (ListOperationsResponse) MarshalJSON

func (s ListOperationsResponse) MarshalJSON() ([]byte, error)

type ListPreviewsResponse

type ListPreviewsResponse struct {
	// NextPageToken: Token to be supplied to the next ListPreviews request via
	// `page_token` to obtain the next set of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Previews: List of Previews.
	Previews []*Preview `json:"previews,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListPreviewsResponse: A response to a `ListPreviews` call. Contains a list of Previews.

func (ListPreviewsResponse) MarshalJSON

func (s ListPreviewsResponse) MarshalJSON() ([]byte, error)

type ListResourceChangesResponse added in v0.237.0

type ListResourceChangesResponse struct {
	// NextPageToken: A token to request the next page of resources from the
	// 'ListResourceChanges' method. The value of an empty string means that there
	// are no more resources to return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// ResourceChanges: List of ResourceChanges.
	ResourceChanges []*ResourceChange `json:"resourceChanges,omitempty"`
	// Unreachable: Unreachable resources, if any.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListResourceChangesResponse: A response to a 'ListResourceChanges' call. Contains a list of ResourceChanges.

func (ListResourceChangesResponse) MarshalJSON added in v0.237.0

func (s ListResourceChangesResponse) MarshalJSON() ([]byte, error)

type ListResourceDriftsResponse added in v0.237.0

type ListResourceDriftsResponse struct {
	// NextPageToken: A token to request the next page of resources from the
	// 'ListResourceDrifts' method. The value of an empty string means that there
	// are no more resources to return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// ResourceDrifts: List of ResourceDrifts.
	ResourceDrifts []*ResourceDrift `json:"resourceDrifts,omitempty"`
	// Unreachable: Unreachable resources, if any.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListResourceDriftsResponse: A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts.

func (ListResourceDriftsResponse) MarshalJSON added in v0.237.0

func (s ListResourceDriftsResponse) MarshalJSON() ([]byte, error)

type ListResourcesResponse

type ListResourcesResponse struct {
	// NextPageToken: A token to request the next page of resources from the
	// 'ListResources' method. The value of an empty string means that there are no
	// more resources to return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Resources: List of Resources.
	Resources []*Resource `json:"resources,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListResourcesResponse: A response to a 'ListResources' call. Contains a list of Resources.

func (ListResourcesResponse) MarshalJSON

func (s ListResourcesResponse) MarshalJSON() ([]byte, error)

type ListRevisionsResponse

type ListRevisionsResponse struct {
	// NextPageToken: A token to request the next page of resources from the
	// 'ListRevisions' method. The value of an empty string means that there are no
	// more resources to return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Revisions: List of Revisions.
	Revisions []*Revision `json:"revisions,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListRevisionsResponse: A response to a 'ListRevisions' call. Contains a list of Revisions.

func (ListRevisionsResponse) MarshalJSON

func (s ListRevisionsResponse) MarshalJSON() ([]byte, error)

type ListTerraformVersionsResponse

type ListTerraformVersionsResponse struct {
	// NextPageToken: Token to be supplied to the next ListTerraformVersions
	// request via `page_token` to obtain the next set of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// TerraformVersions: List of TerraformVersions.
	TerraformVersions []*TerraformVersion `json:"terraformVersions,omitempty"`
	// Unreachable: Unreachable resources, if any.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListTerraformVersionsResponse: The response message for the `ListTerraformVersions` method.

func (ListTerraformVersionsResponse) MarshalJSON

func (s ListTerraformVersionsResponse) MarshalJSON() ([]byte, error)

type Location

type Location struct {
	// DisplayName: The friendly name for this location, typically a nearby city
	// name. For example, "Tokyo".
	DisplayName string `json:"displayName,omitempty"`
	// Labels: Cross-service attributes for the location. For example
	// {"cloud.googleapis.com/region": "us-east1"}
	Labels map[string]string `json:"labels,omitempty"`
	// LocationId: The canonical id for this location. For example: "us-east1".
	LocationId string `json:"locationId,omitempty"`
	// Metadata: Service-specific metadata. For example the available capacity at
	// the given location.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: Resource name for the location, which may vary between
	// implementations. For example:
	// "projects/example-project/locations/us-east1"
	Name string `json:"name,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DisplayName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Location: A resource that represents a Google Cloud location.

func (Location) MarshalJSON

func (s Location) MarshalJSON() ([]byte, error)

type LockDeploymentRequest

type LockDeploymentRequest struct {
}

LockDeploymentRequest: A request to lock a deployment passed to a 'LockDeployment' call.

type LockInfo

type LockInfo struct {
	// CreateTime: Time that the lock was taken.
	CreateTime string `json:"createTime,omitempty"`
	// Info: Extra information to store with the lock, provided by the caller.
	Info string `json:"info,omitempty"`
	// LockId: Unique ID for the lock to be overridden with generation ID in the
	// backend.
	LockId int64 `json:"lockId,omitempty,string"`
	// Operation: Terraform operation, provided by the caller.
	Operation string `json:"operation,omitempty"`
	// Version: Terraform version
	Version string `json:"version,omitempty"`
	// Who: user@hostname when available
	Who string `json:"who,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

LockInfo: Details about the lock which locked the deployment.

func (LockInfo) MarshalJSON

func (s LockInfo) MarshalJSON() ([]byte, error)

type Operation

type Operation struct {
	// Done: If the value is `false`, it means the operation is still in progress.
	// If `true`, the operation is completed, and either `error` or `response` is
	// available.
	Done bool `json:"done,omitempty"`
	// Error: The error result of the operation in case of failure or cancellation.
	Error *Status `json:"error,omitempty"`
	// Metadata: Service-specific metadata associated with the operation. It
	// typically contains progress information and common metadata such as create
	// time. Some services might not provide such metadata. Any method that returns
	// a long-running operation should document the metadata type, if any.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: The server-assigned name, which is only unique within the same service
	// that originally returns it. If you use the default HTTP mapping, the `name`
	// should be a resource name ending with `operations/{unique_id}`.
	Name string `json:"name,omitempty"`
	// Response: The normal, successful response of the operation. If the original
	// method returns no data on success, such as `Delete`, the response is
	// `google.protobuf.Empty`. If the original method is standard
	// `Get`/`Create`/`Update`, the response should be the resource. For other
	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
	// original method name. For example, if the original method name is
	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
	Response googleapi.RawMessage `json:"response,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Done") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Operation: This resource represents a long-running operation that is the result of a network API call.

func (Operation) MarshalJSON

func (s Operation) MarshalJSON() ([]byte, error)

type OperationMetadata

type OperationMetadata struct {
	// ApiVersion: Output only. API version used to start the operation.
	ApiVersion string `json:"apiVersion,omitempty"`
	// CreateTime: Output only. Time when the operation was created.
	CreateTime string `json:"createTime,omitempty"`
	// DeploymentMetadata: Output only. Metadata about the deployment operation
	// state.
	DeploymentMetadata *DeploymentOperationMetadata `json:"deploymentMetadata,omitempty"`
	// EndTime: Output only. Time when the operation finished running.
	EndTime string `json:"endTime,omitempty"`
	// PreviewMetadata: Output only. Metadata about the preview operation state.
	PreviewMetadata *PreviewOperationMetadata `json:"previewMetadata,omitempty"`
	// ProvisionDeploymentGroupMetadata: Output only. Metadata about
	// ProvisionDeploymentGroup operation state.
	ProvisionDeploymentGroupMetadata *ProvisionDeploymentGroupOperationMetadata `json:"provisionDeploymentGroupMetadata,omitempty"`
	// RequestedCancellation: Output only. Identifies whether the user has
	// requested cancellation of the operation. Operations that have successfully
	// been cancelled have google.longrunning.Operation.error value with a
	// google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
	// StatusMessage: Output only. Human-readable status of the operation, if any.
	StatusMessage string `json:"statusMessage,omitempty"`
	// Target: Output only. Server-defined resource path for the target of the
	// operation.
	Target string `json:"target,omitempty"`
	// Verb: Output only. Name of the verb executed by the operation.
	Verb string `json:"verb,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

OperationMetadata: Represents the metadata of the long-running operation.

func (OperationMetadata) MarshalJSON

func (s OperationMetadata) MarshalJSON() ([]byte, error)

type Policy

type Policy struct {
	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
	// Bindings: Associates a list of `members`, or principals, with a `role`.
	// Optionally, may specify a `condition` that determines how and when the
	// `bindings` are applied. Each of the `bindings` must contain at least one
	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
	// up to 250 of these principals can be Google groups. Each occurrence of a
	// principal counts towards these limits. For example, if the `bindings` grant
	// 50 different roles to `user:alice@example.com`, and not to any other
	// principal, then you can add another 1,450 principals to the `bindings` in
	// the `Policy`.
	Bindings []*Binding `json:"bindings,omitempty"`
	// Etag: `etag` is used for optimistic concurrency control as a way to help
	// prevent simultaneous updates of a policy from overwriting each other. It is
	// strongly suggested that systems make use of the `etag` in the
	// read-modify-write cycle to perform policy updates in order to avoid race
	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
	// systems are expected to put that etag in the request to `setIamPolicy` to
	// ensure that their change will be applied to the same version of the policy.
	// **Important:** If you use IAM Conditions, you must include the `etag` field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
	// you to overwrite a version `3` policy with a version `1` policy, and all of
	// the conditions in the version `3` policy are lost.
	Etag string `json:"etag,omitempty"`
	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
	// `3`. Requests that specify an invalid value are rejected. Any operation that
	// affects conditional role bindings must specify version `3`. This requirement
	// applies to the following operations: * Getting a policy that includes a
	// conditional role binding * Adding a conditional role binding to a policy *
	// Changing a conditional role binding in a policy * Removing any role binding,
	// with or without a condition, from a policy that includes conditions
	// **Important:** If you use IAM Conditions, you must include the `etag` field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
	// you to overwrite a version `3` policy with a version `1` policy, and all of
	// the conditions in the version `3` policy are lost. If a policy does not
	// include any conditions, operations on that policy may specify any valid
	// version or leave the field unset. To learn which resources support
	// conditions in their IAM policies, see the IAM documentation
	// (https://cloud.google.com/iam/help/conditions/resource-policies).
	Version int64 `json:"version,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).

func (Policy) MarshalJSON

func (s Policy) MarshalJSON() ([]byte, error)

type Preview

type Preview struct {
	// Annotations: Optional. Arbitrary key-value metadata storage e.g. to help
	// client tools identify preview during automation. See
	// https://google.aip.dev/148#annotations for details on format and size
	// limitations.
	Annotations map[string]string `json:"annotations,omitempty"`
	// ArtifactsGcsBucket: 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://--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.
	ArtifactsGcsBucket string `json:"artifactsGcsBucket,omitempty"`
	// Build: Output only. Cloud Build instance UUID associated with this preview.
	Build string `json:"build,omitempty"`
	// CreateTime: Output only. Time the preview was created.
	CreateTime string `json:"createTime,omitempty"`
	// Deployment: 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.
	Deployment string `json:"deployment,omitempty"`
	// ErrorCode: Output only. Code describing any errors that may have occurred.
	//
	// Possible values:
	//   "ERROR_CODE_UNSPECIFIED" - No error code was specified.
	//   "CLOUD_BUILD_PERMISSION_DENIED" - Cloud Build failed due to a permissions
	// issue.
	//   "BUCKET_CREATION_PERMISSION_DENIED" - Cloud Storage bucket failed to
	// create due to a permissions issue.
	//   "BUCKET_CREATION_FAILED" - Cloud Storage bucket failed for a
	// non-permissions-related issue.
	//   "DEPLOYMENT_LOCK_ACQUIRE_FAILED" - Acquiring lock on provided deployment
	// reference failed.
	//   "PREVIEW_BUILD_API_FAILED" - Preview encountered an error when trying to
	// access Cloud Build API.
	//   "PREVIEW_BUILD_RUN_FAILED" - Preview created a build but build failed and
	// logs were generated.
	//   "EXTERNAL_VALUE_SOURCE_IMPORT_FAILED" - Failed to import values from an
	// external source.
	ErrorCode string `json:"errorCode,omitempty"`
	// ErrorLogs: 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}`.
	ErrorLogs string `json:"errorLogs,omitempty"`
	// ErrorStatus: Output only. Additional information regarding the current
	// state.
	ErrorStatus *Status `json:"errorStatus,omitempty"`
	// Labels: Optional. User-defined labels for the preview.
	Labels map[string]string `json:"labels,omitempty"`
	// Logs: Output only. Location of preview logs in `gs://{bucket}/{object}`
	// format.
	Logs string `json:"logs,omitempty"`
	// Name: 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}`
	Name string `json:"name,omitempty"`
	// PreviewArtifacts: Output only. Artifacts from preview.
	PreviewArtifacts *PreviewArtifacts `json:"previewArtifacts,omitempty"`
	// PreviewMode: Optional. Current mode of preview.
	//
	// Possible values:
	//   "PREVIEW_MODE_UNSPECIFIED" - Unspecified policy, default mode will be
	// used.
	//   "DEFAULT" - DEFAULT mode generates an execution plan for reconciling
	// current resource state into expected resource state.
	//   "DELETE" - DELETE mode generates as execution plan for destroying current
	// resources.
	PreviewMode string `json:"previewMode,omitempty"`
	// ProviderConfig: Optional. This field specifies the provider configurations.
	ProviderConfig *ProviderConfig `json:"providerConfig,omitempty"`
	// ServiceAccount: Required. User-specified Service Account (SA) credentials to
	// be used when previewing resources. Format:
	// `projects/{projectID}/serviceAccounts/{serviceAccount}`
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// State: Output only. Current state of the preview.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
	// is unknown.
	//   "CREATING" - The preview is being created.
	//   "SUCCEEDED" - The preview has succeeded.
	//   "APPLYING" - The preview is being applied.
	//   "STALE" - The preview is stale. A preview can become stale if a revision
	// has been applied after this preview was created.
	//   "DELETING" - The preview is being deleted.
	//   "FAILED" - The preview has encountered an unexpected error.
	//   "DELETED" - The preview has been deleted.
	State string `json:"state,omitempty"`
	// TerraformBlueprint: The terraform blueprint to preview.
	TerraformBlueprint *TerraformBlueprint `json:"terraformBlueprint,omitempty"`
	// TfErrors: 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.
	TfErrors []*TerraformError `json:"tfErrors,omitempty"`
	// TfVersion: Output only. The current Terraform version set on the preview. It
	// is in the format of "Major.Minor.Patch", for example, "1.3.10".
	TfVersion string `json:"tfVersion,omitempty"`
	// TfVersionConstraint: Optional. The user-specified Terraform version
	// constraint. Example: "=1.3.10".
	TfVersionConstraint string `json:"tfVersionConstraint,omitempty"`
	// WorkerPool: 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.
	WorkerPool string `json:"workerPool,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Annotations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Annotations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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.

func (Preview) MarshalJSON

func (s Preview) MarshalJSON() ([]byte, error)

type PreviewArtifacts

type PreviewArtifacts struct {
	// Artifacts: Output only. Location of artifacts in Google Cloud Storage.
	// Format: `gs://{bucket}/{object}`
	Artifacts string `json:"artifacts,omitempty"`
	// Content: Output only. Location of a blueprint copy and other content in
	// Google Cloud Storage. Format: `gs://{bucket}/{object}`
	Content string `json:"content,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Artifacts") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Artifacts") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PreviewArtifacts: Artifacts created by preview.

func (PreviewArtifacts) MarshalJSON

func (s PreviewArtifacts) MarshalJSON() ([]byte, error)

type PreviewOperationMetadata

type PreviewOperationMetadata struct {
	// Build: Output only. Cloud Build instance UUID associated with this preview.
	Build string `json:"build,omitempty"`
	// Logs: Output only. Location of preview logs in `gs://{bucket}/{object}`
	// format.
	Logs string `json:"logs,omitempty"`
	// PreviewArtifacts: Artifacts from preview.
	PreviewArtifacts *PreviewArtifacts `json:"previewArtifacts,omitempty"`
	// Step: The current step the preview operation is running.
	//
	// Possible values:
	//   "PREVIEW_STEP_UNSPECIFIED" - Unspecified preview step.
	//   "PREPARING_STORAGE_BUCKET" - Infra Manager is creating a Google Cloud
	// Storage bucket to store artifacts and metadata about the preview.
	//   "DOWNLOADING_BLUEPRINT" - Downloading the blueprint onto the Google Cloud
	// Storage bucket.
	//   "RUNNING_TF_INIT" - Initializing Terraform using `terraform init`.
	//   "RUNNING_TF_PLAN" - Running `terraform plan`.
	//   "FETCHING_DEPLOYMENT" - Fetching a deployment.
	//   "LOCKING_DEPLOYMENT" - Locking a deployment.
	//   "UNLOCKING_DEPLOYMENT" - Unlocking a deployment.
	//   "SUCCEEDED" - Operation was successful.
	//   "FAILED" - Operation failed.
	//   "VALIDATING_REPOSITORY" - Validating the provided repository.
	Step string `json:"step,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Build") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Build") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PreviewOperationMetadata: Ephemeral metadata content describing the state of a preview operation.

func (PreviewOperationMetadata) MarshalJSON

func (s PreviewOperationMetadata) MarshalJSON() ([]byte, error)

type PreviewResult

type PreviewResult struct {
	// BinarySignedUri: Output only. Plan binary signed URL
	BinarySignedUri string `json:"binarySignedUri,omitempty"`
	// JsonSignedUri: Output only. Plan JSON signed URL
	JsonSignedUri string `json:"jsonSignedUri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BinarySignedUri") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BinarySignedUri") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PreviewResult: Contains a signed Cloud Storage URLs.

func (PreviewResult) MarshalJSON

func (s PreviewResult) MarshalJSON() ([]byte, error)

type ProjectsLocationsDeploymentGroupsCreateCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsCreateCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsCreateCall) DeploymentGroupId added in v0.274.0

DeploymentGroupId sets the optional parameter "deploymentGroupId": Required. The deployment group ID.

func (*ProjectsLocationsDeploymentGroupsCreateCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsCreateCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsCreateCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsCreateCall) RequestId added in v0.274.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsDeploymentGroupsDeleteCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsDeleteCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsDeleteCall) DeploymentReferencePolicy added in v0.274.0

func (c *ProjectsLocationsDeploymentGroupsDeleteCall) DeploymentReferencePolicy(deploymentReferencePolicy string) *ProjectsLocationsDeploymentGroupsDeleteCall

DeploymentReferencePolicy sets the optional parameter "deploymentReferencePolicy": Policy on how to handle referenced deployments when deleting the DeploymentGroup. If unspecified, the default behavior is to fail the deletion if any deployments currently referenced in the `deployment_units` of the DeploymentGroup or in the latest revision are not deleted.

Possible values:

"DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED" - The default behavior. If

unspecified, the system will act as if `FAIL_IF_ANY_REFERENCES_EXIST` is specified.

"FAIL_IF_ANY_REFERENCES_EXIST" - Fail the deletion if any deployments

currently referenced in the `deployment_units` of the DeploymentGroup or in the latest revision are not deleted.

"FAIL_IF_METADATA_REFERENCES_EXIST" - Fail the deletion only if any

deployments currently referenced in the `deployment_units` of the DeploymentGroup are not deleted. The deletion will proceed even if the deployments in the latest revision of the DeploymentGroup are not deleted.

"IGNORE_DEPLOYMENT_REFERENCES" - Ignore any deployments currently

referenced in the `deployment_units` of the DeploymentGroup or in the latest revision.

func (*ProjectsLocationsDeploymentGroupsDeleteCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsDeleteCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsDeleteCall) Force added in v0.274.0

Force sets the optional parameter "force": If set to true, any revisions for this deployment group will also be deleted. (Otherwise, the request will only work if the deployment group has no revisions.)

func (*ProjectsLocationsDeploymentGroupsDeleteCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsDeleteCall) RequestId added in v0.274.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsDeploymentGroupsDeprovisionCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsDeprovisionCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsDeprovisionCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsDeprovisionCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.deprovision" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsDeprovisionCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsDeprovisionCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentGroupsGetCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsGetCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsGetCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.get" call. Any non-2xx status code is an error. Response headers are in either *DeploymentGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsGetCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsGetCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsGetCall) IfNoneMatch added in v0.274.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsDeploymentGroupsListCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsListCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsListCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.list" call. Any non-2xx status code is an error. Response headers are in either *ListDeploymentGroupsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsListCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsListCall) Filter added in v0.274.0

Filter sets the optional parameter "filter": Lists the DeploymentGroups that match the filter expression. A filter expression filters the deployment groups listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/deploymentGroups/bar" - Filter by labels: - Resources that have a key called 'foo' labels.foo:* - Resources that have a key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: - DeploymentGroups in CREATING state. state=CREATING

func (*ProjectsLocationsDeploymentGroupsListCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsListCall) IfNoneMatch added in v0.274.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsDeploymentGroupsListCall) OrderBy added in v0.274.0

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsDeploymentGroupsListCall) PageSize added in v0.274.0

PageSize sets the optional parameter "pageSize": When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsDeploymentGroupsListCall) PageToken added in v0.274.0

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListDeploymentGroups' which specifies the position in the list from where to continue listing the deployment groups.

func (*ProjectsLocationsDeploymentGroupsListCall) Pages added in v0.274.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsDeploymentGroupsPatchCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsPatchCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsPatchCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsPatchCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsPatchCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsPatchCall) RequestId added in v0.274.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsDeploymentGroupsPatchCall) UpdateMask added in v0.274.0

UpdateMask sets the optional parameter "updateMask": Field mask used to specify the fields to be overwritten in the Deployment Group 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.

type ProjectsLocationsDeploymentGroupsProvisionCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsProvisionCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsProvisionCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsProvisionCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.provision" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsProvisionCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsProvisionCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentGroupsRevisionsGetCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsRevisionsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsRevisionsGetCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsRevisionsGetCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.revisions.get" call. Any non-2xx status code is an error. Response headers are in either *DeploymentGroupRevision.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsRevisionsGetCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsRevisionsGetCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsRevisionsGetCall) IfNoneMatch added in v0.274.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsDeploymentGroupsRevisionsListCall added in v0.274.0

type ProjectsLocationsDeploymentGroupsRevisionsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) Context added in v0.274.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) Do added in v0.274.0

Do executes the "config.projects.locations.deploymentGroups.revisions.list" call. Any non-2xx status code is an error. Response headers are in either *ListDeploymentGroupRevisionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) Fields added in v0.274.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) Header added in v0.274.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) IfNoneMatch added in v0.274.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) PageSize added in v0.274.0

PageSize sets the optional parameter "pageSize": When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, a sensible default will be used by the server. The maximum value is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) PageToken added in v0.274.0

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListDeploymentGroupRevisions' which specifies the position in the list from where to continue listing the deployment group revisions. All other parameters provided to `ListDeploymentGroupRevisions` must match the call that provided the page token.

func (*ProjectsLocationsDeploymentGroupsRevisionsListCall) Pages added in v0.274.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsDeploymentGroupsRevisionsService added in v0.274.0

type ProjectsLocationsDeploymentGroupsRevisionsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsDeploymentGroupsRevisionsService added in v0.274.0

func NewProjectsLocationsDeploymentGroupsRevisionsService(s *Service) *ProjectsLocationsDeploymentGroupsRevisionsService

func (*ProjectsLocationsDeploymentGroupsRevisionsService) Get added in v0.274.0

Get: Gets details about a DeploymentGroupRevision.

  • name: The name of the deployment group revision to retrieve. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_gr oup}/revisions/{revision}'.

func (*ProjectsLocationsDeploymentGroupsRevisionsService) List added in v0.274.0

List: Lists DeploymentGroupRevisions in a given DeploymentGroup.

  • parent: The parent, which owns this collection of deployment group revisions. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_gr oup}'.

type ProjectsLocationsDeploymentGroupsService added in v0.274.0

type ProjectsLocationsDeploymentGroupsService struct {
	Revisions *ProjectsLocationsDeploymentGroupsRevisionsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsDeploymentGroupsService added in v0.274.0

func NewProjectsLocationsDeploymentGroupsService(s *Service) *ProjectsLocationsDeploymentGroupsService

func (*ProjectsLocationsDeploymentGroupsService) Create added in v0.274.0

Create: Creates a DeploymentGroup The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls.

  • parent: The parent in whose context the Deployment Group is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

func (*ProjectsLocationsDeploymentGroupsService) Delete added in v0.274.0

Delete: Deletes a DeploymentGroup

  • name: The name of DeploymentGroup in the format projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentG roup}.

func (*ProjectsLocationsDeploymentGroupsService) Deprovision added in v0.274.0

Deprovision: Deprovisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.

  • name: The name of the deployment group to deprovision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_gr oup}'.

func (*ProjectsLocationsDeploymentGroupsService) Get added in v0.274.0

Get: Get a DeploymentGroup for a given project and location.

  • name: The name of the deployment group to retrieve. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_gr oup}'.

func (*ProjectsLocationsDeploymentGroupsService) List added in v0.274.0

List: List DeploymentGroups for a given project and location.

  • parent: The parent, which owns this collection of deployment groups. Format: 'projects/{project_id}/locations/{location}'.

func (*ProjectsLocationsDeploymentGroupsService) Patch added in v0.274.0

Patch: Updates a DeploymentGroup

  • name: Identifier. The name of the deployment group. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_gr oup}'.

func (*ProjectsLocationsDeploymentGroupsService) Provision added in v0.274.0

Provision: Provisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.

  • name: The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_gr oup}'.

type ProjectsLocationsDeploymentsCreateCall

type ProjectsLocationsDeploymentsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsCreateCall) DeploymentId

DeploymentId sets the optional parameter "deploymentId": Required. The Deployment ID.

func (*ProjectsLocationsDeploymentsCreateCall) Do

Do executes the "config.projects.locations.deployments.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsCreateCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsDeploymentsDeleteCall

type ProjectsLocationsDeploymentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsDeleteCall) DeletePolicy

DeletePolicy sets the optional parameter "deletePolicy": Policy on how resources actuated by the deployment should be deleted. If unspecified, the default behavior is to delete the underlying resources.

Possible values:

"DELETE_POLICY_UNSPECIFIED" - Unspecified policy, resources will be

deleted.

"DELETE" - Deletes resources actuated by the deployment.
"ABANDON" - Abandons resources and only deletes the deployment and its

metadata.

func (*ProjectsLocationsDeploymentsDeleteCall) Do

Do executes the "config.projects.locations.deployments.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsDeleteCall) Force

Force sets the optional parameter "force": If set to true, any revisions for this deployment will also be deleted. (Otherwise, the request will only work if the deployment has no revisions.)

func (*ProjectsLocationsDeploymentsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsDeleteCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsDeploymentsDeleteStateCall

type ProjectsLocationsDeploymentsDeleteStateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsDeleteStateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsDeleteStateCall) Do

Do executes the "config.projects.locations.deployments.deleteState" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsDeleteStateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsDeleteStateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsExportLockCall

type ProjectsLocationsDeploymentsExportLockCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsExportLockCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsExportLockCall) Do

Do executes the "config.projects.locations.deployments.exportLock" call. Any non-2xx status code is an error. Response headers are in either *LockInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsExportLockCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsExportLockCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsExportLockCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsDeploymentsExportStateCall

type ProjectsLocationsDeploymentsExportStateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsExportStateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsExportStateCall) Do

Do executes the "config.projects.locations.deployments.exportState" call. Any non-2xx status code is an error. Response headers are in either *Statefile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsExportStateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsExportStateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsGetCall

type ProjectsLocationsDeploymentsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsGetCall) Do

Do executes the "config.projects.locations.deployments.get" call. Any non-2xx status code is an error. Response headers are in either *Deployment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsDeploymentsGetIamPolicyCall

type ProjectsLocationsDeploymentsGetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsGetIamPolicyCall) Do

Do executes the "config.projects.locations.deployments.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsGetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDeploymentsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).

type ProjectsLocationsDeploymentsImportStateCall

type ProjectsLocationsDeploymentsImportStateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsImportStateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsImportStateCall) Do

Do executes the "config.projects.locations.deployments.importState" call. Any non-2xx status code is an error. Response headers are in either *Statefile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsImportStateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsImportStateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsListCall

type ProjectsLocationsDeploymentsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsListCall) Do

Do executes the "config.projects.locations.deployments.list" call. Any non-2xx status code is an error. Response headers are in either *ListDeploymentsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsListCall) Filter

Filter sets the optional parameter "filter": Lists the Deployments that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/deployments/bar - Filter by labels: - Resources that have a key called 'foo' labels.foo:* - Resources that have a key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: - Deployments in CREATING state. state=CREATING

func (*ProjectsLocationsDeploymentsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsDeploymentsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsDeploymentsListCall) PageSize

PageSize sets the optional parameter "pageSize": When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsDeploymentsListCall) PageToken

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListDeployments' which specifies the position in the list from where to continue listing the resources.

func (*ProjectsLocationsDeploymentsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsDeploymentsLockCall

type ProjectsLocationsDeploymentsLockCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsLockCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsLockCall) Do

Do executes the "config.projects.locations.deployments.lock" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsLockCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsLockCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsPatchCall

type ProjectsLocationsDeploymentsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsPatchCall) Do

Do executes the "config.projects.locations.deployments.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsPatchCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsDeploymentsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": 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.

type ProjectsLocationsDeploymentsRevisionsExportStateCall

type ProjectsLocationsDeploymentsRevisionsExportStateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsRevisionsExportStateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsRevisionsExportStateCall) Do

Do executes the "config.projects.locations.deployments.revisions.exportState" call. Any non-2xx status code is an error. Response headers are in either *Statefile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsRevisionsExportStateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsRevisionsExportStateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsRevisionsGetCall

type ProjectsLocationsDeploymentsRevisionsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsRevisionsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsRevisionsGetCall) Do

Do executes the "config.projects.locations.deployments.revisions.get" call. Any non-2xx status code is an error. Response headers are in either *Revision.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsRevisionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsRevisionsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsRevisionsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsDeploymentsRevisionsListCall

type ProjectsLocationsDeploymentsRevisionsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsRevisionsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsRevisionsListCall) Do

Do executes the "config.projects.locations.deployments.revisions.list" call. Any non-2xx status code is an error. Response headers are in either *ListRevisionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsRevisionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsRevisionsListCall) Filter

Filter sets the optional parameter "filter": Lists the Revisions that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/deployments/dep/revisions/bar - Filter by labels: - Resources that have a key called 'foo' labels.foo:* - Resources that have a key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: - Revisions in CREATING state. state=CREATING

func (*ProjectsLocationsDeploymentsRevisionsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsRevisionsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsDeploymentsRevisionsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsDeploymentsRevisionsListCall) PageSize

PageSize sets the optional parameter "pageSize": When requesting a page of resources, `page_size` specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsDeploymentsRevisionsListCall) PageToken

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListRevisions' which specifies the position in the list from where to continue listing the resources.

func (*ProjectsLocationsDeploymentsRevisionsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsDeploymentsRevisionsResourcesGetCall

type ProjectsLocationsDeploymentsRevisionsResourcesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Do

Do executes the "config.projects.locations.deployments.revisions.resources.get" call. Any non-2xx status code is an error. Response headers are in either *Resource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsDeploymentsRevisionsResourcesListCall

type ProjectsLocationsDeploymentsRevisionsResourcesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) Do

Do executes the "config.projects.locations.deployments.revisions.resources.list" call. Any non-2xx status code is an error. Response headers are in either *ListResourcesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) Filter

Filter sets the optional parameter "filter": Lists the Resources that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/deployments/dep/revisions/bar/resources/b az

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) PageSize

PageSize sets the optional parameter "pageSize": When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) PageToken

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListResources' which specifies the position in the list from where to continue listing the resources.

func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsDeploymentsRevisionsResourcesService

type ProjectsLocationsDeploymentsRevisionsResourcesService struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsRevisionsResourcesService) Get

Get: Gets details about a Resource deployed by Infra Manager.

  • name: The name of the Resource in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisi ons/{revision}/resource/{resource}'.

func (*ProjectsLocationsDeploymentsRevisionsResourcesService) List

List: Lists Resources in a given revision.

  • parent: The parent in whose context the Resources are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisi ons/{revision}'.

type ProjectsLocationsDeploymentsRevisionsService

type ProjectsLocationsDeploymentsRevisionsService struct {
	Resources *ProjectsLocationsDeploymentsRevisionsResourcesService
	// contains filtered or unexported fields
}

func NewProjectsLocationsDeploymentsRevisionsService

func NewProjectsLocationsDeploymentsRevisionsService(s *Service) *ProjectsLocationsDeploymentsRevisionsService

func (*ProjectsLocationsDeploymentsRevisionsService) ExportState

ExportState: Exports Terraform state file from a given revision.

  • parent: The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisi ons/{revision}'.

func (*ProjectsLocationsDeploymentsRevisionsService) Get

Get: Gets details about a Revision.

  • name: The name of the Revision in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisi ons/{revision}'.

func (*ProjectsLocationsDeploymentsRevisionsService) List

List: Lists Revisions of a deployment.

  • parent: The parent in whose context the Revisions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

type ProjectsLocationsDeploymentsService

type ProjectsLocationsDeploymentsService struct {
	Revisions *ProjectsLocationsDeploymentsRevisionsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsDeploymentsService

func NewProjectsLocationsDeploymentsService(s *Service) *ProjectsLocationsDeploymentsService

func (*ProjectsLocationsDeploymentsService) Create

Create: Creates a Deployment.

  • parent: The parent in whose context the Deployment is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

func (*ProjectsLocationsDeploymentsService) Delete

Delete: Deletes a Deployment.

  • name: The name of the Deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) DeleteState

DeleteState: Deletes Terraform state file in a given deployment.

  • name: The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) ExportLock

ExportLock: Exports the lock info on a locked deployment.

  • name: The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) ExportState

ExportState: Exports Terraform state file from a given deployment.

  • parent: The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) Get

Get: Gets details about a Deployment.

  • name: The name of the deployment. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsDeploymentsService) ImportState

ImportState: Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.

  • parent: The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) List

List: Lists Deployments in a given project and location.

  • parent: The parent in whose context the Deployments are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

func (*ProjectsLocationsDeploymentsService) Lock

Lock: Locks a deployment.

  • name: The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

func (*ProjectsLocationsDeploymentsService) Patch

Patch: Updates a Deployment.

  • name: Identifier. Resource name of the deployment. Format: `projects/{project}/locations/{location}/deployments/{deployment}`.

func (*ProjectsLocationsDeploymentsService) SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsDeploymentsService) TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

func (*ProjectsLocationsDeploymentsService) Unlock

Unlock: Unlocks a locked deployment.

  • name: The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

type ProjectsLocationsDeploymentsSetIamPolicyCall

type ProjectsLocationsDeploymentsSetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsSetIamPolicyCall) Do

Do executes the "config.projects.locations.deployments.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsSetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsTestIamPermissionsCall

type ProjectsLocationsDeploymentsTestIamPermissionsCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsTestIamPermissionsCall) Do

Do executes the "config.projects.locations.deployments.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsTestIamPermissionsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsDeploymentsUnlockCall

type ProjectsLocationsDeploymentsUnlockCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsDeploymentsUnlockCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeploymentsUnlockCall) Do

Do executes the "config.projects.locations.deployments.unlock" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsDeploymentsUnlockCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsDeploymentsUnlockCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsGetAutoMigrationConfigCall added in v0.258.0

type ProjectsLocationsGetAutoMigrationConfigCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsGetAutoMigrationConfigCall) Context added in v0.258.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetAutoMigrationConfigCall) Do added in v0.258.0

Do executes the "config.projects.locations.getAutoMigrationConfig" call. Any non-2xx status code is an error. Response headers are in either *AutoMigrationConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGetAutoMigrationConfigCall) Fields added in v0.258.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsGetAutoMigrationConfigCall) Header added in v0.258.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsGetAutoMigrationConfigCall) IfNoneMatch added in v0.258.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsGetCall

type ProjectsLocationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall) Do

Do executes the "config.projects.locations.get" call. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsGetCall) Header

func (c *ProjectsLocationsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsGetCall) IfNoneMatch

func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsListCall

type ProjectsLocationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall) Do

Do executes the "config.projects.locations.list" call. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsListCall) ExtraLocationTypes added in v0.230.0

func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall

ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.

func (*ProjectsLocationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsListCall) Filter

Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).

func (*ProjectsLocationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsListCall) IfNoneMatch

func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.

func (*ProjectsLocationsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsOperationsCancelCall

type ProjectsLocationsOperationsCancelCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsCancelCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall) Do

Do executes the "config.projects.locations.operations.cancel" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsCancelCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsCancelCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsDeleteCall

type ProjectsLocationsOperationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsDeleteCall) Do

Do executes the "config.projects.locations.operations.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsGetCall

type ProjectsLocationsOperationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall) Do

Do executes the "config.projects.locations.operations.get" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsOperationsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsOperationsListCall

type ProjectsLocationsOperationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall) Do

Do executes the "config.projects.locations.operations.list" call. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsListCall) Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsOperationsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsOperationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The standard list page size.

func (*ProjectsLocationsOperationsListCall) PageToken

PageToken sets the optional parameter "pageToken": The standard list page token.

func (*ProjectsLocationsOperationsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ProjectsLocationsOperationsListCall) ReturnPartialSuccess added in v0.252.0

func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall

ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to "projects/example/locations/-". This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.

type ProjectsLocationsOperationsService

type ProjectsLocationsOperationsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsOperationsService

func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService

func (*ProjectsLocationsOperationsService) Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsLocationsOperationsService) Delete

Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

- name: The name of the operation resource to be deleted.

func (*ProjectsLocationsOperationsService) Get

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService) List

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

type ProjectsLocationsPreviewsCreateCall

type ProjectsLocationsPreviewsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsCreateCall) Do

Do executes the "config.projects.locations.previews.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsCreateCall) PreviewId

PreviewId sets the optional parameter "previewId": The preview ID.

func (*ProjectsLocationsPreviewsCreateCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsPreviewsDeleteCall

type ProjectsLocationsPreviewsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsDeleteCall) Do

Do executes the "config.projects.locations.previews.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsDeleteCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsPreviewsExportCall

type ProjectsLocationsPreviewsExportCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsExportCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsExportCall) Do

Do executes the "config.projects.locations.previews.export" call. Any non-2xx status code is an error. Response headers are in either *ExportPreviewResultResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsExportCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsExportCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsPreviewsGetCall

type ProjectsLocationsPreviewsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsGetCall) Do

Do executes the "config.projects.locations.previews.get" call. Any non-2xx status code is an error. Response headers are in either *Preview.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsPreviewsListCall

type ProjectsLocationsPreviewsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsListCall) Do

Do executes the "config.projects.locations.previews.list" call. Any non-2xx status code is an error. Response headers are in either *ListPreviewsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsListCall) Filter

Filter sets the optional parameter "filter": Lists the Deployments that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/deployments/bar - Filter by labels: - Resources that have a key called 'foo' labels.foo:* - Resources that have a key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: - Deployments in CREATING state. state=CREATING

func (*ProjectsLocationsPreviewsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsPreviewsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsPreviewsListCall) PageSize

PageSize sets the optional parameter "pageSize": When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsPreviewsListCall) PageToken

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListDeployments' which specifies the position in the list from where to continue listing the resources.

func (*ProjectsLocationsPreviewsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsPreviewsResourceChangesGetCall added in v0.237.0

type ProjectsLocationsPreviewsResourceChangesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsResourceChangesGetCall) Context added in v0.237.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsResourceChangesGetCall) Do added in v0.237.0

Do executes the "config.projects.locations.previews.resourceChanges.get" call. Any non-2xx status code is an error. Response headers are in either *ResourceChange.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsResourceChangesGetCall) Fields added in v0.237.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsResourceChangesGetCall) Header added in v0.237.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsResourceChangesGetCall) IfNoneMatch added in v0.237.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsPreviewsResourceChangesListCall added in v0.237.0

type ProjectsLocationsPreviewsResourceChangesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsResourceChangesListCall) Context added in v0.237.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsResourceChangesListCall) Do added in v0.237.0

Do executes the "config.projects.locations.previews.resourceChanges.list" call. Any non-2xx status code is an error. Response headers are in either *ListResourceChangesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsResourceChangesListCall) Fields added in v0.237.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsResourceChangesListCall) Filter added in v0.237.0

Filter sets the optional parameter "filter": Lists the resource changes that match the filter expression. A filter expression filters the resource changes listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz

func (*ProjectsLocationsPreviewsResourceChangesListCall) Header added in v0.237.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsResourceChangesListCall) IfNoneMatch added in v0.237.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsPreviewsResourceChangesListCall) OrderBy added in v0.237.0

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsPreviewsResourceChangesListCall) PageSize added in v0.237.0

PageSize sets the optional parameter "pageSize": When requesting a page of resource changes, 'page_size' specifies number of resource changes to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsPreviewsResourceChangesListCall) PageToken added in v0.237.0

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListResourceChanges' which specifies the position in the list from where to continue listing the resource changes.

func (*ProjectsLocationsPreviewsResourceChangesListCall) Pages added in v0.237.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsPreviewsResourceChangesService added in v0.237.0

type ProjectsLocationsPreviewsResourceChangesService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsPreviewsResourceChangesService added in v0.237.0

func NewProjectsLocationsPreviewsResourceChangesService(s *Service) *ProjectsLocationsPreviewsResourceChangesService

func (*ProjectsLocationsPreviewsResourceChangesService) Get added in v0.237.0

Get: Get a ResourceChange for a given preview.

  • name: The name of the resource change to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChan ges/{resource_change}'.

func (*ProjectsLocationsPreviewsResourceChangesService) List added in v0.237.0

List: Lists ResourceChanges for a given preview.

  • parent: The parent in whose context the ResourceChanges are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'.

type ProjectsLocationsPreviewsResourceDriftsGetCall added in v0.237.0

type ProjectsLocationsPreviewsResourceDriftsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsResourceDriftsGetCall) Context added in v0.237.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsResourceDriftsGetCall) Do added in v0.237.0

Do executes the "config.projects.locations.previews.resourceDrifts.get" call. Any non-2xx status code is an error. Response headers are in either *ResourceDrift.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsResourceDriftsGetCall) Fields added in v0.237.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsResourceDriftsGetCall) Header added in v0.237.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsResourceDriftsGetCall) IfNoneMatch added in v0.237.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsPreviewsResourceDriftsListCall added in v0.237.0

type ProjectsLocationsPreviewsResourceDriftsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsPreviewsResourceDriftsListCall) Context added in v0.237.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) Do added in v0.237.0

Do executes the "config.projects.locations.previews.resourceDrifts.list" call. Any non-2xx status code is an error. Response headers are in either *ListResourceDriftsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) Fields added in v0.237.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) Filter added in v0.237.0

Filter sets the optional parameter "filter": Lists the resource drifts that match the filter expression. A filter expression filters the resource drifts listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz

func (*ProjectsLocationsPreviewsResourceDriftsListCall) Header added in v0.237.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) IfNoneMatch added in v0.237.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) OrderBy added in v0.237.0

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) PageSize added in v0.237.0

PageSize sets the optional parameter "pageSize": When requesting a page of resource drifts, 'page_size' specifies number of resource drifts to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) PageToken added in v0.237.0

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListResourceDrifts' which specifies the position in the list from where to continue listing the resource drifts.

func (*ProjectsLocationsPreviewsResourceDriftsListCall) Pages added in v0.237.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsPreviewsResourceDriftsService added in v0.237.0

type ProjectsLocationsPreviewsResourceDriftsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsPreviewsResourceDriftsService added in v0.237.0

func NewProjectsLocationsPreviewsResourceDriftsService(s *Service) *ProjectsLocationsPreviewsResourceDriftsService

func (*ProjectsLocationsPreviewsResourceDriftsService) Get added in v0.237.0

Get: Get a ResourceDrift for a given preview.

  • name: The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrif ts/{resource_drift}'.

func (*ProjectsLocationsPreviewsResourceDriftsService) List added in v0.237.0

List: List ResourceDrifts for a given preview.

  • parent: The parent in whose context the ResourceDrifts are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'.

type ProjectsLocationsPreviewsService

type ProjectsLocationsPreviewsService struct {
	ResourceChanges *ProjectsLocationsPreviewsResourceChangesService

	ResourceDrifts *ProjectsLocationsPreviewsResourceDriftsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsPreviewsService

func NewProjectsLocationsPreviewsService(s *Service) *ProjectsLocationsPreviewsService

func (*ProjectsLocationsPreviewsService) Create

Create: Creates a Preview.

  • parent: The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

func (*ProjectsLocationsPreviewsService) Delete

Delete: Deletes a Preview.

  • name: The name of the Preview in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'.

func (*ProjectsLocationsPreviewsService) Export

Export: Export Preview results.

  • parent: The preview whose results should be exported. The preview value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'.

func (*ProjectsLocationsPreviewsService) Get

Get: Gets details about a Preview.

  • name: The name of the preview. Format: 'projects/{project_id}/locations/{location}/previews/{preview}'.

func (*ProjectsLocationsPreviewsService) List

List: Lists Previews in a given project and location.

  • parent: The parent in whose context the Previews are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

type ProjectsLocationsService

type ProjectsLocationsService struct {
	DeploymentGroups *ProjectsLocationsDeploymentGroupsService

	Deployments *ProjectsLocationsDeploymentsService

	Operations *ProjectsLocationsOperationsService

	Previews *ProjectsLocationsPreviewsService

	TerraformVersions *ProjectsLocationsTerraformVersionsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService) Get

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService) GetAutoMigrationConfig added in v0.258.0

GetAutoMigrationConfig: Get the AutoMigrationConfig for a given project and location.

  • name: The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

func (*ProjectsLocationsService) List

List: Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

- name: The resource that owns the locations collection, if applicable.

func (*ProjectsLocationsService) UpdateAutoMigrationConfig added in v0.258.0

func (r *ProjectsLocationsService) UpdateAutoMigrationConfig(name string, automigrationconfig *AutoMigrationConfig) *ProjectsLocationsUpdateAutoMigrationConfigCall

UpdateAutoMigrationConfig: Updates the AutoMigrationConfig for a given project and location.

  • name: Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

type ProjectsLocationsTerraformVersionsGetCall

type ProjectsLocationsTerraformVersionsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsTerraformVersionsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsTerraformVersionsGetCall) Do

Do executes the "config.projects.locations.terraformVersions.get" call. Any non-2xx status code is an error. Response headers are in either *TerraformVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsTerraformVersionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsTerraformVersionsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsTerraformVersionsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsTerraformVersionsListCall

type ProjectsLocationsTerraformVersionsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsTerraformVersionsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsTerraformVersionsListCall) Do

Do executes the "config.projects.locations.terraformVersions.list" call. Any non-2xx status code is an error. Response headers are in either *ListTerraformVersionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsTerraformVersionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsTerraformVersionsListCall) Filter

Filter sets the optional parameter "filter": Lists the TerraformVersions that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case.

func (*ProjectsLocationsTerraformVersionsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsTerraformVersionsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsTerraformVersionsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Field to use to sort the list.

func (*ProjectsLocationsTerraformVersionsListCall) PageSize

PageSize sets the optional parameter "pageSize": When requesting a page of terraform versions, 'page_size' specifies number of terraform versions to return. If unspecified, at most 500 will be returned. The maximum value is 1000.

func (*ProjectsLocationsTerraformVersionsListCall) PageToken

PageToken sets the optional parameter "pageToken": Token returned by previous call to 'ListTerraformVersions' which specifies the position in the list from where to continue listing the terraform versions.

func (*ProjectsLocationsTerraformVersionsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsTerraformVersionsService

type ProjectsLocationsTerraformVersionsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsTerraformVersionsService

func NewProjectsLocationsTerraformVersionsService(s *Service) *ProjectsLocationsTerraformVersionsService

func (*ProjectsLocationsTerraformVersionsService) Get

Get: Gets details about a TerraformVersion.

  • name: The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_ve rsion}'.

func (*ProjectsLocationsTerraformVersionsService) List

List: Lists TerraformVersions in a given project and location.

  • parent: The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

type ProjectsLocationsUpdateAutoMigrationConfigCall added in v0.258.0

type ProjectsLocationsUpdateAutoMigrationConfigCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsUpdateAutoMigrationConfigCall) Context added in v0.258.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsUpdateAutoMigrationConfigCall) Do added in v0.258.0

Do executes the "config.projects.locations.updateAutoMigrationConfig" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsUpdateAutoMigrationConfigCall) Fields added in v0.258.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsUpdateAutoMigrationConfigCall) Header added in v0.258.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsUpdateAutoMigrationConfigCall) UpdateMask added in v0.258.0

UpdateMask sets the optional parameter "updateMask": The update mask applies to the resource. See google.protobuf.FieldMask.

type ProjectsService

type ProjectsService struct {
	Locations *ProjectsLocationsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

type PropertyChange added in v0.237.0

type PropertyChange struct {
	// After: Output only. Representations of the object value after the actions.
	After interface{} `json:"after,omitempty"`
	// AfterSensitivePaths: Output only. The paths of sensitive fields in `after`.
	// Paths are relative to `path`.
	AfterSensitivePaths []string `json:"afterSensitivePaths,omitempty"`
	// Before: Output only. Representations of the object value before the actions.
	Before interface{} `json:"before,omitempty"`
	// BeforeSensitivePaths: Output only. The paths of sensitive fields in
	// `before`. Paths are relative to `path`.
	BeforeSensitivePaths []string `json:"beforeSensitivePaths,omitempty"`
	// Path: Output only. The path of the property change.
	Path string `json:"path,omitempty"`
	// ForceSendFields is a list of field names (e.g. "After") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "After") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PropertyChange: A property change represents a change to a property in the state file.

func (PropertyChange) MarshalJSON added in v0.237.0

func (s PropertyChange) MarshalJSON() ([]byte, error)

type PropertyDrift added in v0.237.0

type PropertyDrift struct {
	// After: Output only. Representations of the object value after the actions.
	After interface{} `json:"after,omitempty"`
	// AfterSensitivePaths: Output only. The paths of sensitive fields in `after`.
	// Paths are relative to `path`.
	AfterSensitivePaths []string `json:"afterSensitivePaths,omitempty"`
	// Before: Output only. Representations of the object value before the actions.
	Before interface{} `json:"before,omitempty"`
	// BeforeSensitivePaths: Output only. The paths of sensitive fields in
	// `before`. Paths are relative to `path`.
	BeforeSensitivePaths []string `json:"beforeSensitivePaths,omitempty"`
	// Path: Output only. The path of the property drift.
	Path string `json:"path,omitempty"`
	// ForceSendFields is a list of field names (e.g. "After") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "After") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PropertyDrift: A property drift represents a drift to a property in the state file.

func (PropertyDrift) MarshalJSON added in v0.237.0

func (s PropertyDrift) MarshalJSON() ([]byte, error)

type ProviderConfig added in v0.249.0

type ProviderConfig struct {
	// SourceType: Optional. ProviderSource specifies the source type of the
	// provider.
	//
	// Possible values:
	//   "PROVIDER_SOURCE_UNSPECIFIED" - Unspecified source type, default to public
	// sources.
	//   "SERVICE_MAINTAINED" - Service maintained provider source type.
	SourceType string `json:"sourceType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "SourceType") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "SourceType") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ProviderConfig: ProviderConfig contains the provider configurations.

func (ProviderConfig) MarshalJSON added in v0.249.0

func (s ProviderConfig) MarshalJSON() ([]byte, error)

type ProvisionDeploymentGroupOperationMetadata added in v0.274.0

type ProvisionDeploymentGroupOperationMetadata struct {
	// DeploymentUnitProgresses: Output only. Progress information for each
	// deployment unit within the operation.
	DeploymentUnitProgresses []*DeploymentUnitProgress `json:"deploymentUnitProgresses,omitempty"`
	// Step: Output only. The current step of the deployment group operation.
	//
	// Possible values:
	//   "PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED" - Unspecified step.
	//   "VALIDATING_DEPLOYMENT_GROUP" - Validating the deployment group.
	//   "ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP" - Locking the deployments to
	// the deployment group for atomic actuation.
	//   "PROVISIONING_DEPLOYMENT_UNITS" - Provisioning the deployment units.
	//   "DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP" - Unlocking the
	// deployments from the deployment group after actuation.
	//   "SUCCEEDED" - The operation has succeeded.
	//   "FAILED" - The operation has failed.
	//   "DEPROVISIONING_DEPLOYMENT_UNITS" - Deprovisioning the deployment units.
	Step string `json:"step,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DeploymentUnitProgresses")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeploymentUnitProgresses") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ProvisionDeploymentGroupOperationMetadata: Operation metadata for `ProvisionDeploymentGroup` and `DeprovisionDeploymentGroup` long-running operations.

func (ProvisionDeploymentGroupOperationMetadata) MarshalJSON added in v0.274.0

type ProvisionDeploymentGroupRequest added in v0.274.0

type ProvisionDeploymentGroupRequest struct {
	// DeploymentSpecs: Optional. The deployment specs of the deployment units to
	// be created within the same project and location of the deployment group. The
	// key is the unit ID, and the value is the `DeploymentSpec`. Provisioning will
	// fail if a `deployment_spec` has a `deployment_id` that matches an existing
	// deployment in the same project and location. If an existing deployment was
	// part of the last successful revision but is no longer in the current
	// DeploymentGroup's `deployment_units`, it will be recreated if included in
	// `deployment_specs`.
	DeploymentSpecs map[string]DeploymentSpec `json:"deploymentSpecs,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DeploymentSpecs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeploymentSpecs") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ProvisionDeploymentGroupRequest: The request message for the ProvisionDeploymentGroup method.

func (ProvisionDeploymentGroupRequest) MarshalJSON added in v0.274.0

func (s ProvisionDeploymentGroupRequest) MarshalJSON() ([]byte, error)

type Resource

type Resource struct {
	// CaiAssets: Output only. Map of Cloud Asset Inventory (CAI) type to CAI info
	// (e.g. CAI ID). CAI type format follows
	// https://cloud.google.com/asset-inventory/docs/supported-asset-types
	CaiAssets map[string]ResourceCAIInfo `json:"caiAssets,omitempty"`
	// Intent: Output only. Intent of the resource.
	//
	// Possible values:
	//   "INTENT_UNSPECIFIED" - The default value. This value is used if the intent
	// is omitted.
	//   "CREATE" - Infra Manager will create this Resource.
	//   "UPDATE" - Infra Manager will update this Resource.
	//   "DELETE" - Infra Manager will delete this Resource.
	//   "RECREATE" - Infra Manager will destroy and recreate this Resource.
	//   "UNCHANGED" - Infra Manager will leave this Resource untouched.
	Intent string `json:"intent,omitempty"`
	// Name: Output only. Resource name. Format:
	// `projects/{project}/locations/{location}/deployments/{deployment}/revisions/{
	// revision}/resources/{resource}`
	Name string `json:"name,omitempty"`
	// State: Output only. Current state of the resource.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
	// is omitted.
	//   "PLANNED" - Resource has been planned for reconcile.
	//   "IN_PROGRESS" - Resource is actively reconciling into the intended state.
	//   "RECONCILED" - Resource has reconciled to intended state.
	//   "FAILED" - Resource failed to reconcile.
	State string `json:"state,omitempty"`
	// TerraformInfo: Output only. Terraform-specific info if this resource was
	// created using Terraform.
	TerraformInfo *ResourceTerraformInfo `json:"terraformInfo,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "CaiAssets") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CaiAssets") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Resource: Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.

func (Resource) MarshalJSON

func (s Resource) MarshalJSON() ([]byte, error)

type ResourceCAIInfo

type ResourceCAIInfo struct {
	// FullResourceName: CAI resource name in the format following
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	FullResourceName string `json:"fullResourceName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FullResourceName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FullResourceName") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResourceCAIInfo: CAI info of a Resource.

func (ResourceCAIInfo) MarshalJSON

func (s ResourceCAIInfo) MarshalJSON() ([]byte, error)

type ResourceChange added in v0.237.0

type ResourceChange struct {
	// Intent: Output only. The intent of the resource change.
	//
	// Possible values:
	//   "INTENT_UNSPECIFIED" - The default value.
	//   "CREATE" - The resource will be created.
	//   "UPDATE" - The resource will be updated.
	//   "DELETE" - The resource will be deleted.
	//   "RECREATE" - The resource will be recreated.
	//   "UNCHANGED" - The resource will be untouched.
	Intent string `json:"intent,omitempty"`
	// Name: Identifier. The name of the resource change. Format:
	// 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChange
	// s/{resource_change}'.
	Name string `json:"name,omitempty"`
	// PropertyChanges: Output only. The property changes of the resource change.
	PropertyChanges []*PropertyChange `json:"propertyChanges,omitempty"`
	// TerraformInfo: Output only. Terraform info of the resource change.
	TerraformInfo *ResourceChangeTerraformInfo `json:"terraformInfo,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Intent") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResourceChange: A resource change represents a change to a resource in the state file.

func (ResourceChange) MarshalJSON added in v0.237.0

func (s ResourceChange) MarshalJSON() ([]byte, error)

type ResourceChangeTerraformInfo added in v0.237.0

type ResourceChangeTerraformInfo struct {
	// Actions: Output only. TF resource actions.
	Actions []string `json:"actions,omitempty"`
	// Address: Output only. TF resource address that uniquely identifies the
	// resource.
	Address string `json:"address,omitempty"`
	// Provider: Output only. TF resource provider.
	Provider string `json:"provider,omitempty"`
	// ResourceName: Output only. TF resource name.
	ResourceName string `json:"resourceName,omitempty"`
	// Type: Output only. TF resource type.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Actions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResourceChangeTerraformInfo: Terraform info of a ResourceChange.

func (ResourceChangeTerraformInfo) MarshalJSON added in v0.237.0

func (s ResourceChangeTerraformInfo) MarshalJSON() ([]byte, error)

type ResourceDrift added in v0.237.0

type ResourceDrift struct {
	// Name: Identifier. The name of the resource drift. Format:
	// 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts
	// /{resource_drift}'.
	Name string `json:"name,omitempty"`
	// PropertyDrifts: Output only. The property drifts of the resource drift.
	PropertyDrifts []*PropertyDrift `json:"propertyDrifts,omitempty"`
	// TerraformInfo: Output only. Terraform info of the resource drift.
	TerraformInfo *ResourceDriftTerraformInfo `json:"terraformInfo,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Name") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResourceDrift: A resource drift represents a drift to a resource in the state file.

func (ResourceDrift) MarshalJSON added in v0.237.0

func (s ResourceDrift) MarshalJSON() ([]byte, error)

type ResourceDriftTerraformInfo added in v0.237.0

type ResourceDriftTerraformInfo struct {
	// Address: Output only. The address of the drifted resource.
	Address string `json:"address,omitempty"`
	// Provider: Output only. The provider of the drifted resource.
	Provider string `json:"provider,omitempty"`
	// ResourceName: Output only. TF resource name.
	ResourceName string `json:"resourceName,omitempty"`
	// Type: Output only. The type of the drifted resource.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Address") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResourceDriftTerraformInfo: Terraform info of a ResourceChange.

func (ResourceDriftTerraformInfo) MarshalJSON added in v0.237.0

func (s ResourceDriftTerraformInfo) MarshalJSON() ([]byte, error)

type ResourceTerraformInfo

type ResourceTerraformInfo struct {
	// Address: TF resource address that uniquely identifies this resource within
	// this deployment.
	Address string `json:"address,omitempty"`
	// Id: ID attribute of the TF resource
	Id string `json:"id,omitempty"`
	// Type: TF resource type
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Address") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResourceTerraformInfo: Terraform info of a Resource.

func (ResourceTerraformInfo) MarshalJSON

func (s ResourceTerraformInfo) MarshalJSON() ([]byte, error)

type Revision

type Revision struct {
	// Action: Output only. The action which created this revision
	//
	// Possible values:
	//   "ACTION_UNSPECIFIED" - The default value. This value is used if the action
	// is omitted.
	//   "CREATE" - The revision was generated by creating a deployment.
	//   "UPDATE" - The revision was generated by updating a deployment.
	//   "DELETE" - The revision was deleted.
	Action string `json:"action,omitempty"`
	// ApplyResults: Output only. Outputs and artifacts from applying a deployment.
	ApplyResults *ApplyResults `json:"applyResults,omitempty"`
	// Build: Output only. Cloud Build instance UUID associated with this revision.
	Build string `json:"build,omitempty"`
	// CreateTime: Output only. Time when the revision was created.
	CreateTime string `json:"createTime,omitempty"`
	// ErrorCode: Output only. Code describing any errors that may have occurred.
	//
	// Possible values:
	//   "ERROR_CODE_UNSPECIFIED" - No error code was specified.
	//   "CLOUD_BUILD_PERMISSION_DENIED" - Cloud Build failed due to a permission
	// issue.
	//   "APPLY_BUILD_API_FAILED" - Cloud Build job associated with creating or
	// updating a deployment could not be started.
	//   "APPLY_BUILD_RUN_FAILED" - Cloud Build job associated with creating or
	// updating a deployment was started but failed.
	//   "QUOTA_VALIDATION_FAILED" - quota validation failed for one or more
	// resources in terraform configuration files.
	//   "EXTERNAL_VALUE_SOURCE_IMPORT_FAILED" - Failed to import values from an
	// external source.
	ErrorCode string `json:"errorCode,omitempty"`
	// ErrorLogs: Output only. Location of Terraform error logs in Google Cloud
	// Storage. Format: `gs://{bucket}/{object}`.
	ErrorLogs string `json:"errorLogs,omitempty"`
	// ImportExistingResources: Output only. By default, Infra Manager will return
	// a failure when Terraform encounters a 409 code (resource conflict error)
	// during actuation. If this flag is set to true, Infra Manager will instead
	// attempt to automatically import the resource into the Terraform state (for
	// supported resource types) and continue actuation. Not all resource types are
	// supported, refer to documentation.
	ImportExistingResources bool `json:"importExistingResources,omitempty"`
	// Logs: Output only. Location of Revision operation logs in
	// `gs://{bucket}/{object}` format.
	Logs string `json:"logs,omitempty"`
	// Name: Revision name. Format:
	// `projects/{project}/locations/{location}/deployments/{deployment}/
	// revisions/{revision}`
	Name string `json:"name,omitempty"`
	// ProviderConfig: Output only. This field specifies the provider
	// configurations.
	ProviderConfig *ProviderConfig `json:"providerConfig,omitempty"`
	// QuotaValidation: Optional. Input to control quota checks for resources in
	// terraform configuration files. There are limited resources on which quota
	// validation applies.
	//
	// Possible values:
	//   "QUOTA_VALIDATION_UNSPECIFIED" - The default value. QuotaValidation on
	// terraform configuration files will be disabled in this case.
	//   "ENABLED" - Enable computing quotas for resources in terraform
	// configuration files to get visibility on resources with insufficient quotas.
	//   "ENFORCED" - Enforce quota checks so deployment fails if there isn't
	// sufficient quotas available to deploy resources in terraform configuration
	// files.
	QuotaValidation string `json:"quotaValidation,omitempty"`
	// QuotaValidationResults: Output only. Cloud Storage path containing quota
	// validation results. This field is set when a user sets
	// Deployment.quota_validation field to ENABLED or ENFORCED. Format:
	// `gs://{bucket}/{object}`.
	QuotaValidationResults string `json:"quotaValidationResults,omitempty"`
	// ServiceAccount: Output only. User-specified Service Account (SA) to be used
	// as credential to manage resources. Format:
	// `projects/{projectID}/serviceAccounts/{serviceAccount}`
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// State: Output only. Current state of the revision.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
	// is omitted.
	//   "APPLYING" - The revision is being applied.
	//   "APPLIED" - The revision was applied successfully.
	//   "FAILED" - The revision could not be applied successfully.
	State string `json:"state,omitempty"`
	// StateDetail: Output only. Additional info regarding the current state.
	StateDetail string `json:"stateDetail,omitempty"`
	// TerraformBlueprint: Output only. A blueprint described using Terraform's
	// HashiCorp Configuration Language as a root module.
	TerraformBlueprint *TerraformBlueprint `json:"terraformBlueprint,omitempty"`
	// TfErrors: Output only. Errors encountered when creating or updating this
	// deployment. Errors are truncated to 10 entries, see `delete_results` and
	// `error_logs` for full details.
	TfErrors []*TerraformError `json:"tfErrors,omitempty"`
	// TfVersion: Output only. The version of Terraform used to create the
	// Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".
	TfVersion string `json:"tfVersion,omitempty"`
	// TfVersionConstraint: Output only. The user-specified Terraform version
	// constraint. Example: "=1.3.10".
	TfVersionConstraint string `json:"tfVersionConstraint,omitempty"`
	// UpdateTime: Output only. Time when the revision was last modified.
	UpdateTime string `json:"updateTime,omitempty"`
	// WorkerPool: Output only. The user-specified Cloud Build 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.
	WorkerPool string `json:"workerPool,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Action") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Revision: A child resource of a Deployment generated by a 'CreateDeployment' or 'UpdateDeployment' call. Each Revision contains metadata pertaining to a snapshot of a particular Deployment.

func (Revision) MarshalJSON

func (s Revision) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Projects *ProjectsService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SetIamPolicyRequest

type SetIamPolicyRequest struct {
	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
	// policy but certain Google Cloud services (such as Projects) might reject
	// them.
	Policy *Policy `json:"policy,omitempty"`
	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
	// modify. Only the fields in the mask will be modified. If no mask is
	// provided, the following default mask is used: `paths: "bindings, etag"
	UpdateMask string `json:"updateMask,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Policy") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SetIamPolicyRequest: Request message for `SetIamPolicy` method.

func (SetIamPolicyRequest) MarshalJSON

func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error)

type Statefile

type Statefile struct {
	// SignedUri: Output only. Cloud Storage signed URI used for downloading or
	// uploading the state file.
	SignedUri string `json:"signedUri,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "SignedUri") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "SignedUri") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Statefile: Contains info about a Terraform state file

func (Statefile) MarshalJSON

func (s Statefile) MarshalJSON() ([]byte, error)

type Status

type Status struct {
	// Code: The status code, which should be an enum value of google.rpc.Code.
	Code int64 `json:"code,omitempty"`
	// Details: A list of messages that carry the error details. There is a common
	// set of message types for APIs to use.
	Details []googleapi.RawMessage `json:"details,omitempty"`
	// Message: A developer-facing error message, which should be in English. Any
	// user-facing error message should be localized and sent in the
	// google.rpc.Status.details field, or localized by the client.
	Message string `json:"message,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Code") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

type TerraformBlueprint

type TerraformBlueprint struct {
	// ExternalValues: Optional. Map of input variable names in this blueprint to
	// configurations for importing values from external sources.
	ExternalValues map[string]ExternalValueSource `json:"externalValues,omitempty"`
	// GcsSource: URI of an object in Google Cloud Storage. Format:
	// `gs://{bucket}/{object}` URI may also specify an object version for zipped
	// objects. Format: `gs://{bucket}/{object}#{version}`
	GcsSource string `json:"gcsSource,omitempty"`
	// GitSource: URI of a public Git repo.
	GitSource *GitSource `json:"gitSource,omitempty"`
	// InputValues: Optional. Input variable values for the Terraform blueprint.
	InputValues map[string]TerraformVariable `json:"inputValues,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ExternalValues") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExternalValues") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TerraformBlueprint: TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed.

func (TerraformBlueprint) MarshalJSON

func (s TerraformBlueprint) MarshalJSON() ([]byte, error)

type TerraformError

type TerraformError struct {
	// Error: Output only. Original error response from underlying Google API, if
	// available.
	Error *Status `json:"error,omitempty"`
	// ErrorDescription: A human-readable error description.
	ErrorDescription string `json:"errorDescription,omitempty"`
	// HttpResponseCode: HTTP response code returned from Google Cloud Platform
	// APIs when Terraform fails to provision the resource. If unset or 0, no HTTP
	// response code was returned by Terraform.
	HttpResponseCode int64 `json:"httpResponseCode,omitempty"`
	// ResourceAddress: Address of the resource associated with the error, e.g.
	// `google_compute_network.vpc_network`.
	ResourceAddress string `json:"resourceAddress,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TerraformError: Errors encountered during actuation using Terraform

func (TerraformError) MarshalJSON

func (s TerraformError) MarshalJSON() ([]byte, error)

type TerraformOutput

type TerraformOutput struct {
	// Sensitive: Identifies whether Terraform has set this output as a potential
	// sensitive value.
	Sensitive bool `json:"sensitive,omitempty"`
	// Value: Value of output.
	Value interface{} `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Sensitive") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Sensitive") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TerraformOutput: Describes a Terraform output.

func (TerraformOutput) MarshalJSON

func (s TerraformOutput) MarshalJSON() ([]byte, error)

type TerraformVariable

type TerraformVariable struct {
	// InputValue: Optional. Input variable value.
	InputValue interface{} `json:"inputValue,omitempty"`
	// ForceSendFields is a list of field names (e.g. "InputValue") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "InputValue") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TerraformVariable: A Terraform input variable.

func (TerraformVariable) MarshalJSON

func (s TerraformVariable) MarshalJSON() ([]byte, error)

type TerraformVersion

type TerraformVersion struct {
	// DeprecateTime: Output only. When the version is deprecated.
	DeprecateTime string `json:"deprecateTime,omitempty"`
	// Name: Identifier. The version name is in the format:
	// 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_vers
	// ion}'.
	Name string `json:"name,omitempty"`
	// ObsoleteTime: Output only. When the version is obsolete.
	ObsoleteTime string `json:"obsoleteTime,omitempty"`
	// State: Output only. The state of the version, ACTIVE, DEPRECATED or
	// OBSOLETE.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
	// is omitted.
	//   "ACTIVE" - The version is actively supported.
	//   "DEPRECATED" - The version is deprecated.
	//   "OBSOLETE" - The version is obsolete.
	State string `json:"state,omitempty"`
	// SupportTime: Output only. When the version is supported.
	SupportTime string `json:"supportTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DeprecateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeprecateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TerraformVersion: A TerraformVersion represents the support state the corresponding Terraform version.

func (TerraformVersion) MarshalJSON

func (s TerraformVersion) MarshalJSON() ([]byte, error)

type TestIamPermissionsRequest

type TestIamPermissionsRequest struct {
	// Permissions: The set of permissions to check for the `resource`. Permissions
	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
	// information see IAM Overview
	// (https://cloud.google.com/iam/docs/overview#permissions).
	Permissions []string `json:"permissions,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Permissions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TestIamPermissionsRequest: Request message for `TestIamPermissions` method.

func (TestIamPermissionsRequest) MarshalJSON

func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error)

type TestIamPermissionsResponse

type TestIamPermissionsResponse struct {
	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
	// caller is allowed.
	Permissions []string `json:"permissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Permissions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TestIamPermissionsResponse: Response message for `TestIamPermissions` method.

func (TestIamPermissionsResponse) MarshalJSON

func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error)

type UnlockDeploymentRequest

type UnlockDeploymentRequest struct {
	// LockId: Required. Lock ID of the lock file to be unlocked.
	LockId int64 `json:"lockId,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "LockId") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LockId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

UnlockDeploymentRequest: A request to unlock a state file passed to a 'UnlockDeployment' call.

func (UnlockDeploymentRequest) MarshalJSON

func (s UnlockDeploymentRequest) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL