api: google.golang.org/api/deploymentmanager/v2beta Index | Files

package deploymentmanager

import "google.golang.org/api/deploymentmanager/v2beta"

Package deploymentmanager provides access to the Google Cloud Deployment Manager API V2Beta Methods.

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

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 for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

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

To use an API key for authentication (note: some APIs do not support API keys), use 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 OAuth flow), use option.WithTokenSource:

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

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

deploymentmanager-gen.go

Constants

const (
    // View and manage your data across Google Cloud Platform services
    CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

    // View your data across Google Cloud Platform services
    CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"

    // View and manage your Google Cloud Platform management resources and
    // deployment status information
    NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudman"

    // View your Google Cloud Platform management resources and deployment
    // status information
    NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev.cloudman.readonly"
)

OAuth2 scopes used by this API.

type AsyncOptions Uses

type AsyncOptions struct {
    // MethodMatch: Method regex where this policy will apply.
    MethodMatch string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*AsyncOptions) MarshalJSON Uses

func (s *AsyncOptions) MarshalJSON() ([]byte, error)

type AuditConfig Uses

type AuditConfig struct {
    // AuditLogConfigs: The configuration for logging of each type of
    // permission.
    AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`

    ExemptedMembers []string `json:"exemptedMembers,omitempty"`

    // Service: Specifies a service that will be enabled for audit logging.
    // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
    // `allServices` is a special value that covers all services.
    Service string `json:"service,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AuditConfig: Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.

If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.

Example Policy with multiple AuditConfigs:

{ "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }

For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.

func (*AuditConfig) MarshalJSON Uses

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

type AuditLogConfig Uses

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.
    LogType string `json:"logType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AuditLogConfig: Provides the configuration for logging a type of permissions. Example:

{ "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }

This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.

func (*AuditLogConfig) MarshalJSON Uses

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

type AuthorizationLoggingOptions Uses

type AuthorizationLoggingOptions struct {
    // PermissionType: The type of the permission that was checked.
    PermissionType string `json:"permissionType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PermissionType") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "PermissionType") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AuthorizationLoggingOptions: Authorization-related information used by Cloud Audit Logging.

func (*AuthorizationLoggingOptions) MarshalJSON Uses

func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error)

type BaseType Uses

type BaseType struct {
    // CollectionOverrides: Allows resource handling overrides for specific
    // collections
    CollectionOverrides []*CollectionOverride `json:"collectionOverrides,omitempty"`

    // Credential: Credential used when interacting with this type.
    Credential *Credential `json:"credential,omitempty"`

    // DescriptorUrl: Descriptor Url for the this type.
    DescriptorUrl string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

BaseType: BaseType that describes a service-backed Type.

func (*BaseType) MarshalJSON Uses

func (s *BaseType) MarshalJSON() ([]byte, error)

type BasicAuth Uses

type BasicAuth struct {
    Password string `json:"password,omitempty"`

    User string `json:"user,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Password") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

BasicAuth: Basic Auth used as a credential.

func (*BasicAuth) MarshalJSON Uses

func (s *BasicAuth) MarshalJSON() ([]byte, error)

type Binding Uses

type Binding struct {
    // Condition: Unimplemented. The condition that is associated with this
    // binding. NOTE: an unsatisfied condition will not allow user access
    // via current binding. Different bindings, including their conditions,
    // are examined independently.
    Condition *Expr `json:"condition,omitempty"`

    // Members: Specifies the identities requesting access for a Cloud
    // Platform 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.
    //
    // * `user:{emailid}`: An email address that represents a specific
    // Google account. For example, `alice@gmail.com` .
    //
    //
    //
    // * `serviceAccount:{emailid}`: An email address that represents a
    // service account. For example,
    // `my-other-app@appspot.gserviceaccount.com`.
    //
    // * `group:{emailid}`: An email address that represents a Google group.
    // For example, `admins@example.com`.
    //
    //
    //
    // * `domain:{domain}`: A Google Apps domain name that represents all
    // the users of that domain. For example, `google.com` or `example.com`.
    Members []string `json:"members,omitempty"`

    // Role: Role that is assigned to `members`. For example,
    // `roles/viewer`, `roles/editor`, or `roles/owner`.
    Role string `json:"role,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Condition") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Binding: Associates `members` with a `role`.

func (*Binding) MarshalJSON Uses

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

type CollectionOverride Uses

type CollectionOverride struct {
    // Collection: The collection that identifies this resource within its
    // service.
    Collection string `json:"collection,omitempty"`

    // Options: The options to apply to this resource-level override
    Options *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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CollectionOverride: CollectionOverride allows resource handling overrides for specific resources within a BaseType

func (*CollectionOverride) MarshalJSON Uses

func (s *CollectionOverride) MarshalJSON() ([]byte, error)

type CompositeType Uses

type CompositeType struct {
    // Description: An optional textual description of the resource;
    // provided by the client when the resource is created.
    Description string `json:"description,omitempty"`

    Id  uint64 `json:"id,omitempty,string"`

    // InsertTime: Output only. Creation timestamp in RFC3339 text format.
    InsertTime string `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])?.
    Name string `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.
    SelfLink string `json:"selfLink,omitempty"`

    Status string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CompositeType: Holds the composite type.

func (*CompositeType) MarshalJSON Uses

func (s *CompositeType) MarshalJSON() ([]byte, error)

type CompositeTypeLabelEntry Uses

type CompositeTypeLabelEntry struct {
    Key string `json:"key,omitempty"`

    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CompositeTypeLabelEntry) MarshalJSON Uses

func (s *CompositeTypeLabelEntry) MarshalJSON() ([]byte, error)

type CompositeTypesDeleteCall Uses

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

func (*CompositeTypesDeleteCall) Context Uses

func (c *CompositeTypesDeleteCall) Context(ctx context.Context) *CompositeTypesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CompositeTypesDeleteCall) Do Uses

func (c *CompositeTypesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.compositeTypes.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CompositeTypesDeleteCall) Fields Uses

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

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

func (*CompositeTypesDeleteCall) Header Uses

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

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

type CompositeTypesGetCall Uses

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

func (*CompositeTypesGetCall) Context Uses

func (c *CompositeTypesGetCall) Context(ctx context.Context) *CompositeTypesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CompositeTypesGetCall) Do Uses

func (c *CompositeTypesGetCall) Do(opts ...googleapi.CallOption) (*CompositeType, error)

Do executes the "deploymentmanager.compositeTypes.get" call. Exactly one of *CompositeType or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*CompositeTypesGetCall) Fields Uses

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

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

func (*CompositeTypesGetCall) Header Uses

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

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

func (*CompositeTypesGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type CompositeTypesInsertCall Uses

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

func (*CompositeTypesInsertCall) Context Uses

func (c *CompositeTypesInsertCall) Context(ctx context.Context) *CompositeTypesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CompositeTypesInsertCall) Do Uses

func (c *CompositeTypesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.compositeTypes.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CompositeTypesInsertCall) Fields Uses

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

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

func (*CompositeTypesInsertCall) Header Uses

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

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

type CompositeTypesListCall Uses

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

func (*CompositeTypesListCall) Context Uses

func (c *CompositeTypesListCall) Context(ctx context.Context) *CompositeTypesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CompositeTypesListCall) Do Uses

func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTypesListResponse, error)

Do executes the "deploymentmanager.compositeTypes.list" call. Exactly one of *CompositeTypesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CompositeTypesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CompositeTypesListCall) Fields Uses

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

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

func (*CompositeTypesListCall) Filter Uses

func (c *CompositeTypesListCall) Filter(filter string) *CompositeTypesListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*CompositeTypesListCall) Header Uses

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

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

func (*CompositeTypesListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*CompositeTypesListCall) MaxResults Uses

func (c *CompositeTypesListCall) MaxResults(maxResults int64) *CompositeTypesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *CompositeTypesListCall) OrderBy(orderBy string) *CompositeTypesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*CompositeTypesListCall) PageToken Uses

func (c *CompositeTypesListCall) PageToken(pageToken string) *CompositeTypesListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*CompositeTypesListCall) Pages Uses

func (c *CompositeTypesListCall) Pages(ctx context.Context, f func(*CompositeTypesListResponse) error) error

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

type CompositeTypesListResponse Uses

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.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CompositeTypes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

CompositeTypesListResponse: A response that returns all Composite Types supported by Deployment Manager

func (*CompositeTypesListResponse) MarshalJSON Uses

func (s *CompositeTypesListResponse) MarshalJSON() ([]byte, error)

type CompositeTypesPatchCall Uses

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

func (*CompositeTypesPatchCall) Context Uses

func (c *CompositeTypesPatchCall) Context(ctx context.Context) *CompositeTypesPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CompositeTypesPatchCall) Do Uses

func (c *CompositeTypesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.compositeTypes.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CompositeTypesPatchCall) Fields Uses

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

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

func (*CompositeTypesPatchCall) Header Uses

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

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

type CompositeTypesService Uses

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

func NewCompositeTypesService Uses

func NewCompositeTypesService(s *Service) *CompositeTypesService

func (*CompositeTypesService) Delete Uses

func (r *CompositeTypesService) Delete(project string, compositeType string) *CompositeTypesDeleteCall

Delete: Deletes a composite type.

func (*CompositeTypesService) Get Uses

func (r *CompositeTypesService) Get(project string, compositeType string) *CompositeTypesGetCall

Get: Gets information about a specific composite type.

func (*CompositeTypesService) Insert Uses

func (r *CompositeTypesService) Insert(project string, compositetype *CompositeType) *CompositeTypesInsertCall

Insert: Creates a composite type.

func (*CompositeTypesService) List Uses

func (r *CompositeTypesService) List(project string) *CompositeTypesListCall

List: Lists all composite types for Deployment Manager.

func (*CompositeTypesService) Patch Uses

func (r *CompositeTypesService) Patch(project string, compositeType string, compositetype *CompositeType) *CompositeTypesPatchCall

Patch: Updates a composite type. This method supports patch semantics.

func (*CompositeTypesService) Update Uses

func (r *CompositeTypesService) Update(project string, compositeType string, compositetype *CompositeType) *CompositeTypesUpdateCall

Update: Updates a composite type.

type CompositeTypesUpdateCall Uses

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

func (*CompositeTypesUpdateCall) Context Uses

func (c *CompositeTypesUpdateCall) Context(ctx context.Context) *CompositeTypesUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CompositeTypesUpdateCall) Do Uses

func (c *CompositeTypesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.compositeTypes.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CompositeTypesUpdateCall) Fields Uses

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

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

func (*CompositeTypesUpdateCall) Header Uses

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

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

type Condition Uses

type Condition struct {
    // Iam: Trusted attributes supplied by the IAM system.
    Iam string `json:"iam,omitempty"`

    // Op: An operator to apply the subject with.
    Op  string `json:"op,omitempty"`

    // Svc: Trusted attributes discharged by the service.
    Svc string `json:"svc,omitempty"`

    // Sys: Trusted attributes supplied by any service that owns resources
    // and uses the IAM system for access control.
    Sys string `json:"sys,omitempty"`

    // Value: DEPRECATED. Use 'values' instead.
    Value string `json:"value,omitempty"`

    // Values: The objects of the condition. This is mutually exclusive with
    // 'value'.
    Values []string `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Iam") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Iam") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Condition: A condition to be met.

func (*Condition) MarshalJSON Uses

func (s *Condition) MarshalJSON() ([]byte, error)

type ConfigFile Uses

type ConfigFile struct {
    // Content: The contents of the file.
    Content string `json:"content,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Content") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ConfigFile) MarshalJSON Uses

func (s *ConfigFile) MarshalJSON() ([]byte, error)

type Credential Uses

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.
    UseProjectDefault bool `json:"useProjectDefault,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BasicAuth") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*Credential) MarshalJSON Uses

func (s *Credential) MarshalJSON() ([]byte, error)

type Deployment Uses

type Deployment struct {
    // Description: An optional user-provided description of the deployment.
    Description string `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.
    Fingerprint string `json:"fingerprint,omitempty"`

    Id  uint64 `json:"id,omitempty,string"`

    // InsertTime: Output only. Creation timestamp in RFC3339 text format.
    InsertTime string `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 []*DeploymentLabelEntry `json:"labels,omitempty"`

    // Manifest: Output only. URL of the manifest representing the last
    // manifest that was successfully deployed.
    Manifest string `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.
    Name string `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.
    SelfLink string `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.
    UpdateTime string `json:"updateTime,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Deployment) MarshalJSON Uses

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

type DeploymentLabelEntry Uses

type DeploymentLabelEntry struct {
    Key string `json:"key,omitempty"`

    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DeploymentLabelEntry) MarshalJSON Uses

func (s *DeploymentLabelEntry) MarshalJSON() ([]byte, error)

type DeploymentUpdate Uses

type DeploymentUpdate struct {
    // Description: Output only. An optional user-provided description of
    // the deployment after the current update has been applied.
    Description string `json:"description,omitempty"`

    // Labels: Output only. 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 []*DeploymentUpdateLabelEntry `json:"labels,omitempty"`

    // Manifest: Output only. URL of the manifest representing the update
    // configuration of this deployment.
    Manifest string `json:"manifest,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DeploymentUpdate) MarshalJSON Uses

func (s *DeploymentUpdate) MarshalJSON() ([]byte, error)

type DeploymentUpdateLabelEntry Uses

type DeploymentUpdateLabelEntry struct {
    Key string `json:"key,omitempty"`

    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DeploymentUpdateLabelEntry) MarshalJSON Uses

func (s *DeploymentUpdateLabelEntry) MarshalJSON() ([]byte, error)

type DeploymentsCancelPreviewCall Uses

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

func (*DeploymentsCancelPreviewCall) Context Uses

func (c *DeploymentsCancelPreviewCall) Context(ctx context.Context) *DeploymentsCancelPreviewCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsCancelPreviewCall) Do Uses

func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.deployments.cancelPreview" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DeploymentsCancelPreviewCall) Fields Uses

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

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

func (*DeploymentsCancelPreviewCall) Header Uses

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

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

type DeploymentsCancelPreviewRequest Uses

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.
    Fingerprint string `json:"fingerprint,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Fingerprint") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DeploymentsCancelPreviewRequest) MarshalJSON Uses

func (s *DeploymentsCancelPreviewRequest) MarshalJSON() ([]byte, error)

type DeploymentsDeleteCall Uses

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

func (*DeploymentsDeleteCall) Context Uses

func (c *DeploymentsDeleteCall) Context(ctx context.Context) *DeploymentsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsDeleteCall) DeletePolicy Uses

func (c *DeploymentsDeleteCall) DeletePolicy(deletePolicy string) *DeploymentsDeleteCall

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

Possible values:

"ABANDON"
"DELETE" (default)

func (*DeploymentsDeleteCall) Do Uses

func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

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

func (*DeploymentsDeleteCall) Fields Uses

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

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

func (*DeploymentsDeleteCall) Header Uses

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

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

type DeploymentsGetCall Uses

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

func (*DeploymentsGetCall) Context Uses

func (c *DeploymentsGetCall) Context(ctx context.Context) *DeploymentsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsGetCall) Do Uses

func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, error)

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

func (*DeploymentsGetCall) Fields Uses

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

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

func (*DeploymentsGetCall) Header Uses

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

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

func (*DeploymentsGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type DeploymentsGetIamPolicyCall Uses

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

func (*DeploymentsGetIamPolicyCall) Context Uses

func (c *DeploymentsGetIamPolicyCall) Context(ctx context.Context) *DeploymentsGetIamPolicyCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsGetIamPolicyCall) Do Uses

func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)

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

func (*DeploymentsGetIamPolicyCall) Fields Uses

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

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

func (*DeploymentsGetIamPolicyCall) Header Uses

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

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

func (*DeploymentsGetIamPolicyCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type DeploymentsInsertCall Uses

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

func (*DeploymentsInsertCall) Context Uses

func (c *DeploymentsInsertCall) Context(ctx context.Context) *DeploymentsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsInsertCall) CreatePolicy Uses

func (c *DeploymentsInsertCall) CreatePolicy(createPolicy string) *DeploymentsInsertCall

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

Possible values:

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

func (*DeploymentsInsertCall) Do Uses

func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.deployments.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DeploymentsInsertCall) Fields Uses

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

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

func (*DeploymentsInsertCall) Header Uses

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

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

func (*DeploymentsInsertCall) Preview Uses

func (c *DeploymentsInsertCall) Preview(preview bool) *DeploymentsInsertCall

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

type DeploymentsListCall Uses

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

func (*DeploymentsListCall) Context Uses

func (c *DeploymentsListCall) Context(ctx context.Context) *DeploymentsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsListCall) Do Uses

func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsListResponse, error)

Do executes the "deploymentmanager.deployments.list" call. Exactly one of *DeploymentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DeploymentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DeploymentsListCall) Fields Uses

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

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

func (*DeploymentsListCall) Filter Uses

func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*DeploymentsListCall) Header Uses

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

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

func (*DeploymentsListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DeploymentsListCall) MaxResults Uses

func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *DeploymentsListCall) OrderBy(orderBy string) *DeploymentsListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*DeploymentsListCall) PageToken Uses

func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*DeploymentsListCall) Pages Uses

func (c *DeploymentsListCall) Pages(ctx context.Context, f func(*DeploymentsListResponse) error) error

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

type DeploymentsListResponse Uses

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.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Deployments") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DeploymentsListResponse: A response containing a partial list of deployments and a page token used to build the next request if the request has been truncated.

func (*DeploymentsListResponse) MarshalJSON Uses

func (s *DeploymentsListResponse) MarshalJSON() ([]byte, error)

type DeploymentsPatchCall Uses

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

func (*DeploymentsPatchCall) Context Uses

func (c *DeploymentsPatchCall) Context(ctx context.Context) *DeploymentsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsPatchCall) CreatePolicy Uses

func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPatchCall

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

Possible values:

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

func (*DeploymentsPatchCall) DeletePolicy Uses

func (c *DeploymentsPatchCall) DeletePolicy(deletePolicy string) *DeploymentsPatchCall

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

Possible values:

"ABANDON"
"DELETE" (default)

func (*DeploymentsPatchCall) Do Uses

func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)

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

func (*DeploymentsPatchCall) Fields Uses

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

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

func (*DeploymentsPatchCall) Header Uses

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

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

func (*DeploymentsPatchCall) Preview Uses

func (c *DeploymentsPatchCall) Preview(preview bool) *DeploymentsPatchCall

Preview sets the optional parameter "preview": If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an 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 you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.

type DeploymentsService Uses

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

func NewDeploymentsService Uses

func NewDeploymentsService(s *Service) *DeploymentsService

func (*DeploymentsService) CancelPreview Uses

func (r *DeploymentsService) CancelPreview(project string, deployment string, deploymentscancelpreviewrequest *DeploymentsCancelPreviewRequest) *DeploymentsCancelPreviewCall

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

func (*DeploymentsService) Delete Uses

func (r *DeploymentsService) Delete(project string, deployment string) *DeploymentsDeleteCall

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

func (*DeploymentsService) Get Uses

func (r *DeploymentsService) Get(project string, deployment string) *DeploymentsGetCall

Get: Gets information about a specific deployment.

func (*DeploymentsService) GetIamPolicy Uses

func (r *DeploymentsService) GetIamPolicy(project string, resource string) *DeploymentsGetIamPolicyCall

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

func (*DeploymentsService) Insert Uses

func (r *DeploymentsService) Insert(project string, deployment *Deployment) *DeploymentsInsertCall

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

func (*DeploymentsService) List Uses

func (r *DeploymentsService) List(project string) *DeploymentsListCall

List: Lists all deployments for a given project.

func (*DeploymentsService) Patch Uses

func (r *DeploymentsService) Patch(project string, deployment string, deployment2 *Deployment) *DeploymentsPatchCall

Patch: Updates a deployment and all of the resources described by the deployment manifest. This method supports patch semantics.

func (*DeploymentsService) SetIamPolicy Uses

func (r *DeploymentsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *DeploymentsSetIamPolicyCall

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

func (*DeploymentsService) Stop Uses

func (r *DeploymentsService) Stop(project string, deployment string, deploymentsstoprequest *DeploymentsStopRequest) *DeploymentsStopCall

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

func (*DeploymentsService) TestIamPermissions Uses

func (r *DeploymentsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *DeploymentsTestIamPermissionsCall

TestIamPermissions: Returns permissions that a caller has on the specified resource.

func (*DeploymentsService) Update Uses

func (r *DeploymentsService) Update(project string, deployment string, deployment2 *Deployment) *DeploymentsUpdateCall

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

type DeploymentsSetIamPolicyCall Uses

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

func (*DeploymentsSetIamPolicyCall) Context Uses

func (c *DeploymentsSetIamPolicyCall) Context(ctx context.Context) *DeploymentsSetIamPolicyCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsSetIamPolicyCall) Do Uses

func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)

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

func (*DeploymentsSetIamPolicyCall) Fields Uses

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

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

func (*DeploymentsSetIamPolicyCall) Header Uses

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

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

type DeploymentsStopCall Uses

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

func (*DeploymentsStopCall) Context Uses

func (c *DeploymentsStopCall) Context(ctx context.Context) *DeploymentsStopCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsStopCall) Do Uses

func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.deployments.stop" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DeploymentsStopCall) Fields Uses

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

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

func (*DeploymentsStopCall) Header Uses

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

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

type DeploymentsStopRequest Uses

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.
    Fingerprint string `json:"fingerprint,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Fingerprint") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DeploymentsStopRequest) MarshalJSON Uses

func (s *DeploymentsStopRequest) MarshalJSON() ([]byte, error)

type DeploymentsTestIamPermissionsCall Uses

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

func (*DeploymentsTestIamPermissionsCall) Context Uses

func (c *DeploymentsTestIamPermissionsCall) Context(ctx context.Context) *DeploymentsTestIamPermissionsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsTestIamPermissionsCall) Do Uses

func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)

Do executes the "deploymentmanager.deployments.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DeploymentsTestIamPermissionsCall) Fields Uses

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

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

func (*DeploymentsTestIamPermissionsCall) Header Uses

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

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

type DeploymentsUpdateCall Uses

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

func (*DeploymentsUpdateCall) Context Uses

func (c *DeploymentsUpdateCall) Context(ctx context.Context) *DeploymentsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DeploymentsUpdateCall) CreatePolicy Uses

func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUpdateCall

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

Possible values:

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

func (*DeploymentsUpdateCall) DeletePolicy Uses

func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicy string) *DeploymentsUpdateCall

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

Possible values:

"ABANDON"
"DELETE" (default)

func (*DeploymentsUpdateCall) Do Uses

func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.deployments.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DeploymentsUpdateCall) Fields Uses

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

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

func (*DeploymentsUpdateCall) Header Uses

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

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

func (*DeploymentsUpdateCall) Preview Uses

func (c *DeploymentsUpdateCall) Preview(preview bool) *DeploymentsUpdateCall

Preview sets the optional parameter "preview": If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an 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 you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.

type Diagnostic Uses

type Diagnostic struct {
    // Field: JsonPath expression on the resource that if non empty,
    // indicates that this field needs to be extracted as a diagnostic.
    Field string `json:"field,omitempty"`

    // Level: Level to record this diagnostic.
    Level string `json:"level,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Field") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Diagnostic) MarshalJSON Uses

func (s *Diagnostic) MarshalJSON() ([]byte, error)

type Expr Uses

type Expr struct {
    // Description: An optional description of the expression. This is a
    // longer text which describes the expression, e.g. when hovered over it
    // in a UI.
    Description string `json:"description,omitempty"`

    // Expression: Textual representation of an expression in Common
    // Expression Language syntax.
    //
    // The application context of the containing message determines which
    // well-known feature set of CEL is supported.
    Expression string `json:"expression,omitempty"`

    // Location: An optional string indicating the location of the
    // expression for error reporting, e.g. a file name and a position in
    // the file.
    Location string `json:"location,omitempty"`

    // Title: An optional title for the expression, i.e. a short string
    // describing its purpose. This can be used e.g. in UIs which allow to
    // enter the expression.
    Title string `json:"title,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Expr: Represents an expression text. Example:

title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"

func (*Expr) MarshalJSON Uses

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

type GlobalSetPolicyRequest Uses

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.
    Etag string `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"`

    // ForceSendFields is a list of field names (e.g. "Bindings") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GlobalSetPolicyRequest) MarshalJSON Uses

func (s *GlobalSetPolicyRequest) MarshalJSON() ([]byte, error)

type ImportFile Uses

type ImportFile struct {
    // Content: The contents of the file.
    Content string `json:"content,omitempty"`

    // Name: The name of the file.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Content") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ImportFile) MarshalJSON Uses

func (s *ImportFile) MarshalJSON() ([]byte, error)

type InputMapping Uses

type InputMapping struct {
    // FieldName: The name of the field that is going to be injected.
    FieldName string `json:"fieldName,omitempty"`

    // Location: The location where this mapping applies.
    Location string `json:"location,omitempty"`

    // MethodMatch: Regex to evaluate on method to decide if input applies.
    MethodMatch string `json:"methodMatch,omitempty"`

    // Value: A jsonPath expression to select an element.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FieldName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

InputMapping: InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API.

func (*InputMapping) MarshalJSON Uses

func (s *InputMapping) MarshalJSON() ([]byte, error)

type LogConfig Uses

type LogConfig struct {
    // CloudAudit: Cloud audit options.
    CloudAudit *LogConfigCloudAuditOptions `json:"cloudAudit,omitempty"`

    // Counter: Counter options.
    Counter *LogConfigCounterOptions `json:"counter,omitempty"`

    // DataAccess: Data access options.
    DataAccess *LogConfigDataAccessOptions `json:"dataAccess,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CloudAudit") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CloudAudit") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogConfig: Specifies what kind of log the caller must write

func (*LogConfig) MarshalJSON Uses

func (s *LogConfig) MarshalJSON() ([]byte, error)

type LogConfigCloudAuditOptions Uses

type LogConfigCloudAuditOptions struct {
    // AuthorizationLoggingOptions: Information used by the Cloud Audit
    // Logging pipeline.
    AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"`

    // LogName: The log_name to populate in the Cloud Audit Record.
    LogName string `json:"logName,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "AuthorizationLoggingOptions") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "AuthorizationLoggingOptions") to include in API requests with the
    // JSON null value. By default, fields with empty values are omitted
    // from API requests. However, any field with an empty value appearing
    // in NullFields will be sent to the server as null. It is an error if a
    // field in this list has a non-empty value. This may be used to include
    // null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogConfigCloudAuditOptions: Write a Cloud Audit log

func (*LogConfigCloudAuditOptions) MarshalJSON Uses

func (s *LogConfigCloudAuditOptions) MarshalJSON() ([]byte, error)

type LogConfigCounterOptions Uses

type LogConfigCounterOptions struct {
    // Field: The field value to attribute.
    Field string `json:"field,omitempty"`

    // Metric: The metric to update.
    Metric string `json:"metric,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Field") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogConfigCounterOptions: Increment a streamz counter with the specified metric and field names.

Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.

Field names correspond to IAM request parameters and field values are their respective values.

Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.

Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}

At this time we do not support multiple field names (though this may be supported in the future).

func (*LogConfigCounterOptions) MarshalJSON Uses

func (s *LogConfigCounterOptions) MarshalJSON() ([]byte, error)

type LogConfigDataAccessOptions Uses

type LogConfigDataAccessOptions struct {
    // LogMode: Whether Gin logging should happen in a fail-closed manner at
    // the caller. This is relevant only in the LocalIAM implementation, for
    // now.
    //
    // NOTE: Logging to Gin in a fail-closed manner is currently unsupported
    // while work is being done to satisfy the requirements of go/345.
    // Currently, setting LOG_FAIL_CLOSED mode will have no effect, but
    // still exists because there is active work being done to support it
    // (b/115874152).
    LogMode string `json:"logMode,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LogMode") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LogMode") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogConfigDataAccessOptions: Write a Data Access (Gin) log

func (*LogConfigDataAccessOptions) MarshalJSON Uses

func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error)

type Manifest Uses

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.
    ExpandedConfig string `json:"expandedConfig,omitempty"`

    Id  uint64 `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.
    InsertTime string `json:"insertTime,omitempty"`

    // Layout: Output only. The YAML layout for this manifest.
    Layout string `json:"layout,omitempty"`

    // Name: Output only.
    //
    // The name of the manifest.
    Name string `json:"name,omitempty"`

    // SelfLink: Output only. Self link for the manifest.
    SelfLink string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Manifest) MarshalJSON Uses

func (s *Manifest) MarshalJSON() ([]byte, error)

type ManifestsGetCall Uses

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

func (*ManifestsGetCall) Context Uses

func (c *ManifestsGetCall) Context(ctx context.Context) *ManifestsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ManifestsGetCall) Do Uses

func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error)

Do executes the "deploymentmanager.manifests.get" call. Exactly one of *Manifest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Manifest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ManifestsGetCall) Fields Uses

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

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

func (*ManifestsGetCall) Header Uses

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

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

func (*ManifestsGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ManifestsListCall Uses

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

func (*ManifestsListCall) Context Uses

func (c *ManifestsListCall) Context(ctx context.Context) *ManifestsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ManifestsListCall) Do Uses

func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResponse, error)

Do executes the "deploymentmanager.manifests.list" call. Exactly one of *ManifestsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManifestsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ManifestsListCall) Fields Uses

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

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

func (*ManifestsListCall) Filter Uses

func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*ManifestsListCall) Header Uses

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

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

func (*ManifestsListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ManifestsListCall) MaxResults Uses

func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *ManifestsListCall) OrderBy(orderBy string) *ManifestsListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*ManifestsListCall) PageToken Uses

func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*ManifestsListCall) Pages Uses

func (c *ManifestsListCall) Pages(ctx context.Context, f func(*ManifestsListResponse) error) error

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

type ManifestsListResponse Uses

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.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Manifests") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*ManifestsListResponse) MarshalJSON Uses

func (s *ManifestsListResponse) MarshalJSON() ([]byte, error)

type ManifestsService Uses

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

func NewManifestsService Uses

func NewManifestsService(s *Service) *ManifestsService

func (*ManifestsService) Get Uses

func (r *ManifestsService) Get(project string, deployment string, manifest string) *ManifestsGetCall

Get: Gets information about a specific manifest.

func (*ManifestsService) List Uses

func (r *ManifestsService) List(project string, deployment string) *ManifestsListCall

List: Lists all manifests for a given deployment.

type Operation Uses

type Operation struct {
    // ClientOperationId: [Output Only] The value of `requestId` if you
    // provided it in the request. Not present otherwise.
    ClientOperationId string `json:"clientOperationId,omitempty"`

    // CreationTimestamp: [Deprecated] This field is deprecated.
    CreationTimestamp string `json:"creationTimestamp,omitempty"`

    // Description: [Output Only] A textual description of the operation,
    // which is set when the operation is created.
    Description string `json:"description,omitempty"`

    // EndTime: [Output Only] The time that this operation was completed.
    // This value is in RFC3339 text format.
    EndTime string `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"`

    // HttpErrorMessage: [Output Only] If the operation fails, this field
    // contains the HTTP error message that was returned, such as NOT FOUND.
    HttpErrorMessage string `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.
    HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"`

    // Id: [Output Only] The unique identifier for the resource. This
    // identifier is defined by the server.
    Id  uint64 `json:"id,omitempty,string"`

    // InsertTime: [Output Only] The time that this operation was requested.
    // This value is in RFC3339 text format.
    InsertTime string `json:"insertTime,omitempty"`

    // Kind: [Output Only] Type of the resource. Always compute#operation
    // for Operation resources.
    Kind string `json:"kind,omitempty"`

    // Name: [Output Only] Name of the resource.
    Name string `json:"name,omitempty"`

    // OperationType: [Output Only] The type of operation, such as insert,
    // update, or delete, and so on.
    OperationType string `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.
    Progress int64 `json:"progress,omitempty"`

    // Region: [Output Only] The URL of the region where the operation
    // resides. Only available when performing regional operations. You must
    // specify this field as part of the HTTP request URL. It is not
    // settable as a field in the request body.
    Region string `json:"region,omitempty"`

    // SelfLink: [Output Only] Server-defined URL for the resource.
    SelfLink string `json:"selfLink,omitempty"`

    // StartTime: [Output Only] The time that this operation was started by
    // the server. This value is in RFC3339 text format.
    StartTime string `json:"startTime,omitempty"`

    // Status: [Output Only] The status of the operation, which can be one
    // of the following: PENDING, RUNNING, or DONE.
    Status string `json:"status,omitempty"`

    // StatusMessage: [Output Only] An optional textual description of the
    // current status of the operation.
    StatusMessage string `json:"statusMessage,omitempty"`

    // TargetId: [Output Only] The unique target ID, which identifies a
    // specific incarnation of the target resource.
    TargetId uint64 `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 persistent disk that the snapshot was created from.
    TargetLink string `json:"targetLink,omitempty"`

    // User: [Output Only] User who requested the operation, for example:
    // user@example.com.
    User string `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 available when performing per-zone operations. You must specify
    // this field as part of the HTTP request URL. It is not settable as a
    // field in the request body.
    Zone string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Operation: An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)

func (*Operation) MarshalJSON Uses

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

type OperationError Uses

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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*OperationError) MarshalJSON Uses

func (s *OperationError) MarshalJSON() ([]byte, error)

type OperationErrorErrors Uses

type OperationErrorErrors struct {
    // Code: [Output Only] The error type identifier for this error.
    Code string `json:"code,omitempty"`

    // Location: [Output Only] Indicates the field in the request that
    // caused the error. This property is optional.
    Location string `json:"location,omitempty"`

    // Message: [Output Only] An optional, human-readable error message.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OperationErrorErrors) MarshalJSON Uses

func (s *OperationErrorErrors) MarshalJSON() ([]byte, error)

type OperationWarnings Uses

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.
    Code string `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.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OperationWarnings) MarshalJSON Uses

func (s *OperationWarnings) MarshalJSON() ([]byte, error)

type OperationWarningsData Uses

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).
    Key string `json:"key,omitempty"`

    // Value: [Output Only] A warning data value corresponding to the key.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OperationWarningsData) MarshalJSON Uses

func (s *OperationWarningsData) MarshalJSON() ([]byte, error)

type OperationsGetCall Uses

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

func (*OperationsGetCall) Context Uses

func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OperationsGetCall) Do Uses

func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)

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

func (*OperationsGetCall) Fields Uses

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

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

func (*OperationsGetCall) Header Uses

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

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

func (*OperationsGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type OperationsListCall Uses

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

func (*OperationsListCall) Context Uses

func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OperationsListCall) Do Uses

func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListResponse, error)

Do executes the "deploymentmanager.operations.list" call. Exactly one of *OperationsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OperationsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OperationsListCall) Fields Uses

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

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

func (*OperationsListCall) Filter Uses

func (c *OperationsListCall) Filter(filter string) *OperationsListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*OperationsListCall) Header Uses

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

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

func (*OperationsListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*OperationsListCall) MaxResults Uses

func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *OperationsListCall) OrderBy(orderBy string) *OperationsListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*OperationsListCall) PageToken Uses

func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*OperationsListCall) Pages Uses

func (c *OperationsListCall) Pages(ctx context.Context, f func(*OperationsListResponse) error) error

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

type OperationsListResponse Uses

type OperationsListResponse struct {
    // NextPageToken: Output only. A token used to continue a truncated list
    // request.
    NextPageToken string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

OperationsListResponse: A response containing a partial list of operations and a page token used to build the next request if the request has been truncated.

func (*OperationsListResponse) MarshalJSON Uses

func (s *OperationsListResponse) MarshalJSON() ([]byte, error)

type OperationsService Uses

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

func NewOperationsService Uses

func NewOperationsService(s *Service) *OperationsService

func (*OperationsService) Get Uses

func (r *OperationsService) Get(project string, operation string) *OperationsGetCall

Get: Gets information about a specific operation.

func (*OperationsService) List Uses

func (r *OperationsService) List(project string) *OperationsListCall

List: Lists all operations for a project.

type Options Uses

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: number
    VirtualProperties string `json:"virtualProperties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AsyncOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Options: Options allows customized resource handling by Deployment Manager.

func (*Options) MarshalJSON Uses

func (s *Options) MarshalJSON() ([]byte, error)

type Policy Uses

type Policy struct {
    // AuditConfigs: Specifies cloud audit logging configuration for this
    // policy.
    AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`

    // Bindings: Associates a list of `members` to a `role`. `bindings` with
    // no members will result in an error.
    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.
    //
    // If no `etag` is provided in the call to `setIamPolicy`, then the
    // existing policy is overwritten blindly.
    Etag string `json:"etag,omitempty"`

    IamOwned bool `json:"iamOwned,omitempty"`

    // Rules: If more than one rule is specified, the rules are applied in
    // the following manner: - All matching LOG rules are always applied. -
    // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging
    // will be applied if one or more matching rule requires logging. -
    // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
    // granted. Logging will be applied if one or more matching rule
    // requires logging. - Otherwise, if no rule applies, permission is
    // denied.
    Rules []*Rule `json:"rules,omitempty"`

    // Version: Deprecated.
    Version int64 `json:"version,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AuditConfigs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Policy: Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.

A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.

**JSON Example**

{ "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }

**YAML Example**

bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer

For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).

func (*Policy) MarshalJSON Uses

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

type PollingOptions Uses

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.
    FailCondition string `json:"failCondition,omitempty"`

    // FinishCondition: JsonPath expression that determines if the request
    // is completed.
    FinishCondition string `json:"finishCondition,omitempty"`

    // PollingLink: JsonPath expression that evaluates to string, it
    // indicates where to poll.
    PollingLink string `json:"pollingLink,omitempty"`

    // TargetLink: JsonPath expression, after polling is completed,
    // indicates where to fetch the resource.
    TargetLink string `json:"targetLink,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Diagnostics") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PollingOptions) MarshalJSON Uses

func (s *PollingOptions) MarshalJSON() ([]byte, error)

type Resource Uses

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.
    FinalProperties string `json:"finalProperties,omitempty"`

    Id  uint64 `json:"id,omitempty,string"`

    // InsertTime: Output only. Creation timestamp in RFC3339 text format.
    InsertTime string `json:"insertTime,omitempty"`

    // Manifest: Output only. URL of the manifest representing the current
    // configuration of this resource.
    Manifest string `json:"manifest,omitempty"`

    // Name: Output only. The name of the resource as it appears in the YAML
    // config.
    Name string `json:"name,omitempty"`

    // Properties: Output only. The current properties of the resource
    // before any references have been filled in. Returned as serialized
    // YAML.
    Properties string `json:"properties,omitempty"`

    // Type: Output only. The type of the resource, for example
    // compute.v1.instance, or cloudfunctions.v1beta1.function.
    Type string `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.
    UpdateTime string `json:"updateTime,omitempty"`

    // Url: Output only. The URL of the actual resource.
    Url string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Resource) MarshalJSON Uses

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

type ResourceAccessControl Uses

type ResourceAccessControl struct {
    // GcpIamPolicy: The GCP IAM Policy to set on the resource.
    GcpIamPolicy string `json:"gcpIamPolicy,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GcpIamPolicy") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ResourceAccessControl: The access controls set on the resource.

func (*ResourceAccessControl) MarshalJSON Uses

func (s *ResourceAccessControl) MarshalJSON() ([]byte, error)

type ResourceUpdate Uses

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.
    FinalProperties string `json:"finalProperties,omitempty"`

    // Intent: Output only. The intent of the resource: PREVIEW, UPDATE, or
    // CANCEL.
    Intent string `json:"intent,omitempty"`

    // Manifest: Output only. URL of the manifest representing the update
    // configuration of this resource.
    Manifest string `json:"manifest,omitempty"`

    // Properties: Output only. The set of updated properties for this
    // resource, before references are expanded. Returned as serialized
    // YAML.
    Properties string `json:"properties,omitempty"`

    // State: Output only. The state of the resource.
    State string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResourceUpdate) MarshalJSON Uses

func (s *ResourceUpdate) MarshalJSON() ([]byte, error)

type ResourceUpdateError Uses

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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*ResourceUpdateError) MarshalJSON Uses

func (s *ResourceUpdateError) MarshalJSON() ([]byte, error)

type ResourceUpdateErrorErrors Uses

type ResourceUpdateErrorErrors struct {
    // Code: [Output Only] The error type identifier for this error.
    Code string `json:"code,omitempty"`

    // Location: [Output Only] Indicates the field in the request that
    // caused the error. This property is optional.
    Location string `json:"location,omitempty"`

    // Message: [Output Only] An optional, human-readable error message.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResourceUpdateErrorErrors) MarshalJSON Uses

func (s *ResourceUpdateErrorErrors) MarshalJSON() ([]byte, error)

type ResourceUpdateWarnings Uses

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.
    Code string `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.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResourceUpdateWarnings) MarshalJSON Uses

func (s *ResourceUpdateWarnings) MarshalJSON() ([]byte, error)

type ResourceUpdateWarningsData Uses

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).
    Key string `json:"key,omitempty"`

    // Value: [Output Only] A warning data value corresponding to the key.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResourceUpdateWarningsData) MarshalJSON Uses

func (s *ResourceUpdateWarningsData) MarshalJSON() ([]byte, error)

type ResourceWarnings Uses

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.
    Code string `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.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResourceWarnings) MarshalJSON Uses

func (s *ResourceWarnings) MarshalJSON() ([]byte, error)

type ResourceWarningsData Uses

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).
    Key string `json:"key,omitempty"`

    // Value: [Output Only] A warning data value corresponding to the key.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResourceWarningsData) MarshalJSON Uses

func (s *ResourceWarningsData) MarshalJSON() ([]byte, error)

type ResourcesGetCall Uses

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

func (*ResourcesGetCall) Context Uses

func (c *ResourcesGetCall) Context(ctx context.Context) *ResourcesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesGetCall) Do Uses

func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error)

Do executes the "deploymentmanager.resources.get" call. Exactly one of *Resource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Resource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesGetCall) Fields Uses

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

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

func (*ResourcesGetCall) Header Uses

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

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

func (*ResourcesGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ResourcesListCall Uses

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

func (*ResourcesListCall) Context Uses

func (c *ResourcesListCall) Context(ctx context.Context) *ResourcesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesListCall) Do Uses

func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResponse, error)

Do executes the "deploymentmanager.resources.list" call. Exactly one of *ResourcesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ResourcesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesListCall) Fields Uses

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

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

func (*ResourcesListCall) Filter Uses

func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*ResourcesListCall) Header Uses

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

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

func (*ResourcesListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ResourcesListCall) MaxResults Uses

func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *ResourcesListCall) OrderBy(orderBy string) *ResourcesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*ResourcesListCall) PageToken Uses

func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*ResourcesListCall) Pages Uses

func (c *ResourcesListCall) Pages(ctx context.Context, f func(*ResourcesListResponse) error) error

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

type ResourcesListResponse Uses

type ResourcesListResponse struct {
    // NextPageToken: A token used to continue a truncated list request.
    NextPageToken string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*ResourcesListResponse) MarshalJSON Uses

func (s *ResourcesListResponse) MarshalJSON() ([]byte, error)

type ResourcesService Uses

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

func NewResourcesService Uses

func NewResourcesService(s *Service) *ResourcesService

func (*ResourcesService) Get Uses

func (r *ResourcesService) Get(project string, deployment string, resource string) *ResourcesGetCall

Get: Gets information about a single resource.

func (*ResourcesService) List Uses

func (r *ResourcesService) List(project string, deployment string) *ResourcesListCall

List: Lists all resources in a given deployment.

type Rule Uses

type Rule struct {
    // Action: Required
    Action string `json:"action,omitempty"`

    // Conditions: Additional restrictions that must be met. All conditions
    // must pass for the rule to match.
    Conditions []*Condition `json:"conditions,omitempty"`

    // Description: Human-readable description of the rule.
    Description string `json:"description,omitempty"`

    // Ins: If one or more 'in' clauses are specified, the rule matches if
    // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
    Ins []string `json:"ins,omitempty"`

    // LogConfigs: The config returned to callers of
    // tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
    LogConfigs []*LogConfig `json:"logConfigs,omitempty"`

    // NotIns: If one or more 'not_in' clauses are specified, the rule
    // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the
    // entries.
    NotIns []string `json:"notIns,omitempty"`

    // Permissions: A permission is a string of form '..' (e.g.,
    // 'storage.buckets.list'). A value of '*' matches all permissions, and
    // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
    Permissions []string `json:"permissions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Action") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Action") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Rule: A rule to be applied in a Policy.

func (*Rule) MarshalJSON Uses

func (s *Rule) MarshalJSON() ([]byte, error)

type Service Uses

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

    CompositeTypes *CompositeTypesService

    Deployments *DeploymentsService

    Manifests *ManifestsService

    Operations *OperationsService

    Resources *ResourcesService

    TypeProviders *TypeProvidersService

    Types *TypesService
    // contains filtered or unexported fields
}

func New Uses

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

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

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

func NewService Uses

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

NewService creates a new Service.

type ServiceAccount Uses

type ServiceAccount struct {
    // Email: The IAM service account email address like
    // test@myproject.iam.gserviceaccount.com
    Email string `json:"email,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Email") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ServiceAccount: Service Account used as a credential.

func (*ServiceAccount) MarshalJSON Uses

func (s *ServiceAccount) MarshalJSON() ([]byte, error)

type TargetConfiguration Uses

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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TargetConfiguration) MarshalJSON Uses

func (s *TargetConfiguration) MarshalJSON() ([]byte, error)

type TemplateContents Uses

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.
    Interpreter string `json:"interpreter,omitempty"`

    // MainTemplate: The filename of the mainTemplate
    MainTemplate string `json:"mainTemplate,omitempty"`

    // Schema: The contents of the template schema.
    Schema string `json:"schema,omitempty"`

    // Template: The contents of the main template file.
    Template string `json:"template,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Imports") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*TemplateContents) MarshalJSON Uses

func (s *TemplateContents) MarshalJSON() ([]byte, error)

type TestPermissionsRequest Uses

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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestPermissionsRequest) MarshalJSON Uses

func (s *TestPermissionsRequest) MarshalJSON() ([]byte, error)

type TestPermissionsResponse Uses

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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestPermissionsResponse) MarshalJSON Uses

func (s *TestPermissionsResponse) MarshalJSON() ([]byte, error)

type Type Uses

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.
    Description string `json:"description,omitempty"`

    Id  uint64 `json:"id,omitempty,string"`

    // InsertTime: Output only. Creation timestamp in RFC3339 text format.
    InsertTime string `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 []*TypeLabelEntry `json:"labels,omitempty"`

    // Name: Name of the type.
    Name string `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.
    SelfLink string `json:"selfLink,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Base") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Type: A resource type supported by Deployment Manager.

func (*Type) MarshalJSON Uses

func (s *Type) MarshalJSON() ([]byte, error)

type TypeInfo Uses

type TypeInfo struct {
    // Description: The description of the type.
    Description string `json:"description,omitempty"`

    // DocumentationLink: For swagger 2.0 externalDocs field will be used.
    // For swagger 1.2 this field will be empty.
    DocumentationLink string `json:"documentationLink,omitempty"`

    // Kind: Output only. Type of the output. Always
    // deploymentManager#TypeInfo for TypeInfo.
    Kind string `json:"kind,omitempty"`

    // Name: The base type or composite type name.
    Name string `json:"name,omitempty"`

    // Schema: For base types with a collection, we return a schema and
    // documentation link For template types, we return only a schema
    Schema *TypeInfoSchemaInfo `json:"schema,omitempty"`

    // SelfLink: Output only. Self link for the type provider.
    SelfLink string `json:"selfLink,omitempty"`

    // Title: The title on the API descriptor URL provided.
    Title string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*TypeInfo) MarshalJSON Uses

func (s *TypeInfo) MarshalJSON() ([]byte, error)

type TypeInfoSchemaInfo Uses

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 V4
    Input string `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 V4
    Output string `json:"output,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Input") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TypeInfoSchemaInfo) MarshalJSON Uses

func (s *TypeInfoSchemaInfo) MarshalJSON() ([]byte, error)

type TypeLabelEntry Uses

type TypeLabelEntry struct {
    Key string `json:"key,omitempty"`

    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TypeLabelEntry) MarshalJSON Uses

func (s *TypeLabelEntry) MarshalJSON() ([]byte, error)

type TypeProvider Uses

type TypeProvider struct {
    // CollectionOverrides: Allows resource handling overrides for specific
    // collections
    CollectionOverrides []*CollectionOverride `json:"collectionOverrides,omitempty"`

    // Credential: Credential used when interacting with this type.
    Credential *Credential `json:"credential,omitempty"`

    // Description: An optional textual description of the resource;
    // provided by the client when the resource is created.
    Description string `json:"description,omitempty"`

    // DescriptorUrl: Descriptor Url for the this type provider.
    DescriptorUrl string `json:"descriptorUrl,omitempty"`

    // Id: Output only. Unique identifier for the resource defined by the
    // server.
    Id  uint64 `json:"id,omitempty,string"`

    // InsertTime: Output only. Creation timestamp in RFC3339 text format.
    InsertTime string `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 []*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.
    Name string `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.
    SelfLink string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

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

func (*TypeProvider) MarshalJSON Uses

func (s *TypeProvider) MarshalJSON() ([]byte, error)

type TypeProviderLabelEntry Uses

type TypeProviderLabelEntry struct {
    Key string `json:"key,omitempty"`

    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TypeProviderLabelEntry) MarshalJSON Uses

func (s *TypeProviderLabelEntry) MarshalJSON() ([]byte, error)

type TypeProvidersDeleteCall Uses

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

func (*TypeProvidersDeleteCall) Context Uses

func (c *TypeProvidersDeleteCall) Context(ctx context.Context) *TypeProvidersDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersDeleteCall) Do Uses

func (c *TypeProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.typeProviders.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersDeleteCall) Fields Uses

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

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

func (*TypeProvidersDeleteCall) Header Uses

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

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

type TypeProvidersGetCall Uses

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

func (*TypeProvidersGetCall) Context Uses

func (c *TypeProvidersGetCall) Context(ctx context.Context) *TypeProvidersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersGetCall) Do Uses

func (c *TypeProvidersGetCall) Do(opts ...googleapi.CallOption) (*TypeProvider, error)

Do executes the "deploymentmanager.typeProviders.get" call. Exactly one of *TypeProvider or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersGetCall) Fields Uses

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

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

func (*TypeProvidersGetCall) Header Uses

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

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

func (*TypeProvidersGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type TypeProvidersGetTypeCall Uses

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

func (*TypeProvidersGetTypeCall) Context Uses

func (c *TypeProvidersGetTypeCall) Context(ctx context.Context) *TypeProvidersGetTypeCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersGetTypeCall) Do Uses

func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo, error)

Do executes the "deploymentmanager.typeProviders.getType" call. Exactly one of *TypeInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TypeInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersGetTypeCall) Fields Uses

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

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

func (*TypeProvidersGetTypeCall) Header Uses

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

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

func (*TypeProvidersGetTypeCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type TypeProvidersInsertCall Uses

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

func (*TypeProvidersInsertCall) Context Uses

func (c *TypeProvidersInsertCall) Context(ctx context.Context) *TypeProvidersInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersInsertCall) Do Uses

func (c *TypeProvidersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.typeProviders.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersInsertCall) Fields Uses

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

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

func (*TypeProvidersInsertCall) Header Uses

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

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

type TypeProvidersListCall Uses

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

func (*TypeProvidersListCall) Context Uses

func (c *TypeProvidersListCall) Context(ctx context.Context) *TypeProvidersListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersListCall) Do Uses

func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProvidersListResponse, error)

Do executes the "deploymentmanager.typeProviders.list" call. Exactly one of *TypeProvidersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TypeProvidersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersListCall) Fields Uses

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

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

func (*TypeProvidersListCall) Filter Uses

func (c *TypeProvidersListCall) Filter(filter string) *TypeProvidersListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*TypeProvidersListCall) Header Uses

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

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

func (*TypeProvidersListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TypeProvidersListCall) MaxResults Uses

func (c *TypeProvidersListCall) MaxResults(maxResults int64) *TypeProvidersListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *TypeProvidersListCall) OrderBy(orderBy string) *TypeProvidersListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*TypeProvidersListCall) PageToken Uses

func (c *TypeProvidersListCall) PageToken(pageToken string) *TypeProvidersListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*TypeProvidersListCall) Pages Uses

func (c *TypeProvidersListCall) Pages(ctx context.Context, f func(*TypeProvidersListResponse) error) error

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

type TypeProvidersListResponse Uses

type TypeProvidersListResponse struct {
    // NextPageToken: A token used to continue a truncated list request.
    NextPageToken string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

TypeProvidersListResponse: A response that returns all Type Providers supported by Deployment Manager

func (*TypeProvidersListResponse) MarshalJSON Uses

func (s *TypeProvidersListResponse) MarshalJSON() ([]byte, error)

type TypeProvidersListTypesCall Uses

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

func (*TypeProvidersListTypesCall) Context Uses

func (c *TypeProvidersListTypesCall) Context(ctx context.Context) *TypeProvidersListTypesCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersListTypesCall) Do Uses

func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProvidersListTypesResponse, error)

Do executes the "deploymentmanager.typeProviders.listTypes" call. Exactly one of *TypeProvidersListTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TypeProvidersListTypesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersListTypesCall) Fields Uses

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

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

func (*TypeProvidersListTypesCall) Filter Uses

func (c *TypeProvidersListTypesCall) Filter(filter string) *TypeProvidersListTypesCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*TypeProvidersListTypesCall) Header Uses

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

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

func (*TypeProvidersListTypesCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TypeProvidersListTypesCall) MaxResults Uses

func (c *TypeProvidersListTypesCall) MaxResults(maxResults int64) *TypeProvidersListTypesCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *TypeProvidersListTypesCall) OrderBy(orderBy string) *TypeProvidersListTypesCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*TypeProvidersListTypesCall) PageToken Uses

func (c *TypeProvidersListTypesCall) PageToken(pageToken string) *TypeProvidersListTypesCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*TypeProvidersListTypesCall) Pages Uses

func (c *TypeProvidersListTypesCall) Pages(ctx context.Context, f func(*TypeProvidersListTypesResponse) error) error

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

type TypeProvidersListTypesResponse Uses

type TypeProvidersListTypesResponse struct {
    // NextPageToken: A token used to continue a truncated list request.
    NextPageToken string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TypeProvidersListTypesResponse) MarshalJSON Uses

func (s *TypeProvidersListTypesResponse) MarshalJSON() ([]byte, error)

type TypeProvidersPatchCall Uses

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

func (*TypeProvidersPatchCall) Context Uses

func (c *TypeProvidersPatchCall) Context(ctx context.Context) *TypeProvidersPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersPatchCall) Do Uses

func (c *TypeProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.typeProviders.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersPatchCall) Fields Uses

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

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

func (*TypeProvidersPatchCall) Header Uses

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

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

type TypeProvidersService Uses

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

func NewTypeProvidersService Uses

func NewTypeProvidersService(s *Service) *TypeProvidersService

func (*TypeProvidersService) Delete Uses

func (r *TypeProvidersService) Delete(project string, typeProvider string) *TypeProvidersDeleteCall

Delete: Deletes a type provider.

func (*TypeProvidersService) Get Uses

func (r *TypeProvidersService) Get(project string, typeProvider string) *TypeProvidersGetCall

Get: Gets information about a specific type provider.

func (*TypeProvidersService) GetType Uses

func (r *TypeProvidersService) GetType(project string, typeProvider string, type_ string) *TypeProvidersGetTypeCall

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

func (*TypeProvidersService) Insert Uses

func (r *TypeProvidersService) Insert(project string, typeprovider *TypeProvider) *TypeProvidersInsertCall

Insert: Creates a type provider.

func (*TypeProvidersService) List Uses

func (r *TypeProvidersService) List(project string) *TypeProvidersListCall

List: Lists all resource type providers for Deployment Manager.

func (*TypeProvidersService) ListTypes Uses

func (r *TypeProvidersService) ListTypes(project string, typeProvider string) *TypeProvidersListTypesCall

ListTypes: Lists all the type info for a TypeProvider.

func (*TypeProvidersService) Patch Uses

func (r *TypeProvidersService) Patch(project string, typeProvider string, typeprovider *TypeProvider) *TypeProvidersPatchCall

Patch: Updates a type provider. This method supports patch semantics.

func (*TypeProvidersService) Update Uses

func (r *TypeProvidersService) Update(project string, typeProvider string, typeprovider *TypeProvider) *TypeProvidersUpdateCall

Update: Updates a type provider.

type TypeProvidersUpdateCall Uses

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

func (*TypeProvidersUpdateCall) Context Uses

func (c *TypeProvidersUpdateCall) Context(ctx context.Context) *TypeProvidersUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypeProvidersUpdateCall) Do Uses

func (c *TypeProvidersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "deploymentmanager.typeProviders.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypeProvidersUpdateCall) Fields Uses

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

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

func (*TypeProvidersUpdateCall) Header Uses

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

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

type TypesListCall Uses

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

func (*TypesListCall) Context Uses

func (c *TypesListCall) Context(ctx context.Context) *TypesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TypesListCall) Do Uses

func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, error)

Do executes the "deploymentmanager.types.list" call. Exactly one of *TypesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TypesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TypesListCall) Fields Uses

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

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

func (*TypesListCall) Filter Uses

func (c *TypesListCall) Filter(filter string) *TypesListCall

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). 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).

func (*TypesListCall) Header Uses

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

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

func (*TypesListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TypesListCall) MaxResults Uses

func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can 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 Uses

func (c *TypesListCall) OrderBy(orderBy string) *TypesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*TypesListCall) PageToken Uses

func (c *TypesListCall) PageToken(pageToken string) *TypesListCall

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.

func (*TypesListCall) Pages Uses

func (c *TypesListCall) Pages(ctx context.Context, f func(*TypesListResponse) error) error

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

type TypesListResponse Uses

type TypesListResponse struct {
    // NextPageToken: A token used to continue a truncated list request.
    NextPageToken string `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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

TypesListResponse: A response that returns all Types supported by Deployment Manager

func (*TypesListResponse) MarshalJSON Uses

func (s *TypesListResponse) MarshalJSON() ([]byte, error)

type TypesService Uses

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

func NewTypesService Uses

func NewTypesService(s *Service) *TypesService

func (*TypesService) List Uses

func (r *TypesService) List(project string) *TypesListCall

List: Lists all resource types for Deployment Manager.

type ValidationOptions Uses

type ValidationOptions struct {
    // SchemaValidation: Customize how deployment manager will validate the
    // resource against schema errors.
    SchemaValidation string `json:"schemaValidation,omitempty"`

    // UndeclaredProperties: Specify what to do with extra properties when
    // executing a request.
    UndeclaredProperties string `json:"undeclaredProperties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "SchemaValidation") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

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

func (*ValidationOptions) MarshalJSON Uses

func (s *ValidationOptions) MarshalJSON() ([]byte, error)

Package deploymentmanager imports 14 packages (graph). Updated 2019-09-20. Refresh now. Tools for package owners.