Movatterモバイル変換


[0]ホーム

URL:


deploymentmanager

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:3

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package deploymentmanager provides access to the Cloud Deployment Manager V2 API.

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

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/deploymentmanager/v2beta"...ctx := context.Background()deploymentmanagerService, err := deploymentmanager.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

By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:

deploymentmanagerService, err := deploymentmanager.NewService(ctx, option.WithScopes(deploymentmanager.NdevCloudmanReadonlyScope))

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

deploymentmanagerService, err := deploymentmanager.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, ...)deploymentmanagerService, err := deploymentmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// View your data across Google Cloud services and see the email address of// your Google AccountCloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"// View and manage your Google Cloud Platform management resources and// deployment status informationNdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudman"// View your Google Cloud Platform management resources and deployment status// informationNdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev.cloudman.readonly")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAsyncOptions

type AsyncOptions struct {// MethodMatch: Method regex where this policy will apply.MethodMatchstring `json:"methodMatch,omitempty"`// PollingOptions: Deployment manager will poll instances for this API resource// setting a RUNNING state, and blocking until polling conditions tell whether// the resource is completed or failed.PollingOptions *PollingOptions `json:"pollingOptions,omitempty"`// ForceSendFields is a list of field names (e.g. "MethodMatch") 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. "MethodMatch") 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:"-"`}

AsyncOptions: Async options that determine when a resource should finish.

func (AsyncOptions)MarshalJSON

func (sAsyncOptions) 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)

typeBaseType

type BaseType struct {// CollectionOverrides: Allows resource handling overrides for specific// collectionsCollectionOverrides []*CollectionOverride `json:"collectionOverrides,omitempty"`// Credential: Credential used when interacting with this type.Credential *Credential `json:"credential,omitempty"`// DescriptorUrl: Descriptor Url for the this type.DescriptorUrlstring `json:"descriptorUrl,omitempty"`// Options: Options to apply when handling any resources in this service.Options *Options `json:"options,omitempty"`// ForceSendFields is a list of field names (e.g. "CollectionOverrides") 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. "CollectionOverrides") 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:"-"`}

BaseType: BaseType that describes a service-backed Type.

func (BaseType)MarshalJSON

func (sBaseType) MarshalJSON() ([]byte,error)

typeBasicAuth

type BasicAuth struct {Passwordstring `json:"password,omitempty"`Userstring `json:"user,omitempty"`// ForceSendFields is a list of field names (e.g. "Password") 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. "Password") 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:"-"`}

BasicAuth: Basic Auth used as a credential.

func (BasicAuth)MarshalJSON

func (sBasicAuth) 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

func (sBinding) MarshalJSON() ([]byte,error)

typeBulkInsertOperationStatusadded inv0.139.0

type BulkInsertOperationStatus struct {// CreatedVmCount: [Output Only] Count of VMs successfully created so far.CreatedVmCountint64 `json:"createdVmCount,omitempty"`// DeletedVmCount: [Output Only] Count of VMs that got deleted during rollback.DeletedVmCountint64 `json:"deletedVmCount,omitempty"`// FailedToCreateVmCount: [Output Only] Count of VMs that started creating but// encountered an error.FailedToCreateVmCountint64 `json:"failedToCreateVmCount,omitempty"`// Status: [Output Only] Creation status of BulkInsert operation - information// if the flow is rolling forward or rolling back.//// Possible values://   "STATUS_UNSPECIFIED"//   "CREATING" - Rolling forward - creating VMs.//   "ROLLING_BACK" - Rolling back - cleaning up after an error.//   "DONE" - DoneStatusstring `json:"status,omitempty"`// TargetVmCount: [Output Only] Count of VMs originally planned to be created.TargetVmCountint64 `json:"targetVmCount,omitempty"`// ForceSendFields is a list of field names (e.g. "CreatedVmCount") 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. "CreatedVmCount") 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 (BulkInsertOperationStatus)MarshalJSONadded inv0.139.0

func (sBulkInsertOperationStatus) MarshalJSON() ([]byte,error)

typeCollectionOverride

type CollectionOverride struct {// Collection: The collection that identifies this resource within its service.Collectionstring `json:"collection,omitempty"`// Options: The options to apply to this resource-level overrideOptions *Options `json:"options,omitempty"`// ForceSendFields is a list of field names (e.g. "Collection") 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. "Collection") 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:"-"`}

CollectionOverride: CollectionOverride allows resource handling overridesfor specific resources within a BaseType

func (CollectionOverride)MarshalJSON

func (sCollectionOverride) MarshalJSON() ([]byte,error)

typeCompositeType

type CompositeType struct {// Description: An optional textual description of the resource; provided by// the client when the resource is created.Descriptionstring `json:"description,omitempty"`Iduint64 `json:"id,omitempty,string"`// InsertTime: Output only. Creation timestamp in RFC3339 text format.InsertTimestring `json:"insertTime,omitempty"`// Labels: Map of labels; provided by the client when the resource is created// or updated. Specifically: Label keys must be between 1 and 63 characters// long and must conform to the following regular expression: `a-z// ([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long// and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.Labels []*CompositeTypeLabelEntry `json:"labels,omitempty"`// Name: Name of the composite type, must follow the expression:// `[a-z]([-a-z0-9_.]{0,61}[a-z0-9])?`.Namestring `json:"name,omitempty"`// Operation: Output only. The Operation that most recently ran, or is// currently running, on this composite type.Operation *Operation `json:"operation,omitempty"`// SelfLink: Output only. Server defined URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// Possible values://   "UNKNOWN_STATUS"//   "DEPRECATED"//   "EXPERIMENTAL"//   "SUPPORTED"Statusstring `json:"status,omitempty"`// TemplateContents: Files for the template type.TemplateContents *TemplateContents `json:"templateContents,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// 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:"-"`}

CompositeType: Holds the composite type.

func (CompositeType)MarshalJSON

func (sCompositeType) MarshalJSON() ([]byte,error)

typeCompositeTypeLabelEntry

type CompositeTypeLabelEntry struct {// Key: Key of the labelKeystring `json:"key,omitempty"`// Value: Value of the labelValuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"`}

CompositeTypeLabelEntry: Label object for CompositeTypes

func (CompositeTypeLabelEntry)MarshalJSON

func (sCompositeTypeLabelEntry) MarshalJSON() ([]byte,error)

typeCompositeTypesDeleteCall

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

func (*CompositeTypesDeleteCall)Context

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

func (*CompositeTypesDeleteCall)Do

Do executes the "deploymentmanager.compositeTypes.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 (*CompositeTypesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CompositeTypesDeleteCall)Header

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

func (*CompositeTypesDeleteCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *CompositeTypesDeleteCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *CompositeTypesDeleteCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeCompositeTypesGetCall

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

func (*CompositeTypesGetCall)Context

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

func (*CompositeTypesGetCall)Do

Do executes the "deploymentmanager.compositeTypes.get" call.Any non-2xx status code is an error. Response headers are in either*CompositeType.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 (*CompositeTypesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CompositeTypesGetCall)Header

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

func (*CompositeTypesGetCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *CompositeTypesGetCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *CompositeTypesGetCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*CompositeTypesGetCall)IfNoneMatch

func (c *CompositeTypesGetCall) IfNoneMatch(entityTagstring) *CompositeTypesGetCall

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.

typeCompositeTypesInsertCall

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

func (*CompositeTypesInsertCall)Context

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

func (*CompositeTypesInsertCall)Do

Do executes the "deploymentmanager.compositeTypes.insert" 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 (*CompositeTypesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CompositeTypesInsertCall)Header

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

func (*CompositeTypesInsertCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *CompositeTypesInsertCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *CompositeTypesInsertCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeCompositeTypesListCall

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

func (*CompositeTypesListCall)Context

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

func (*CompositeTypesListCall)Do

Do executes the "deploymentmanager.compositeTypes.list" call.Any non-2xx status code is an error. Response headers are in either*CompositeTypesListResponse.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 (*CompositeTypesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CompositeTypesListCall)Filter

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*CompositeTypesListCall)Header

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

func (*CompositeTypesListCall)IfNoneMatch

func (c *CompositeTypesListCall) IfNoneMatch(entityTagstring) *CompositeTypesListCall

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 (*CompositeTypesListCall)MaxResults

func (c *CompositeTypesListCall) MaxResults(maxResultsint64) *CompositeTypesListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*CompositeTypesListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*CompositeTypesListCall)PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*CompositeTypesListCall)Pages

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

typeCompositeTypesListResponse

type CompositeTypesListResponse struct {// CompositeTypes: Output only. A list of resource composite types supported by// Deployment Manager.CompositeTypes []*CompositeType `json:"compositeTypes,omitempty"`// NextPageToken: A token used to continue a truncated list request.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. "CompositeTypes") 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. "CompositeTypes") 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:"-"`}

CompositeTypesListResponse: A response that returns all Composite Typessupported by Deployment Manager

func (CompositeTypesListResponse)MarshalJSON

func (sCompositeTypesListResponse) MarshalJSON() ([]byte,error)

typeCompositeTypesPatchCall

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

func (*CompositeTypesPatchCall)Context

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

func (*CompositeTypesPatchCall)Do

Do executes the "deploymentmanager.compositeTypes.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 (*CompositeTypesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CompositeTypesPatchCall)Header

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

func (*CompositeTypesPatchCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *CompositeTypesPatchCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *CompositeTypesPatchCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeCompositeTypesService

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

funcNewCompositeTypesService

func NewCompositeTypesService(s *Service) *CompositeTypesService

func (*CompositeTypesService)Delete

func (r *CompositeTypesService) Delete(projectstring, compositeTypestring) *CompositeTypesDeleteCall

Delete: Deletes a composite type.

- compositeType: The name of the type for this request.- project: The project ID for this request.

func (*CompositeTypesService)Get

func (r *CompositeTypesService) Get(projectstring, compositeTypestring) *CompositeTypesGetCall

Get: Gets information about a specific composite type.

- compositeType: The name of the composite type for this request.- project: The project ID for this request.

func (*CompositeTypesService)Insert

func (r *CompositeTypesService) Insert(projectstring, compositetype *CompositeType) *CompositeTypesInsertCall

Insert: Creates a composite type.

- project: The project ID for this request.

func (*CompositeTypesService)List

List: Lists all composite types for Deployment Manager.

- project: The project ID for this request.

func (*CompositeTypesService)Patch

func (r *CompositeTypesService) Patch(projectstring, compositeTypestring, compositetype *CompositeType) *CompositeTypesPatchCall

Patch: Patches a composite type.

- compositeType: The name of the composite type for this request.- project: The project ID for this request.

func (*CompositeTypesService)Update

func (r *CompositeTypesService) Update(projectstring, compositeTypestring, compositetype *CompositeType) *CompositeTypesUpdateCall

Update: Updates a composite type.

- compositeType: The name of the composite type for this request.- project: The project ID for this request.

typeCompositeTypesUpdateCall

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

func (*CompositeTypesUpdateCall)Context

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

func (*CompositeTypesUpdateCall)Do

Do executes the "deploymentmanager.compositeTypes.update" 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 (*CompositeTypesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CompositeTypesUpdateCall)Header

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

func (*CompositeTypesUpdateCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *CompositeTypesUpdateCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *CompositeTypesUpdateCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeConfigFile

type ConfigFile struct {// Content: The contents of the file.Contentstring `json:"content,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 (ConfigFile)MarshalJSON

func (sConfigFile) MarshalJSON() ([]byte,error)

typeCredential

type Credential struct {// BasicAuth: Basic Auth Credential, only used by TypeProvider.BasicAuth *BasicAuth `json:"basicAuth,omitempty"`// ServiceAccount: Service Account Credential, only used by Deployment.ServiceAccount *ServiceAccount `json:"serviceAccount,omitempty"`// UseProjectDefault: Specify to use the project default credential, only// supported by Deployment.UseProjectDefaultbool `json:"useProjectDefault,omitempty"`// ForceSendFields is a list of field names (e.g. "BasicAuth") 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. "BasicAuth") 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:"-"`}

Credential: The credential used by Deployment Manager and TypeProvider. Onlyone of the options is permitted.

func (Credential)MarshalJSON

func (sCredential) MarshalJSON() ([]byte,error)

typeDebugInfoadded inv0.206.0

type DebugInfo struct {// Detail: Additional debugging information provided by the server.Detailstring `json:"detail,omitempty"`// StackEntries: The stack trace entries indicating where the error occurred.StackEntries []string `json:"stackEntries,omitempty"`// ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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:"-"`}

DebugInfo: Describes additional debugging info.

func (DebugInfo)MarshalJSONadded inv0.206.0

func (sDebugInfo) MarshalJSON() ([]byte,error)

typeDeployment

type Deployment struct {// Description: An optional user-provided description of the deployment.Descriptionstring `json:"description,omitempty"`// Fingerprint: Provides a fingerprint to use in requests to modify a// deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A// fingerprint is a randomly generated value that must be provided with// `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic// locking. This ensures optimistic concurrency so that only one request// happens at a time. The fingerprint is initially generated by Deployment// Manager and changes after every request to modify data. To get the latest// fingerprint value, perform a `get()` request to a deployment.Fingerprintstring `json:"fingerprint,omitempty"`Iduint64 `json:"id,omitempty,string"`// InsertTime: Output only. Creation timestamp in RFC3339 text format.InsertTimestring `json:"insertTime,omitempty"`// Labels: Map of One Platform labels; provided by the client when the resource// is created or updated. Specifically: Label keys must be between 1 and 63// characters long and must conform to the following regular expression: `a-z// ([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long// and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.Labels []*DeploymentLabelEntry `json:"labels,omitempty"`// Manifest: Output only. URL of the manifest representing the last manifest// that was successfully deployed. If no manifest has been successfully// deployed, this field will be absent.Manifeststring `json:"manifest,omitempty"`// Name: Name of the resource; provided by the client when the resource is// created. The name must be 1-63 characters long, and comply with RFC1035.// Specifically, the name must be 1-63 characters long and match the regular// expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must// be a lowercase letter, and all following characters must be a dash,// lowercase letter, or digit, except the last character, which cannot be a// dash.Namestring `json:"name,omitempty"`// Operation: Output only. The Operation that most recently ran, or is// currently running, on this deployment.Operation *Operation `json:"operation,omitempty"`// SelfLink: Output only. Server defined URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// Target: [Input Only] The parameters that define your deployment, including// the deployment configuration and relevant templates.Target *TargetConfiguration `json:"target,omitempty"`// Update: Output only. If Deployment Manager is currently updating or// previewing an update to this deployment, the updated configuration appears// here.Update *DeploymentUpdate `json:"update,omitempty"`// UpdateTime: Output only. Update timestamp in RFC3339 text format.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "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:"-"`}

func (Deployment)MarshalJSON

func (sDeployment) MarshalJSON() ([]byte,error)

typeDeploymentLabelEntry

type DeploymentLabelEntry struct {// Key: Key of the labelKeystring `json:"key,omitempty"`// Value: Value of the labelValuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"`}

DeploymentLabelEntry: Label object for Deployments

func (DeploymentLabelEntry)MarshalJSON

func (sDeploymentLabelEntry) MarshalJSON() ([]byte,error)

typeDeploymentUpdate

type DeploymentUpdate struct {// Description: Output only. An optional user-provided description of the// deployment after the current update has been applied.Descriptionstring `json:"description,omitempty"`// Labels: Map of One Platform labels; provided by the client when the resource// is created or updated. Specifically: Label keys must be between 1 and 63// characters long and must conform to the following regular expression: `a-z// ([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long// and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.Labels []*DeploymentUpdateLabelEntry `json:"labels,omitempty"`// Manifest: Output only. URL of the manifest representing the update// configuration of this deployment.Manifeststring `json:"manifest,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:"-"`}

func (DeploymentUpdate)MarshalJSON

func (sDeploymentUpdate) MarshalJSON() ([]byte,error)

typeDeploymentUpdateLabelEntry

type DeploymentUpdateLabelEntry struct {// Key: Key of the labelKeystring `json:"key,omitempty"`// Value: Value of the labelValuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"`}

DeploymentUpdateLabelEntry: Label object for DeploymentUpdate

func (DeploymentUpdateLabelEntry)MarshalJSON

func (sDeploymentUpdateLabelEntry) MarshalJSON() ([]byte,error)

typeDeploymentsCancelPreviewCall

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

func (*DeploymentsCancelPreviewCall)Context

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

func (*DeploymentsCancelPreviewCall)Do

Do executes the "deploymentmanager.deployments.cancelPreview" 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 (*DeploymentsCancelPreviewCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsCancelPreviewCall)Header

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

typeDeploymentsCancelPreviewRequest

type DeploymentsCancelPreviewRequest struct {// Fingerprint: Specifies a fingerprint for `cancelPreview()` requests. A// fingerprint is a randomly generated value that must be provided in// `cancelPreview()` requests to perform optimistic locking. This ensures// optimistic concurrency so that the deployment does not have conflicting// requests (e.g. if someone attempts to make a new update request while// another user attempts to cancel a preview, this would prevent one of the// requests). The fingerprint is initially generated by Deployment Manager and// changes after every request to modify a deployment. To get the latest// fingerprint value, perform a `get()` request on the deployment.Fingerprintstring `json:"fingerprint,omitempty"`// ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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 (DeploymentsCancelPreviewRequest)MarshalJSON

func (sDeploymentsCancelPreviewRequest) MarshalJSON() ([]byte,error)

typeDeploymentsDeleteCall

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

func (*DeploymentsDeleteCall)Context

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

func (*DeploymentsDeleteCall)DeletePolicy

func (c *DeploymentsDeleteCall) DeletePolicy(deletePolicystring) *DeploymentsDeleteCall

DeletePolicy sets the optional parameter "deletePolicy": Sets the policy touse for deleting resources.

Possible values:

"DELETE" (default)"ABANDON"

func (*DeploymentsDeleteCall)Do

Do executes the "deploymentmanager.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 (*DeploymentsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsDeleteCall)Header

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

func (*DeploymentsDeleteCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsDeleteCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsDeleteCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeDeploymentsGetCall

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

func (*DeploymentsGetCall)Context

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

func (*DeploymentsGetCall)Do

Do executes the "deploymentmanager.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 (*DeploymentsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsGetCall)Header

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

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

func (*DeploymentsGetCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsGetCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsGetCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*DeploymentsGetCall)IfNoneMatch

func (c *DeploymentsGetCall) IfNoneMatch(entityTagstring) *DeploymentsGetCall

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.

typeDeploymentsGetIamPolicyCall

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

func (*DeploymentsGetIamPolicyCall)Context

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

func (*DeploymentsGetIamPolicyCall)Do

Do executes the "deploymentmanager.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 (*DeploymentsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsGetIamPolicyCall)Header

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

func (*DeploymentsGetIamPolicyCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsGetIamPolicyCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsGetIamPolicyCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*DeploymentsGetIamPolicyCall)IfNoneMatch

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 (*DeploymentsGetIamPolicyCall)OptionsRequestedPolicyVersionadded inv0.35.0

func (c *DeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *DeploymentsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"optionsRequestedPolicyVersion": Requested IAM Policy version.

typeDeploymentsInsertCall

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

func (*DeploymentsInsertCall)Context

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

func (*DeploymentsInsertCall)CreatePolicy

func (c *DeploymentsInsertCall) CreatePolicy(createPolicystring) *DeploymentsInsertCall

CreatePolicy sets the optional parameter "createPolicy": Sets the policy touse for creating new resources.

Possible values:

"CREATE_OR_ACQUIRE" (default)"ACQUIRE""CREATE"

func (*DeploymentsInsertCall)Do

Do executes the "deploymentmanager.deployments.insert" 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 (*DeploymentsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsInsertCall)Header

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

func (*DeploymentsInsertCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsInsertCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsInsertCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*DeploymentsInsertCall)Preview

Preview sets the optional parameter "preview": If set to true, creates adeployment and creates "shell" resources but does not actually instantiatethese resources. This allows you to preview what your deployment looks like.After previewing a deployment, you can deploy your resources by making arequest with the `update()` method or you can use the `cancelPreview()`method to cancel the preview altogether. Note that the deployment will stillexist after you cancel the preview and you must separately delete thisdeployment if you want to remove it.

typeDeploymentsListCall

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

func (*DeploymentsListCall)Context

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

func (*DeploymentsListCall)Do

Do executes the "deploymentmanager.deployments.list" call.Any non-2xx status code is an error. Response headers are in either*DeploymentsListResponse.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 (*DeploymentsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsListCall)Filter

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*DeploymentsListCall)Header

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

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

func (*DeploymentsListCall)IfNoneMatch

func (c *DeploymentsListCall) IfNoneMatch(entityTagstring) *DeploymentsListCall

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 (*DeploymentsListCall)MaxResults

func (c *DeploymentsListCall) MaxResults(maxResultsint64) *DeploymentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*DeploymentsListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*DeploymentsListCall)PageToken

func (c *DeploymentsListCall) PageToken(pageTokenstring) *DeploymentsListCall

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*DeploymentsListCall)Pages

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

typeDeploymentsListResponse

type DeploymentsListResponse struct {// Deployments: Output only. The deployments contained in this response.Deployments []*Deployment `json:"deployments,omitempty"`// NextPageToken: Output only. A token used to continue a truncated list// request.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. "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:"-"`}

DeploymentsListResponse: A response containing a partial list of deploymentsand a page token used to build the next request if the request has beentruncated.

func (DeploymentsListResponse)MarshalJSON

func (sDeploymentsListResponse) MarshalJSON() ([]byte,error)

typeDeploymentsPatchCall

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

func (*DeploymentsPatchCall)Context

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

func (*DeploymentsPatchCall)CreatePolicy

func (c *DeploymentsPatchCall) CreatePolicy(createPolicystring) *DeploymentsPatchCall

CreatePolicy sets the optional parameter "createPolicy": Sets the policy touse for creating new resources.

Possible values:

"CREATE_OR_ACQUIRE" (default)"ACQUIRE""CREATE"

func (*DeploymentsPatchCall)DeletePolicy

func (c *DeploymentsPatchCall) DeletePolicy(deletePolicystring) *DeploymentsPatchCall

DeletePolicy sets the optional parameter "deletePolicy": Sets the policy touse for deleting resources.

Possible values:

"DELETE" (default)"ABANDON"

func (*DeploymentsPatchCall)Do

Do executes the "deploymentmanager.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 (*DeploymentsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsPatchCall)Header

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

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

func (*DeploymentsPatchCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsPatchCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsPatchCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*DeploymentsPatchCall)Preview

Preview sets the optional parameter "preview": If set to true, updates thedeployment and creates and updates the "shell" resources but does notactually alter or instantiate these resources. This allows you to previewwhat your deployment will look like. You can use this intent to preview howan update would affect your deployment. You must provide a `target.config`with a configuration if this is set to true. After previewing a deployment,you can deploy your resources by making a request with the `update()` or youcan `cancelPreview()` to remove the preview altogether. Note that thedeployment will still exist after you cancel the preview and you mustseparately delete this deployment if you want to remove it.

typeDeploymentsService

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

funcNewDeploymentsService

func NewDeploymentsService(s *Service) *DeploymentsService

func (*DeploymentsService)CancelPreview

func (r *DeploymentsService) CancelPreview(projectstring, deploymentstring, deploymentscancelpreviewrequest *DeploymentsCancelPreviewRequest) *DeploymentsCancelPreviewCall

CancelPreview: Cancels and removes the preview currently associated with thedeployment.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

func (*DeploymentsService)Delete

func (r *DeploymentsService) Delete(projectstring, deploymentstring) *DeploymentsDeleteCall

Delete: Deletes a deployment and all of the resources in the deployment.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

func (*DeploymentsService)Get

func (r *DeploymentsService) Get(projectstring, deploymentstring) *DeploymentsGetCall

Get: Gets information about a specific deployment.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

func (*DeploymentsService)GetIamPolicy

func (r *DeploymentsService) GetIamPolicy(projectstring, resourcestring) *DeploymentsGetIamPolicyCall

GetIamPolicy: Gets the access control policy for a resource. May be empty ifno such policy or resource exists.

- project: Project ID for this request.- resource: Name or id of the resource for this request.

func (*DeploymentsService)Insert

func (r *DeploymentsService) Insert(projectstring, deployment *Deployment) *DeploymentsInsertCall

Insert: Creates a deployment and all of the resources described by thedeployment manifest.

- project: The project ID for this request.

func (*DeploymentsService)List

List: Lists all deployments for a given project.

- project: The project ID for this request.

func (*DeploymentsService)Patch

func (r *DeploymentsService) Patch(projectstring, deploymentstring, deployment2 *Deployment) *DeploymentsPatchCall

Patch: Patches a deployment and all of the resources described by thedeployment manifest.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

func (*DeploymentsService)SetIamPolicy

func (r *DeploymentsService) SetIamPolicy(projectstring, resourcestring, globalsetpolicyrequest *GlobalSetPolicyRequest) *DeploymentsSetIamPolicyCall

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy.

- project: Project ID for this request.- resource: Name or id of the resource for this request.

func (*DeploymentsService)Stop

func (r *DeploymentsService) Stop(projectstring, deploymentstring, deploymentsstoprequest *DeploymentsStopRequest) *DeploymentsStopCall

Stop: Stops an ongoing operation. This does not roll back any work that hasalready been completed, but prevents any new work from being started.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

func (*DeploymentsService)TestIamPermissions

func (r *DeploymentsService) TestIamPermissions(projectstring, resourcestring, testpermissionsrequest *TestPermissionsRequest) *DeploymentsTestIamPermissionsCall

TestIamPermissions: Returns permissions that a caller has on the specifiedresource.

- project: Project ID for this request.- resource: Name or id of the resource for this request.

func (*DeploymentsService)Update

func (r *DeploymentsService) Update(projectstring, deploymentstring, deployment2 *Deployment) *DeploymentsUpdateCall

Update: Updates a deployment and all of the resources described by thedeployment manifest.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

typeDeploymentsSetIamPolicyCall

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

func (*DeploymentsSetIamPolicyCall)Context

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

func (*DeploymentsSetIamPolicyCall)Do

Do executes the "deploymentmanager.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 (*DeploymentsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsSetIamPolicyCall)Header

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

typeDeploymentsStopCall

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

func (*DeploymentsStopCall)Context

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

func (*DeploymentsStopCall)Do

Do executes the "deploymentmanager.deployments.stop" 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 (*DeploymentsStopCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsStopCall)Header

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

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

typeDeploymentsStopRequest

type DeploymentsStopRequest struct {// Fingerprint: Specifies a fingerprint for `stop()` requests. A fingerprint is// a randomly generated value that must be provided in `stop()` requests to// perform optimistic locking. This ensures optimistic concurrency so that the// deployment does not have conflicting requests (e.g. if someone attempts to// make a new update request while another user attempts to stop an ongoing// update request, this would prevent a collision). The fingerprint is// initially generated by Deployment Manager and changes after every request to// modify a deployment. To get the latest fingerprint value, perform a `get()`// request on the deployment.Fingerprintstring `json:"fingerprint,omitempty"`// ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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 (DeploymentsStopRequest)MarshalJSON

func (sDeploymentsStopRequest) MarshalJSON() ([]byte,error)

typeDeploymentsTestIamPermissionsCall

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

func (*DeploymentsTestIamPermissionsCall)Context

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

func (*DeploymentsTestIamPermissionsCall)Do

Do executes the "deploymentmanager.deployments.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestPermissionsResponse.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 (*DeploymentsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsTestIamPermissionsCall)Header

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

func (*DeploymentsTestIamPermissionsCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsTestIamPermissionsCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsTestIamPermissionsCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeDeploymentsUpdateCall

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

func (*DeploymentsUpdateCall)Context

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

func (*DeploymentsUpdateCall)CreatePolicy

func (c *DeploymentsUpdateCall) CreatePolicy(createPolicystring) *DeploymentsUpdateCall

CreatePolicy sets the optional parameter "createPolicy": Sets the policy touse for creating new resources.

Possible values:

"CREATE_OR_ACQUIRE" (default)"ACQUIRE""CREATE"

func (*DeploymentsUpdateCall)DeletePolicy

func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicystring) *DeploymentsUpdateCall

DeletePolicy sets the optional parameter "deletePolicy": Sets the policy touse for deleting resources.

Possible values:

"DELETE" (default)"ABANDON"

func (*DeploymentsUpdateCall)Do

Do executes the "deploymentmanager.deployments.update" 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 (*DeploymentsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DeploymentsUpdateCall)Header

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

func (*DeploymentsUpdateCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *DeploymentsUpdateCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *DeploymentsUpdateCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*DeploymentsUpdateCall)Preview

Preview sets the optional parameter "preview": If set to true, updates thedeployment and creates and updates the "shell" resources but does notactually alter or instantiate these resources. This allows you to previewwhat your deployment will look like. You can use this intent to preview howan update would affect your deployment. You must provide a `target.config`with a configuration if this is set to true. After previewing a deployment,you can deploy your resources by making a request with the `update()` or youcan `cancelPreview()` to remove the preview altogether. Note that thedeployment will still exist after you cancel the preview and you mustseparately delete this deployment if you want to remove it.

typeDiagnostic

type Diagnostic struct {// Field: JsonPath expression on the resource that if non empty, indicates that// this field needs to be extracted as a diagnostic.Fieldstring `json:"field,omitempty"`// Level: Level to record this diagnostic.//// Possible values://   "UNKNOWN"//   "INFORMATION" - If level is informational, it only gets displayed as part// of the resource.//   "WARNING" - If level is warning, will end up in the resource as a warning.//   "ERROR" - If level is error, it will indicate an error occurred after// finishCondition is set, and this field will populate resource errors and// operation errors.Levelstring `json:"level,omitempty"`// ForceSendFields is a list of field names (e.g. "Field") 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. "Field") 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 (Diagnostic)MarshalJSON

func (sDiagnostic) MarshalJSON() ([]byte,error)

typeErrorInfoadded inv0.206.0

type ErrorInfo struct {// Domain: The logical grouping to which the "reason" belongs. The error domain// is typically the registered service name of the tool or product that// generates the error. Example: "pubsub.googleapis.com". If the error is// generated by some common infrastructure, the error domain must be a globally// unique value that identifies the infrastructure. For Google API// infrastructure, the error domain is "googleapis.com".Domainstring `json:"domain,omitempty"`// Metadatas: Additional structured details about this error. Keys must match a// regular expression of `a-z+` but should ideally be lowerCamelCase. Also,// they must be limited to 64 characters in length. When identifying the// current value of an exceeded limit, the units should be contained in the// key, not the value. For example, rather than `{"instanceLimit":// "100/request"}`, should be returned as, `{"instanceLimitPerRequest":// "100"}`, if the client exceeds the number of instances that can be created// in a single (batch) request.Metadatas map[string]string `json:"metadatas,omitempty"`// Reason: The reason of the error. This is a constant value that identifies// the proximate cause of the error. Error reasons are unique within a// particular domain of errors. This should be at most 63 characters and match// a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.Reasonstring `json:"reason,omitempty"`// ForceSendFields is a list of field names (e.g. "Domain") 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. "Domain") 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:"-"`}

ErrorInfo: Describes the cause of the error with structured details. Exampleof an error when contacting the "pubsub.googleapis.com" API when it is notenabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": {"resource": "projects/123", "service": "pubsub.googleapis.com" } } Thisresponse indicates that the pubsub.googleapis.com API is not enabled.Example of an error that is returned when attempting to create a Spannerinstance in a region that is out of stock: { "reason": "STOCKOUT" "domain":"spanner.googleapis.com", "metadata": { "availableRegions":"us-central1,us-east2" } }

func (ErrorInfo)MarshalJSONadded inv0.206.0

func (sErrorInfo) MarshalJSON() ([]byte,error)

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

func (sExpr) MarshalJSON() ([]byte,error)

typeFirewallPolicyRuleOperationMetadataadded inv0.257.0

type FirewallPolicyRuleOperationMetadata struct {// AllocatedPriority: The priority allocated for the firewall policy rule if// query parameters specified minPriority/maxPriority.AllocatedPriorityint64 `json:"allocatedPriority,omitempty"`// ForceSendFields is a list of field names (e.g. "AllocatedPriority") 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. "AllocatedPriority") 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 (FirewallPolicyRuleOperationMetadata)MarshalJSONadded inv0.257.0

typeGlobalSetPolicyRequest

type GlobalSetPolicyRequest struct {// Bindings: Flatten Policy to create a backward compatible wire-format.// Deprecated. Use 'policy' to specify bindings.Bindings []*Binding `json:"bindings,omitempty"`// Etag: Flatten Policy to create a backward compatible wire-format.// Deprecated. Use 'policy' to specify the etag.Etagstring `json:"etag,omitempty"`// 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 in// general a valid policy but certain services (like Projects) might reject// them.Policy *Policy `json:"policy,omitempty"`// UpdateMask: Update mask for the policy.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Bindings") 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. "Bindings") 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 (GlobalSetPolicyRequest)MarshalJSON

func (sGlobalSetPolicyRequest) MarshalJSON() ([]byte,error)

typeHelpadded inv0.206.0

type Help struct {// Links: URL(s) pointing to additional information on handling the current// error.Links []*HelpLink `json:"links,omitempty"`// ForceSendFields is a list of field names (e.g. "Links") 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. "Links") 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:"-"`}

Help: Provides links to documentation or for performing an out of bandaction. For example, if a quota check failed with an error indicating thecalling project hasn't enabled the accessed service, this can contain a URLpointing directly to the right place in the developer console to flip thebit.

func (Help)MarshalJSONadded inv0.206.0

func (sHelp) MarshalJSON() ([]byte,error)

typeHelpLinkadded inv0.206.0

type HelpLink struct {// Description: Describes what the link offers.Descriptionstring `json:"description,omitempty"`// Url: The URL of the link.Urlstring `json:"url,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:"-"`}

HelpLink: Describes a URL link.

func (HelpLink)MarshalJSONadded inv0.206.0

func (sHelpLink) MarshalJSON() ([]byte,error)

typeImportFile

type ImportFile struct {// Content: The contents of the file.Contentstring `json:"content,omitempty"`// Name: The name of the file.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 (ImportFile)MarshalJSON

func (sImportFile) MarshalJSON() ([]byte,error)

typeInputMapping

type InputMapping struct {// FieldName: The name of the field that is going to be injected.FieldNamestring `json:"fieldName,omitempty"`// Location: The location where this mapping applies.//// Possible values://   "UNKNOWN"//   "PATH"//   "QUERY"//   "BODY"//   "HEADER"Locationstring `json:"location,omitempty"`// MethodMatch: Regex to evaluate on method to decide if input applies.MethodMatchstring `json:"methodMatch,omitempty"`// Value: A jsonPath expression to select an element.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldName") 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. "FieldName") 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:"-"`}

InputMapping: InputMapping creates a 'virtual' property that will beinjected into the properties before sending the request to the underlyingAPI.

func (InputMapping)MarshalJSON

func (sInputMapping) MarshalJSON() ([]byte,error)

typeInstancesBulkInsertOperationMetadataadded inv0.139.0

type InstancesBulkInsertOperationMetadata struct {// MachineType: [Output Only] The machine type of the VMs that were created// used internally only by KCP flex bulk insert.MachineTypestring `json:"machineType,omitempty"`// PerLocationStatus: Status information per location (location name is key).// Example key: zones/us-central1-aPerLocationStatus map[string]BulkInsertOperationStatus `json:"perLocationStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "MachineType") 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. "MachineType") 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 (InstancesBulkInsertOperationMetadata)MarshalJSONadded inv0.139.0

typeLocalizedMessageadded inv0.206.0

type LocalizedMessage struct {// Locale: The locale used following the specification defined at//https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US",// "fr-CH", "es-MX"Localestring `json:"locale,omitempty"`// Message: The localized error message in the above locale.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Locale") 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. "Locale") 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:"-"`}

LocalizedMessage: Provides a localized error message that is safe to returnto the user which can be attached to an RPC error.

func (LocalizedMessage)MarshalJSONadded inv0.206.0

func (sLocalizedMessage) MarshalJSON() ([]byte,error)

typeManifest

type Manifest struct {// Config: Output only. The YAML configuration for this manifest.Config *ConfigFile `json:"config,omitempty"`// ExpandedConfig: Output only. The fully-expanded configuration file,// including any templates and references.ExpandedConfigstring `json:"expandedConfig,omitempty"`Iduint64 `json:"id,omitempty,string"`// Imports: Output only. The imported files for this manifest.Imports []*ImportFile `json:"imports,omitempty"`// InsertTime: Output only. Creation timestamp in RFC3339 text format.InsertTimestring `json:"insertTime,omitempty"`// Layout: Output only. The YAML layout for this manifest.Layoutstring `json:"layout,omitempty"`// ManifestSizeBytes: Output only. The computed size of the fully expanded// manifest.ManifestSizeBytesint64 `json:"manifestSizeBytes,omitempty,string"`// ManifestSizeLimitBytes: Output only. The size limit for expanded manifests// in the project.ManifestSizeLimitBytesint64 `json:"manifestSizeLimitBytes,omitempty,string"`// Name: Output only. The name of the manifest.Namestring `json:"name,omitempty"`// SelfLink: Output only. Self link for the manifest.SelfLinkstring `json:"selfLink,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Config") 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. "Config") 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 (Manifest)MarshalJSON

func (sManifest) MarshalJSON() ([]byte,error)

typeManifestsGetCall

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

func (*ManifestsGetCall)Context

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

func (*ManifestsGetCall)Do

Do executes the "deploymentmanager.manifests.get" call.Any non-2xx status code is an error. Response headers are in either*Manifest.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 (*ManifestsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManifestsGetCall)Header

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

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

func (*ManifestsGetCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *ManifestsGetCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *ManifestsGetCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*ManifestsGetCall)IfNoneMatch

func (c *ManifestsGetCall) IfNoneMatch(entityTagstring) *ManifestsGetCall

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.

typeManifestsListCall

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

func (*ManifestsListCall)Context

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

func (*ManifestsListCall)Do

Do executes the "deploymentmanager.manifests.list" call.Any non-2xx status code is an error. Response headers are in either*ManifestsListResponse.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 (*ManifestsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManifestsListCall)Filter

func (c *ManifestsListCall) Filter(filterstring) *ManifestsListCall

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*ManifestsListCall)Header

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

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

func (*ManifestsListCall)IfNoneMatch

func (c *ManifestsListCall) IfNoneMatch(entityTagstring) *ManifestsListCall

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 (*ManifestsListCall)MaxResults

func (c *ManifestsListCall) MaxResults(maxResultsint64) *ManifestsListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*ManifestsListCall)OrderBy

func (c *ManifestsListCall) OrderBy(orderBystring) *ManifestsListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*ManifestsListCall)PageToken

func (c *ManifestsListCall) PageToken(pageTokenstring) *ManifestsListCall

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*ManifestsListCall)Pages

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

typeManifestsListResponse

type ManifestsListResponse struct {// Manifests: Output only. Manifests contained in this list response.Manifests []*Manifest `json:"manifests,omitempty"`// NextPageToken: Output only. A token used to continue a truncated list// request.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. "Manifests") 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. "Manifests") 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:"-"`}

ManifestsListResponse: A response containing a partial list of manifests anda page token used to build the next request if the request has beentruncated.

func (ManifestsListResponse)MarshalJSON

func (sManifestsListResponse) MarshalJSON() ([]byte,error)

typeManifestsService

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

funcNewManifestsService

func NewManifestsService(s *Service) *ManifestsService

func (*ManifestsService)Get

func (r *ManifestsService) Get(projectstring, deploymentstring, manifeststring) *ManifestsGetCall

Get: Gets information about a specific manifest.

- deployment: The name of the deployment for this request.- manifest: The name of the manifest for this request.- project: The project ID for this request.

func (*ManifestsService)List

func (r *ManifestsService) List(projectstring, deploymentstring) *ManifestsListCall

List: Lists all manifests for a given deployment.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

typeOperation

type Operation struct {// ClientOperationId: [Output Only] The value of `requestId` if you provided it// in the request. Not present otherwise.ClientOperationIdstring `json:"clientOperationId,omitempty"`// CreationTimestamp: [Deprecated] This field is deprecated.CreationTimestampstring `json:"creationTimestamp,omitempty"`// Description: [Output Only] A textual description of the operation, which is// set when the operation is created.Descriptionstring `json:"description,omitempty"`// EndTime: [Output Only] The time that this operation was completed. This// value is in RFC3339 text format.EndTimestring `json:"endTime,omitempty"`// Error: [Output Only] If errors are generated during processing of the// operation, this field will be populated.Error                               *OperationError                      `json:"error,omitempty"`FirewallPolicyRuleOperationMetadata *FirewallPolicyRuleOperationMetadata `json:"firewallPolicyRuleOperationMetadata,omitempty"`// HttpErrorMessage: [Output Only] If the operation fails, this field contains// the HTTP error message that was returned, such as `NOT FOUND`.HttpErrorMessagestring `json:"httpErrorMessage,omitempty"`// HttpErrorStatusCode: [Output Only] If the operation fails, this field// contains the HTTP error status code that was returned. For example, a `404`// means the resource was not found.HttpErrorStatusCodeint64 `json:"httpErrorStatusCode,omitempty"`// Id: [Output Only] The unique identifier for the operation. This identifier// is defined by the server.Iduint64 `json:"id,omitempty,string"`// InsertTime: [Output Only] The time that this operation was requested. This// value is in RFC3339 text format.InsertTimestring                                `json:"insertTime,omitempty"`InstancesBulkInsertOperationMetadata *InstancesBulkInsertOperationMetadata `json:"instancesBulkInsertOperationMetadata,omitempty"`// Kind: [Output Only] Type of the resource. Always `compute#operation` for// Operation resources.Kindstring `json:"kind,omitempty"`// Name: [Output Only] Name of the operation.Namestring `json:"name,omitempty"`// OperationGroupId: [Output Only] An ID that represents a group of operations,// such as when a group of operations results from a `bulkInsert` API request.OperationGroupIdstring `json:"operationGroupId,omitempty"`// OperationType: [Output Only] The type of operation, such as `insert`,// `update`, or `delete`, and so on.OperationTypestring `json:"operationType,omitempty"`// Progress: [Output Only] An optional progress indicator that ranges from 0 to// 100. There is no requirement that this be linear or support any granularity// of operations. This should not be used to guess when the operation will be// complete. This number should monotonically increase as the operation// progresses.Progressint64 `json:"progress,omitempty"`// Region: [Output Only] The URL of the region where the operation resides.// Only applicable when performing regional operations.Regionstring `json:"region,omitempty"`// SelfLink: [Output Only] Server-defined URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// SelfLinkWithId: [Output Only] Server-defined URL for this resource with the// resource id.SelfLinkWithIdstring `json:"selfLinkWithId,omitempty"`// SetAutoscalerLinkOperationMetadata: This field is used internally by the// Autoscaler team and should not be promoted to "alpha/beta/v1".SetAutoscalerLinkOperationMetadata *SetAutoscalerLinkOperationMetadata `json:"setAutoscalerLinkOperationMetadata,omitempty"`// SetCommonInstanceMetadataOperationMetadata: [Output Only] If the operation// is for projects.setCommonInstanceMetadata, this field will contain// information on all underlying zonal actions and their state.SetCommonInstanceMetadataOperationMetadata *SetCommonInstanceMetadataOperationMetadata `json:"setCommonInstanceMetadataOperationMetadata,omitempty"`// StartTime: [Output Only] The time that this operation was started by the// server. This value is in RFC3339 text format.StartTimestring `json:"startTime,omitempty"`// Status: [Output Only] The status of the operation, which can be one of the// following: `PENDING`, `RUNNING`, or `DONE`.//// Possible values://   "PENDING"//   "RUNNING"//   "DONE"Statusstring `json:"status,omitempty"`// StatusMessage: [Output Only] An optional textual description of the current// status of the operation.StatusMessagestring `json:"statusMessage,omitempty"`// TargetId: [Output Only] The unique target ID, which identifies a specific// incarnation of the target resource.TargetIduint64 `json:"targetId,omitempty,string"`// TargetLink: [Output Only] The URL of the resource that the operation// modifies. For operations related to creating a snapshot, this points to the// disk that the snapshot was created from.TargetLinkstring `json:"targetLink,omitempty"`// User: [Output Only] User who requested the operation, for example:// `user@example.com` or `alice_smith_identifier// (global/workforcePools/example-com-us-employees)`.Userstring `json:"user,omitempty"`// Warnings: [Output Only] If warning messages are generated during processing// of the operation, this field will be populated.Warnings []*OperationWarnings `json:"warnings,omitempty"`// Zone: [Output Only] The URL of the zone where the operation resides. Only// applicable when performing per-zone operations.Zonestring `json:"zone,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ClientOperationId") 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. "ClientOperationId") 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: Represents an Operation resource. Google Compute Engine has threeOperation resources: * Global(/compute/docs/reference/rest/{$api_version}/globalOperations) * Regional(/compute/docs/reference/rest/{$api_version}/regionOperations) * Zonal(/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use anoperation resource to manage asynchronous API requests. For moreinformation, read Handling API responses. Operations can be global, regionalor zonal. - For global operations, use the `globalOperations` resource. -For regional operations, use the `regionOperations` resource. - For zonaloperations, use the `zoneOperations` resource. For more information, readGlobal, Regional, and Zonal Resources. Note that completed Operationresources have a limited retention period.

func (Operation)MarshalJSON

func (sOperation) MarshalJSON() ([]byte,error)

typeOperationError

type OperationError struct {// Errors: [Output Only] The array of errors encountered while processing this// operation.Errors []*OperationErrorErrors `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"`}

OperationError: [Output Only] If errors are generated during processing ofthe operation, this field will be populated.

func (OperationError)MarshalJSON

func (sOperationError) MarshalJSON() ([]byte,error)

typeOperationErrorErrors

type OperationErrorErrors struct {// Arguments: [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE// This is for internal use-only (like componentization) (thus the visibility// "none") and in case of public exposure it is strongly recommended to follow// pattern of:https://aip.dev/193 and expose as details field.Arguments []string `json:"arguments,omitempty"`// Code: [Output Only] The error type identifier for this error.Codestring     `json:"code,omitempty"`DebugInfo *DebugInfo `json:"debugInfo,omitempty"`// ErrorDetails: [Output Only] An optional list of messages that contain the// error details. There is a set of defined message types to use for providing// details.The syntax depends on the error code. For example, QuotaExceededInfo// will have details when the error code is QUOTA_EXCEEDED.ErrorDetails []*OperationErrorErrorsErrorDetails `json:"errorDetails,omitempty"`// Location: [Output Only] Indicates the field in the request that caused the// error. This property is optional.Locationstring `json:"location,omitempty"`// Message: [Output Only] An optional, human-readable error message.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Arguments") 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. "Arguments") 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 (OperationErrorErrors)MarshalJSON

func (sOperationErrorErrors) MarshalJSON() ([]byte,error)

typeOperationErrorErrorsErrorDetailsadded inv0.206.0

type OperationErrorErrorsErrorDetails struct {ErrorInfo        *ErrorInfo         `json:"errorInfo,omitempty"`Help             *Help              `json:"help,omitempty"`LocalizedMessage *LocalizedMessage  `json:"localizedMessage,omitempty"`QuotaInfo        *QuotaExceededInfo `json:"quotaInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorInfo") 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. "ErrorInfo") 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 (OperationErrorErrorsErrorDetails)MarshalJSONadded inv0.206.0

func (sOperationErrorErrorsErrorDetails) MarshalJSON() ([]byte,error)

typeOperationWarnings

type OperationWarnings struct {// Code: [Output Only] A warning code, if applicable. For example, Compute// Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.//// Possible values://   "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created.//   "NO_RESULTS_ON_PAGE" - No results are present on a particular list page.//   "UNREACHABLE" - A given scope cannot be reached.//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not// assigned to an instance on the network.//   "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to// an instance that does not exist.//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL// refers to an instance that is not on the same network as the route.//   "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip// forward.//   "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a// status of RUNNING.//   "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected// kernel, which is deprecated.//   "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that// requires a TOS they have not accepted.//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is// larger than image size.//   "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete// could not be deleted because they were in use.//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance// group manager is valid as such, but its application does not make a lot of// sense, because it allows only single instance in instance group.//   "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue// the process despite the mentioned error.//   "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made// by a failed operation.//   "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been// overridden. Deprecated unused field.//   "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is// in use.//   "NETWORK_ENDPOINT_NOT_DETACHED" - Warning that network endpoint was not// detached.//   "PAGE_MISSING_RESULTS" - Current page contains less results than requested// but a next page token exists.//   "SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED" - Warning that SSL policy// resource in the response does not contain information about the list of// enabled features.//   "RESOURCE_NOT_FOUND_WARNING" - Warning that a resource is not found.//   "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type//   "EXTERNAL_API_WARNING" - Warning that is present in an external api call//   "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is// ignored.//   "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are// present//   "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the// resources has a type marked as experimental//   "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources// has a type marked as deprecated//   "PARTIAL_SUCCESS" - Success is reported, but some results may be missing// due to errors//   "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a// exceedingly large number of resources//   "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance// URL refers to an instance that does not have an ipv6 interface on the same// network as the route.//   "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend// service is associated with a health check that is not of type// HTTP/HTTPS/HTTP2.//   "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list// overhead quota exceed which captures the amount of resources filtered out by// user-defined list filter.//   "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client// requests (e.g: regions.list).//   "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can// also be used to indicate that a resource has attributes that could result in// the creation of a VM that uses global DNS.//   "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota// exceeded.//   "UPCOMING_MAINTENANCES_UNAVAILABLE" - Upcoming maintenance schedule is// unavailable for the resource.//   "RESERVED_ENTRY_136" - Reserved entries for quickly adding new warnings// without breaking dependent clients.//   "RESERVED_ENTRY_139"//   "RESERVED_ENTRY_141"//   "RESERVED_ENTRY_142"//   "RESERVED_ENTRY_143"Codestring `json:"code,omitempty"`// Data: [Output Only] Metadata about this warning in key: value format. For// example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }Data []*OperationWarningsData `json:"data,omitempty"`// Message: [Output Only] A human-readable description of the warning code.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:"-"`}

func (OperationWarnings)MarshalJSON

func (sOperationWarnings) MarshalJSON() ([]byte,error)

typeOperationWarningsData

type OperationWarningsData struct {// Key: [Output Only] A key that provides more detail on the warning being// returned. For example, for warnings where there are no results in a list// request for a particular zone, this key might be scope and the key value// might be the zone name. Other examples might be a key indicating a// deprecated resource and a suggested replacement, or a warning about invalid// network settings (for example, if an instance attempts to perform IP// forwarding but is not enabled for IP forwarding).Keystring `json:"key,omitempty"`// Value: [Output Only] A warning data value corresponding to the key.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 (OperationWarningsData)MarshalJSON

func (sOperationWarningsData) MarshalJSON() ([]byte,error)

typeOperationsGetCall

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

func (*OperationsGetCall)Context

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

func (*OperationsGetCall)Do

Do executes the "deploymentmanager.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 (*OperationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OperationsGetCall)Header

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

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

func (*OperationsGetCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *OperationsGetCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *OperationsGetCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*OperationsGetCall)IfNoneMatch

func (c *OperationsGetCall) IfNoneMatch(entityTagstring) *OperationsGetCall

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.

typeOperationsListCall

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

func (*OperationsListCall)Context

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

func (*OperationsListCall)Do

Do executes the "deploymentmanager.operations.list" call.Any non-2xx status code is an error. Response headers are in either*OperationsListResponse.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 (*OperationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OperationsListCall)Filter

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*OperationsListCall)Header

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

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

func (*OperationsListCall)IfNoneMatch

func (c *OperationsListCall) IfNoneMatch(entityTagstring) *OperationsListCall

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 (*OperationsListCall)MaxResults

func (c *OperationsListCall) MaxResults(maxResultsint64) *OperationsListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*OperationsListCall)OrderBy

func (c *OperationsListCall) OrderBy(orderBystring) *OperationsListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*OperationsListCall)PageToken

func (c *OperationsListCall) PageToken(pageTokenstring) *OperationsListCall

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*OperationsListCall)Pages

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

typeOperationsListResponse

type OperationsListResponse struct {// NextPageToken: Output only. A token used to continue a truncated list// request.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: Output only. Operations contained in this list response.Operations []*Operation `json:"operations,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:"-"`}

OperationsListResponse: A response containing a partial list of operationsand a page token used to build the next request if the request has beentruncated.

func (OperationsListResponse)MarshalJSON

func (sOperationsListResponse) MarshalJSON() ([]byte,error)

typeOperationsService

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

funcNewOperationsService

func NewOperationsService(s *Service) *OperationsService

func (*OperationsService)Get

func (r *OperationsService) Get(projectstring, operationstring) *OperationsGetCall

Get: Gets information about a specific operation.

- operation: The name of the operation for this request.- project: The project ID for this request.

func (*OperationsService)List

List: Lists all operations for a project.

- project: The project ID for this request.

typeOptions

type Options struct {// AsyncOptions: Options regarding how to thread async requests.AsyncOptions []*AsyncOptions `json:"asyncOptions,omitempty"`// InputMappings: The mappings that apply for requests.InputMappings []*InputMapping `json:"inputMappings,omitempty"`// ValidationOptions: Options for how to validate and process properties on a// resource.ValidationOptions *ValidationOptions `json:"validationOptions,omitempty"`// VirtualProperties: Additional properties block described as a jsonSchema,// these properties will never be part of the json payload, but they can be// consumed by InputMappings, this must be a valid json schema draft-04. The// properties specified here will be decouple in a different section. This// schema will be merged to the schema validation, and properties here will be// extracted From the payload and consumed explicitly by InputMappings. ex:// field1: type: string field2: type: numberVirtualPropertiesstring `json:"virtualProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "AsyncOptions") 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. "AsyncOptions") 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:"-"`}

Options: Options allows customized resource handling by Deployment Manager.

func (Options)MarshalJSON

func (sOptions) 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

func (sPolicy) MarshalJSON() ([]byte,error)

typePollingOptions

type PollingOptions struct {// Diagnostics: An array of diagnostics to be collected by Deployment Manager,// these diagnostics will be displayed to the user.Diagnostics []*Diagnostic `json:"diagnostics,omitempty"`// FailCondition: JsonPath expression that determines if the request failed.FailConditionstring `json:"failCondition,omitempty"`// FinishCondition: JsonPath expression that determines if the request is// completed.FinishConditionstring `json:"finishCondition,omitempty"`// PollingLink: JsonPath expression that evaluates to string, it indicates// where to poll.PollingLinkstring `json:"pollingLink,omitempty"`// TargetLink: JsonPath expression, after polling is completed, indicates where// to fetch the resource.TargetLinkstring `json:"targetLink,omitempty"`// ForceSendFields is a list of field names (e.g. "Diagnostics") 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. "Diagnostics") 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 (PollingOptions)MarshalJSON

func (sPollingOptions) MarshalJSON() ([]byte,error)

typeQuotaExceededInfoadded inv0.206.0

type QuotaExceededInfo struct {// Dimensions: The map holding related quota dimensions.Dimensions map[string]string `json:"dimensions,omitempty"`// FutureLimit: Future quota limit being rolled out. The limit's unit depends// on the quota type or metric.FutureLimitfloat64 `json:"futureLimit,omitempty"`// Limit: Current effective quota limit. The limit's unit depends on the quota// type or metric.Limitfloat64 `json:"limit,omitempty"`// LimitName: The name of the quota limit.LimitNamestring `json:"limitName,omitempty"`// MetricName: The Compute Engine quota metric name.MetricNamestring `json:"metricName,omitempty"`// RolloutStatus: Rollout status of the future quota limit.//// Possible values://   "ROLLOUT_STATUS_UNSPECIFIED" - ROLLOUT_STATUS_UNSPECIFIED - Rollout status// is not specified. The default value.//   "IN_PROGRESS" - IN_PROGRESS - A rollout is in process which will change// the limit value to future limit.RolloutStatusstring `json:"rolloutStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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:"-"`}

QuotaExceededInfo: Additional details for quota exceeded error for resourcequota.

func (QuotaExceededInfo)MarshalJSONadded inv0.206.0

func (sQuotaExceededInfo) MarshalJSON() ([]byte,error)

func (*QuotaExceededInfo)UnmarshalJSONadded inv0.206.0

func (s *QuotaExceededInfo) UnmarshalJSON(data []byte)error

typeResource

type Resource struct {// AccessControl: The Access Control Policy set on this resource.AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`// FinalProperties: Output only. The evaluated properties of the resource with// references expanded. Returned as serialized YAML.FinalPropertiesstring `json:"finalProperties,omitempty"`Iduint64 `json:"id,omitempty,string"`// InsertTime: Output only. Creation timestamp in RFC3339 text format.InsertTimestring `json:"insertTime,omitempty"`// Manifest: Output only. URL of the manifest representing the current// configuration of this resource.Manifeststring `json:"manifest,omitempty"`// Name: Output only. The name of the resource as it appears in the YAML// config.Namestring `json:"name,omitempty"`// Properties: Output only. The current properties of the resource before any// references have been filled in. Returned as serialized YAML.Propertiesstring `json:"properties,omitempty"`// Type: Output only. The type of the resource, for example// `compute.v1.instance`, or `cloudfunctions.v1beta1.function`.Typestring `json:"type,omitempty"`// Update: Output only. If Deployment Manager is currently updating or// previewing an update to this resource, the updated configuration appears// here.Update *ResourceUpdate `json:"update,omitempty"`// UpdateTime: Output only. Update timestamp in RFC3339 text format.UpdateTimestring `json:"updateTime,omitempty"`// Url: Output only. The URL of the actual resource.Urlstring `json:"url,omitempty"`// Warnings: Output only. If warning messages are generated during processing// of this resource, this field will be populated.Warnings []*ResourceWarnings `json:"warnings,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccessControl") 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. "AccessControl") 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 (Resource)MarshalJSON

func (sResource) MarshalJSON() ([]byte,error)

typeResourceAccessControl

type ResourceAccessControl struct {// GcpIamPolicy: The GCP IAM Policy to set on the resource.GcpIamPolicystring `json:"gcpIamPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "GcpIamPolicy") 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. "GcpIamPolicy") 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:"-"`}

ResourceAccessControl: The access controls set on the resource.

func (ResourceAccessControl)MarshalJSON

func (sResourceAccessControl) MarshalJSON() ([]byte,error)

typeResourceUpdate

type ResourceUpdate struct {// AccessControl: The Access Control Policy to set on this resource after// updating the resource itself.AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`// Error: Output only. If errors are generated during update of the resource,// this field will be populated.Error *ResourceUpdateError `json:"error,omitempty"`// FinalProperties: Output only. The expanded properties of the resource with// reference values expanded. Returned as serialized YAML.FinalPropertiesstring `json:"finalProperties,omitempty"`// Intent: Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or// `CANCEL`.//// Possible values://   "CREATE_OR_ACQUIRE" - The resource is scheduled to be created, or if it// already exists, acquired.//   "DELETE" - The resource is scheduled to be deleted.//   "ACQUIRE" - The resource is scheduled to be acquired.//   "UPDATE" - The resource is scheduled to be updated via the UPDATE method.//   "ABANDON" - The resource is scheduled to be abandoned.//   "CREATE" - The resource is scheduled to be created.Intentstring `json:"intent,omitempty"`// Manifest: Output only. URL of the manifest representing the update// configuration of this resource.Manifeststring `json:"manifest,omitempty"`// Properties: Output only. The set of updated properties for this resource,// before references are expanded. Returned as serialized YAML.Propertiesstring `json:"properties,omitempty"`// State: Output only. The state of the resource.//// Possible values://   "PENDING" - There are changes pending for this resource.//   "IN_PROGRESS" - The service is executing changes on the resource.//   "IN_PREVIEW" - The service is previewing changes on the resource.//   "FAILED" - The service has failed to change the resource.//   "ABORTED" - The service has aborted trying to change the resource.Statestring `json:"state,omitempty"`// Warnings: Output only. If warning messages are generated during processing// of this resource, this field will be populated.Warnings []*ResourceUpdateWarnings `json:"warnings,omitempty"`// ForceSendFields is a list of field names (e.g. "AccessControl") 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. "AccessControl") 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 (ResourceUpdate)MarshalJSON

func (sResourceUpdate) MarshalJSON() ([]byte,error)

typeResourceUpdateError

type ResourceUpdateError struct {// Errors: [Output Only] The array of errors encountered while processing this// operation.Errors []*ResourceUpdateErrorErrors `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"`}

ResourceUpdateError: Output only. If errors are generated during update ofthe resource, this field will be populated.

func (ResourceUpdateError)MarshalJSON

func (sResourceUpdateError) MarshalJSON() ([]byte,error)

typeResourceUpdateErrorErrors

type ResourceUpdateErrorErrors struct {// Arguments: [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE// This is for internal use-only (like componentization) (thus the visibility// "none") and in case of public exposure it is strongly recommended to follow// pattern of:https://aip.dev/193 and expose as details field.Arguments []string `json:"arguments,omitempty"`// Code: [Output Only] The error type identifier for this error.Codestring     `json:"code,omitempty"`DebugInfo *DebugInfo `json:"debugInfo,omitempty"`// ErrorDetails: [Output Only] An optional list of messages that contain the// error details. There is a set of defined message types to use for providing// details.The syntax depends on the error code. For example, QuotaExceededInfo// will have details when the error code is QUOTA_EXCEEDED.ErrorDetails []*ResourceUpdateErrorErrorsErrorDetails `json:"errorDetails,omitempty"`// Location: [Output Only] Indicates the field in the request that caused the// error. This property is optional.Locationstring `json:"location,omitempty"`// Message: [Output Only] An optional, human-readable error message.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Arguments") 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. "Arguments") 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 (ResourceUpdateErrorErrors)MarshalJSON

func (sResourceUpdateErrorErrors) MarshalJSON() ([]byte,error)

typeResourceUpdateErrorErrorsErrorDetailsadded inv0.206.0

type ResourceUpdateErrorErrorsErrorDetails struct {ErrorInfo        *ErrorInfo         `json:"errorInfo,omitempty"`Help             *Help              `json:"help,omitempty"`LocalizedMessage *LocalizedMessage  `json:"localizedMessage,omitempty"`QuotaInfo        *QuotaExceededInfo `json:"quotaInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorInfo") 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. "ErrorInfo") 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 (ResourceUpdateErrorErrorsErrorDetails)MarshalJSONadded inv0.206.0

typeResourceUpdateWarnings

type ResourceUpdateWarnings struct {// Code: [Output Only] A warning code, if applicable. For example, Compute// Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.//// Possible values://   "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created.//   "NO_RESULTS_ON_PAGE" - No results are present on a particular list page.//   "UNREACHABLE" - A given scope cannot be reached.//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not// assigned to an instance on the network.//   "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to// an instance that does not exist.//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL// refers to an instance that is not on the same network as the route.//   "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip// forward.//   "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a// status of RUNNING.//   "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected// kernel, which is deprecated.//   "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that// requires a TOS they have not accepted.//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is// larger than image size.//   "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete// could not be deleted because they were in use.//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance// group manager is valid as such, but its application does not make a lot of// sense, because it allows only single instance in instance group.//   "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue// the process despite the mentioned error.//   "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made// by a failed operation.//   "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been// overridden. Deprecated unused field.//   "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is// in use.//   "NETWORK_ENDPOINT_NOT_DETACHED" - Warning that network endpoint was not// detached.//   "PAGE_MISSING_RESULTS" - Current page contains less results than requested// but a next page token exists.//   "SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED" - Warning that SSL policy// resource in the response does not contain information about the list of// enabled features.//   "RESOURCE_NOT_FOUND_WARNING" - Warning that a resource is not found.//   "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type//   "EXTERNAL_API_WARNING" - Warning that is present in an external api call//   "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is// ignored.//   "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are// present//   "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the// resources has a type marked as experimental//   "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources// has a type marked as deprecated//   "PARTIAL_SUCCESS" - Success is reported, but some results may be missing// due to errors//   "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a// exceedingly large number of resources//   "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance// URL refers to an instance that does not have an ipv6 interface on the same// network as the route.//   "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend// service is associated with a health check that is not of type// HTTP/HTTPS/HTTP2.//   "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list// overhead quota exceed which captures the amount of resources filtered out by// user-defined list filter.//   "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client// requests (e.g: regions.list).//   "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can// also be used to indicate that a resource has attributes that could result in// the creation of a VM that uses global DNS.//   "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota// exceeded.//   "UPCOMING_MAINTENANCES_UNAVAILABLE" - Upcoming maintenance schedule is// unavailable for the resource.//   "RESERVED_ENTRY_136" - Reserved entries for quickly adding new warnings// without breaking dependent clients.//   "RESERVED_ENTRY_139"//   "RESERVED_ENTRY_141"//   "RESERVED_ENTRY_142"//   "RESERVED_ENTRY_143"Codestring `json:"code,omitempty"`// Data: [Output Only] Metadata about this warning in key: value format. For// example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }Data []*ResourceUpdateWarningsData `json:"data,omitempty"`// Message: [Output Only] A human-readable description of the warning code.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:"-"`}

func (ResourceUpdateWarnings)MarshalJSON

func (sResourceUpdateWarnings) MarshalJSON() ([]byte,error)

typeResourceUpdateWarningsData

type ResourceUpdateWarningsData struct {// Key: [Output Only] A key that provides more detail on the warning being// returned. For example, for warnings where there are no results in a list// request for a particular zone, this key might be scope and the key value// might be the zone name. Other examples might be a key indicating a// deprecated resource and a suggested replacement, or a warning about invalid// network settings (for example, if an instance attempts to perform IP// forwarding but is not enabled for IP forwarding).Keystring `json:"key,omitempty"`// Value: [Output Only] A warning data value corresponding to the key.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 (ResourceUpdateWarningsData)MarshalJSON

func (sResourceUpdateWarningsData) MarshalJSON() ([]byte,error)

typeResourceWarnings

type ResourceWarnings struct {// Code: [Output Only] A warning code, if applicable. For example, Compute// Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.//// Possible values://   "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created.//   "NO_RESULTS_ON_PAGE" - No results are present on a particular list page.//   "UNREACHABLE" - A given scope cannot be reached.//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not// assigned to an instance on the network.//   "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to// an instance that does not exist.//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL// refers to an instance that is not on the same network as the route.//   "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip// forward.//   "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a// status of RUNNING.//   "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected// kernel, which is deprecated.//   "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that// requires a TOS they have not accepted.//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is// larger than image size.//   "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete// could not be deleted because they were in use.//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance// group manager is valid as such, but its application does not make a lot of// sense, because it allows only single instance in instance group.//   "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue// the process despite the mentioned error.//   "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made// by a failed operation.//   "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been// overridden. Deprecated unused field.//   "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is// in use.//   "NETWORK_ENDPOINT_NOT_DETACHED" - Warning that network endpoint was not// detached.//   "PAGE_MISSING_RESULTS" - Current page contains less results than requested// but a next page token exists.//   "SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED" - Warning that SSL policy// resource in the response does not contain information about the list of// enabled features.//   "RESOURCE_NOT_FOUND_WARNING" - Warning that a resource is not found.//   "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type//   "EXTERNAL_API_WARNING" - Warning that is present in an external api call//   "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is// ignored.//   "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are// present//   "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the// resources has a type marked as experimental//   "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources// has a type marked as deprecated//   "PARTIAL_SUCCESS" - Success is reported, but some results may be missing// due to errors//   "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a// exceedingly large number of resources//   "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance// URL refers to an instance that does not have an ipv6 interface on the same// network as the route.//   "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend// service is associated with a health check that is not of type// HTTP/HTTPS/HTTP2.//   "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list// overhead quota exceed which captures the amount of resources filtered out by// user-defined list filter.//   "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client// requests (e.g: regions.list).//   "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can// also be used to indicate that a resource has attributes that could result in// the creation of a VM that uses global DNS.//   "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota// exceeded.//   "UPCOMING_MAINTENANCES_UNAVAILABLE" - Upcoming maintenance schedule is// unavailable for the resource.//   "RESERVED_ENTRY_136" - Reserved entries for quickly adding new warnings// without breaking dependent clients.//   "RESERVED_ENTRY_139"//   "RESERVED_ENTRY_141"//   "RESERVED_ENTRY_142"//   "RESERVED_ENTRY_143"Codestring `json:"code,omitempty"`// Data: [Output Only] Metadata about this warning in key: value format. For// example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }Data []*ResourceWarningsData `json:"data,omitempty"`// Message: [Output Only] A human-readable description of the warning code.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:"-"`}

func (ResourceWarnings)MarshalJSON

func (sResourceWarnings) MarshalJSON() ([]byte,error)

typeResourceWarningsData

type ResourceWarningsData struct {// Key: [Output Only] A key that provides more detail on the warning being// returned. For example, for warnings where there are no results in a list// request for a particular zone, this key might be scope and the key value// might be the zone name. Other examples might be a key indicating a// deprecated resource and a suggested replacement, or a warning about invalid// network settings (for example, if an instance attempts to perform IP// forwarding but is not enabled for IP forwarding).Keystring `json:"key,omitempty"`// Value: [Output Only] A warning data value corresponding to the key.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 (ResourceWarningsData)MarshalJSON

func (sResourceWarningsData) MarshalJSON() ([]byte,error)

typeResourcesGetCall

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

func (*ResourcesGetCall)Context

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

func (*ResourcesGetCall)Do

Do executes the "deploymentmanager.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 (*ResourcesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ResourcesGetCall)Header

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

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

func (*ResourcesGetCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *ResourcesGetCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *ResourcesGetCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*ResourcesGetCall)IfNoneMatch

func (c *ResourcesGetCall) IfNoneMatch(entityTagstring) *ResourcesGetCall

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.

typeResourcesListCall

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

func (*ResourcesListCall)Context

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

func (*ResourcesListCall)Do

Do executes the "deploymentmanager.resources.list" call.Any non-2xx status code is an error. Response headers are in either*ResourcesListResponse.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 (*ResourcesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ResourcesListCall)Filter

func (c *ResourcesListCall) Filter(filterstring) *ResourcesListCall

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*ResourcesListCall)Header

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

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

func (*ResourcesListCall)IfNoneMatch

func (c *ResourcesListCall) IfNoneMatch(entityTagstring) *ResourcesListCall

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 (*ResourcesListCall)MaxResults

func (c *ResourcesListCall) MaxResults(maxResultsint64) *ResourcesListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*ResourcesListCall)OrderBy

func (c *ResourcesListCall) OrderBy(orderBystring) *ResourcesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*ResourcesListCall)PageToken

func (c *ResourcesListCall) PageToken(pageTokenstring) *ResourcesListCall

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*ResourcesListCall)Pages

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

typeResourcesListResponse

type ResourcesListResponse struct {// NextPageToken: A token used to continue a truncated list request.NextPageTokenstring `json:"nextPageToken,omitempty"`// Resources: Resources contained in this list response.Resources []*Resource `json:"resources,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:"-"`}

ResourcesListResponse: A response containing a partial list of resources anda page token used to build the next request if the request has beentruncated.

func (ResourcesListResponse)MarshalJSON

func (sResourcesListResponse) MarshalJSON() ([]byte,error)

typeResourcesService

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

funcNewResourcesService

func NewResourcesService(s *Service) *ResourcesService

func (*ResourcesService)Get

func (r *ResourcesService) Get(projectstring, deploymentstring, resourcestring) *ResourcesGetCall

Get: Gets information about a single resource.

- deployment: The name of the deployment for this request.- project: The project ID for this request.- resource: The name of the resource for this request.

func (*ResourcesService)List

func (r *ResourcesService) List(projectstring, deploymentstring) *ResourcesListCall

List: Lists all resources in a given deployment.

- deployment: The name of the deployment for this request.- project: The project ID for this request.

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentCompositeTypes *CompositeTypesServiceDeployments *DeploymentsServiceManifests *ManifestsServiceOperations *OperationsServiceResources *ResourcesServiceTypeProviders *TypeProvidersServiceTypes *TypesService// contains filtered or unexported fields}

funcNewdeprecated

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

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

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

funcNewServiceadded inv0.3.0

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

NewService creates a new Service.

typeServiceAccount

type ServiceAccount struct {// Email: The IAM service account email address like// test@myproject.iam.gserviceaccount.comEmailstring `json:"email,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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:"-"`}

ServiceAccount: Service Account used as a credential.

func (ServiceAccount)MarshalJSON

func (sServiceAccount) MarshalJSON() ([]byte,error)

typeSetAutoscalerLinkOperationMetadataadded inv0.229.0

type SetAutoscalerLinkOperationMetadata struct {// ZonalIgmIds: List of zonal IGM IDs part of the RMIG.ZonalIgmIdsgoogleapi.Int64s `json:"zonalIgmIds,omitempty"`// ZoneToIgmIds: Map of zone to an ID of the zonal IGM belonging to the RMIG.ZoneToIgmIds map[string]string `json:"zoneToIgmIds,omitempty"`// ForceSendFields is a list of field names (e.g. "ZonalIgmIds") 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. "ZonalIgmIds") 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 (SetAutoscalerLinkOperationMetadata)MarshalJSONadded inv0.229.0

typeSetCommonInstanceMetadataOperationMetadataadded inv0.139.0

type SetCommonInstanceMetadataOperationMetadata struct {// ClientOperationId: [Output Only] The client operation id.ClientOperationIdstring `json:"clientOperationId,omitempty"`// PerLocationOperations: [Output Only] Status information per location// (location name is key). Example key: zones/us-central1-aPerLocationOperations map[string]SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo `json:"perLocationOperations,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientOperationId") 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. "ClientOperationId") 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 (SetCommonInstanceMetadataOperationMetadata)MarshalJSONadded inv0.139.0

typeSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoadded inv0.139.0

type SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo struct {// Error: [Output Only] If state is `ABANDONED` or `FAILED`, this field is// populated.Error *Status `json:"error,omitempty"`// State: [Output Only] Status of the action, which can be one of the// following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.//// Possible values://   "UNSPECIFIED"//   "PROPAGATING" - Operation is not yet confirmed to have been created in the// location.//   "PROPAGATED" - Operation is confirmed to be in the location.//   "ABANDONED" - Operation not tracked in this location e.g. zone is marked// as DOWN.//   "FAILED" - Operation is in an error state.//   "DONE" - Operation has completed successfully.Statestring `json:"state,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:"-"`}

func (SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo)MarshalJSONadded inv0.139.0

typeStatusadded inv0.139.0

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)MarshalJSONadded inv0.139.0

func (sStatus) MarshalJSON() ([]byte,error)

typeTargetConfiguration

type TargetConfiguration struct {// Config: The configuration to use for this deployment.Config *ConfigFile `json:"config,omitempty"`// Imports: Specifies any files to import for this configuration. This can be// used to import templates or other files. For example, you might import a// text file in order to use the file in a template.Imports []*ImportFile `json:"imports,omitempty"`// ForceSendFields is a list of field names (e.g. "Config") 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. "Config") 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 (TargetConfiguration)MarshalJSON

func (sTargetConfiguration) MarshalJSON() ([]byte,error)

typeTemplateContents

type TemplateContents struct {// Imports: Import files referenced by the main template.Imports []*ImportFile `json:"imports,omitempty"`// Interpreter: Which interpreter (python or jinja) should be used during// expansion.//// Possible values://   "UNKNOWN_INTERPRETER"//   "PYTHON"//   "JINJA"Interpreterstring `json:"interpreter,omitempty"`// MainTemplate: The filename of the mainTemplateMainTemplatestring `json:"mainTemplate,omitempty"`// Schema: The contents of the template schema.Schemastring `json:"schema,omitempty"`// Template: The contents of the main template file.Templatestring `json:"template,omitempty"`// ForceSendFields is a list of field names (e.g. "Imports") 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. "Imports") 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:"-"`}

TemplateContents: Files that make up the template contents of a templatetype.

func (TemplateContents)MarshalJSON

func (sTemplateContents) MarshalJSON() ([]byte,error)

typeTestPermissionsRequest

type TestPermissionsRequest struct {// Permissions: The set of permissions to check for the 'resource'. Permissions// with wildcards (such as '*' or 'storage.*') are not allowed.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:"-"`}

func (TestPermissionsRequest)MarshalJSON

func (sTestPermissionsRequest) MarshalJSON() ([]byte,error)

typeTestPermissionsResponse

type TestPermissionsResponse 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:"-"`}

func (TestPermissionsResponse)MarshalJSON

func (sTestPermissionsResponse) MarshalJSON() ([]byte,error)

typeType

type Type struct {// Base: Base Type (configurable service) that backs this Type.Base *BaseType `json:"base,omitempty"`// Description: An optional textual description of the resource; provided by// the client when the resource is created.Descriptionstring `json:"description,omitempty"`Iduint64 `json:"id,omitempty,string"`// InsertTime: Output only. Creation timestamp in RFC3339 text format.InsertTimestring `json:"insertTime,omitempty"`// Labels: Map of One Platform labels; provided by the client when the resource// is created or updated. Specifically: Label keys must be between 1 and 63// characters long and must conform to the following regular expression: `a-z// ([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long// and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.Labels []*TypeLabelEntry `json:"labels,omitempty"`// Name: Name of the type.Namestring `json:"name,omitempty"`// Operation: Output only. The Operation that most recently ran, or is// currently running, on this type.Operation *Operation `json:"operation,omitempty"`// SelfLink: Output only. Server defined URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// ForceSendFields is a list of field names (e.g. "Base") 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. "Base") 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:"-"`}

Type: A resource type supported by Deployment Manager.

func (Type)MarshalJSON

func (sType) MarshalJSON() ([]byte,error)

typeTypeInfo

type TypeInfo struct {// Description: The description of the type.Descriptionstring `json:"description,omitempty"`// DocumentationLink: For swagger 2.0 externalDocs field will be used. For// swagger 1.2 this field will be empty.DocumentationLinkstring `json:"documentationLink,omitempty"`// Kind: Output only. Type of the output. Always `deploymentManager#TypeInfo`// for TypeInfo.Kindstring `json:"kind,omitempty"`// Name: The base type or composite type name.Namestring `json:"name,omitempty"`// Schema: For base types with a collection, we return a schema and// documentation link For template types, we return only a schemaSchema *TypeInfoSchemaInfo `json:"schema,omitempty"`// SelfLink: Output only. Self link for the type provider.SelfLinkstring `json:"selfLink,omitempty"`// Title: The title on the API descriptor URL provided.Titlestring `json:"title,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// 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:"-"`}

TypeInfo: Type Information. Contains detailed information about a compositetype, base type, or base type with specific collection.

func (TypeInfo)MarshalJSON

func (sTypeInfo) MarshalJSON() ([]byte,error)

typeTypeInfoSchemaInfo

type TypeInfoSchemaInfo struct {// Input: The properties that this composite type or base type collection// accept as input, represented as a json blob, format is: JSON Schema Draft V4Inputstring `json:"input,omitempty"`// Output: The properties that this composite type or base type collection// exposes as output, these properties can be used for references, represented// as json blob, format is: JSON Schema Draft V4Outputstring `json:"output,omitempty"`// ForceSendFields is a list of field names (e.g. "Input") 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. "Input") 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 (TypeInfoSchemaInfo)MarshalJSON

func (sTypeInfoSchemaInfo) MarshalJSON() ([]byte,error)

typeTypeLabelEntry

type TypeLabelEntry struct {// Key: Key of the labelKeystring `json:"key,omitempty"`// Value: Value of the labelValuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"`}

TypeLabelEntry: Label object for Types

func (TypeLabelEntry)MarshalJSON

func (sTypeLabelEntry) MarshalJSON() ([]byte,error)

typeTypeProvider

type TypeProvider struct {// CollectionOverrides: Allows resource handling overrides for specific// collectionsCollectionOverrides []*CollectionOverride `json:"collectionOverrides,omitempty"`// Credential: Credential used when interacting with this type.Credential *Credential `json:"credential,omitempty"`// CustomCertificateAuthorityRoots: List of up to 2 custom certificate// authority roots to use for TLS authentication when making calls on behalf of// this type provider. If set, TLS authentication will exclusively use these// roots instead of relying on publicly trusted certificate authorities when// validating TLS certificate authenticity. The certificates must be in// base64-encoded PEM format. The maximum size of each certificate must not// exceed 10KB.CustomCertificateAuthorityRoots []string `json:"customCertificateAuthorityRoots,omitempty"`// Description: An optional textual description of the resource; provided by// the client when the resource is created.Descriptionstring `json:"description,omitempty"`// DescriptorUrl: Descriptor Url for the this type provider.DescriptorUrlstring `json:"descriptorUrl,omitempty"`// Id: Output only. Unique identifier for the resource defined by the server.Iduint64 `json:"id,omitempty,string"`// InsertTime: Output only. Creation timestamp in RFC3339 text format.InsertTimestring `json:"insertTime,omitempty"`// Labels: Map of One Platform labels; provided by the client when the resource// is created or updated. Specifically: Label keys must be between 1 and 63// characters long and must conform to the following regular expression: `a-z// ([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long// and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`Labels []*TypeProviderLabelEntry `json:"labels,omitempty"`// Name: Name of the resource; provided by the client when the resource is// created. The name must be 1-63 characters long, and comply with RFC1035.// Specifically, the name must be 1-63 characters long and match the regular// expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must// be a lowercase letter, and all following characters must be a dash,// lowercase letter, or digit, except the last character, which cannot be a// dash.Namestring `json:"name,omitempty"`// Operation: Output only. The Operation that most recently ran, or is// currently running, on this type provider.Operation *Operation `json:"operation,omitempty"`// Options: Options to apply when handling any resources in this service.Options *Options `json:"options,omitempty"`// SelfLink: Output only. Self link for the type provider.SelfLinkstring `json:"selfLink,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CollectionOverrides") 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. "CollectionOverrides") 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:"-"`}

TypeProvider: A type provider that describes a service-backed Type.

func (TypeProvider)MarshalJSON

func (sTypeProvider) MarshalJSON() ([]byte,error)

typeTypeProviderLabelEntry

type TypeProviderLabelEntry struct {// Key: Key of the labelKeystring `json:"key,omitempty"`// Value: Value of the labelValuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"`}

TypeProviderLabelEntry: Label object for TypeProviders

func (TypeProviderLabelEntry)MarshalJSON

func (sTypeProviderLabelEntry) MarshalJSON() ([]byte,error)

typeTypeProvidersDeleteCall

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

func (*TypeProvidersDeleteCall)Context

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

func (*TypeProvidersDeleteCall)Do

Do executes the "deploymentmanager.typeProviders.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 (*TypeProvidersDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersDeleteCall)Header

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

func (*TypeProvidersDeleteCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *TypeProvidersDeleteCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *TypeProvidersDeleteCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeTypeProvidersGetCall

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

func (*TypeProvidersGetCall)Context

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

func (*TypeProvidersGetCall)Do

Do executes the "deploymentmanager.typeProviders.get" call.Any non-2xx status code is an error. Response headers are in either*TypeProvider.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 (*TypeProvidersGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersGetCall)Header

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

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

func (*TypeProvidersGetCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *TypeProvidersGetCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *TypeProvidersGetCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*TypeProvidersGetCall)IfNoneMatch

func (c *TypeProvidersGetCall) IfNoneMatch(entityTagstring) *TypeProvidersGetCall

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.

typeTypeProvidersGetTypeCall

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

func (*TypeProvidersGetTypeCall)Context

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

func (*TypeProvidersGetTypeCall)Do

Do executes the "deploymentmanager.typeProviders.getType" call.Any non-2xx status code is an error. Response headers are in either*TypeInfo.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 (*TypeProvidersGetTypeCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersGetTypeCall)Header

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

func (*TypeProvidersGetTypeCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *TypeProvidersGetTypeCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *TypeProvidersGetTypeCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

func (*TypeProvidersGetTypeCall)IfNoneMatch

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.

typeTypeProvidersInsertCall

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

func (*TypeProvidersInsertCall)Context

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

func (*TypeProvidersInsertCall)Do

Do executes the "deploymentmanager.typeProviders.insert" 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 (*TypeProvidersInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersInsertCall)Header

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

func (*TypeProvidersInsertCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *TypeProvidersInsertCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *TypeProvidersInsertCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeTypeProvidersListCall

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

func (*TypeProvidersListCall)Context

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

func (*TypeProvidersListCall)Do

Do executes the "deploymentmanager.typeProviders.list" call.Any non-2xx status code is an error. Response headers are in either*TypeProvidersListResponse.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 (*TypeProvidersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersListCall)Filter

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*TypeProvidersListCall)Header

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

func (*TypeProvidersListCall)IfNoneMatch

func (c *TypeProvidersListCall) IfNoneMatch(entityTagstring) *TypeProvidersListCall

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 (*TypeProvidersListCall)MaxResults

func (c *TypeProvidersListCall) MaxResults(maxResultsint64) *TypeProvidersListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*TypeProvidersListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*TypeProvidersListCall)PageToken

func (c *TypeProvidersListCall) PageToken(pageTokenstring) *TypeProvidersListCall

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*TypeProvidersListCall)Pages

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

typeTypeProvidersListResponse

type TypeProvidersListResponse struct {// NextPageToken: A token used to continue a truncated list request.NextPageTokenstring `json:"nextPageToken,omitempty"`// TypeProviders: Output only. A list of resource type providers supported by// Deployment Manager.TypeProviders []*TypeProvider `json:"typeProviders,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:"-"`}

TypeProvidersListResponse: A response that returns all Type Providerssupported by Deployment Manager

func (TypeProvidersListResponse)MarshalJSON

func (sTypeProvidersListResponse) MarshalJSON() ([]byte,error)

typeTypeProvidersListTypesCall

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

func (*TypeProvidersListTypesCall)Context

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

func (*TypeProvidersListTypesCall)Do

Do executes the "deploymentmanager.typeProviders.listTypes" call.Any non-2xx status code is an error. Response headers are in either*TypeProvidersListTypesResponse.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 (*TypeProvidersListTypesCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersListTypesCall)Filter

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*TypeProvidersListTypesCall)Header

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

func (*TypeProvidersListTypesCall)IfNoneMatch

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 (*TypeProvidersListTypesCall)MaxResults

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*TypeProvidersListTypesCall)OrderBy

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*TypeProvidersListTypesCall)PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*TypeProvidersListTypesCall)Pages

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

typeTypeProvidersListTypesResponse

type TypeProvidersListTypesResponse struct {// NextPageToken: A token used to continue a truncated list request.NextPageTokenstring `json:"nextPageToken,omitempty"`// Types: Output only. A list of resource type info.Types []*TypeInfo `json:"types,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:"-"`}

func (TypeProvidersListTypesResponse)MarshalJSON

func (sTypeProvidersListTypesResponse) MarshalJSON() ([]byte,error)

typeTypeProvidersPatchCall

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

func (*TypeProvidersPatchCall)Context

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

func (*TypeProvidersPatchCall)Do

Do executes the "deploymentmanager.typeProviders.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 (*TypeProvidersPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersPatchCall)Header

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

func (*TypeProvidersPatchCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *TypeProvidersPatchCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *TypeProvidersPatchCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeTypeProvidersService

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

funcNewTypeProvidersService

func NewTypeProvidersService(s *Service) *TypeProvidersService

func (*TypeProvidersService)Delete

func (r *TypeProvidersService) Delete(projectstring, typeProviderstring) *TypeProvidersDeleteCall

Delete: Deletes a type provider.

- project: The project ID for this request.- typeProvider: The name of the type provider for this request.

func (*TypeProvidersService)Get

func (r *TypeProvidersService) Get(projectstring, typeProviderstring) *TypeProvidersGetCall

Get: Gets information about a specific type provider.

- project: The project ID for this request.- typeProvider: The name of the type provider for this request.

func (*TypeProvidersService)GetType

func (r *TypeProvidersService) GetType(projectstring, typeProviderstring, type_string) *TypeProvidersGetTypeCall

GetType: Gets a type info for a type provided by a TypeProvider.

- project: The project ID for this request.- type: The name of the type provider type for this request.- typeProvider: The name of the type provider for this request.

func (*TypeProvidersService)Insert

func (r *TypeProvidersService) Insert(projectstring, typeprovider *TypeProvider) *TypeProvidersInsertCall

Insert: Creates a type provider.

- project: The project ID for this request.

func (*TypeProvidersService)List

List: Lists all resource type providers for Deployment Manager.

- project: The project ID for this request.

func (*TypeProvidersService)ListTypes

func (r *TypeProvidersService) ListTypes(projectstring, typeProviderstring) *TypeProvidersListTypesCall

ListTypes: Lists all the type info for a TypeProvider.

- project: The project ID for this request.- typeProvider: The name of the type provider for this request.

func (*TypeProvidersService)Patch

func (r *TypeProvidersService) Patch(projectstring, typeProviderstring, typeprovider *TypeProvider) *TypeProvidersPatchCall

Patch: Patches a type provider.

- project: The project ID for this request.- typeProvider: The name of the type provider for this request.

func (*TypeProvidersService)Update

func (r *TypeProvidersService) Update(projectstring, typeProviderstring, typeprovider *TypeProvider) *TypeProvidersUpdateCall

Update: Updates a type provider.

- project: The project ID for this request.- typeProvider: The name of the type provider for this request.

typeTypeProvidersUpdateCall

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

func (*TypeProvidersUpdateCall)Context

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

func (*TypeProvidersUpdateCall)Do

Do executes the "deploymentmanager.typeProviders.update" 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 (*TypeProvidersUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypeProvidersUpdateCall)Header

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

func (*TypeProvidersUpdateCall)HeaderBypassBillingFilteradded inv0.206.0

func (c *TypeProvidersUpdateCall) HeaderBypassBillingFilter(headerBypassBillingFilterbool) *TypeProvidersUpdateCall

HeaderBypassBillingFilter sets the optional parameter"header.bypassBillingFilter":

typeTypesListCall

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

func (*TypesListCall)Context

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

func (*TypesListCall)Do

Do executes the "deploymentmanager.types.list" call.Any non-2xx status code is an error. Response headers are in either*TypesListResponse.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 (*TypesListCall)Fields

func (c *TypesListCall) Fields(s ...googleapi.Field) *TypesListCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TypesListCall)Filter

func (c *TypesListCall) Filter(filterstring) *TypesListCall

Filter sets the optional parameter "filter": A filter expression thatfilters resources listed in the response. Most Compute resources support twotypes of filter expressions: expressions that support regular expressionsand expressions that follow API improvement proposal AIP-160. These twotypes of filter expressions cannot be mixed in one request. If you want touse AIP-160, your expression must specify the field name, an operator, andthe value that you want to use for filtering. The value must be a string, anumber, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,`>=` or `:`. For example, if you are filtering Compute Engine instances, youcan exclude instances named `example-instance` by specifying `name !=example-instance`. The `:*` comparison can be used to test whether a key hasbeen defined. For example, to find all objects with `owner` label use: ```labels.owner:* ``` You can also filter nested fields. For example, you couldspecify `scheduling.automaticRestart = false` to include instances only ifthey are not scheduled for automatic restarts. You can use filtering onnested fields to filter based on resource labels. To filter on multipleexpressions, provide each separate expression within parentheses. Forexample: ``` (scheduling.automaticRestart = true) (cpuPlatform = "IntelSkylake") ``` By default, each expression is an `AND` expression. However,you can include `AND` and `OR` expressions explicitly. For example: ```(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND(scheduling.automaticRestart = true) ``` If you want to use a regularexpression, use the `eq` (equal) or `ne` (not equal) operator against asingle un-parenthesized expression with or without quotes or againstmultiple parenthesized expressions. Examples: `fieldname eq unquotedliteral` `fieldname eq 'single quoted literal'` `fieldname eq "double quotedliteral" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literalvalue is interpreted as a regular expression using Google RE2 librarysyntax. The literal value must match the entire field. For example, tofilter for instances that do not end with name "instance", you would use`name ne .*instance`. You cannot combine constraints on multiple fieldsusing regular expressions.

func (*TypesListCall)Header

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

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

func (*TypesListCall)IfNoneMatch

func (c *TypesListCall) IfNoneMatch(entityTagstring) *TypesListCall

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 (*TypesListCall)MaxResults

func (c *TypesListCall) MaxResults(maxResultsint64) *TypesListCall

MaxResults sets the optional parameter "maxResults": The maximum number ofresults per page that should be returned. If the number of available resultsis larger than `maxResults`, Compute Engine returns a `nextPageToken` thatcan be used to get the next page of results in subsequent list requests.Acceptable values are `0` to `500`, inclusive. (Default: `500`)

func (*TypesListCall)OrderBy

func (c *TypesListCall) OrderBy(orderBystring) *TypesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by acertain order. By default, results are returned in alphanumerical orderbased on the resource name. You can also sort results in descending orderbased on the creation timestamp using `orderBy="creationTimestamp desc".This sorts results based on the `creationTimestamp` field in reversechronological order (newest result first). Use this to sort resources likeoperations so that the newest operation is returned first. Currently, onlysorting by `name` or `creationTimestamp desc` is supported.

func (*TypesListCall)PageToken

func (c *TypesListCall) PageToken(pageTokenstring) *TypesListCall

PageToken sets the optional parameter "pageToken": Specifies a page token touse. Set `pageToken` to the `nextPageToken` returned by a previous listrequest to get the next page of results.

func (*TypesListCall)Pages

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

typeTypesListResponse

type TypesListResponse struct {// NextPageToken: A token used to continue a truncated list request.NextPageTokenstring `json:"nextPageToken,omitempty"`// Types: Output only. A list of resource types supported by Deployment// Manager.Types []*Type `json:"types,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:"-"`}

TypesListResponse: A response that returns all Types supported by DeploymentManager

func (TypesListResponse)MarshalJSON

func (sTypesListResponse) MarshalJSON() ([]byte,error)

typeTypesService

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

funcNewTypesService

func NewTypesService(s *Service) *TypesService

func (*TypesService)List

func (r *TypesService) List(projectstring) *TypesListCall

List: Lists all resource types for Deployment Manager.

- project: The project ID for this request.

typeValidationOptions

type ValidationOptions struct {// SchemaValidation: Customize how deployment manager will validate the// resource against schema errors.//// Possible values://   "UNKNOWN"//   "IGNORE" - Ignore schema failures.//   "IGNORE_WITH_WARNINGS" - Ignore schema failures but display them as// warnings.//   "FAIL" - Fail the resource if the schema is not valid, this is the default// behavior.SchemaValidationstring `json:"schemaValidation,omitempty"`// UndeclaredProperties: Specify what to do with extra properties when// executing a request.//// Possible values://   "UNKNOWN"//   "INCLUDE" - Always include even if not present on discovery doc.//   "IGNORE" - Always ignore if not present on discovery doc.//   "INCLUDE_WITH_WARNINGS" - Include on request, but emit a warning.//   "IGNORE_WITH_WARNINGS" - Ignore properties, but emit a warning.//   "FAIL" - Always fail if undeclared properties are present.UndeclaredPropertiesstring `json:"undeclaredProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "SchemaValidation") 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. "SchemaValidation") 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:"-"`}

ValidationOptions: Options for how to validate and process properties on aresource.

func (ValidationOptions)MarshalJSON

func (sValidationOptions) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp