Documentation ¶
Overview ¶
Package replicapool provides access to the Google Compute Engine Instance Group Manager API.
See https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
Usage example:
import "code.google.com/p/google-api-go-client/replicapool/v1beta2" ... replicapoolService, err := replicapool.New(oauthHttpClient)
Index ¶
- Constants
- type InstanceGroupManager
- type InstanceGroupManagerList
- type InstanceGroupManagersAbandonInstancesCall
- type InstanceGroupManagersAbandonInstancesRequest
- type InstanceGroupManagersDeleteCall
- type InstanceGroupManagersDeleteInstancesCall
- type InstanceGroupManagersDeleteInstancesRequest
- type InstanceGroupManagersGetCall
- type InstanceGroupManagersInsertCall
- type InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Do() (*InstanceGroupManagerList, error)
- func (c *InstanceGroupManagersListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Filter(filter string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) MaxResults(maxResults int64) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) PageToken(pageToken string) *InstanceGroupManagersListCall
- type InstanceGroupManagersRecreateInstancesCall
- type InstanceGroupManagersRecreateInstancesRequest
- type InstanceGroupManagersResizeCall
- type InstanceGroupManagersService
- func (r *InstanceGroupManagersService) AbandonInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersAbandonInstancesCall
- func (r *InstanceGroupManagersService) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall
- func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersDeleteInstancesCall
- func (r *InstanceGroupManagersService) Get(project string, zone string, instanceGroupManager string) *InstanceGroupManagersGetCall
- func (r *InstanceGroupManagersService) Insert(project string, zone string, size int64, ...) *InstanceGroupManagersInsertCall
- func (r *InstanceGroupManagersService) List(project string, zone string) *InstanceGroupManagersListCall
- func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersRecreateInstancesCall
- func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall
- func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetInstanceTemplateCall
- func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetTargetPoolsCall
- type InstanceGroupManagersSetInstanceTemplateCall
- type InstanceGroupManagersSetInstanceTemplateRequest
- type InstanceGroupManagersSetTargetPoolsCall
- type InstanceGroupManagersSetTargetPoolsRequest
- type Operation
- type OperationError
- type OperationErrorErrors
- type OperationList
- type OperationWarnings
- type OperationWarningsData
- type Service
- type ZoneOperationsGetCall
- type ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Do() (*OperationList, error)
- func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
- type ZoneOperationsService
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 Compute Engine resources ComputeScope = "https://www.googleapis.com/auth/compute" // View your Google Compute Engine resources ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceGroupManager ¶
type InstanceGroupManager struct { // BaseInstanceName: The base instance name to use for instances in this // group. The value must be a valid RFC1035 name. Supported characters // are lowercase letters, numbers, and hyphens (-). Instances are named // by appending a hyphen and a random four-character string to the base // instance name. BaseInstanceName string `json:"baseInstanceName,omitempty"` // CreationTimestamp: [Output only] The time the instance group manager // was created, in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CurrentSize: [Output only] The number of instances that currently // exist and are a part of this group. This includes instances that are // starting but are not yet RUNNING, and instances that are in the // process of being deleted or abandoned. CurrentSize int64 `json:"currentSize,omitempty"` // Description: An optional textual description of the instance group // manager. Description string `json:"description,omitempty"` // Fingerprint: [Output only] Fingerprint of the instance group manager. // This field is used for optimistic locking. An up-to-date fingerprint // must be provided in order to modify the Instance Group Manager // resource. Fingerprint string `json:"fingerprint,omitempty"` // Group: [Output only] The full URL of the instance group created by // the manager. This group contains all of the instances being managed, // and cannot contain non-managed instances. Group string `json:"group,omitempty"` // Id: [Output only] A server-assigned unique identifier for the // resource. Id uint64 `json:"id,omitempty,string"` // InstanceTemplate: The full URL to an instance template from which all // new instances will be created. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Kind: [Output only] The resource type. Always // replicapool#instanceGroupManager. Kind string `json:"kind,omitempty"` // Name: The name of the instance group manager. Must be 1-63 characters // long and comply with RFC1035. Supported characters include lowercase // letters, numbers, and hyphens. Name string `json:"name,omitempty"` // SelfLink: [Output only] The fully qualified URL for this resource. SelfLink string `json:"selfLink,omitempty"` // TargetPools: The full URL of all target pools to which new instances // in the group are added. Updating the target pool values does not // affect existing instances. TargetPools []string `json:"targetPools,omitempty"` // TargetSize: [Output only] The number of instances that the manager is // attempting to maintain. Deleting or abandoning instances affects this // number, as does resizing the group. TargetSize int64 `json:"targetSize,omitempty"` }
type InstanceGroupManagerList ¶
type InstanceGroupManagerList struct { // Id: Unique identifier for the resource; defined by the server (output // only). Id string `json:"id,omitempty"` // Items: A list of instance resources. Items []*InstanceGroupManager `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: A token used to continue a truncated list request // (output only). NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: Server defined URL for this resource (output only). SelfLink string `json:"selfLink,omitempty"` }
type InstanceGroupManagersAbandonInstancesCall ¶
type InstanceGroupManagersAbandonInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersAbandonInstancesCall) Do ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Do() (*Operation, error)
func (*InstanceGroupManagersAbandonInstancesCall) Fields ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAbandonInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersAbandonInstancesRequest ¶
type InstanceGroupManagersAbandonInstancesRequest struct { // Instances: The names of one or more instances to abandon. For // example: // { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } Instances []string `json:"instances,omitempty"` }
type InstanceGroupManagersDeleteCall ¶
type InstanceGroupManagersDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersDeleteCall) Do ¶
func (c *InstanceGroupManagersDeleteCall) Do() (*Operation, error)
func (*InstanceGroupManagersDeleteCall) Fields ¶
func (c *InstanceGroupManagersDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersDeleteInstancesCall ¶
type InstanceGroupManagersDeleteInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersDeleteInstancesCall) Do ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Do() (*Operation, error)
func (*InstanceGroupManagersDeleteInstancesCall) Fields ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersDeleteInstancesRequest ¶
type InstanceGroupManagersDeleteInstancesRequest struct { // Instances: Names of instances to delete. // // Example: 'instance-foo', // 'instance-bar' Instances []string `json:"instances,omitempty"` }
type InstanceGroupManagersGetCall ¶
type InstanceGroupManagersGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersGetCall) Do ¶
func (c *InstanceGroupManagersGetCall) Do() (*InstanceGroupManager, error)
func (*InstanceGroupManagersGetCall) Fields ¶
func (c *InstanceGroupManagersGetCall) Fields(s ...googleapi.Field) *InstanceGroupManagersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersInsertCall ¶
type InstanceGroupManagersInsertCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersInsertCall) Do ¶
func (c *InstanceGroupManagersInsertCall) Do() (*Operation, error)
func (*InstanceGroupManagersInsertCall) Fields ¶
func (c *InstanceGroupManagersInsertCall) Fields(s ...googleapi.Field) *InstanceGroupManagersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersListCall ¶
type InstanceGroupManagersListCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListCall) Do ¶
func (c *InstanceGroupManagersListCall) Do() (*InstanceGroupManagerList, error)
func (*InstanceGroupManagersListCall) Fields ¶
func (c *InstanceGroupManagersListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstanceGroupManagersListCall) Filter ¶
func (c *InstanceGroupManagersListCall) Filter(filter string) *InstanceGroupManagersListCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*InstanceGroupManagersListCall) MaxResults ¶
func (c *InstanceGroupManagersListCall) MaxResults(maxResults int64) *InstanceGroupManagersListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*InstanceGroupManagersListCall) PageToken ¶
func (c *InstanceGroupManagersListCall) PageToken(pageToken string) *InstanceGroupManagersListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type InstanceGroupManagersRecreateInstancesCall ¶
type InstanceGroupManagersRecreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersRecreateInstancesCall) Do ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Do() (*Operation, error)
func (*InstanceGroupManagersRecreateInstancesCall) Fields ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersRecreateInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersRecreateInstancesRequest ¶
type InstanceGroupManagersRecreateInstancesRequest struct { // Instances: The names of one or more instances to recreate. For // example: // { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } Instances []string `json:"instances,omitempty"` }
type InstanceGroupManagersResizeCall ¶
type InstanceGroupManagersResizeCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersResizeCall) Do ¶
func (c *InstanceGroupManagersResizeCall) Do() (*Operation, error)
func (*InstanceGroupManagersResizeCall) Fields ¶
func (c *InstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersService ¶
type InstanceGroupManagersService struct {
// contains filtered or unexported fields
}
func NewInstanceGroupManagersService ¶
func NewInstanceGroupManagersService(s *Service) *InstanceGroupManagersService
func (*InstanceGroupManagersService) AbandonInstances ¶
func (r *InstanceGroupManagersService) AbandonInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersabandoninstancesrequest *InstanceGroupManagersAbandonInstancesRequest) *InstanceGroupManagersAbandonInstancesCall
AbandonInstances: Removes the specified instances from the managed instance group, and from any target pools of which they were members, without deleting the instances.
func (*InstanceGroupManagersService) Delete ¶
func (r *InstanceGroupManagersService) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall
Delete: Deletes the instance group manager and all instances contained within. If you'd like to delete the manager without deleting the instances, you must first abandon the instances to remove them from the group.
func (*InstanceGroupManagersService) DeleteInstances ¶
func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteinstancesrequest *InstanceGroupManagersDeleteInstancesRequest) *InstanceGroupManagersDeleteInstancesCall
DeleteInstances: Deletes the specified instances. The instances are removed from the instance group and any target pools of which they are a member, then deleted. The targetSize of the instance group manager is reduced by the number of instances deleted.
func (*InstanceGroupManagersService) Get ¶
func (r *InstanceGroupManagersService) Get(project string, zone string, instanceGroupManager string) *InstanceGroupManagersGetCall
Get: Returns the specified Instance Group Manager resource.
func (*InstanceGroupManagersService) Insert ¶
func (r *InstanceGroupManagersService) Insert(project string, zone string, size int64, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersInsertCall
Insert: Creates an instance group manager, as well as the instance group and the specified number of instances.
func (*InstanceGroupManagersService) List ¶
func (r *InstanceGroupManagersService) List(project string, zone string) *InstanceGroupManagersListCall
List: Retrieves the list of Instance Group Manager resources contained within the specified zone.
func (*InstanceGroupManagersService) RecreateInstances ¶
func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest) *InstanceGroupManagersRecreateInstancesCall
RecreateInstances: Recreates the specified instances. The instances are deleted, then recreated using the instance group manager's current instance template.
func (*InstanceGroupManagersService) Resize ¶
func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall
Resize: Resizes the managed instance group up or down. If resized up, new instances are created using the current instance template. If resized down, instances are removed in the order outlined in Resizing a managed instance group.
func (*InstanceGroupManagersService) SetInstanceTemplate ¶
func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall
SetInstanceTemplate: Sets the instance template to use when creating new instances in this group. Existing instances are not affected.
func (*InstanceGroupManagersService) SetTargetPools ¶
func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, instancegroupmanagerssettargetpoolsrequest *InstanceGroupManagersSetTargetPoolsRequest) *InstanceGroupManagersSetTargetPoolsCall
SetTargetPools: Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.
type InstanceGroupManagersSetInstanceTemplateCall ¶
type InstanceGroupManagersSetInstanceTemplateCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersSetInstanceTemplateCall) Do ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Do() (*Operation, error)
func (*InstanceGroupManagersSetInstanceTemplateCall) Fields ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetInstanceTemplateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersSetInstanceTemplateRequest ¶
type InstanceGroupManagersSetInstanceTemplateRequest struct { // InstanceTemplate: The full URL to an Instance Template from which all // new instances will be created. InstanceTemplate string `json:"instanceTemplate,omitempty"` }
type InstanceGroupManagersSetTargetPoolsCall ¶
type InstanceGroupManagersSetTargetPoolsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersSetTargetPoolsCall) Do ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Do() (*Operation, error)
func (*InstanceGroupManagersSetTargetPoolsCall) Fields ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetTargetPoolsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstanceGroupManagersSetTargetPoolsRequest ¶
type InstanceGroupManagersSetTargetPoolsRequest struct { // Fingerprint: The current fingerprint of the Instance Group Manager // resource. If this does not match the server-side fingerprint of the // resource, then the request will be rejected. Fingerprint string `json:"fingerprint,omitempty"` // TargetPools: A list of fully-qualified URLs to existing Target Pool // resources. New instances in the Instance Group Manager will be added // to the specified target pools; existing instances are not affected. TargetPools []string `json:"targetPools,omitempty"` }
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] The time that this operation was // requested, in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // EndTime: [Output Only] The time that this operation was completed, in // RFC3339 text format. EndTime string `json:"endTime,omitempty"` // Error: [Output Only] If errors occurred during processing of this // operation, this field will be populated. Error *OperationError `json:"error,omitempty"` // HttpErrorMessage: [Output only] If operation fails, the HTTP error // message returned. HttpErrorMessage string `json:"httpErrorMessage,omitempty"` // HttpErrorStatusCode: [Output only] If operation fails, the HTTP error // status code returned. HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"` // Id: [Output Only] Unique identifier for the resource, generated by // the server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] The time that this operation was requested, // in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` // Kind: [Output only] Type of the resource. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // OperationType: [Output only] Type of the operation. Operations // include 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 available when performing regional operations. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // StartTime: [Output Only] The time that this operation was started by // the server, in RFC3339 text format. StartTime string `json:"startTime,omitempty"` // Status: [Output Only] Status of the operation. 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 there are issues with this operation, a // warning is returned. 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"` }
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 OperationList ¶
type OperationList struct { // Id: Unique identifier for the resource; defined by the server (output // only). Id string `json:"id,omitempty"` // Items: The operation resources. Items []*Operation `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: A token used to continue a truncated list request // (output only). NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: Server defined URL for this resource (output only). SelfLink string `json:"selfLink,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 Service ¶
type Service struct { BasePath string // API endpoint base URL InstanceGroupManagers *InstanceGroupManagersService ZoneOperations *ZoneOperationsService // contains filtered or unexported fields }
type ZoneOperationsGetCall ¶
type ZoneOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsGetCall) Do ¶
func (c *ZoneOperationsGetCall) Do() (*Operation, error)
func (*ZoneOperationsGetCall) Fields ¶
func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ZoneOperationsListCall ¶
type ZoneOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsListCall) Do ¶
func (c *ZoneOperationsListCall) Do() (*OperationList, error)
func (*ZoneOperationsListCall) Fields ¶
func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ZoneOperationsListCall) Filter ¶
func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*ZoneOperationsListCall) MaxResults ¶
func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*ZoneOperationsListCall) PageToken ¶
func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type ZoneOperationsService ¶
type ZoneOperationsService struct {
// contains filtered or unexported fields
}
func NewZoneOperationsService ¶
func NewZoneOperationsService(s *Service) *ZoneOperationsService
func (*ZoneOperationsService) Get ¶
func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall
Get: Retrieves the specified zone-specific operation resource.
func (*ZoneOperationsService) List ¶
func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall
List: Retrieves the list of operation resources contained within the specified zone.