Documentation ¶
Overview ¶
Package deploymentmanager provides access to the Google Cloud Deployment Manager API V2.
See https://developers.google.com/deployment-manager/
Usage example:
import "google.golang.org/api/deploymentmanager/v2beta2" ... deploymentmanagerService, err := deploymentmanager.New(oauthHttpClient)
Index ¶
- Constants
- type Deployment
- type DeploymentUpdate
- type DeploymentsDeleteCall
- type DeploymentsGetCall
- type DeploymentsInsertCall
- type 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) MaxResults(maxResults int64) *DeploymentsListCall
- func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall
- type DeploymentsListResponse
- type 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) UpdatePolicy(updatePolicy string) *DeploymentsPatchCall
- type DeploymentsService
- 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) Update(project string, deployment string, deployment2 *Deployment) *DeploymentsUpdateCall
- type 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) UpdatePolicy(updatePolicy string) *DeploymentsUpdateCall
- type ImportFile
- type Manifest
- type ManifestsGetCall
- type 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) MaxResults(maxResults int64) *ManifestsListCall
- func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall
- type ManifestsListResponse
- type ManifestsService
- type Operation
- type OperationError
- type OperationErrorErrors
- type OperationWarnings
- type OperationWarningsData
- type OperationsGetCall
- type 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) MaxResults(maxResults int64) *OperationsListCall
- func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
- type OperationsListResponse
- type OperationsService
- type Resource
- type ResourceUpdate
- type ResourcesGetCall
- type 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) MaxResults(maxResults int64) *ResourcesListCall
- func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall
- type ResourcesListResponse
- type ResourcesService
- type Service
- type TargetConfiguration
- type Type
- type 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) MaxResults(maxResults int64) *TypesListCall
- func (c *TypesListCall) PageToken(pageToken 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 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 Deployment ¶
type Deployment struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format . CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional user-provided description of the deployment. Description string `json:"description,omitempty"` // Fingerprint: Supply the fingerprint value for update requests. The // fingerprint value is generated by the server and ensures optimistic // concurrency (so that only one update can be performed at a time). The // fingerprint changes after each update. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id uint64 `json:"id,omitempty,string"` // Intent: [Input Only] Specifies how to Deployment Manager should apply // this template. Possible options are PREVIEW, UPDATE, and // CANCEL. // // PREVIEW creates a deployment and creates "shell" resources but does // not actually instantiate these resources. This allows you to preview // what your deployment looks like. You can use this intent to preview // updates to deployments or preview new deployments. You must provide a // targetConfig with a configuration for this intent. After previewing a // deployment, you can deploy your resources by making a request with // the UPDATE intent or you can 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. // // UPDATE performs an update to the underlying resources in a // deployment. If you provide a populated targetConfig field with this // request, Deployment Manager uses that configuration to perform an // update. If you had previewed this update beforehand, and do not // supply a targetConfig or provide an empty targetConfig, Deployment // Manager uses the last previewed configuration. // // CANCEL cancels an update that is in PREVIEW or UPDATE but does not // undo any changes already made. Intent string `json:"intent,omitempty"` // Manifest: [Output Only] URL of the manifest representing the last // manifest that was successfully deployed. Manifest string `json:"manifest,omitempty"` // Name: The name of the deployment, which must be unique within the // project. Name string `json:"name,omitempty"` // State: [Output Only] The current state of the deployment. This can be // DEPLOYED, DEPLOYMENT_FAILED, PREVIEWING, UPDATING, and CANCELING. State string `json:"state,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"` }
type DeploymentUpdate ¶
type DeploymentUpdate struct { // Errors: [Output Only] List of all errors encountered while trying to // enact the update. Errors []string `json:"errors,omitempty"` // Manifest: [Output Only] URL of the manifest representing the update // configuration of this deployment. Manifest string `json:"manifest,omitempty"` }
type DeploymentsDeleteCall ¶
type DeploymentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsDeleteCall) Do ¶
func (c *DeploymentsDeleteCall) Do() (*Operation, error)
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.
type DeploymentsGetCall ¶
type DeploymentsGetCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsGetCall) Do ¶
func (c *DeploymentsGetCall) Do() (*Deployment, error)
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.
type DeploymentsInsertCall ¶
type DeploymentsInsertCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsInsertCall) Do ¶
func (c *DeploymentsInsertCall) Do() (*Operation, error)
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.
type DeploymentsListCall ¶
type DeploymentsListCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsListCall) Do ¶
func (c *DeploymentsListCall) Do() (*DeploymentsListResponse, error)
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": Filter expression for filtering listed resources.
func (*DeploymentsListCall) MaxResults ¶
func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*DeploymentsListCall) PageToken ¶
func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type DeploymentsListResponse ¶
type DeploymentsListResponse struct { // Deployments: The deployments contained in this response. Deployments []*Deployment `json:"deployments,omitempty"` // NextPageToken: A token used to continue a truncated list request // (output only). NextPageToken string `json:"nextPageToken,omitempty"` }
type DeploymentsPatchCall ¶
type DeploymentsPatchCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsPatchCall) CreatePolicy ¶
func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPatchCall
CreatePolicy sets the optional parameter "createPolicy":
Possible values:
"ACQUIRE" "CREATE_OR_ACQUIRE" (default)
func (*DeploymentsPatchCall) DeletePolicy ¶
func (c *DeploymentsPatchCall) DeletePolicy(deletePolicy string) *DeploymentsPatchCall
DeletePolicy sets the optional parameter "deletePolicy":
Possible values:
"ABANDON" "DELETE" (default)
func (*DeploymentsPatchCall) Do ¶
func (c *DeploymentsPatchCall) Do() (*Operation, error)
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) UpdatePolicy ¶
func (c *DeploymentsPatchCall) UpdatePolicy(updatePolicy string) *DeploymentsPatchCall
UpdatePolicy sets the optional parameter "updatePolicy":
Possible values:
"PATCH" (default) "UPDATE"
type DeploymentsService ¶
type DeploymentsService struct {
// contains filtered or unexported fields
}
func NewDeploymentsService ¶
func NewDeploymentsService(s *Service) *DeploymentsService
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) 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 DeploymentsUpdateCall ¶
type DeploymentsUpdateCall struct {
// contains filtered or unexported fields
}
func (*DeploymentsUpdateCall) CreatePolicy ¶
func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUpdateCall
CreatePolicy sets the optional parameter "createPolicy":
Possible values:
"ACQUIRE" "CREATE_OR_ACQUIRE" (default)
func (*DeploymentsUpdateCall) DeletePolicy ¶
func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicy string) *DeploymentsUpdateCall
DeletePolicy sets the optional parameter "deletePolicy":
Possible values:
"ABANDON" "DELETE" (default)
func (*DeploymentsUpdateCall) Do ¶
func (c *DeploymentsUpdateCall) Do() (*Operation, error)
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) UpdatePolicy ¶
func (c *DeploymentsUpdateCall) UpdatePolicy(updatePolicy string) *DeploymentsUpdateCall
UpdatePolicy sets the optional parameter "updatePolicy":
Possible values:
"PATCH" (default) "UPDATE"
type ImportFile ¶
type Manifest ¶
type Manifest struct { // Config: [Output Only] The YAML configuration for this manifest. Config string `json:"config,omitempty"` // CreationTimestamp: Creation timestamp in RFC3339 text format (output // only). CreationTimestamp string `json:"creationTimestamp,omitempty"` // EvaluatedConfig: [Output Only] The fully-expanded configuration file, // including any templates and references. EvaluatedConfig string `json:"evaluatedConfig,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"` // 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"` }
type ManifestsGetCall ¶
type ManifestsGetCall struct {
// contains filtered or unexported fields
}
func (*ManifestsGetCall) Do ¶
func (c *ManifestsGetCall) Do() (*Manifest, error)
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.
type ManifestsListCall ¶
type ManifestsListCall struct {
// contains filtered or unexported fields
}
func (*ManifestsListCall) Do ¶
func (c *ManifestsListCall) Do() (*ManifestsListResponse, error)
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": Filter expression for filtering listed resources.
func (*ManifestsListCall) MaxResults ¶
func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*ManifestsListCall) PageToken ¶
func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type ManifestsListResponse ¶
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] An optional identifier specified by // the client when the mutation was initiated. Must be unique for all // operation resources in the project ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // EndTime: [Output Only] The time that this operation was completed. // This 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 message that was returned, such as 404. HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] The time that this operation was requested. // This 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] Type of the operation, such as insert, // update, and 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 at // when the operation will be complete. This number should be // monotonically increasing as the operation progresses. Progress int64 `json:"progress,omitempty"` // Region: [Output Only] URL of the region where the operation resides. // Only applicable for regional resources. 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 is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` // Status: [Output Only] Status of the operation. 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] Unique target ID which identifies a // particular incarnation of the target. TargetId uint64 `json:"targetId,omitempty,string"` // TargetLink: [Output Only] URL of the resource the operation is // mutating. 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. Zone string `json:"zone,omitempty"` }
type OperationError ¶
type OperationError struct { // Errors: [Output Only] The array of errors encountered while // processing this operation. Errors []*OperationErrorErrors `json:"errors,omitempty"` }
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"` }
type OperationWarnings ¶
type OperationWarnings struct { // Code: [Output Only] The warning type identifier for this warning. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata for this warning in key: value format. Data []*OperationWarningsData `json:"data,omitempty"` // Message: [Output Only] Optional human-readable details for this // warning. Message string `json:"message,omitempty"` }
type OperationWarningsData ¶
type OperationsGetCall ¶
type OperationsGetCall struct {
// contains filtered or unexported fields
}
func (*OperationsGetCall) Do ¶
func (c *OperationsGetCall) Do() (*Operation, error)
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.
type OperationsListCall ¶
type OperationsListCall struct {
// contains filtered or unexported fields
}
func (*OperationsListCall) Do ¶
func (c *OperationsListCall) Do() (*OperationsListResponse, error)
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": Filter expression for filtering listed resources.
func (*OperationsListCall) MaxResults ¶
func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*OperationsListCall) PageToken ¶
func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type OperationsListResponse ¶
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"` // 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"` // Url: [Output Only] The URL of the actual resource. Url string `json:"url,omitempty"` }
type ResourceUpdate ¶
type ResourceUpdate struct { // Errors: [Output Only] List of all errors encountered while trying to // enact update.intent. Errors []string `json:"errors,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. 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"` }
type ResourcesGetCall ¶
type ResourcesGetCall struct {
// contains filtered or unexported fields
}
func (*ResourcesGetCall) Do ¶
func (c *ResourcesGetCall) Do() (*Resource, error)
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.
type ResourcesListCall ¶
type ResourcesListCall struct {
// contains filtered or unexported fields
}
func (*ResourcesListCall) Do ¶
func (c *ResourcesListCall) Do() (*ResourcesListResponse, error)
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": Filter expression for filtering listed resources.
func (*ResourcesListCall) MaxResults ¶
func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*ResourcesListCall) PageToken ¶
func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type ResourcesListResponse ¶
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 string `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"` }
type TypesListCall ¶
type TypesListCall struct {
// contains filtered or unexported fields
}
func (*TypesListCall) Do ¶
func (c *TypesListCall) Do() (*TypesListResponse, error)
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": Filter expression for filtering listed resources.
func (*TypesListCall) MaxResults ¶
func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*TypesListCall) PageToken ¶
func (c *TypesListCall) PageToken(pageToken string) *TypesListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type TypesListResponse ¶
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.