Documentation ¶
Overview ¶
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
See https://cloud.google.com/deployment-manager/
Usage example:
import "github.com/zippoxer/google-api-go-client/deploymentmanager/v2" ... deploymentmanagerService, err := deploymentmanager.New(oauthHttpClient)
Index ¶
- Constants
- type ConfigFile
- type Deployment
- type DeploymentUpdate
- type DeploymentsCancelPreviewCall
- func (c *DeploymentsCancelPreviewCall) Context(ctx context.Context) *DeploymentsCancelPreviewCall
- func (c *DeploymentsCancelPreviewCall) Do() (*Operation, error)
- func (c *DeploymentsCancelPreviewCall) Fields(s ...googleapi.Field) *DeploymentsCancelPreviewCall
- func (c *DeploymentsCancelPreviewCall) QuotaUser(quotaUser string) *DeploymentsCancelPreviewCall
- func (c *DeploymentsCancelPreviewCall) UserIP(userIP string) *DeploymentsCancelPreviewCall
- type DeploymentsCancelPreviewRequest
- type DeploymentsDeleteCall
- func (c *DeploymentsDeleteCall) Context(ctx context.Context) *DeploymentsDeleteCall
- func (c *DeploymentsDeleteCall) Do() (*Operation, error)
- func (c *DeploymentsDeleteCall) Fields(s ...googleapi.Field) *DeploymentsDeleteCall
- func (c *DeploymentsDeleteCall) QuotaUser(quotaUser string) *DeploymentsDeleteCall
- func (c *DeploymentsDeleteCall) UserIP(userIP string) *DeploymentsDeleteCall
- type DeploymentsGetCall
- func (c *DeploymentsGetCall) Context(ctx context.Context) *DeploymentsGetCall
- func (c *DeploymentsGetCall) Do() (*Deployment, error)
- func (c *DeploymentsGetCall) Fields(s ...googleapi.Field) *DeploymentsGetCall
- func (c *DeploymentsGetCall) IfNoneMatch(entityTag string) *DeploymentsGetCall
- func (c *DeploymentsGetCall) QuotaUser(quotaUser string) *DeploymentsGetCall
- func (c *DeploymentsGetCall) UserIP(userIP string) *DeploymentsGetCall
- type DeploymentsInsertCall
- func (c *DeploymentsInsertCall) Context(ctx context.Context) *DeploymentsInsertCall
- func (c *DeploymentsInsertCall) Do() (*Operation, error)
- func (c *DeploymentsInsertCall) Fields(s ...googleapi.Field) *DeploymentsInsertCall
- func (c *DeploymentsInsertCall) Preview(preview bool) *DeploymentsInsertCall
- func (c *DeploymentsInsertCall) QuotaUser(quotaUser string) *DeploymentsInsertCall
- func (c *DeploymentsInsertCall) UserIP(userIP string) *DeploymentsInsertCall
- type DeploymentsListCall
- func (c *DeploymentsListCall) Context(ctx context.Context) *DeploymentsListCall
- func (c *DeploymentsListCall) Do() (*DeploymentsListResponse, error)
- func (c *DeploymentsListCall) Fields(s ...googleapi.Field) *DeploymentsListCall
- func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall
- func (c *DeploymentsListCall) IfNoneMatch(entityTag string) *DeploymentsListCall
- func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall
- func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall
- func (c *DeploymentsListCall) QuotaUser(quotaUser string) *DeploymentsListCall
- func (c *DeploymentsListCall) UserIP(userIP string) *DeploymentsListCall
- type DeploymentsListResponse
- type DeploymentsPatchCall
- func (c *DeploymentsPatchCall) Context(ctx context.Context) *DeploymentsPatchCall
- func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPatchCall
- func (c *DeploymentsPatchCall) DeletePolicy(deletePolicy string) *DeploymentsPatchCall
- func (c *DeploymentsPatchCall) Do() (*Operation, error)
- func (c *DeploymentsPatchCall) Fields(s ...googleapi.Field) *DeploymentsPatchCall
- func (c *DeploymentsPatchCall) Preview(preview bool) *DeploymentsPatchCall
- func (c *DeploymentsPatchCall) QuotaUser(quotaUser string) *DeploymentsPatchCall
- func (c *DeploymentsPatchCall) UserIP(userIP string) *DeploymentsPatchCall
- type DeploymentsService
- func (r *DeploymentsService) CancelPreview(project string, deployment string, ...) *DeploymentsCancelPreviewCall
- func (r *DeploymentsService) Delete(project string, deployment string) *DeploymentsDeleteCall
- func (r *DeploymentsService) Get(project string, deployment string) *DeploymentsGetCall
- func (r *DeploymentsService) Insert(project string, deployment *Deployment) *DeploymentsInsertCall
- func (r *DeploymentsService) List(project string) *DeploymentsListCall
- func (r *DeploymentsService) Patch(project string, deployment string, deployment2 *Deployment) *DeploymentsPatchCall
- func (r *DeploymentsService) Stop(project string, deployment string, ...) *DeploymentsStopCall
- func (r *DeploymentsService) Update(project string, deployment string, deployment2 *Deployment) *DeploymentsUpdateCall
- type DeploymentsStopCall
- func (c *DeploymentsStopCall) Context(ctx context.Context) *DeploymentsStopCall
- func (c *DeploymentsStopCall) Do() (*Operation, error)
- func (c *DeploymentsStopCall) Fields(s ...googleapi.Field) *DeploymentsStopCall
- func (c *DeploymentsStopCall) QuotaUser(quotaUser string) *DeploymentsStopCall
- func (c *DeploymentsStopCall) UserIP(userIP string) *DeploymentsStopCall
- type DeploymentsStopRequest
- type DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) Context(ctx context.Context) *DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicy string) *DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) Do() (*Operation, error)
- func (c *DeploymentsUpdateCall) Fields(s ...googleapi.Field) *DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) Preview(preview bool) *DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) QuotaUser(quotaUser string) *DeploymentsUpdateCall
- func (c *DeploymentsUpdateCall) UserIP(userIP string) *DeploymentsUpdateCall
- type ImportFile
- type Manifest
- type ManifestsGetCall
- func (c *ManifestsGetCall) Context(ctx context.Context) *ManifestsGetCall
- func (c *ManifestsGetCall) Do() (*Manifest, error)
- func (c *ManifestsGetCall) Fields(s ...googleapi.Field) *ManifestsGetCall
- func (c *ManifestsGetCall) IfNoneMatch(entityTag string) *ManifestsGetCall
- func (c *ManifestsGetCall) QuotaUser(quotaUser string) *ManifestsGetCall
- func (c *ManifestsGetCall) UserIP(userIP string) *ManifestsGetCall
- type ManifestsListCall
- func (c *ManifestsListCall) Context(ctx context.Context) *ManifestsListCall
- func (c *ManifestsListCall) Do() (*ManifestsListResponse, error)
- func (c *ManifestsListCall) Fields(s ...googleapi.Field) *ManifestsListCall
- func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall
- func (c *ManifestsListCall) IfNoneMatch(entityTag string) *ManifestsListCall
- func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall
- func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall
- func (c *ManifestsListCall) QuotaUser(quotaUser string) *ManifestsListCall
- func (c *ManifestsListCall) UserIP(userIP string) *ManifestsListCall
- type ManifestsListResponse
- type ManifestsService
- type Operation
- type OperationError
- type OperationErrorErrors
- type OperationWarnings
- type OperationWarningsData
- type OperationsGetCall
- func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
- func (c *OperationsGetCall) Do() (*Operation, error)
- func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
- func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
- func (c *OperationsGetCall) QuotaUser(quotaUser string) *OperationsGetCall
- func (c *OperationsGetCall) UserIP(userIP string) *OperationsGetCall
- type OperationsListCall
- func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall
- func (c *OperationsListCall) Do() (*OperationsListResponse, error)
- func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
- func (c *OperationsListCall) Filter(filter string) *OperationsListCall
- func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall
- func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall
- func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
- func (c *OperationsListCall) QuotaUser(quotaUser string) *OperationsListCall
- func (c *OperationsListCall) UserIP(userIP string) *OperationsListCall
- type OperationsListResponse
- type OperationsService
- type Resource
- type ResourceUpdate
- type ResourceUpdateError
- type ResourceUpdateErrorErrors
- type ResourceUpdateWarnings
- type ResourceUpdateWarningsData
- type ResourceWarnings
- type ResourceWarningsData
- type ResourcesGetCall
- func (c *ResourcesGetCall) Context(ctx context.Context) *ResourcesGetCall
- func (c *ResourcesGetCall) Do() (*Resource, error)
- func (c *ResourcesGetCall) Fields(s ...googleapi.Field) *ResourcesGetCall
- func (c *ResourcesGetCall) IfNoneMatch(entityTag string) *ResourcesGetCall
- func (c *ResourcesGetCall) QuotaUser(quotaUser string) *ResourcesGetCall
- func (c *ResourcesGetCall) UserIP(userIP string) *ResourcesGetCall
- type ResourcesListCall
- func (c *ResourcesListCall) Context(ctx context.Context) *ResourcesListCall
- func (c *ResourcesListCall) Do() (*ResourcesListResponse, error)
- func (c *ResourcesListCall) Fields(s ...googleapi.Field) *ResourcesListCall
- func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall
- func (c *ResourcesListCall) IfNoneMatch(entityTag string) *ResourcesListCall
- func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall
- func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall
- func (c *ResourcesListCall) QuotaUser(quotaUser string) *ResourcesListCall
- func (c *ResourcesListCall) UserIP(userIP string) *ResourcesListCall
- type ResourcesListResponse
- type ResourcesService
- type Service
- type TargetConfiguration
- type Type
- type TypesListCall
- func (c *TypesListCall) Context(ctx context.Context) *TypesListCall
- func (c *TypesListCall) Do() (*TypesListResponse, error)
- func (c *TypesListCall) Fields(s ...googleapi.Field) *TypesListCall
- func (c *TypesListCall) Filter(filter string) *TypesListCall
- func (c *TypesListCall) IfNoneMatch(entityTag string) *TypesListCall
- func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall
- func (c *TypesListCall) PageToken(pageToken string) *TypesListCall
- func (c *TypesListCall) QuotaUser(quotaUser string) *TypesListCall
- func (c *TypesListCall) UserIP(userIP string) *TypesListCall
- type TypesListResponse
- type TypesService
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.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFile ¶
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:"-"` }
func (*ConfigFile) MarshalJSON ¶
func (s *ConfigFile) MarshalJSON() ([]byte, error)
type Deployment ¶
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: [Output Only] Unique identifier for the resource; defined by the // server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] Timestamp when the deployment was created, // in RFC3339 text format . InsertTime string `json:"insertTime,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"` // 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"` // 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:"-"` }
func (*Deployment) MarshalJSON ¶
func (s *Deployment) MarshalJSON() ([]byte, error)
type DeploymentUpdate ¶
type DeploymentUpdate struct { // 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. "Manifest") 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:"-"` }
func (*DeploymentUpdate) MarshalJSON ¶
func (s *DeploymentUpdate) MarshalJSON() ([]byte, error)
type DeploymentsCancelPreviewCall ¶
type DeploymentsCancelPreviewCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsCancelPreviewCall) Context ¶
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 ¶
func (c *DeploymentsCancelPreviewCall) Do() (*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 ¶
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) QuotaUser ¶
func (c *DeploymentsCancelPreviewCall) QuotaUser(quotaUser string) *DeploymentsCancelPreviewCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsCancelPreviewCall) UserIP ¶
func (c *DeploymentsCancelPreviewCall) UserIP(userIP string) *DeploymentsCancelPreviewCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsCancelPreviewRequest ¶
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 to a 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:"-"` }
func (*DeploymentsCancelPreviewRequest) MarshalJSON ¶
func (s *DeploymentsCancelPreviewRequest) MarshalJSON() ([]byte, error)
type DeploymentsDeleteCall ¶
type DeploymentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsDeleteCall) Context ¶
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) Do ¶
func (c *DeploymentsDeleteCall) Do() (*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 ¶
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) QuotaUser ¶
func (c *DeploymentsDeleteCall) QuotaUser(quotaUser string) *DeploymentsDeleteCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsDeleteCall) UserIP ¶
func (c *DeploymentsDeleteCall) UserIP(userIP string) *DeploymentsDeleteCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsGetCall ¶
type DeploymentsGetCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsGetCall) Context ¶
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 ¶
func (c *DeploymentsGetCall) Do() (*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 ¶
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) IfNoneMatch ¶
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.
func (*DeploymentsGetCall) QuotaUser ¶
func (c *DeploymentsGetCall) QuotaUser(quotaUser string) *DeploymentsGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsGetCall) UserIP ¶
func (c *DeploymentsGetCall) UserIP(userIP string) *DeploymentsGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsInsertCall ¶
type DeploymentsInsertCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsInsertCall) Context ¶
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) Do ¶
func (c *DeploymentsInsertCall) Do() (*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 ¶
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) Preview ¶
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.
func (*DeploymentsInsertCall) QuotaUser ¶
func (c *DeploymentsInsertCall) QuotaUser(quotaUser string) *DeploymentsInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsInsertCall) UserIP ¶
func (c *DeploymentsInsertCall) UserIP(userIP string) *DeploymentsInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsListCall ¶
type DeploymentsListCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsListCall) Context ¶
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 ¶
func (c *DeploymentsListCall) Do() (*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 ¶
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 ¶
func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall
Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions meaning that resources must match all expressions to pass the filters.
func (*DeploymentsListCall) IfNoneMatch ¶
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 ¶
func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that Compute Engine should return. 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.
func (*DeploymentsListCall) PageToken ¶
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) QuotaUser ¶
func (c *DeploymentsListCall) QuotaUser(quotaUser string) *DeploymentsListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsListCall) UserIP ¶
func (c *DeploymentsListCall) UserIP(userIP string) *DeploymentsListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsListResponse ¶
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:"-"` }
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 ¶
func (s *DeploymentsListResponse) MarshalJSON() ([]byte, error)
type DeploymentsPatchCall ¶
type DeploymentsPatchCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsPatchCall) Context ¶
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 ¶
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_OR_ACQUIRE" (default)
func (*DeploymentsPatchCall) DeletePolicy ¶
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 ¶
func (c *DeploymentsPatchCall) Do() (*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 ¶
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) Preview ¶
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 looks 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.
func (*DeploymentsPatchCall) QuotaUser ¶
func (c *DeploymentsPatchCall) QuotaUser(quotaUser string) *DeploymentsPatchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsPatchCall) UserIP ¶
func (c *DeploymentsPatchCall) UserIP(userIP string) *DeploymentsPatchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsService ¶
type DeploymentsService struct {
// contains filtered or unexported fields
}
func NewDeploymentsService ¶
func NewDeploymentsService(s *Service) *DeploymentsService
func (*DeploymentsService) CancelPreview ¶
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 ¶
func (r *DeploymentsService) Delete(project string, deployment string) *DeploymentsDeleteCall
Delete: Deletes a deployment and all of the resources in the deployment.
func (*DeploymentsService) Get ¶
func (r *DeploymentsService) Get(project string, deployment string) *DeploymentsGetCall
Get: Gets information about a specific deployment.
func (*DeploymentsService) Insert ¶
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 ¶
func (r *DeploymentsService) List(project string) *DeploymentsListCall
List: Lists all deployments for a given project.
func (*DeploymentsService) Patch ¶
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) Stop ¶
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) Update ¶
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 DeploymentsStopCall ¶
type DeploymentsStopCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsStopCall) Context ¶
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 ¶
func (c *DeploymentsStopCall) Do() (*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 ¶
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) QuotaUser ¶
func (c *DeploymentsStopCall) QuotaUser(quotaUser string) *DeploymentsStopCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsStopCall) UserIP ¶
func (c *DeploymentsStopCall) UserIP(userIP string) *DeploymentsStopCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type DeploymentsStopRequest ¶
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 to a 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:"-"` }
func (*DeploymentsStopRequest) MarshalJSON ¶
func (s *DeploymentsStopRequest) MarshalJSON() ([]byte, error)
type DeploymentsUpdateCall ¶
type DeploymentsUpdateCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsUpdateCall) Context ¶
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 ¶
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_OR_ACQUIRE" (default)
func (*DeploymentsUpdateCall) DeletePolicy ¶
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 ¶
func (c *DeploymentsUpdateCall) Do() (*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 ¶
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) Preview ¶
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 looks 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.
func (*DeploymentsUpdateCall) QuotaUser ¶
func (c *DeploymentsUpdateCall) QuotaUser(quotaUser string) *DeploymentsUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*DeploymentsUpdateCall) UserIP ¶
func (c *DeploymentsUpdateCall) UserIP(userIP string) *DeploymentsUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ImportFile ¶
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:"-"` }
func (*ImportFile) MarshalJSON ¶
func (s *ImportFile) MarshalJSON() ([]byte, error)
type Manifest ¶
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: [Output Only] Unique identifier for the resource; defined by the // server. Id uint64 `json:"id,omitempty,string"` // Imports: [Output Only] The imported files for this manifest. Imports []*ImportFile `json:"imports,omitempty"` // InsertTime: [Output Only] Timestamp when the manifest was created, 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:"-"` }
func (*Manifest) MarshalJSON ¶
type ManifestsGetCall ¶
type ManifestsGetCall struct {
// contains filtered or unexported fields
}
func (*ManifestsGetCall) Context ¶
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 ¶
func (c *ManifestsGetCall) Do() (*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 ¶
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) IfNoneMatch ¶
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.
func (*ManifestsGetCall) QuotaUser ¶
func (c *ManifestsGetCall) QuotaUser(quotaUser string) *ManifestsGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ManifestsGetCall) UserIP ¶
func (c *ManifestsGetCall) UserIP(userIP string) *ManifestsGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ManifestsListCall ¶
type ManifestsListCall struct {
// contains filtered or unexported fields
}
func (*ManifestsListCall) Context ¶
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 ¶
func (c *ManifestsListCall) Do() (*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 ¶
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 ¶
func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall
Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions meaning that resources must match all expressions to pass the filters.
func (*ManifestsListCall) IfNoneMatch ¶
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 ¶
func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that Compute Engine should return. 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.
func (*ManifestsListCall) PageToken ¶
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) QuotaUser ¶
func (c *ManifestsListCall) QuotaUser(quotaUser string) *ManifestsListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ManifestsListCall) UserIP ¶
func (c *ManifestsListCall) UserIP(userIP string) *ManifestsListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ManifestsListResponse ¶
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:"-"` }
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 ¶
func (s *ManifestsListResponse) MarshalJSON() ([]byte, error)
type ManifestsService ¶
type ManifestsService struct {
// contains filtered or unexported fields
}
func NewManifestsService ¶
func NewManifestsService(s *Service) *ManifestsService
func (*ManifestsService) Get ¶
func (r *ManifestsService) Get(project string, deployment string, manifest string) *ManifestsGetCall
Get: Gets information about a specific manifest.
func (*ManifestsService) List ¶
func (r *ManifestsService) List(project string, deployment string) *ManifestsListCall
List: Lists all manifests for a given deployment.
type Operation ¶
type Operation struct { // ClientOperationId: [Output Only] A unique client ID generated by the // server. ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. 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, which can be // insert, update, or delete. 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] URL of the region where the operation resides. // Only available when performing regional operations. 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 // is modifying. 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] URL of the zone where the operation resides. Only // available when performing per-zone operations. 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:"-"` }
Operation: An Operation resource, used to manage asynchronous API requests.
func (*Operation) MarshalJSON ¶
type OperationError ¶
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:"-"` }
OperationError: [Output Only] If errors are generated during processing of the operation, this field will be populated.
func (*OperationError) MarshalJSON ¶
func (s *OperationError) MarshalJSON() ([]byte, error)
type OperationErrorErrors ¶
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 which // 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:"-"` }
func (*OperationErrorErrors) MarshalJSON ¶
func (s *OperationErrorErrors) MarshalJSON() ([]byte, error)
type OperationWarnings ¶
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:"-"` }
func (*OperationWarnings) MarshalJSON ¶
func (s *OperationWarnings) MarshalJSON() ([]byte, error)
type OperationWarningsData ¶
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:"-"` }
func (*OperationWarningsData) MarshalJSON ¶
func (s *OperationWarningsData) MarshalJSON() ([]byte, error)
type OperationsGetCall ¶
type OperationsGetCall struct {
// contains filtered or unexported fields
}
func (*OperationsGetCall) Context ¶
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 ¶
func (c *OperationsGetCall) Do() (*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 ¶
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) IfNoneMatch ¶
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.
func (*OperationsGetCall) QuotaUser ¶
func (c *OperationsGetCall) QuotaUser(quotaUser string) *OperationsGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*OperationsGetCall) UserIP ¶
func (c *OperationsGetCall) UserIP(userIP string) *OperationsGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type OperationsListCall ¶
type OperationsListCall struct {
// contains filtered or unexported fields
}
func (*OperationsListCall) Context ¶
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 ¶
func (c *OperationsListCall) Do() (*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 ¶
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 ¶
func (c *OperationsListCall) Filter(filter string) *OperationsListCall
Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions meaning that resources must match all expressions to pass the filters.
func (*OperationsListCall) IfNoneMatch ¶
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 ¶
func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that Compute Engine should return. 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.
func (*OperationsListCall) PageToken ¶
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) QuotaUser ¶
func (c *OperationsListCall) QuotaUser(quotaUser string) *OperationsListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*OperationsListCall) UserIP ¶
func (c *OperationsListCall) UserIP(userIP string) *OperationsListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type OperationsListResponse ¶
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:"-"` }
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 ¶
func (s *OperationsListResponse) MarshalJSON() ([]byte, error)
type OperationsService ¶
type OperationsService struct {
// contains filtered or unexported fields
}
func NewOperationsService ¶
func NewOperationsService(s *Service) *OperationsService
func (*OperationsService) Get ¶
func (r *OperationsService) Get(project string, operation string) *OperationsGetCall
Get: Gets information about a specific operation.
func (*OperationsService) List ¶
func (r *OperationsService) List(project string) *OperationsListCall
List: Lists all operations for a project.
type Resource ¶
type Resource struct { // FinalProperties: [Output Only] The evaluated properties of the // resource with references expanded. Returned as serialized YAML. FinalProperties string `json:"finalProperties,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] Timestamp when the resource was created or // acquired, 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 replicaPools.v1beta2.instanceGroupManager. 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] Timestamp when the resource was updated, 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. "FinalProperties") 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:"-"` }
func (*Resource) MarshalJSON ¶
type ResourceUpdate ¶
type ResourceUpdate struct { // 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. "Error") 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:"-"` }
func (*ResourceUpdate) MarshalJSON ¶
func (s *ResourceUpdate) MarshalJSON() ([]byte, error)
type ResourceUpdateError ¶
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:"-"` }
ResourceUpdateError: [Output Only] If errors are generated during update of the resource, this field will be populated.
func (*ResourceUpdateError) MarshalJSON ¶
func (s *ResourceUpdateError) MarshalJSON() ([]byte, error)
type ResourceUpdateErrorErrors ¶
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 which // 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:"-"` }
func (*ResourceUpdateErrorErrors) MarshalJSON ¶
func (s *ResourceUpdateErrorErrors) MarshalJSON() ([]byte, error)
type ResourceUpdateWarnings ¶
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:"-"` }
func (*ResourceUpdateWarnings) MarshalJSON ¶
func (s *ResourceUpdateWarnings) MarshalJSON() ([]byte, error)
type ResourceUpdateWarningsData ¶
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:"-"` }
func (*ResourceUpdateWarningsData) MarshalJSON ¶
func (s *ResourceUpdateWarningsData) MarshalJSON() ([]byte, error)
type ResourceWarnings ¶
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:"-"` }
func (*ResourceWarnings) MarshalJSON ¶
func (s *ResourceWarnings) MarshalJSON() ([]byte, error)
type ResourceWarningsData ¶
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:"-"` }
func (*ResourceWarningsData) MarshalJSON ¶
func (s *ResourceWarningsData) MarshalJSON() ([]byte, error)
type ResourcesGetCall ¶
type ResourcesGetCall struct {
// contains filtered or unexported fields
}
func (*ResourcesGetCall) Context ¶
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 ¶
func (c *ResourcesGetCall) Do() (*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 ¶
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) IfNoneMatch ¶
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.
func (*ResourcesGetCall) QuotaUser ¶
func (c *ResourcesGetCall) QuotaUser(quotaUser string) *ResourcesGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ResourcesGetCall) UserIP ¶
func (c *ResourcesGetCall) UserIP(userIP string) *ResourcesGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ResourcesListCall ¶
type ResourcesListCall struct {
// contains filtered or unexported fields
}
func (*ResourcesListCall) Context ¶
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 ¶
func (c *ResourcesListCall) Do() (*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 ¶
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 ¶
func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall
Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions meaning that resources must match all expressions to pass the filters.
func (*ResourcesListCall) IfNoneMatch ¶
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 ¶
func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that Compute Engine should return. 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.
func (*ResourcesListCall) PageToken ¶
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) QuotaUser ¶
func (c *ResourcesListCall) QuotaUser(quotaUser string) *ResourcesListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ResourcesListCall) UserIP ¶
func (c *ResourcesListCall) UserIP(userIP string) *ResourcesListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ResourcesListResponse ¶
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:"-"` }
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 ¶
func (s *ResourcesListResponse) MarshalJSON() ([]byte, error)
type ResourcesService ¶
type ResourcesService struct {
// contains filtered or unexported fields
}
func NewResourcesService ¶
func NewResourcesService(s *Service) *ResourcesService
func (*ResourcesService) Get ¶
func (r *ResourcesService) Get(project string, deployment string, resource string) *ResourcesGetCall
Get: Gets information about a single resource.
func (*ResourcesService) List ¶
func (r *ResourcesService) List(project string, deployment string) *ResourcesListCall
List: Lists all resources in a given deployment.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Deployments *DeploymentsService Manifests *ManifestsService Operations *OperationsService Resources *ResourcesService Types *TypesService // contains filtered or unexported fields }
type TargetConfiguration ¶
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:"-"` }
func (*TargetConfiguration) MarshalJSON ¶
func (s *TargetConfiguration) MarshalJSON() ([]byte, error)
type Type ¶
type Type struct { // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] Timestamp when the type was created, in // RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` // Name: Name of the type. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Self link for the type. SelfLink string `json:"selfLink,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") 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:"-"` }
Type: A resource type supported by Deployment Manager.
func (*Type) MarshalJSON ¶
type TypesListCall ¶
type TypesListCall struct {
// contains filtered or unexported fields
}
func (*TypesListCall) Context ¶
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 ¶
func (c *TypesListCall) Do() (*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 ¶
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 ¶
func (c *TypesListCall) Filter(filter string) *TypesListCall
Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions meaning that resources must match all expressions to pass the filters.
func (*TypesListCall) IfNoneMatch ¶
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 ¶
func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that Compute Engine should return. 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.
func (*TypesListCall) PageToken ¶
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) QuotaUser ¶
func (c *TypesListCall) QuotaUser(quotaUser string) *TypesListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*TypesListCall) UserIP ¶
func (c *TypesListCall) UserIP(userIP string) *TypesListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type TypesListResponse ¶
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:"-"` }
TypesListResponse: A response that returns all Types supported by Deployment Manager
func (*TypesListResponse) MarshalJSON ¶
func (s *TypesListResponse) MarshalJSON() ([]byte, error)
type TypesService ¶
type TypesService struct {
// contains filtered or unexported fields
}
func NewTypesService ¶
func NewTypesService(s *Service) *TypesService
func (*TypesService) List ¶
func (r *TypesService) List(project string) *TypesListCall
List: Lists all resource types for Deployment Manager.