config
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
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, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany 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 forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.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 OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)configService, err := config.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type ApplyResults
- type AuditConfig
- type AuditLogConfig
- type Binding
- type CancelOperationRequest
- type DeleteStatefileRequest
- type Deployment
- type DeploymentOperationMetadata
- type Empty
- type ExportDeploymentStatefileRequest
- type ExportPreviewResultRequest
- type ExportPreviewResultResponse
- type ExportRevisionStatefileRequest
- type Expr
- type GitSource
- type ImportStatefileRequest
- type ListDeploymentsResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListPreviewsResponse
- type ListResourceChangesResponse
- type ListResourceDriftsResponse
- type ListResourcesResponse
- type ListRevisionsResponse
- type ListTerraformVersionsResponse
- type Location
- type LockDeploymentRequest
- type LockInfo
- type Operation
- type OperationMetadata
- type Policy
- type Preview
- type PreviewArtifacts
- type PreviewOperationMetadata
- type PreviewResult
- type ProjectsLocationsDeploymentsCreateCall
- func (c *ProjectsLocationsDeploymentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsCreateCall
- func (c *ProjectsLocationsDeploymentsCreateCall) DeploymentId(deploymentId string) *ProjectsLocationsDeploymentsCreateCall
- func (c *ProjectsLocationsDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsDeploymentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsCreateCall
- func (c *ProjectsLocationsDeploymentsCreateCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsCreateCall) RequestId(requestId string) *ProjectsLocationsDeploymentsCreateCall
- type ProjectsLocationsDeploymentsDeleteCall
- func (c *ProjectsLocationsDeploymentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsDeleteCall
- func (c *ProjectsLocationsDeploymentsDeleteCall) DeletePolicy(deletePolicy string) *ProjectsLocationsDeploymentsDeleteCall
- func (c *ProjectsLocationsDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsDeploymentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsDeleteCall
- func (c *ProjectsLocationsDeploymentsDeleteCall) Force(force bool) *ProjectsLocationsDeploymentsDeleteCall
- func (c *ProjectsLocationsDeploymentsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsDeleteCall) RequestId(requestId string) *ProjectsLocationsDeploymentsDeleteCall
- type ProjectsLocationsDeploymentsDeleteStateCall
- func (c *ProjectsLocationsDeploymentsDeleteStateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsDeleteStateCall
- func (c *ProjectsLocationsDeploymentsDeleteStateCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsDeploymentsDeleteStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsDeleteStateCall
- func (c *ProjectsLocationsDeploymentsDeleteStateCall) Header() http.Header
- type ProjectsLocationsDeploymentsExportLockCall
- func (c *ProjectsLocationsDeploymentsExportLockCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsExportLockCall
- func (c *ProjectsLocationsDeploymentsExportLockCall) Do(opts ...googleapi.CallOption) (*LockInfo, error)
- func (c *ProjectsLocationsDeploymentsExportLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsExportLockCall
- func (c *ProjectsLocationsDeploymentsExportLockCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsExportLockCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsExportLockCall
- type ProjectsLocationsDeploymentsExportStateCall
- func (c *ProjectsLocationsDeploymentsExportStateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsExportStateCall
- func (c *ProjectsLocationsDeploymentsExportStateCall) Do(opts ...googleapi.CallOption) (*Statefile, error)
- func (c *ProjectsLocationsDeploymentsExportStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsExportStateCall
- func (c *ProjectsLocationsDeploymentsExportStateCall) Header() http.Header
- type ProjectsLocationsDeploymentsGetCall
- func (c *ProjectsLocationsDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsGetCall
- func (c *ProjectsLocationsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
- func (c *ProjectsLocationsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsGetCall
- func (c *ProjectsLocationsDeploymentsGetCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsGetCall
- type ProjectsLocationsDeploymentsGetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsGetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsGetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsGetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDeploymentsGetIamPolicyCall
- type ProjectsLocationsDeploymentsImportStateCall
- func (c *ProjectsLocationsDeploymentsImportStateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsImportStateCall
- func (c *ProjectsLocationsDeploymentsImportStateCall) Do(opts ...googleapi.CallOption) (*Statefile, error)
- func (c *ProjectsLocationsDeploymentsImportStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsImportStateCall
- func (c *ProjectsLocationsDeploymentsImportStateCall) Header() http.Header
- type ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*ListDeploymentsResponse, error)
- func (c *ProjectsLocationsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) Filter(filter string) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) OrderBy(orderBy string) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentsListCall
- func (c *ProjectsLocationsDeploymentsListCall) Pages(ctx context.Context, f func(*ListDeploymentsResponse) error) error
- type ProjectsLocationsDeploymentsLockCall
- func (c *ProjectsLocationsDeploymentsLockCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsLockCall
- func (c *ProjectsLocationsDeploymentsLockCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsDeploymentsLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsLockCall
- func (c *ProjectsLocationsDeploymentsLockCall) Header() http.Header
- type ProjectsLocationsDeploymentsPatchCall
- func (c *ProjectsLocationsDeploymentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsPatchCall
- func (c *ProjectsLocationsDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsDeploymentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsPatchCall
- func (c *ProjectsLocationsDeploymentsPatchCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsPatchCall) RequestId(requestId string) *ProjectsLocationsDeploymentsPatchCall
- func (c *ProjectsLocationsDeploymentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDeploymentsPatchCall
- type ProjectsLocationsDeploymentsRevisionsExportStateCall
- func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsRevisionsExportStateCall
- func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Do(opts ...googleapi.CallOption) (*Statefile, error)
- func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsExportStateCall
- func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Header() http.Header
- type ProjectsLocationsDeploymentsRevisionsGetCall
- func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsRevisionsGetCall
- func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error)
- func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsGetCall
- func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsRevisionsGetCall
- type ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error)
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) Filter(filter string) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) OrderBy(orderBy string) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentsRevisionsListCall
- func (c *ProjectsLocationsDeploymentsRevisionsListCall) Pages(ctx context.Context, f func(*ListRevisionsResponse) error) error
- type ProjectsLocationsDeploymentsRevisionsResourcesGetCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error)
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
- type ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Do(opts ...googleapi.CallOption) (*ListResourcesResponse, error)
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Filter(filter string) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Header() http.Header
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) OrderBy(orderBy string) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
- func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Pages(ctx context.Context, f func(*ListResourcesResponse) error) error
- type ProjectsLocationsDeploymentsRevisionsResourcesService
- type ProjectsLocationsDeploymentsRevisionsService
- func (r *ProjectsLocationsDeploymentsRevisionsService) ExportState(parent string, exportrevisionstatefilerequest *ExportRevisionStatefileRequest) *ProjectsLocationsDeploymentsRevisionsExportStateCall
- func (r *ProjectsLocationsDeploymentsRevisionsService) Get(name string) *ProjectsLocationsDeploymentsRevisionsGetCall
- func (r *ProjectsLocationsDeploymentsRevisionsService) List(parent string) *ProjectsLocationsDeploymentsRevisionsListCall
- type ProjectsLocationsDeploymentsService
- func (r *ProjectsLocationsDeploymentsService) Create(parent string, deployment *Deployment) *ProjectsLocationsDeploymentsCreateCall
- func (r *ProjectsLocationsDeploymentsService) Delete(name string) *ProjectsLocationsDeploymentsDeleteCall
- func (r *ProjectsLocationsDeploymentsService) DeleteState(name string, deletestatefilerequest *DeleteStatefileRequest) *ProjectsLocationsDeploymentsDeleteStateCall
- func (r *ProjectsLocationsDeploymentsService) ExportLock(name string) *ProjectsLocationsDeploymentsExportLockCall
- func (r *ProjectsLocationsDeploymentsService) ExportState(parent string, ...) *ProjectsLocationsDeploymentsExportStateCall
- func (r *ProjectsLocationsDeploymentsService) Get(name string) *ProjectsLocationsDeploymentsGetCall
- func (r *ProjectsLocationsDeploymentsService) GetIamPolicy(resource string) *ProjectsLocationsDeploymentsGetIamPolicyCall
- func (r *ProjectsLocationsDeploymentsService) ImportState(parent string, importstatefilerequest *ImportStatefileRequest) *ProjectsLocationsDeploymentsImportStateCall
- func (r *ProjectsLocationsDeploymentsService) List(parent string) *ProjectsLocationsDeploymentsListCall
- func (r *ProjectsLocationsDeploymentsService) Lock(name string, lockdeploymentrequest *LockDeploymentRequest) *ProjectsLocationsDeploymentsLockCall
- func (r *ProjectsLocationsDeploymentsService) Patch(name string, deployment *Deployment) *ProjectsLocationsDeploymentsPatchCall
- func (r *ProjectsLocationsDeploymentsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDeploymentsSetIamPolicyCall
- func (r *ProjectsLocationsDeploymentsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDeploymentsTestIamPermissionsCall
- func (r *ProjectsLocationsDeploymentsService) Unlock(name string, unlockdeploymentrequest *UnlockDeploymentRequest) *ProjectsLocationsDeploymentsUnlockCall
- type ProjectsLocationsDeploymentsSetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsSetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsSetIamPolicyCall
- func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsDeploymentsTestIamPermissionsCall
- func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsTestIamPermissionsCall
- func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsTestIamPermissionsCall
- func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsDeploymentsUnlockCall
- func (c *ProjectsLocationsDeploymentsUnlockCall) Context(ctx context.Context) *ProjectsLocationsDeploymentsUnlockCall
- func (c *ProjectsLocationsDeploymentsUnlockCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsDeploymentsUnlockCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsUnlockCall
- func (c *ProjectsLocationsDeploymentsUnlockCall) Header() http.Header
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsPreviewsCreateCall
- func (c *ProjectsLocationsPreviewsCreateCall) Context(ctx context.Context) *ProjectsLocationsPreviewsCreateCall
- func (c *ProjectsLocationsPreviewsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsPreviewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsCreateCall
- func (c *ProjectsLocationsPreviewsCreateCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsCreateCall) PreviewId(previewId string) *ProjectsLocationsPreviewsCreateCall
- func (c *ProjectsLocationsPreviewsCreateCall) RequestId(requestId string) *ProjectsLocationsPreviewsCreateCall
- type ProjectsLocationsPreviewsDeleteCall
- func (c *ProjectsLocationsPreviewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPreviewsDeleteCall
- func (c *ProjectsLocationsPreviewsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsPreviewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsDeleteCall
- func (c *ProjectsLocationsPreviewsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsDeleteCall) RequestId(requestId string) *ProjectsLocationsPreviewsDeleteCall
- type ProjectsLocationsPreviewsExportCall
- func (c *ProjectsLocationsPreviewsExportCall) Context(ctx context.Context) *ProjectsLocationsPreviewsExportCall
- func (c *ProjectsLocationsPreviewsExportCall) Do(opts ...googleapi.CallOption) (*ExportPreviewResultResponse, error)
- func (c *ProjectsLocationsPreviewsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsExportCall
- func (c *ProjectsLocationsPreviewsExportCall) Header() http.Header
- type ProjectsLocationsPreviewsGetCall
- func (c *ProjectsLocationsPreviewsGetCall) Context(ctx context.Context) *ProjectsLocationsPreviewsGetCall
- func (c *ProjectsLocationsPreviewsGetCall) Do(opts ...googleapi.CallOption) (*Preview, error)
- func (c *ProjectsLocationsPreviewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsGetCall
- func (c *ProjectsLocationsPreviewsGetCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreviewsGetCall
- type ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) Context(ctx context.Context) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) Do(opts ...googleapi.CallOption) (*ListPreviewsResponse, error)
- func (c *ProjectsLocationsPreviewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) Filter(filter string) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) OrderBy(orderBy string) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) PageSize(pageSize int64) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) PageToken(pageToken string) *ProjectsLocationsPreviewsListCall
- func (c *ProjectsLocationsPreviewsListCall) Pages(ctx context.Context, f func(*ListPreviewsResponse) error) error
- type ProjectsLocationsPreviewsResourceChangesGetCall
- func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Context(ctx context.Context) *ProjectsLocationsPreviewsResourceChangesGetCall
- func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Do(opts ...googleapi.CallOption) (*ResourceChange, error)
- func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceChangesGetCall
- func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsResourceChangesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreviewsResourceChangesGetCall
- type ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) Context(ctx context.Context) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) Do(opts ...googleapi.CallOption) (*ListResourceChangesResponse, error)
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) Filter(filter string) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) OrderBy(orderBy string) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) PageSize(pageSize int64) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) PageToken(pageToken string) *ProjectsLocationsPreviewsResourceChangesListCall
- func (c *ProjectsLocationsPreviewsResourceChangesListCall) Pages(ctx context.Context, f func(*ListResourceChangesResponse) error) error
- type ProjectsLocationsPreviewsResourceChangesService
- type ProjectsLocationsPreviewsResourceDriftsGetCall
- func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Context(ctx context.Context) *ProjectsLocationsPreviewsResourceDriftsGetCall
- func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Do(opts ...googleapi.CallOption) (*ResourceDrift, error)
- func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceDriftsGetCall
- func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreviewsResourceDriftsGetCall
- type ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Context(ctx context.Context) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Do(opts ...googleapi.CallOption) (*ListResourceDriftsResponse, error)
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Filter(filter string) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Header() http.Header
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) OrderBy(orderBy string) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) PageSize(pageSize int64) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) PageToken(pageToken string) *ProjectsLocationsPreviewsResourceDriftsListCall
- func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Pages(ctx context.Context, f func(*ListResourceDriftsResponse) error) error
- type ProjectsLocationsPreviewsResourceDriftsService
- type ProjectsLocationsPreviewsService
- func (r *ProjectsLocationsPreviewsService) Create(parent string, preview *Preview) *ProjectsLocationsPreviewsCreateCall
- func (r *ProjectsLocationsPreviewsService) Delete(name string) *ProjectsLocationsPreviewsDeleteCall
- func (r *ProjectsLocationsPreviewsService) Export(parent string, exportpreviewresultrequest *ExportPreviewResultRequest) *ProjectsLocationsPreviewsExportCall
- func (r *ProjectsLocationsPreviewsService) Get(name string) *ProjectsLocationsPreviewsGetCall
- func (r *ProjectsLocationsPreviewsService) List(parent string) *ProjectsLocationsPreviewsListCall
- type ProjectsLocationsService
- type ProjectsLocationsTerraformVersionsGetCall
- func (c *ProjectsLocationsTerraformVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsTerraformVersionsGetCall
- func (c *ProjectsLocationsTerraformVersionsGetCall) Do(opts ...googleapi.CallOption) (*TerraformVersion, error)
- func (c *ProjectsLocationsTerraformVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTerraformVersionsGetCall
- func (c *ProjectsLocationsTerraformVersionsGetCall) Header() http.Header
- func (c *ProjectsLocationsTerraformVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTerraformVersionsGetCall
- type ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) Context(ctx context.Context) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) Do(opts ...googleapi.CallOption) (*ListTerraformVersionsResponse, error)
- func (c *ProjectsLocationsTerraformVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) Filter(filter string) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) Header() http.Header
- func (c *ProjectsLocationsTerraformVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) PageToken(pageToken string) *ProjectsLocationsTerraformVersionsListCall
- func (c *ProjectsLocationsTerraformVersionsListCall) Pages(ctx context.Context, f func(*ListTerraformVersionsResponse) error) error
- type ProjectsLocationsTerraformVersionsService
- type ProjectsService
- type PropertyChange
- type PropertyDrift
- type ProviderConfig
- type Resource
- type ResourceCAIInfo
- type ResourceChange
- type ResourceChangeTerraformInfo
- type ResourceDrift
- type ResourceDriftTerraformInfo
- type ResourceTerraformInfo
- type Revision
- type Service
- type SetIamPolicyRequest
- type Statefile
- type Status
- type TerraformBlueprint
- type TerraformError
- type TerraformOutput
- type TerraformVariable
- type TerraformVersion
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type UnlockDeploymentRequest
Constants¶
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¶
typeApplyResults¶
type ApplyResults struct {// Artifacts: Location of artifacts (e.g. logs) in Google Cloud Storage.// Format: `gs://{bucket}/{object}`Artifactsstring `json:"artifacts,omitempty"`// Content: Location of a blueprint copy and other manifests in Google Cloud// Storage. Format: `gs://{bucket}/{object}`Contentstring `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 (sApplyResults) MarshalJSON() ([]byte,error)
typeAuditConfig¶
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.Servicestring `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. Theconfiguration determines which permission types are logged, and whatidentities, if any, are exempted from logging. An AuditConfig must have oneor more AuditLogConfigs. If there are AuditConfigs for both `allServices`and a specific service, the union of the two AuditConfigs is used for thatservice: the log_types specified in each AuditConfig are enabled, and theexempted_members in each AuditLogConfig are exempted. Example Policy withmultiple 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" ] } ] } ] } Forsampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READlogging. It also exempts `jose@example.com` from DATA_READ logging, and`aliya@example.com` from DATA_WRITE logging.
func (AuditConfig)MarshalJSON¶
func (sAuditConfig) MarshalJSON() ([]byte,error)
typeAuditLogConfig¶
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 listLogTypestring `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 ofpermissions. 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, whileexempting jose@example.com from DATA_READ logging.
func (AuditLogConfig)MarshalJSON¶
func (sAuditLogConfig) MarshalJSON() ([]byte,error)
typeBinding¶
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).Rolestring `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¶
typeCancelOperationRequest¶
type CancelOperationRequest struct {}CancelOperationRequest: The request message for Operations.CancelOperation.
typeDeleteStatefileRequest¶
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.LockIdint64 `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 (sDeleteStatefileRequest) MarshalJSON() ([]byte,error)
typeDeployment¶
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 presenceArtifactsGcsBucketstring `json:"artifactsGcsBucket,omitempty"`// CreateTime: Output only. Time when the deployment was created.CreateTimestring `json:"createTime,omitempty"`// DeleteBuild: Output only. Cloud Build instance UUID associated with deleting// this deployment.DeleteBuildstring `json:"deleteBuild,omitempty"`// DeleteLogs: Output only. Location of Cloud Build logs in Google Cloud// Storage, populated when deleting this deployment. Format:// `gs://{bucket}/{object}`.DeleteLogsstring `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.ErrorCodestring `json:"errorCode,omitempty"`// ErrorLogs: Output only. Location of Terraform error logs in Google Cloud// Storage. Format: `gs://{bucket}/{object}`.ErrorLogsstring `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.ImportExistingResourcesbool `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}`LatestRevisionstring `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.LockStatestring `json:"lockState,omitempty"`// Name: Identifier. Resource name of the deployment. Format:// `projects/{project}/locations/{location}/deployments/{deployment}`Namestring `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.QuotaValidationstring `json:"quotaValidation,omitempty"`// ServiceAccount: Required. User-specified Service Account (SA) credentials to// be used when actuating resources. Format:// `projects/{projectID}/serviceAccounts/{serviceAccount}`ServiceAccountstring `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.Statestring `json:"state,omitempty"`// StateDetail: Output only. Additional information regarding the current// state.StateDetailstring `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".TfVersionstring `json:"tfVersion,omitempty"`// TfVersionConstraint: Optional. The user-specified Terraform version// constraint. Example: "=1.3.10".TfVersionConstraintstring `json:"tfVersionConstraint,omitempty"`// UpdateTime: Output only. Time when the deployment was last modified.UpdateTimestring `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.WorkerPoolstring `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 andprovisioned by Infra Manager.
func (Deployment)MarshalJSON¶
func (sDeployment) MarshalJSON() ([]byte,error)
typeDeploymentOperationMetadata¶
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.Buildstring `json:"build,omitempty"`// Logs: Output only. Location of Deployment operations logs in// `gs://{bucket}/{object}` format.Logsstring `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 validationStepstring `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 stateof a deployment operation.
func (DeploymentOperationMetadata)MarshalJSON¶
func (sDeploymentOperationMetadata) MarshalJSON() ([]byte,error)
typeEmpty¶
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 definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeExportDeploymentStatefileRequest¶
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.Draftbool `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 toa 'ExportDeploymentStatefile' call.
func (ExportDeploymentStatefileRequest)MarshalJSON¶
func (sExportDeploymentStatefileRequest) MarshalJSON() ([]byte,error)
typeExportPreviewResultRequest¶
type ExportPreviewResultRequest struct {}ExportPreviewResultRequest: A request to export preview results.
typeExportPreviewResultResponse¶
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 (sExportPreviewResultResponse) MarshalJSON() ([]byte,error)
typeExportRevisionStatefileRequest¶
type ExportRevisionStatefileRequest struct {}ExportRevisionStatefileRequest: A request to export a state file passed to a'ExportRevisionStatefile' call.
typeExpr¶
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.Descriptionstring `json:"description,omitempty"`// Expression: Textual representation of an expression in Common Expression// Language syntax.Expressionstring `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.Locationstring `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.Titlestring `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 semanticsof CEL are documented athttps://github.com/google/cel-spec. Example(Comparison): title: "Summary size limit" description: "Determines if asummary is less than 100 chars" expression: "document.summary.size() < 100"Example (Equality): title: "Requestor is owner" description: "Determines ifrequestor 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 messagereceived at ' + string(document.create_time)" The exact variables andfunctions that may be referenced within an expression are determined by theservice that evaluates it. See the service documentation for additionalinformation.
func (Expr)MarshalJSON¶
typeGitSource¶
type GitSource struct {// Directory: Optional. Subdirectory inside the repository. Example:// 'staging/my-package'Directorystring `json:"directory,omitempty"`// Ref: Optional. Git reference (e.g. branch or tag).Refstring `json:"ref,omitempty"`// Repo: Optional. Repository URL. Example:// 'https://github.com/kubernetes/examples.git'Repostring `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¶
typeImportStatefileRequest¶
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.LockIdint64 `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 (sImportStatefileRequest) MarshalJSON() ([]byte,error)
typeListDeploymentsResponse¶
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.NextPageTokenstring `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 (sListDeploymentsResponse) MarshalJSON() ([]byte,error)
typeListLocationsResponse¶
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.NextPageTokenstring `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 (sListLocationsResponse) MarshalJSON() ([]byte,error)
typeListOperationsResponse¶
type ListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `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 e.g. 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 (sListOperationsResponse) MarshalJSON() ([]byte,error)
typeListPreviewsResponse¶
type ListPreviewsResponse struct {// NextPageToken: Token to be supplied to the next ListPreviews request via// `page_token` to obtain the next set of results.NextPageTokenstring `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 listof Previews.
func (ListPreviewsResponse)MarshalJSON¶
func (sListPreviewsResponse) MarshalJSON() ([]byte,error)
typeListResourceChangesResponse¶added inv0.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.NextPageTokenstring `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 inv0.237.0
func (sListResourceChangesResponse) MarshalJSON() ([]byte,error)
typeListResourceDriftsResponse¶added inv0.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.NextPageTokenstring `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 inv0.237.0
func (sListResourceDriftsResponse) MarshalJSON() ([]byte,error)
typeListResourcesResponse¶
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.NextPageTokenstring `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 listof Resources.
func (ListResourcesResponse)MarshalJSON¶
func (sListResourcesResponse) MarshalJSON() ([]byte,error)
typeListRevisionsResponse¶
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.NextPageTokenstring `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 listof Revisions.
func (ListRevisionsResponse)MarshalJSON¶
func (sListRevisionsResponse) MarshalJSON() ([]byte,error)
typeListTerraformVersionsResponse¶
type ListTerraformVersionsResponse struct {// NextPageToken: Token to be supplied to the next ListTerraformVersions// request via `page_token` to obtain the next set of results.NextPageTokenstring `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 (sListTerraformVersionsResponse) MarshalJSON() ([]byte,error)
typeLocation¶
type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `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".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `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¶
typeLockDeploymentRequest¶
type LockDeploymentRequest struct {}LockDeploymentRequest: A request to lock a deployment passed to a'LockDeployment' call.
typeLockInfo¶
type LockInfo struct {// CreateTime: Time that the lock was taken.CreateTimestring `json:"createTime,omitempty"`// Info: Extra information to store with the lock, provided by the caller.Infostring `json:"info,omitempty"`// LockId: Unique ID for the lock to be overridden with generation ID in the// backend.LockIdint64 `json:"lockId,omitempty,string"`// Operation: Terraform operation, provided by the caller.Operationstring `json:"operation,omitempty"`// Version: Terraform versionVersionstring `json:"version,omitempty"`// Who: user@hostname when availableWhostring `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¶
typeOperation¶
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.Donebool `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.Metadatagoogleapi.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}`.Namestring `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`.Responsegoogleapi.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 theresult of a network API call.
func (Operation)MarshalJSON¶
typeOperationMetadata¶
type OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CreateTime: Output only. Time when the operation was created.CreateTimestring `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.EndTimestring `json:"endTime,omitempty"`// PreviewMetadata: Output only. Metadata about the preview operation state.PreviewMetadata *PreviewOperationMetadata `json:"previewMetadata,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`.RequestedCancellationbool `json:"requestedCancellation,omitempty"`// StatusMessage: Output only. Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `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 (sOperationMetadata) MarshalJSON() ([]byte,error)
typePolicy¶
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.Etagstring `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).Versionint64 `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 specifiesaccess controls for Google Cloud resources. A `Policy` is a collection of`bindings`. A `binding` binds one or more `members`, or principals, to asingle `role`. Principals can be user accounts, service accounts, Googlegroups, and domains (such as G Suite). A `role` is a named list ofpermissions; each `role` can be an IAM predefined role or a user-createdcustom role. For some types of Google Cloud resources, a `binding` can alsospecify a `condition`, which is a logical expression that allows access to aresource only if the expression evaluates to `true`. A condition can addconstraints based on attributes of the request, the resource, or both. Tolearn which resources support conditions in their IAM policies, see the IAMdocumentation(https://cloud.google.com/iam/help/conditions/resource-policies). **JSONexample:** ``` { "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.comrole: roles/resourcemanager.organizationAdmin - members: -user:eve@example.com role: roles/resourcemanager.organizationViewercondition: title: expirable access description: Does not grant access afterSep 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¶
typePreview¶
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.ArtifactsGcsBucketstring `json:"artifactsGcsBucket,omitempty"`// Build: Output only. Cloud Build instance UUID associated with this preview.Buildstring `json:"build,omitempty"`// CreateTime: Output only. Time the preview was created.CreateTimestring `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.Deploymentstring `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.ErrorCodestring `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}`.ErrorLogsstring `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.Logsstring `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}`Namestring `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.PreviewModestring `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}`ServiceAccountstring `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.Statestring `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".TfVersionstring `json:"tfVersion,omitempty"`// TfVersionConstraint: Optional. The user-specified Terraform version// constraint. Example: "=1.3.10".TfVersionConstraintstring `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.WorkerPoolstring `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 performto move the resources towards the desired state as specified in theconfiguration.
func (Preview)MarshalJSON¶
typePreviewArtifacts¶
type PreviewArtifacts struct {// Artifacts: Output only. Location of artifacts in Google Cloud Storage.// Format: `gs://{bucket}/{object}`Artifactsstring `json:"artifacts,omitempty"`// Content: Output only. Location of a blueprint copy and other content in// Google Cloud Storage. Format: `gs://{bucket}/{object}`Contentstring `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 (sPreviewArtifacts) MarshalJSON() ([]byte,error)
typePreviewOperationMetadata¶
type PreviewOperationMetadata struct {// Build: Output only. Cloud Build instance UUID associated with this preview.Buildstring `json:"build,omitempty"`// Logs: Output only. Location of preview logs in `gs://{bucket}/{object}`// format.Logsstring `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.Stepstring `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 ofa preview operation.
func (PreviewOperationMetadata)MarshalJSON¶
func (sPreviewOperationMetadata) MarshalJSON() ([]byte,error)
typePreviewResult¶
type PreviewResult struct {// BinarySignedUri: Output only. Plan binary signed URLBinarySignedUristring `json:"binarySignedUri,omitempty"`// JsonSignedUri: Output only. Plan JSON signed URLJsonSignedUristring `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 (sPreviewResult) MarshalJSON() ([]byte,error)
typeProjectsLocationsDeploymentsCreateCall¶
type ProjectsLocationsDeploymentsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsCreateCall)Context¶
func (c *ProjectsLocationsDeploymentsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsCreateCall)DeploymentId¶
func (c *ProjectsLocationsDeploymentsCreateCall) DeploymentId(deploymentIdstring) *ProjectsLocationsDeploymentsCreateCall
DeploymentId sets the optional parameter "deploymentId": Required. TheDeployment ID.
func (*ProjectsLocationsDeploymentsCreateCall)Do¶
func (c *ProjectsLocationsDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsCreateCall)Fields¶
func (c *ProjectsLocationsDeploymentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsCreateCall)Header¶
func (c *ProjectsLocationsDeploymentsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsCreateCall)RequestId¶
func (c *ProjectsLocationsDeploymentsCreateCall) RequestId(requestIdstring) *ProjectsLocationsDeploymentsCreateCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsDeploymentsDeleteCall¶
type ProjectsLocationsDeploymentsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsDeleteCall)Context¶
func (c *ProjectsLocationsDeploymentsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsDeleteCall)DeletePolicy¶
func (c *ProjectsLocationsDeploymentsDeleteCall) DeletePolicy(deletePolicystring) *ProjectsLocationsDeploymentsDeleteCall
DeletePolicy sets the optional parameter "deletePolicy": Policy on howresources actuated by the deployment should be deleted. If unspecified, thedefault 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¶
func (c *ProjectsLocationsDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsDeleteCall)Fields¶
func (c *ProjectsLocationsDeploymentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsDeleteCall)Force¶
func (c *ProjectsLocationsDeploymentsDeleteCall) Force(forcebool) *ProjectsLocationsDeploymentsDeleteCall
Force sets the optional parameter "force": If set to true, any revisions forthis deployment will also be deleted. (Otherwise, the request will only workif the deployment has no revisions.)
func (*ProjectsLocationsDeploymentsDeleteCall)Header¶
func (c *ProjectsLocationsDeploymentsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsDeleteCall)RequestId¶
func (c *ProjectsLocationsDeploymentsDeleteCall) RequestId(requestIdstring) *ProjectsLocationsDeploymentsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsDeploymentsDeleteStateCall¶
type ProjectsLocationsDeploymentsDeleteStateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsDeleteStateCall)Context¶
func (c *ProjectsLocationsDeploymentsDeleteStateCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsDeleteStateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsDeleteStateCall)Do¶
func (c *ProjectsLocationsDeploymentsDeleteStateCall) Do(opts ...googleapi.CallOption) (*Empty,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsDeleteStateCall)Fields¶
func (c *ProjectsLocationsDeploymentsDeleteStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsDeleteStateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsDeleteStateCall)Header¶
func (c *ProjectsLocationsDeploymentsDeleteStateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsExportLockCall¶
type ProjectsLocationsDeploymentsExportLockCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsExportLockCall)Context¶
func (c *ProjectsLocationsDeploymentsExportLockCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsExportLockCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsExportLockCall)Do¶
func (c *ProjectsLocationsDeploymentsExportLockCall) Do(opts ...googleapi.CallOption) (*LockInfo,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsExportLockCall)Fields¶
func (c *ProjectsLocationsDeploymentsExportLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsExportLockCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsExportLockCall)Header¶
func (c *ProjectsLocationsDeploymentsExportLockCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsExportLockCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsExportLockCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsExportLockCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsDeploymentsExportStateCall¶
type ProjectsLocationsDeploymentsExportStateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsExportStateCall)Context¶
func (c *ProjectsLocationsDeploymentsExportStateCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsExportStateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsExportStateCall)Do¶
func (c *ProjectsLocationsDeploymentsExportStateCall) Do(opts ...googleapi.CallOption) (*Statefile,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsExportStateCall)Fields¶
func (c *ProjectsLocationsDeploymentsExportStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsExportStateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsExportStateCall)Header¶
func (c *ProjectsLocationsDeploymentsExportStateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsGetCall¶
type ProjectsLocationsDeploymentsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsGetCall)Context¶
func (c *ProjectsLocationsDeploymentsGetCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsGetCall)Do¶
func (c *ProjectsLocationsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsGetCall)Fields¶
func (c *ProjectsLocationsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsGetCall)Header¶
func (c *ProjectsLocationsDeploymentsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsDeploymentsGetIamPolicyCall¶
type ProjectsLocationsDeploymentsGetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsGetIamPolicyCall)Context¶
func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsGetIamPolicyCall)Do¶
func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsGetIamPolicyCall)Fields¶
func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsGetIamPolicyCall)Header¶
func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsGetIamPolicyCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsDeploymentsGetIamPolicyCall)OptionsRequestedPolicyVersion¶
func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsDeploymentsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).
typeProjectsLocationsDeploymentsImportStateCall¶
type ProjectsLocationsDeploymentsImportStateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsImportStateCall)Context¶
func (c *ProjectsLocationsDeploymentsImportStateCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsImportStateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsImportStateCall)Do¶
func (c *ProjectsLocationsDeploymentsImportStateCall) Do(opts ...googleapi.CallOption) (*Statefile,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsImportStateCall)Fields¶
func (c *ProjectsLocationsDeploymentsImportStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsImportStateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsImportStateCall)Header¶
func (c *ProjectsLocationsDeploymentsImportStateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsListCall¶
type ProjectsLocationsDeploymentsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsListCall)Context¶
func (c *ProjectsLocationsDeploymentsListCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsListCall)Do¶
func (c *ProjectsLocationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*ListDeploymentsResponse,error)
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 wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsListCall)Fields¶
func (c *ProjectsLocationsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsListCall)Filter¶
func (c *ProjectsLocationsDeploymentsListCall) Filter(filterstring) *ProjectsLocationsDeploymentsListCall
Filter sets the optional parameter "filter": Lists the Deployments thatmatch the filter expression. A filter expression filters the resourceslisted in the response. The expression must be of the form '{field}{operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':'are supported (colon ':' represents a HAS operator which is roughlysynonymous with equality). {field} can refer to a proto or JSON field, or asynthetic 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¶
func (c *ProjectsLocationsDeploymentsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsListCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsDeploymentsListCall)OrderBy¶
func (c *ProjectsLocationsDeploymentsListCall) OrderBy(orderBystring) *ProjectsLocationsDeploymentsListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsDeploymentsListCall)PageSize¶
func (c *ProjectsLocationsDeploymentsListCall) PageSize(pageSizeint64) *ProjectsLocationsDeploymentsListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofresources, 'page_size' specifies number of resources to return. Ifunspecified, at most 500 will be returned. The maximum value is 1000.
func (*ProjectsLocationsDeploymentsListCall)PageToken¶
func (c *ProjectsLocationsDeploymentsListCall) PageToken(pageTokenstring) *ProjectsLocationsDeploymentsListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListDeployments' which specifies the position in the listfrom where to continue listing the resources.
func (*ProjectsLocationsDeploymentsListCall)Pages¶
func (c *ProjectsLocationsDeploymentsListCall) Pages(ctxcontext.Context, f func(*ListDeploymentsResponse)error)error
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.
typeProjectsLocationsDeploymentsLockCall¶
type ProjectsLocationsDeploymentsLockCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsLockCall)Context¶
func (c *ProjectsLocationsDeploymentsLockCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsLockCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsLockCall)Do¶
func (c *ProjectsLocationsDeploymentsLockCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsLockCall)Fields¶
func (c *ProjectsLocationsDeploymentsLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsLockCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsLockCall)Header¶
func (c *ProjectsLocationsDeploymentsLockCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsPatchCall¶
type ProjectsLocationsDeploymentsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsPatchCall)Context¶
func (c *ProjectsLocationsDeploymentsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsPatchCall)Do¶
func (c *ProjectsLocationsDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsPatchCall)Fields¶
func (c *ProjectsLocationsDeploymentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsPatchCall)Header¶
func (c *ProjectsLocationsDeploymentsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsPatchCall)RequestId¶
func (c *ProjectsLocationsDeploymentsPatchCall) RequestId(requestIdstring) *ProjectsLocationsDeploymentsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
func (*ProjectsLocationsDeploymentsPatchCall)UpdateMask¶
func (c *ProjectsLocationsDeploymentsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsDeploymentsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask used tospecify the fields to be overwritten in the Deployment resource by theupdate. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask. If the user does not provide a mask then all fields will beoverwritten.
typeProjectsLocationsDeploymentsRevisionsExportStateCall¶
type ProjectsLocationsDeploymentsRevisionsExportStateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsRevisionsExportStateCall)Context¶
func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsRevisionsExportStateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsRevisionsExportStateCall)Do¶
func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Do(opts ...googleapi.CallOption) (*Statefile,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsRevisionsExportStateCall)Fields¶
func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsExportStateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsRevisionsExportStateCall)Header¶
func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsRevisionsGetCall¶
type ProjectsLocationsDeploymentsRevisionsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsRevisionsGetCall)Context¶
func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsRevisionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsRevisionsGetCall)Do¶
func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsRevisionsGetCall)Fields¶
func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsRevisionsGetCall)Header¶
func (c *ProjectsLocationsDeploymentsRevisionsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsRevisionsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsRevisionsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsRevisionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsDeploymentsRevisionsListCall¶
type ProjectsLocationsDeploymentsRevisionsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsRevisionsListCall)Context¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsRevisionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsRevisionsListCall)Do¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse,error)
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 returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsDeploymentsRevisionsListCall)Fields¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsRevisionsListCall)Filter¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) Filter(filterstring) *ProjectsLocationsDeploymentsRevisionsListCall
Filter sets the optional parameter "filter": Lists the Revisions that matchthe filter expression. A filter expression filters the resources listed inthe response. The expression must be of the form '{field} {operator}{value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported(colon ':' represents a HAS operator which is roughly synonymous withequality). {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 - Filterby labels: - Resources that have a key called 'foo' labels.foo:* - Resourcesthat have a key called 'foo' whose value is 'bar' labels.foo = bar - Filterby state: - Revisions in CREATING state. state=CREATING
func (*ProjectsLocationsDeploymentsRevisionsListCall)Header¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsRevisionsListCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsRevisionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsDeploymentsRevisionsListCall)OrderBy¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) OrderBy(orderBystring) *ProjectsLocationsDeploymentsRevisionsListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsDeploymentsRevisionsListCall)PageSize¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) PageSize(pageSizeint64) *ProjectsLocationsDeploymentsRevisionsListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofresources, `page_size` specifies number of resources to return. Ifunspecified, at most 500 will be returned. The maximum value is 1000.
func (*ProjectsLocationsDeploymentsRevisionsListCall)PageToken¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) PageToken(pageTokenstring) *ProjectsLocationsDeploymentsRevisionsListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListRevisions' which specifies the position in the listfrom where to continue listing the resources.
func (*ProjectsLocationsDeploymentsRevisionsListCall)Pages¶
func (c *ProjectsLocationsDeploymentsRevisionsListCall) Pages(ctxcontext.Context, f func(*ListRevisionsResponse)error)error
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.
typeProjectsLocationsDeploymentsRevisionsResourcesGetCall¶
type ProjectsLocationsDeploymentsRevisionsResourcesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall)Context¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall)Do¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall)Fields¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall)Header¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsRevisionsResourcesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsDeploymentsRevisionsResourcesListCall¶
type ProjectsLocationsDeploymentsRevisionsResourcesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)Context¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)Do¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Do(opts ...googleapi.CallOption) (*ListResourcesResponse,error)
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 returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)Fields¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)Filter¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Filter(filterstring) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
Filter sets the optional parameter "filter": Lists the Resources that matchthe filter expression. A filter expression filters the resources listed inthe response. The expression must be of the form '{field} {operator}{value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported(colon ':' represents a HAS operator which is roughly synonymous withequality). {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/baz
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)Header¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)IfNoneMatch¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)OrderBy¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) OrderBy(orderBystring) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)PageSize¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) PageSize(pageSizeint64) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofresources, 'page_size' specifies number of resources to return. Ifunspecified, at most 500 will be returned. The maximum value is 1000.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)PageToken¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) PageToken(pageTokenstring) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListResources' which specifies the position in the listfrom where to continue listing the resources.
func (*ProjectsLocationsDeploymentsRevisionsResourcesListCall)Pages¶
func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) Pages(ctxcontext.Context, f func(*ListResourcesResponse)error)error
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.
typeProjectsLocationsDeploymentsRevisionsResourcesService¶
type ProjectsLocationsDeploymentsRevisionsResourcesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsDeploymentsRevisionsResourcesService¶
func NewProjectsLocationsDeploymentsRevisionsResourcesService(s *Service) *ProjectsLocationsDeploymentsRevisionsResourcesService
func (*ProjectsLocationsDeploymentsRevisionsResourcesService)Get¶
func (r *ProjectsLocationsDeploymentsRevisionsResourcesService) Get(namestring) *ProjectsLocationsDeploymentsRevisionsResourcesGetCall
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}/revisions/{revision}/resource/{resource}'.
func (*ProjectsLocationsDeploymentsRevisionsResourcesService)List¶
func (r *ProjectsLocationsDeploymentsRevisionsResourcesService) List(parentstring) *ProjectsLocationsDeploymentsRevisionsResourcesListCall
List: Lists Resources in a given revision.
- parent: The parent in whose context the Resources are listed. The parentvalue is in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'.
typeProjectsLocationsDeploymentsRevisionsService¶
type ProjectsLocationsDeploymentsRevisionsService struct {Resources *ProjectsLocationsDeploymentsRevisionsResourcesService// contains filtered or unexported fields}funcNewProjectsLocationsDeploymentsRevisionsService¶
func NewProjectsLocationsDeploymentsRevisionsService(s *Service) *ProjectsLocationsDeploymentsRevisionsService
func (*ProjectsLocationsDeploymentsRevisionsService)ExportState¶
func (r *ProjectsLocationsDeploymentsRevisionsService) ExportState(parentstring, exportrevisionstatefilerequest *ExportRevisionStatefileRequest) *ProjectsLocationsDeploymentsRevisionsExportStateCall
ExportState: Exports Terraform state file from a given revision.
- parent: The parent in whose context the statefile is listed. The parentvalue is in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'.
func (*ProjectsLocationsDeploymentsRevisionsService)Get¶
func (r *ProjectsLocationsDeploymentsRevisionsService) Get(namestring) *ProjectsLocationsDeploymentsRevisionsGetCall
Get: Gets details about a Revision.
- name: The name of the Revision in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'.
func (*ProjectsLocationsDeploymentsRevisionsService)List¶
func (r *ProjectsLocationsDeploymentsRevisionsService) List(parentstring) *ProjectsLocationsDeploymentsRevisionsListCall
List: Lists Revisions of a deployment.
- parent: The parent in whose context the Revisions are listed. The parentvalue is in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
typeProjectsLocationsDeploymentsService¶
type ProjectsLocationsDeploymentsService struct {Revisions *ProjectsLocationsDeploymentsRevisionsService// contains filtered or unexported fields}funcNewProjectsLocationsDeploymentsService¶
func NewProjectsLocationsDeploymentsService(s *Service) *ProjectsLocationsDeploymentsService
func (*ProjectsLocationsDeploymentsService)Create¶
func (r *ProjectsLocationsDeploymentsService) Create(parentstring, deployment *Deployment) *ProjectsLocationsDeploymentsCreateCall
Create: Creates a Deployment.
- parent: The parent in whose context the Deployment is created. The parentvalue is in the format: 'projects/{project_id}/locations/{location}'.
func (*ProjectsLocationsDeploymentsService)Delete¶
func (r *ProjectsLocationsDeploymentsService) Delete(namestring) *ProjectsLocationsDeploymentsDeleteCall
Delete: Deletes a Deployment.
- name: The name of the Deployment in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
func (*ProjectsLocationsDeploymentsService)DeleteState¶
func (r *ProjectsLocationsDeploymentsService) DeleteState(namestring, deletestatefilerequest *DeleteStatefileRequest) *ProjectsLocationsDeploymentsDeleteStateCall
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¶
func (r *ProjectsLocationsDeploymentsService) ExportLock(namestring) *ProjectsLocationsDeploymentsExportLockCall
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¶
func (r *ProjectsLocationsDeploymentsService) ExportState(parentstring, exportdeploymentstatefilerequest *ExportDeploymentStatefileRequest) *ProjectsLocationsDeploymentsExportStateCall
ExportState: Exports Terraform state file from a given deployment.
- parent: The parent in whose context the statefile is listed. The parentvalue is in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
func (*ProjectsLocationsDeploymentsService)Get¶
func (r *ProjectsLocationsDeploymentsService) Get(namestring) *ProjectsLocationsDeploymentsGetCall
Get: Gets details about a Deployment.
- name: The name of the deployment. Format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
func (*ProjectsLocationsDeploymentsService)GetIamPolicy¶
func (r *ProjectsLocationsDeploymentsService) GetIamPolicy(resourcestring) *ProjectsLocationsDeploymentsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsDeploymentsService)ImportState¶
func (r *ProjectsLocationsDeploymentsService) ImportState(parentstring, importstatefilerequest *ImportStatefileRequest) *ProjectsLocationsDeploymentsImportStateCall
ImportState: Imports Terraform state file in a given deployment. The statefile does not take effect until the Deployment has been unlocked.
- parent: The parent in whose context the statefile is listed. The parentvalue is in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
func (*ProjectsLocationsDeploymentsService)List¶
func (r *ProjectsLocationsDeploymentsService) List(parentstring) *ProjectsLocationsDeploymentsListCall
List: Lists Deployments in a given project and location.
- parent: The parent in whose context the Deployments are listed. The parentvalue is in the format: 'projects/{project_id}/locations/{location}'.
func (*ProjectsLocationsDeploymentsService)Lock¶
func (r *ProjectsLocationsDeploymentsService) Lock(namestring, lockdeploymentrequest *LockDeploymentRequest) *ProjectsLocationsDeploymentsLockCall
Lock: Locks a deployment.
- name: The name of the deployment in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
func (*ProjectsLocationsDeploymentsService)Patch¶
func (r *ProjectsLocationsDeploymentsService) Patch(namestring, deployment *Deployment) *ProjectsLocationsDeploymentsPatchCall
Patch: Updates a Deployment.
- name: Identifier. Resource name of the deployment. Format:`projects/{project}/locations/{location}/deployments/{deployment}`.
func (*ProjectsLocationsDeploymentsService)SetIamPolicy¶
func (r *ProjectsLocationsDeploymentsService) SetIamPolicy(resourcestring, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDeploymentsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsDeploymentsService)TestIamPermissions¶
func (r *ProjectsLocationsDeploymentsService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDeploymentsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is beingrequested. See Resource names(https://cloud.google.com/apis/design/resource_names) for the appropriatevalue for this field.
func (*ProjectsLocationsDeploymentsService)Unlock¶
func (r *ProjectsLocationsDeploymentsService) Unlock(namestring, unlockdeploymentrequest *UnlockDeploymentRequest) *ProjectsLocationsDeploymentsUnlockCall
Unlock: Unlocks a locked deployment.
- name: The name of the deployment in the format:'projects/{project_id}/locations/{location}/deployments/{deployment}'.
typeProjectsLocationsDeploymentsSetIamPolicyCall¶
type ProjectsLocationsDeploymentsSetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsSetIamPolicyCall)Context¶
func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsSetIamPolicyCall)Do¶
func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsSetIamPolicyCall)Fields¶
func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsSetIamPolicyCall)Header¶
func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsTestIamPermissionsCall¶
type ProjectsLocationsDeploymentsTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsTestIamPermissionsCall)Context¶
func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsTestIamPermissionsCall)Do¶
func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse,error)
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 wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsTestIamPermissionsCall)Fields¶
func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsTestIamPermissionsCall)Header¶
func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsDeploymentsUnlockCall¶
type ProjectsLocationsDeploymentsUnlockCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsDeploymentsUnlockCall)Context¶
func (c *ProjectsLocationsDeploymentsUnlockCall) Context(ctxcontext.Context) *ProjectsLocationsDeploymentsUnlockCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDeploymentsUnlockCall)Do¶
func (c *ProjectsLocationsDeploymentsUnlockCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDeploymentsUnlockCall)Fields¶
func (c *ProjectsLocationsDeploymentsUnlockCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentsUnlockCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsDeploymentsUnlockCall)Header¶
func (c *ProjectsLocationsDeploymentsUnlockCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsGetCall¶
type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGetCall)Context¶
func (c *ProjectsLocationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall)Do¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall)Fields¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGetCall)Header¶
func (c *ProjectsLocationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsListCall¶
type ProjectsLocationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsListCall)Context¶
func (c *ProjectsLocationsListCall) Context(ctxcontext.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall)Do¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse,error)
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 returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsListCall)ExtraLocationTypes¶added inv0.230.0
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.
func (*ProjectsLocationsListCall)Fields¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsListCall)Filter¶
func (c *ProjectsLocationsListCall) Filter(filterstring) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto 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¶
func (c *ProjectsLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsListCall)PageSize¶
func (c *ProjectsLocationsListCall) PageSize(pageSizeint64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall)PageToken¶
func (c *ProjectsLocationsListCall) PageToken(pageTokenstring) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*ProjectsLocationsListCall)Pages¶
func (c *ProjectsLocationsListCall) Pages(ctxcontext.Context, f func(*ListLocationsResponse)error)error
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.
typeProjectsLocationsOperationsCancelCall¶
type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsCancelCall)Context¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall)Do¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall)Fields¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsCancelCall)Header¶
func (c *ProjectsLocationsOperationsCancelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsDeleteCall¶
type ProjectsLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsDeleteCall)Context¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall)Do¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall)Fields¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsDeleteCall)Header¶
func (c *ProjectsLocationsOperationsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsGetCall¶
type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsGetCall)Context¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall)Do¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall)Fields¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsGetCall)Header¶
func (c *ProjectsLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsOperationsListCall¶
type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsListCall)Context¶
func (c *ProjectsLocationsOperationsListCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall)Do¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse,error)
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 returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsOperationsListCall)Fields¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsListCall)Filter¶
func (c *ProjectsLocationsOperationsListCall) Filter(filterstring) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall)Header¶
func (c *ProjectsLocationsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall)PageSize¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSizeint64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*ProjectsLocationsOperationsListCall)PageToken¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageTokenstring) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*ProjectsLocationsOperationsListCall)Pages¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctxcontext.Context, f func(*ListOperationsResponse)error)error
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 inv0.252.0
func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *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` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.
typeProjectsLocationsOperationsService¶
type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOperationsService¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService)Cancel¶
func (r *ProjectsLocationsOperationsService) Cancel(namestring, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.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¶
func (r *ProjectsLocationsOperationsService) Delete(namestring) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe 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¶
func (r *ProjectsLocationsOperationsService) Get(namestring) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService)List¶
func (r *ProjectsLocationsOperationsService) List(namestring) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
typeProjectsLocationsPreviewsCreateCall¶
type ProjectsLocationsPreviewsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsCreateCall)Context¶
func (c *ProjectsLocationsPreviewsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsCreateCall)Do¶
func (c *ProjectsLocationsPreviewsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsCreateCall)Fields¶
func (c *ProjectsLocationsPreviewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsCreateCall)Header¶
func (c *ProjectsLocationsPreviewsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsCreateCall)PreviewId¶
func (c *ProjectsLocationsPreviewsCreateCall) PreviewId(previewIdstring) *ProjectsLocationsPreviewsCreateCall
PreviewId sets the optional parameter "previewId": The preview ID.
func (*ProjectsLocationsPreviewsCreateCall)RequestId¶
func (c *ProjectsLocationsPreviewsCreateCall) RequestId(requestIdstring) *ProjectsLocationsPreviewsCreateCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsPreviewsDeleteCall¶
type ProjectsLocationsPreviewsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsDeleteCall)Context¶
func (c *ProjectsLocationsPreviewsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsDeleteCall)Do¶
func (c *ProjectsLocationsPreviewsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsDeleteCall)Fields¶
func (c *ProjectsLocationsPreviewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsDeleteCall)Header¶
func (c *ProjectsLocationsPreviewsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsDeleteCall)RequestId¶
func (c *ProjectsLocationsPreviewsDeleteCall) RequestId(requestIdstring) *ProjectsLocationsPreviewsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsPreviewsExportCall¶
type ProjectsLocationsPreviewsExportCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsExportCall)Context¶
func (c *ProjectsLocationsPreviewsExportCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsExportCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsExportCall)Do¶
func (c *ProjectsLocationsPreviewsExportCall) Do(opts ...googleapi.CallOption) (*ExportPreviewResultResponse,error)
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 wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsExportCall)Fields¶
func (c *ProjectsLocationsPreviewsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsExportCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsExportCall)Header¶
func (c *ProjectsLocationsPreviewsExportCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsPreviewsGetCall¶
type ProjectsLocationsPreviewsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsGetCall)Context¶
func (c *ProjectsLocationsPreviewsGetCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsGetCall)Do¶
func (c *ProjectsLocationsPreviewsGetCall) Do(opts ...googleapi.CallOption) (*Preview,error)
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) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsGetCall)Fields¶
func (c *ProjectsLocationsPreviewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsGetCall)Header¶
func (c *ProjectsLocationsPreviewsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsPreviewsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsPreviewsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsPreviewsListCall¶
type ProjectsLocationsPreviewsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsListCall)Context¶
func (c *ProjectsLocationsPreviewsListCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsListCall)Do¶
func (c *ProjectsLocationsPreviewsListCall) Do(opts ...googleapi.CallOption) (*ListPreviewsResponse,error)
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 returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsPreviewsListCall)Fields¶
func (c *ProjectsLocationsPreviewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsListCall)Filter¶
func (c *ProjectsLocationsPreviewsListCall) Filter(filterstring) *ProjectsLocationsPreviewsListCall
Filter sets the optional parameter "filter": Lists the Deployments thatmatch the filter expression. A filter expression filters the resourceslisted in the response. The expression must be of the form '{field}{operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':'are supported (colon ':' represents a HAS operator which is roughlysynonymous with equality). {field} can refer to a proto or JSON field, or asynthetic 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¶
func (c *ProjectsLocationsPreviewsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsListCall)IfNoneMatch¶
func (c *ProjectsLocationsPreviewsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsPreviewsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsPreviewsListCall)OrderBy¶
func (c *ProjectsLocationsPreviewsListCall) OrderBy(orderBystring) *ProjectsLocationsPreviewsListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsPreviewsListCall)PageSize¶
func (c *ProjectsLocationsPreviewsListCall) PageSize(pageSizeint64) *ProjectsLocationsPreviewsListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofresources, 'page_size' specifies number of resources to return. Ifunspecified, at most 500 will be returned. The maximum value is 1000.
func (*ProjectsLocationsPreviewsListCall)PageToken¶
func (c *ProjectsLocationsPreviewsListCall) PageToken(pageTokenstring) *ProjectsLocationsPreviewsListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListDeployments' which specifies the position in the listfrom where to continue listing the resources.
func (*ProjectsLocationsPreviewsListCall)Pages¶
func (c *ProjectsLocationsPreviewsListCall) Pages(ctxcontext.Context, f func(*ListPreviewsResponse)error)error
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.
typeProjectsLocationsPreviewsResourceChangesGetCall¶added inv0.237.0
type ProjectsLocationsPreviewsResourceChangesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsResourceChangesGetCall)Context¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsResourceChangesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsResourceChangesGetCall)Do¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Do(opts ...googleapi.CallOption) (*ResourceChange,error)
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 checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsResourceChangesGetCall)Fields¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceChangesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsResourceChangesGetCall)Header¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsResourceChangesGetCall)IfNoneMatch¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsPreviewsResourceChangesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsPreviewsResourceChangesListCall¶added inv0.237.0
type ProjectsLocationsPreviewsResourceChangesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsResourceChangesListCall)Context¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsResourceChangesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsResourceChangesListCall)Do¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) Do(opts ...googleapi.CallOption) (*ListResourceChangesResponse,error)
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 wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsResourceChangesListCall)Fields¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceChangesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsResourceChangesListCall)Filter¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) Filter(filterstring) *ProjectsLocationsPreviewsResourceChangesListCall
Filter sets the optional parameter "filter": Lists the resource changes thatmatch the filter expression. A filter expression filters the resourcechanges 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 roughlysynonymous with equality). {field} can refer to a proto or JSON field, or asynthetic 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 inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsResourceChangesListCall)IfNoneMatch¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsPreviewsResourceChangesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsPreviewsResourceChangesListCall)OrderBy¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) OrderBy(orderBystring) *ProjectsLocationsPreviewsResourceChangesListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsPreviewsResourceChangesListCall)PageSize¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) PageSize(pageSizeint64) *ProjectsLocationsPreviewsResourceChangesListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofresource changes, 'page_size' specifies number of resource changes toreturn. If unspecified, at most 500 will be returned. The maximum value is1000.
func (*ProjectsLocationsPreviewsResourceChangesListCall)PageToken¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) PageToken(pageTokenstring) *ProjectsLocationsPreviewsResourceChangesListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListResourceChanges' which specifies the position in thelist from where to continue listing the resource changes.
func (*ProjectsLocationsPreviewsResourceChangesListCall)Pages¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceChangesListCall) Pages(ctxcontext.Context, f func(*ListResourceChangesResponse)error)error
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.
typeProjectsLocationsPreviewsResourceChangesService¶added inv0.237.0
type ProjectsLocationsPreviewsResourceChangesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsPreviewsResourceChangesService¶added inv0.237.0
func NewProjectsLocationsPreviewsResourceChangesService(s *Service) *ProjectsLocationsPreviewsResourceChangesService
func (*ProjectsLocationsPreviewsResourceChangesService)Get¶added inv0.237.0
func (r *ProjectsLocationsPreviewsResourceChangesService) Get(namestring) *ProjectsLocationsPreviewsResourceChangesGetCall
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}/resourceChanges/{resource_change}'.
func (*ProjectsLocationsPreviewsResourceChangesService)List¶added inv0.237.0
func (r *ProjectsLocationsPreviewsResourceChangesService) List(parentstring) *ProjectsLocationsPreviewsResourceChangesListCall
List: Lists ResourceChanges for a given preview.
- parent: The parent in whose context the ResourceChanges are listed. Theparent value is in the format:'projects/{project_id}/locations/{location}/previews/{preview}'.
typeProjectsLocationsPreviewsResourceDriftsGetCall¶added inv0.237.0
type ProjectsLocationsPreviewsResourceDriftsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsResourceDriftsGetCall)Context¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsResourceDriftsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsResourceDriftsGetCall)Do¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Do(opts ...googleapi.CallOption) (*ResourceDrift,error)
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 checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsResourceDriftsGetCall)Fields¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceDriftsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsResourceDriftsGetCall)Header¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsResourceDriftsGetCall)IfNoneMatch¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsPreviewsResourceDriftsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsPreviewsResourceDriftsListCall¶added inv0.237.0
type ProjectsLocationsPreviewsResourceDriftsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsPreviewsResourceDriftsListCall)Context¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Context(ctxcontext.Context) *ProjectsLocationsPreviewsResourceDriftsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)Do¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Do(opts ...googleapi.CallOption) (*ListResourceDriftsResponse,error)
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 wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)Fields¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreviewsResourceDriftsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)Filter¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Filter(filterstring) *ProjectsLocationsPreviewsResourceDriftsListCall
Filter sets the optional parameter "filter": Lists the resource drifts thatmatch the filter expression. A filter expression filters the resource driftslisted in the response. The expression must be of the form '{field}{operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':'are supported (colon ':' represents a HAS operator which is roughlysynonymous with equality). {field} can refer to a proto or JSON field, or asynthetic 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 inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)IfNoneMatch¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsPreviewsResourceDriftsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)OrderBy¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) OrderBy(orderBystring) *ProjectsLocationsPreviewsResourceDriftsListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)PageSize¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) PageSize(pageSizeint64) *ProjectsLocationsPreviewsResourceDriftsListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofresource 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 inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) PageToken(pageTokenstring) *ProjectsLocationsPreviewsResourceDriftsListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListResourceDrifts' which specifies the position in thelist from where to continue listing the resource drifts.
func (*ProjectsLocationsPreviewsResourceDriftsListCall)Pages¶added inv0.237.0
func (c *ProjectsLocationsPreviewsResourceDriftsListCall) Pages(ctxcontext.Context, f func(*ListResourceDriftsResponse)error)error
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.
typeProjectsLocationsPreviewsResourceDriftsService¶added inv0.237.0
type ProjectsLocationsPreviewsResourceDriftsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsPreviewsResourceDriftsService¶added inv0.237.0
func NewProjectsLocationsPreviewsResourceDriftsService(s *Service) *ProjectsLocationsPreviewsResourceDriftsService
func (*ProjectsLocationsPreviewsResourceDriftsService)Get¶added inv0.237.0
func (r *ProjectsLocationsPreviewsResourceDriftsService) Get(namestring) *ProjectsLocationsPreviewsResourceDriftsGetCall
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}/resourceDrifts/{resource_drift}'.
func (*ProjectsLocationsPreviewsResourceDriftsService)List¶added inv0.237.0
func (r *ProjectsLocationsPreviewsResourceDriftsService) List(parentstring) *ProjectsLocationsPreviewsResourceDriftsListCall
List: List ResourceDrifts for a given preview.
- parent: The parent in whose context the ResourceDrifts are listed. Theparent value is in the format:'projects/{project_id}/locations/{location}/previews/{preview}'.
typeProjectsLocationsPreviewsService¶
type ProjectsLocationsPreviewsService struct {ResourceChanges *ProjectsLocationsPreviewsResourceChangesServiceResourceDrifts *ProjectsLocationsPreviewsResourceDriftsService// contains filtered or unexported fields}funcNewProjectsLocationsPreviewsService¶
func NewProjectsLocationsPreviewsService(s *Service) *ProjectsLocationsPreviewsService
func (*ProjectsLocationsPreviewsService)Create¶
func (r *ProjectsLocationsPreviewsService) Create(parentstring, preview *Preview) *ProjectsLocationsPreviewsCreateCall
Create: Creates a Preview.
- parent: The parent in whose context the Preview is created. The parentvalue is in the format: 'projects/{project_id}/locations/{location}'.
func (*ProjectsLocationsPreviewsService)Delete¶
func (r *ProjectsLocationsPreviewsService) Delete(namestring) *ProjectsLocationsPreviewsDeleteCall
Delete: Deletes a Preview.
- name: The name of the Preview in the format:'projects/{project_id}/locations/{location}/previews/{preview}'.
func (*ProjectsLocationsPreviewsService)Export¶
func (r *ProjectsLocationsPreviewsService) Export(parentstring, exportpreviewresultrequest *ExportPreviewResultRequest) *ProjectsLocationsPreviewsExportCall
Export: Export Preview results.
- parent: The preview whose results should be exported. The preview value isin the format:'projects/{project_id}/locations/{location}/previews/{preview}'.
func (*ProjectsLocationsPreviewsService)Get¶
func (r *ProjectsLocationsPreviewsService) Get(namestring) *ProjectsLocationsPreviewsGetCall
Get: Gets details about a Preview.
- name: The name of the preview. Format:'projects/{project_id}/locations/{location}/previews/{preview}'.
func (*ProjectsLocationsPreviewsService)List¶
func (r *ProjectsLocationsPreviewsService) List(parentstring) *ProjectsLocationsPreviewsListCall
List: Lists Previews in a given project and location.
- parent: The parent in whose context the Previews are listed. The parentvalue is in the format: 'projects/{project_id}/locations/{location}'.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {Deployments *ProjectsLocationsDeploymentsServiceOperations *ProjectsLocationsOperationsServicePreviews *ProjectsLocationsPreviewsServiceTerraformVersions *ProjectsLocationsTerraformVersionsService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService)Get¶
func (r *ProjectsLocationsService) Get(namestring) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService)List¶
func (r *ProjectsLocationsService) List(namestring) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
typeProjectsLocationsTerraformVersionsGetCall¶
type ProjectsLocationsTerraformVersionsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsTerraformVersionsGetCall)Context¶
func (c *ProjectsLocationsTerraformVersionsGetCall) Context(ctxcontext.Context) *ProjectsLocationsTerraformVersionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsTerraformVersionsGetCall)Do¶
func (c *ProjectsLocationsTerraformVersionsGetCall) Do(opts ...googleapi.CallOption) (*TerraformVersion,error)
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 atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsTerraformVersionsGetCall)Fields¶
func (c *ProjectsLocationsTerraformVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTerraformVersionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsTerraformVersionsGetCall)Header¶
func (c *ProjectsLocationsTerraformVersionsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsTerraformVersionsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsTerraformVersionsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsTerraformVersionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsTerraformVersionsListCall¶
type ProjectsLocationsTerraformVersionsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsTerraformVersionsListCall)Context¶
func (c *ProjectsLocationsTerraformVersionsListCall) Context(ctxcontext.Context) *ProjectsLocationsTerraformVersionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsTerraformVersionsListCall)Do¶
func (c *ProjectsLocationsTerraformVersionsListCall) Do(opts ...googleapi.CallOption) (*ListTerraformVersionsResponse,error)
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 wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsTerraformVersionsListCall)Fields¶
func (c *ProjectsLocationsTerraformVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTerraformVersionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsTerraformVersionsListCall)Filter¶
func (c *ProjectsLocationsTerraformVersionsListCall) Filter(filterstring) *ProjectsLocationsTerraformVersionsListCall
Filter sets the optional parameter "filter": Lists the TerraformVersionsthat match the filter expression. A filter expression filters the resourceslisted in the response. The expression must be of the form '{field}{operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':'are supported (colon ':' represents a HAS operator which is roughlysynonymous with equality). {field} can refer to a proto or JSON field, or asynthetic field. Field names can be camelCase or snake_case.
func (*ProjectsLocationsTerraformVersionsListCall)Header¶
func (c *ProjectsLocationsTerraformVersionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsTerraformVersionsListCall)IfNoneMatch¶
func (c *ProjectsLocationsTerraformVersionsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsTerraformVersionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsTerraformVersionsListCall)OrderBy¶
func (c *ProjectsLocationsTerraformVersionsListCall) OrderBy(orderBystring) *ProjectsLocationsTerraformVersionsListCall
OrderBy sets the optional parameter "orderBy": Field to use to sort thelist.
func (*ProjectsLocationsTerraformVersionsListCall)PageSize¶
func (c *ProjectsLocationsTerraformVersionsListCall) PageSize(pageSizeint64) *ProjectsLocationsTerraformVersionsListCall
PageSize sets the optional parameter "pageSize": When requesting a page ofterraform versions, 'page_size' specifies number of terraform versions toreturn. If unspecified, at most 500 will be returned. The maximum value is1000.
func (*ProjectsLocationsTerraformVersionsListCall)PageToken¶
func (c *ProjectsLocationsTerraformVersionsListCall) PageToken(pageTokenstring) *ProjectsLocationsTerraformVersionsListCall
PageToken sets the optional parameter "pageToken": Token returned byprevious call to 'ListTerraformVersions' which specifies the position in thelist from where to continue listing the terraform versions.
func (*ProjectsLocationsTerraformVersionsListCall)Pages¶
func (c *ProjectsLocationsTerraformVersionsListCall) Pages(ctxcontext.Context, f func(*ListTerraformVersionsResponse)error)error
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.
typeProjectsLocationsTerraformVersionsService¶
type ProjectsLocationsTerraformVersionsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsTerraformVersionsService¶
func NewProjectsLocationsTerraformVersionsService(s *Service) *ProjectsLocationsTerraformVersionsService
func (*ProjectsLocationsTerraformVersionsService)Get¶
func (r *ProjectsLocationsTerraformVersionsService) Get(namestring) *ProjectsLocationsTerraformVersionsGetCall
Get: Gets details about a TerraformVersion.
- name: The name of the TerraformVersion. Format:'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
func (*ProjectsLocationsTerraformVersionsService)List¶
func (r *ProjectsLocationsTerraformVersionsService) List(parentstring) *ProjectsLocationsTerraformVersionsListCall
List: Lists TerraformVersions in a given project and location.
- parent: The parent in whose context the TerraformVersions are listed. Theparent value is in the format:'projects/{project_id}/locations/{location}'.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typePropertyChange¶added inv0.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.Pathstring `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 thestate file.
func (PropertyChange)MarshalJSON¶added inv0.237.0
func (sPropertyChange) MarshalJSON() ([]byte,error)
typePropertyDrift¶added inv0.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.Pathstring `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 thestate file.
func (PropertyDrift)MarshalJSON¶added inv0.237.0
func (sPropertyDrift) MarshalJSON() ([]byte,error)
typeProviderConfig¶added inv0.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.SourceTypestring `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 inv0.249.0
func (sProviderConfig) MarshalJSON() ([]byte,error)
typeResource¶
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-typesCaiAssets 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.Intentstring `json:"intent,omitempty"`// Name: Output only. Resource name. Format:// `projects/{project}/locations/{location}/deployments/{deployment}/revisions/{// revision}/resources/{resource}`Namestring `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.Statestring `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 byIM. Resources are child resources of Revisions.
func (Resource)MarshalJSON¶
typeResourceCAIInfo¶
type ResourceCAIInfo struct {// FullResourceName: CAI resource name in the format following//https://cloud.google.com/apis/design/resource_names#full_resource_nameFullResourceNamestring `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 (sResourceCAIInfo) MarshalJSON() ([]byte,error)
typeResourceChange¶added inv0.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.Intentstring `json:"intent,omitempty"`// Name: Identifier. The name of the resource change. Format:// 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChange// s/{resource_change}'.Namestring `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 thestate file.
func (ResourceChange)MarshalJSON¶added inv0.237.0
func (sResourceChange) MarshalJSON() ([]byte,error)
typeResourceChangeTerraformInfo¶added inv0.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.Addressstring `json:"address,omitempty"`// Provider: Output only. TF resource provider.Providerstring `json:"provider,omitempty"`// ResourceName: Output only. TF resource name.ResourceNamestring `json:"resourceName,omitempty"`// Type: Output only. TF resource type.Typestring `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 inv0.237.0
func (sResourceChangeTerraformInfo) MarshalJSON() ([]byte,error)
typeResourceDrift¶added inv0.237.0
type ResourceDrift struct {// Name: Identifier. The name of the resource drift. Format:// 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts// /{resource_drift}'.Namestring `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 thestate file.
func (ResourceDrift)MarshalJSON¶added inv0.237.0
func (sResourceDrift) MarshalJSON() ([]byte,error)
typeResourceDriftTerraformInfo¶added inv0.237.0
type ResourceDriftTerraformInfo struct {// Address: Output only. The address of the drifted resource.Addressstring `json:"address,omitempty"`// Provider: Output only. The provider of the drifted resource.Providerstring `json:"provider,omitempty"`// ResourceName: Output only. TF resource name.ResourceNamestring `json:"resourceName,omitempty"`// Type: Output only. The type of the drifted resource.Typestring `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 inv0.237.0
func (sResourceDriftTerraformInfo) MarshalJSON() ([]byte,error)
typeResourceTerraformInfo¶
type ResourceTerraformInfo struct {// Address: TF resource address that uniquely identifies this resource within// this deployment.Addressstring `json:"address,omitempty"`// Id: ID attribute of the TF resourceIdstring `json:"id,omitempty"`// Type: TF resource typeTypestring `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 (sResourceTerraformInfo) MarshalJSON() ([]byte,error)
typeRevision¶
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.Actionstring `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.Buildstring `json:"build,omitempty"`// CreateTime: Output only. Time when the revision was created.CreateTimestring `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.ErrorCodestring `json:"errorCode,omitempty"`// ErrorLogs: Output only. Location of Terraform error logs in Google Cloud// Storage. Format: `gs://{bucket}/{object}`.ErrorLogsstring `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.ImportExistingResourcesbool `json:"importExistingResources,omitempty"`// Logs: Output only. Location of Revision operation logs in// `gs://{bucket}/{object}` format.Logsstring `json:"logs,omitempty"`// Name: Revision name. Format:// `projects/{project}/locations/{location}/deployments/{deployment}/// revisions/{revision}`Namestring `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.QuotaValidationstring `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}`.QuotaValidationResultsstring `json:"quotaValidationResults,omitempty"`// ServiceAccount: Output only. User-specified Service Account (SA) to be used// as credential to manage resources. Format:// `projects/{projectID}/serviceAccounts/{serviceAccount}`ServiceAccountstring `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.Statestring `json:"state,omitempty"`// StateDetail: Output only. Additional info regarding the current state.StateDetailstring `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".TfVersionstring `json:"tfVersion,omitempty"`// TfVersionConstraint: Output only. The user-specified Terraform version// constraint. Example: "=1.3.10".TfVersionConstraintstring `json:"tfVersionConstraint,omitempty"`// UpdateTime: Output only. Time when the revision was last modified.UpdateTimestring `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.WorkerPoolstring `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 asnapshot of a particular Deployment.
func (Revision)MarshalJSON¶
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
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.
funcNewService¶
NewService creates a new Service.
typeSetIamPolicyRequest¶
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"UpdateMaskstring `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 (sSetIamPolicyRequest) MarshalJSON() ([]byte,error)
typeStatefile¶
type Statefile struct {// SignedUri: Output only. Cloud Storage signed URI used for downloading or// uploading the state file.SignedUristring `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¶
typeStatus¶
type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `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.Messagestring `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 fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).
func (Status)MarshalJSON¶
typeTerraformBlueprint¶
type TerraformBlueprint struct {// 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}`GcsSourcestring `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. "GcsSource") 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. "GcsSource") 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 Terraformroot module which describes the resources and configs to be deployed.
func (TerraformBlueprint)MarshalJSON¶
func (sTerraformBlueprint) MarshalJSON() ([]byte,error)
typeTerraformError¶
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.ErrorDescriptionstring `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.HttpResponseCodeint64 `json:"httpResponseCode,omitempty"`// ResourceAddress: Address of the resource associated with the error, e.g.// `google_compute_network.vpc_network`.ResourceAddressstring `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 (sTerraformError) MarshalJSON() ([]byte,error)
typeTerraformOutput¶
type TerraformOutput struct {// Sensitive: Identifies whether Terraform has set this output as a potential// sensitive value.Sensitivebool `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 (sTerraformOutput) MarshalJSON() ([]byte,error)
typeTerraformVariable¶
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 (sTerraformVariable) MarshalJSON() ([]byte,error)
typeTerraformVersion¶
type TerraformVersion struct {// DeprecateTime: Output only. When the version is deprecated.DeprecateTimestring `json:"deprecateTime,omitempty"`// Name: Identifier. The version name is in the format:// 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_vers// ion}'.Namestring `json:"name,omitempty"`// ObsoleteTime: Output only. When the version is obsolete.ObsoleteTimestring `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.Statestring `json:"state,omitempty"`// SupportTime: Output only. When the version is supported.SupportTimestring `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 thecorresponding Terraform version.
func (TerraformVersion)MarshalJSON¶
func (sTerraformVersion) MarshalJSON() ([]byte,error)
typeTestIamPermissionsRequest¶
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 (sTestIamPermissionsRequest) MarshalJSON() ([]byte,error)
typeTestIamPermissionsResponse¶
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 (sTestIamPermissionsResponse) MarshalJSON() ([]byte,error)
typeUnlockDeploymentRequest¶
type UnlockDeploymentRequest struct {// LockId: Required. Lock ID of the lock file to be unlocked.LockIdint64 `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 (sUnlockDeploymentRequest) MarshalJSON() ([]byte,error)