replicapoolupdater
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package replicapoolupdater provides access to the Google Compute Engine Instance Group Updater API.
For product documentation, see:https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
Creating a client¶
Usage example:
import "google.golang.org/api/replicapoolupdater/v1beta1"...ctx := context.Background()replicapoolupdaterService, err := replicapoolupdater.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
replicapoolupdaterService, err := replicapoolupdater.NewService(ctx, option.WithScopes(replicapoolupdater.ReplicapoolReadonlyScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
replicapoolupdaterService, err := replicapoolupdater.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)replicapoolupdaterService, err := replicapoolupdater.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seehttps://godoc.org/google.golang.org/api/option/ for details on options.
Index¶
- Constants
- type InstanceUpdate
- type InstanceUpdateError
- type InstanceUpdateErrorErrors
- type InstanceUpdateList
- type Operation
- type OperationError
- type OperationErrorErrors
- type OperationList
- type OperationWarnings
- type OperationWarningsData
- type RollingUpdate
- type RollingUpdateError
- type RollingUpdateErrorErrors
- type RollingUpdateList
- type RollingUpdatePolicy
- type RollingUpdatesCancelCall
- func (c *RollingUpdatesCancelCall) Context(ctx context.Context) *RollingUpdatesCancelCall
- func (c *RollingUpdatesCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RollingUpdatesCancelCall) Fields(s ...googleapi.Field) *RollingUpdatesCancelCall
- func (c *RollingUpdatesCancelCall) Header() http.Header
- type RollingUpdatesGetCall
- func (c *RollingUpdatesGetCall) Context(ctx context.Context) *RollingUpdatesGetCall
- func (c *RollingUpdatesGetCall) Do(opts ...googleapi.CallOption) (*RollingUpdate, error)
- func (c *RollingUpdatesGetCall) Fields(s ...googleapi.Field) *RollingUpdatesGetCall
- func (c *RollingUpdatesGetCall) Header() http.Header
- func (c *RollingUpdatesGetCall) IfNoneMatch(entityTag string) *RollingUpdatesGetCall
- type RollingUpdatesInsertCall
- func (c *RollingUpdatesInsertCall) Context(ctx context.Context) *RollingUpdatesInsertCall
- func (c *RollingUpdatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RollingUpdatesInsertCall) Fields(s ...googleapi.Field) *RollingUpdatesInsertCall
- func (c *RollingUpdatesInsertCall) Header() http.Header
- type RollingUpdatesListCall
- func (c *RollingUpdatesListCall) Context(ctx context.Context) *RollingUpdatesListCall
- func (c *RollingUpdatesListCall) Do(opts ...googleapi.CallOption) (*RollingUpdateList, error)
- func (c *RollingUpdatesListCall) Fields(s ...googleapi.Field) *RollingUpdatesListCall
- func (c *RollingUpdatesListCall) Filter(filter string) *RollingUpdatesListCall
- func (c *RollingUpdatesListCall) Header() http.Header
- func (c *RollingUpdatesListCall) IfNoneMatch(entityTag string) *RollingUpdatesListCall
- func (c *RollingUpdatesListCall) MaxResults(maxResults int64) *RollingUpdatesListCall
- func (c *RollingUpdatesListCall) PageToken(pageToken string) *RollingUpdatesListCall
- func (c *RollingUpdatesListCall) Pages(ctx context.Context, f func(*RollingUpdateList) error) error
- type RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) Context(ctx context.Context) *RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) Do(opts ...googleapi.CallOption) (*InstanceUpdateList, error)
- func (c *RollingUpdatesListInstanceUpdatesCall) Fields(s ...googleapi.Field) *RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) Filter(filter string) *RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) Header() http.Header
- func (c *RollingUpdatesListInstanceUpdatesCall) IfNoneMatch(entityTag string) *RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) MaxResults(maxResults int64) *RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) PageToken(pageToken string) *RollingUpdatesListInstanceUpdatesCall
- func (c *RollingUpdatesListInstanceUpdatesCall) Pages(ctx context.Context, f func(*InstanceUpdateList) error) error
- type RollingUpdatesPauseCall
- func (c *RollingUpdatesPauseCall) Context(ctx context.Context) *RollingUpdatesPauseCall
- func (c *RollingUpdatesPauseCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RollingUpdatesPauseCall) Fields(s ...googleapi.Field) *RollingUpdatesPauseCall
- func (c *RollingUpdatesPauseCall) Header() http.Header
- type RollingUpdatesResumeCall
- func (c *RollingUpdatesResumeCall) Context(ctx context.Context) *RollingUpdatesResumeCall
- func (c *RollingUpdatesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RollingUpdatesResumeCall) Fields(s ...googleapi.Field) *RollingUpdatesResumeCall
- func (c *RollingUpdatesResumeCall) Header() http.Header
- type RollingUpdatesRollbackCall
- func (c *RollingUpdatesRollbackCall) Context(ctx context.Context) *RollingUpdatesRollbackCall
- func (c *RollingUpdatesRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RollingUpdatesRollbackCall) Fields(s ...googleapi.Field) *RollingUpdatesRollbackCall
- func (c *RollingUpdatesRollbackCall) Header() http.Header
- type RollingUpdatesService
- func (r *RollingUpdatesService) Cancel(project string, zone string, rollingUpdate string) *RollingUpdatesCancelCall
- func (r *RollingUpdatesService) Get(project string, zone string, rollingUpdate string) *RollingUpdatesGetCall
- func (r *RollingUpdatesService) Insert(project string, zone string, rollingupdate *RollingUpdate) *RollingUpdatesInsertCall
- func (r *RollingUpdatesService) List(project string, zone string) *RollingUpdatesListCall
- func (r *RollingUpdatesService) ListInstanceUpdates(project string, zone string, rollingUpdate string) *RollingUpdatesListInstanceUpdatesCall
- func (r *RollingUpdatesService) Pause(project string, zone string, rollingUpdate string) *RollingUpdatesPauseCall
- func (r *RollingUpdatesService) Resume(project string, zone string, rollingUpdate string) *RollingUpdatesResumeCall
- func (r *RollingUpdatesService) Rollback(project string, zone string, rollingUpdate string) *RollingUpdatesRollbackCall
- type Service
- type ZoneOperationsGetCall
- func (c *ZoneOperationsGetCall) Context(ctx context.Context) *ZoneOperationsGetCall
- func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall
- func (c *ZoneOperationsGetCall) Header() http.Header
- func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall
- type ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Context(ctx context.Context) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
- func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Header() http.Header
- func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error
- type ZoneOperationsService
Constants¶
const (// View and manage your data across Google Cloud Platform servicesCloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// View your data across Google Cloud Platform servicesCloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"// View and manage replica poolsReplicapoolScope = "https://www.googleapis.com/auth/replicapool"// View replica poolsReplicapoolReadonlyScope = "https://www.googleapis.com/auth/replicapool.readonly")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeInstanceUpdate¶
type InstanceUpdate struct {// Error: Errors that occurred during the instance update.Error *InstanceUpdateError `json:"error,omitempty"`// Instance: Fully-qualified URL of the instance being updated.Instancestring `json:"instance,omitempty"`// Status: Status of the instance update. Possible values are:// - "PENDING": The instance update is pending execution.// - "ROLLING_FORWARD": The instance update is going forward.// - "ROLLING_BACK": The instance update is being rolled back.// - "PAUSED": The instance update is temporarily paused (inactive).// - "ROLLED_OUT": The instance update is finished, the instance is// running the new template.// - "ROLLED_BACK": The instance update is finished, the instance has// been reverted to the previous template.// - "CANCELLED": The instance update is paused and no longer can be// resumed, undefined in which template the instance is running.Statusstring `json:"status,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:"-"`// NullFields is a list of field names (e.g. "Error") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}InstanceUpdate: Update of a single instance.
func (*InstanceUpdate)MarshalJSON¶
func (s *InstanceUpdate) MarshalJSON() ([]byte,error)
typeInstanceUpdateError¶
type InstanceUpdateError struct {// Errors: [Output Only] The array of errors encountered while// processing this operation.Errors []*InstanceUpdateErrorErrors `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}InstanceUpdateError: Errors that occurred during the instance update.
func (*InstanceUpdateError)MarshalJSON¶
func (s *InstanceUpdateError) MarshalJSON() ([]byte,error)
typeInstanceUpdateErrorErrors¶
type InstanceUpdateErrorErrors struct {// Code: [Output Only] The error type identifier for this error.Codestring `json:"code,omitempty"`// Location: [Output Only] Indicates the field in the request that// caused the error. This property is optional.Locationstring `json:"location,omitempty"`// Message: [Output Only] An optional, human-readable error message.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*InstanceUpdateErrorErrors)MarshalJSON¶
func (s *InstanceUpdateErrorErrors) MarshalJSON() ([]byte,error)
typeInstanceUpdateList¶
type InstanceUpdateList struct {// Items: Collection of requested instance updates.Items []*InstanceUpdate `json:"items,omitempty"`// Kind: [Output Only] Type of the resource.Kindstring `json:"kind,omitempty"`// NextPageToken: A token used to continue a truncated list request.NextPageTokenstring `json:"nextPageToken,omitempty"`// SelfLink: [Output Only] The fully qualified URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}InstanceUpdateList: Response returned by ListInstanceUpdates method.
func (*InstanceUpdateList)MarshalJSON¶
func (s *InstanceUpdateList) MarshalJSON() ([]byte,error)
typeOperation¶
type Operation struct {ClientOperationIdstring `json:"clientOperationId,omitempty"`// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text// format.CreationTimestampstring `json:"creationTimestamp,omitempty"`EndTimestring `json:"endTime,omitempty"`// Error: [Output Only] If errors occurred during processing of this// operation, this field will be populated.Error *OperationError `json:"error,omitempty"`HttpErrorMessagestring `json:"httpErrorMessage,omitempty"`HttpErrorStatusCodeint64 `json:"httpErrorStatusCode,omitempty"`// Id: [Output Only] Unique identifier for the resource; defined by the// server.Iduint64 `json:"id,omitempty,string"`// InsertTime: [Output Only] The time that this operation was requested.// This is inRFC 3339 format.InsertTimestring `json:"insertTime,omitempty"`// Kind: [Output Only] Type of the resource. Always// replicapoolupdater#operation for Operation resources.Kindstring `json:"kind,omitempty"`// Name: [Output Only] Name of the resource.Namestring `json:"name,omitempty"`OperationTypestring `json:"operationType,omitempty"`Progressint64 `json:"progress,omitempty"`// Region: [Output Only] URL of the region where the operation resides.Regionstring `json:"region,omitempty"`// SelfLink: [Output Only] The fully qualified URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// StartTime: [Output Only] The time that this operation was started by// the server. This is inRFC 3339 format.StartTimestring `json:"startTime,omitempty"`// Status: [Output Only] Status of the operation. Can be one of the// following: "PENDING", "RUNNING", or "DONE".Statusstring `json:"status,omitempty"`// StatusMessage: [Output Only] An optional textual description of the// current status of the operation.StatusMessagestring `json:"statusMessage,omitempty"`// TargetId: [Output Only] Unique target id which identifies a// particular incarnation of the target.TargetIduint64 `json:"targetId,omitempty,string"`// TargetLink: [Output Only] URL of the resource the operation is// mutating.TargetLinkstring `json:"targetLink,omitempty"`Userstring `json:"user,omitempty"`Warnings []*OperationWarnings `json:"warnings,omitempty"`// Zone: [Output Only] URL of the zone where the operation resides.Zonestring `json:"zone,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ClientOperationId")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientOperationId") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}Operation: An operation resource, used to manage asynchronous APIrequests.
func (*Operation)MarshalJSON¶
typeOperationError¶
type OperationError struct {// Errors: [Output Only] The array of errors encountered while// processing this operation.Errors []*OperationErrorErrors `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}OperationError: [Output Only] If errors occurred during processing ofthis operation, this field will be populated.
func (*OperationError)MarshalJSON¶
func (s *OperationError) MarshalJSON() ([]byte,error)
typeOperationErrorErrors¶
type OperationErrorErrors struct {// Code: [Output Only] The error type identifier for this error.Codestring `json:"code,omitempty"`// Location: [Output Only] Indicates the field in the request that// caused the error. This property is optional.Locationstring `json:"location,omitempty"`// Message: [Output Only] An optional, human-readable error message.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*OperationErrorErrors)MarshalJSON¶
func (s *OperationErrorErrors) MarshalJSON() ([]byte,error)
typeOperationList¶
type OperationList struct {// Id: [Output Only] Unique identifier for the resource; defined by the// server.Idstring `json:"id,omitempty"`// Items: [Output Only] The Operation resources.Items []*Operation `json:"items,omitempty"`// Kind: [Output Only] Type of resource. Always// replicapoolupdater#operationList for OperationList resources.Kindstring `json:"kind,omitempty"`// NextPageToken: [Output Only] A token used to continue a truncate.NextPageTokenstring `json:"nextPageToken,omitempty"`// SelfLink: [Output Only] The fully qualified URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "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:"-"`// NullFields is a list of field names (e.g. "Id") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}OperationList: Contains a list of Operation resources.
func (*OperationList)MarshalJSON¶
func (s *OperationList) MarshalJSON() ([]byte,error)
typeOperationWarnings¶
type OperationWarnings struct {// Code: [Output only] The warning type identifier for this warning.Codestring `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.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*OperationWarnings)MarshalJSON¶
func (s *OperationWarnings) MarshalJSON() ([]byte,error)
typeOperationWarningsData¶
type OperationWarningsData struct {// Key: [Output Only] Metadata key for this warning.Keystring `json:"key,omitempty"`// Value: [Output Only] Metadata value for this warning.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*OperationWarningsData)MarshalJSON¶
func (s *OperationWarningsData) MarshalJSON() ([]byte,error)
typeRollingUpdate¶
type RollingUpdate struct {// ActionType: Specifies the action to take for each instance within the// instance group. This can be RECREATE which will recreate each// instance and is only available for managed instance groups. It can// also be REBOOT which performs a soft reboot for each instance and is// only available for regular (non-managed) instance groups.ActionTypestring `json:"actionType,omitempty"`// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text// format.CreationTimestampstring `json:"creationTimestamp,omitempty"`// Description: An optional textual description of the resource;// provided by the client when the resource is created.Descriptionstring `json:"description,omitempty"`// Error: [Output Only] Errors that occurred during the rolling update.Error *RollingUpdateError `json:"error,omitempty"`// Id: [Output Only] Unique identifier for the resource; defined by the// server.Idstring `json:"id,omitempty"`// InstanceGroup: Fully-qualified URL of an instance group being// updated. Exactly one of instanceGroupManager and instanceGroup must// be set.InstanceGroupstring `json:"instanceGroup,omitempty"`// InstanceGroupManager: Fully-qualified URL of an instance group// manager being updated. Exactly one of instanceGroupManager and// instanceGroup must be set.InstanceGroupManagerstring `json:"instanceGroupManager,omitempty"`// InstanceTemplate: Fully-qualified URL of an instance template to// apply.InstanceTemplatestring `json:"instanceTemplate,omitempty"`// Kind: [Output Only] Type of the resource.Kindstring `json:"kind,omitempty"`// OldInstanceTemplate: Fully-qualified URL of the instance template// encountered while starting the update.OldInstanceTemplatestring `json:"oldInstanceTemplate,omitempty"`// Policy: Parameters of the update process.Policy *RollingUpdatePolicy `json:"policy,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 update will be complete. This number should be monotonically// increasing as the update progresses.Progressint64 `json:"progress,omitempty"`// SelfLink: [Output Only] The fully qualified URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// Status: [Output Only] Status of the update. Possible values are:// - "ROLLING_FORWARD": The update is going forward.// - "ROLLING_BACK": The update is being rolled back.// - "PAUSED": The update is temporarily paused (inactive).// - "ROLLED_OUT": The update is finished, all instances have been// updated successfully.// - "ROLLED_BACK": The update is finished, all instances have been// reverted to the previous template.// - "CANCELLED": The update is paused and no longer can be resumed,// undefined how many instances are running in which template.Statusstring `json:"status,omitempty"`// StatusMessage: [Output Only] An optional textual description of the// current status of the update.StatusMessagestring `json:"statusMessage,omitempty"`// User: [Output Only] User who requested the update, for example:// user@example.com.Userstring `json:"user,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ActionType") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionType") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}RollingUpdate: The following represents a resource describing asingle update (rollout) of a group of instances to the giventemplate.
func (*RollingUpdate)MarshalJSON¶
func (s *RollingUpdate) MarshalJSON() ([]byte,error)
typeRollingUpdateError¶
type RollingUpdateError struct {// Errors: [Output Only] The array of errors encountered while// processing this operation.Errors []*RollingUpdateErrorErrors `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}RollingUpdateError: [Output Only] Errors that occurred during therolling update.
func (*RollingUpdateError)MarshalJSON¶
func (s *RollingUpdateError) MarshalJSON() ([]byte,error)
typeRollingUpdateErrorErrors¶
type RollingUpdateErrorErrors struct {// Code: [Output Only] The error type identifier for this error.Codestring `json:"code,omitempty"`// Location: [Output Only] Indicates the field in the request that// caused the error. This property is optional.Locationstring `json:"location,omitempty"`// Message: [Output Only] An optional, human-readable error message.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*RollingUpdateErrorErrors)MarshalJSON¶
func (s *RollingUpdateErrorErrors) MarshalJSON() ([]byte,error)
typeRollingUpdateList¶
type RollingUpdateList struct {// Items: Collection of requested updates.Items []*RollingUpdate `json:"items,omitempty"`// Kind: [Output Only] Type of the resource.Kindstring `json:"kind,omitempty"`// NextPageToken: A token used to continue a truncated list request.NextPageTokenstring `json:"nextPageToken,omitempty"`// SelfLink: [Output Only] The fully qualified URL for the resource.SelfLinkstring `json:"selfLink,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}RollingUpdateList: Response returned by List method.
func (*RollingUpdateList)MarshalJSON¶
func (s *RollingUpdateList) MarshalJSON() ([]byte,error)
typeRollingUpdatePolicy¶
type RollingUpdatePolicy struct {// AutoPauseAfterInstances: Number of instances to update before the// updater pauses the rolling update.AutoPauseAfterInstancesint64 `json:"autoPauseAfterInstances,omitempty"`// InstanceStartupTimeoutSec: The maximum amount of time that the// updater waits for a HEALTHY state after all of the update steps are// complete. If the HEALTHY state is not received before the deadline,// the instance update is considered a failure.InstanceStartupTimeoutSecint64 `json:"instanceStartupTimeoutSec,omitempty"`// MaxNumConcurrentInstances: The maximum number of instances that can// be updated simultaneously. An instance update is considered complete// only after the instance is restarted and initialized.MaxNumConcurrentInstancesint64 `json:"maxNumConcurrentInstances,omitempty"`// MaxNumFailedInstances: The maximum number of instance updates that// can fail before the group update is considered a failure. An instance// update is considered failed if any of its update actions (e.g. Stop// call on Instance resource in Rolling Reboot) failed with permanent// failure, or if the instance is in an UNHEALTHY state after it// finishes all of the update actions.MaxNumFailedInstancesint64 `json:"maxNumFailedInstances,omitempty"`// MinInstanceUpdateTimeSec: The minimum amount of time that the updater// spends to update each instance. Update time is the time it takes to// complete all update actions (e.g. Stop call on Instance resource in// Rolling Reboot), reboot, and initialize. If the instance update// finishes early, the updater pauses for the remainder of the time// before it starts the next instance update.MinInstanceUpdateTimeSecint64 `json:"minInstanceUpdateTimeSec,omitempty"`// ForceSendFields is a list of field names (e.g.// "AutoPauseAfterInstances") to unconditionally include in API// requests. By default, fields with empty values are omitted from API// requests. However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoPauseAfterInstances")// to include in API requests with the JSON null value. By default,// fields with empty values are omitted from API requests. However, any// field with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}RollingUpdatePolicy: Parameters of the update process.
func (*RollingUpdatePolicy)MarshalJSON¶
func (s *RollingUpdatePolicy) MarshalJSON() ([]byte,error)
typeRollingUpdatesCancelCall¶
type RollingUpdatesCancelCall struct {// contains filtered or unexported fields}func (*RollingUpdatesCancelCall)Context¶
func (c *RollingUpdatesCancelCall) Context(ctxcontext.Context) *RollingUpdatesCancelCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesCancelCall)Do¶
func (c *RollingUpdatesCancelCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "replicapoolupdater.rollingUpdates.cancel" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*RollingUpdatesCancelCall)Fields¶
func (c *RollingUpdatesCancelCall) Fields(s ...googleapi.Field) *RollingUpdatesCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesCancelCall)Header¶
func (c *RollingUpdatesCancelCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeRollingUpdatesGetCall¶
type RollingUpdatesGetCall struct {// contains filtered or unexported fields}func (*RollingUpdatesGetCall)Context¶
func (c *RollingUpdatesGetCall) Context(ctxcontext.Context) *RollingUpdatesGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesGetCall)Do¶
func (c *RollingUpdatesGetCall) Do(opts ...googleapi.CallOption) (*RollingUpdate,error)
Do executes the "replicapoolupdater.rollingUpdates.get" call.Exactly one of *RollingUpdate or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*RollingUpdate.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*RollingUpdatesGetCall)Fields¶
func (c *RollingUpdatesGetCall) Fields(s ...googleapi.Field) *RollingUpdatesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesGetCall)Header¶
func (c *RollingUpdatesGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*RollingUpdatesGetCall)IfNoneMatch¶
func (c *RollingUpdatesGetCall) IfNoneMatch(entityTagstring) *RollingUpdatesGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeRollingUpdatesInsertCall¶
type RollingUpdatesInsertCall struct {// contains filtered or unexported fields}func (*RollingUpdatesInsertCall)Context¶
func (c *RollingUpdatesInsertCall) Context(ctxcontext.Context) *RollingUpdatesInsertCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesInsertCall)Do¶
func (c *RollingUpdatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "replicapoolupdater.rollingUpdates.insert" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*RollingUpdatesInsertCall)Fields¶
func (c *RollingUpdatesInsertCall) Fields(s ...googleapi.Field) *RollingUpdatesInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesInsertCall)Header¶
func (c *RollingUpdatesInsertCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeRollingUpdatesListCall¶
type RollingUpdatesListCall struct {// contains filtered or unexported fields}func (*RollingUpdatesListCall)Context¶
func (c *RollingUpdatesListCall) Context(ctxcontext.Context) *RollingUpdatesListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesListCall)Do¶
func (c *RollingUpdatesListCall) Do(opts ...googleapi.CallOption) (*RollingUpdateList,error)
Do executes the "replicapoolupdater.rollingUpdates.list" call.Exactly one of *RollingUpdateList or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*RollingUpdateList.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*RollingUpdatesListCall)Fields¶
func (c *RollingUpdatesListCall) Fields(s ...googleapi.Field) *RollingUpdatesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesListCall)Filter¶
func (c *RollingUpdatesListCall) Filter(filterstring) *RollingUpdatesListCall
Filter sets the optional parameter "filter": Filter expression forfiltering listed resources.
func (*RollingUpdatesListCall)Header¶
func (c *RollingUpdatesListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*RollingUpdatesListCall)IfNoneMatch¶
func (c *RollingUpdatesListCall) IfNoneMatch(entityTagstring) *RollingUpdatesListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*RollingUpdatesListCall)MaxResults¶
func (c *RollingUpdatesListCall) MaxResults(maxResultsint64) *RollingUpdatesListCall
MaxResults sets the optional parameter "maxResults": Maximum count ofresults to be returned. Maximum value is 500 and default value is500.
func (*RollingUpdatesListCall)PageToken¶
func (c *RollingUpdatesListCall) PageToken(pageTokenstring) *RollingUpdatesListCall
PageToken sets the optional parameter "pageToken": Tag returned by aprevious list request truncated by maxResults. Used to continue aprevious list request.
func (*RollingUpdatesListCall)Pages¶
func (c *RollingUpdatesListCall) Pages(ctxcontext.Context, f func(*RollingUpdateList)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeRollingUpdatesListInstanceUpdatesCall¶
type RollingUpdatesListInstanceUpdatesCall struct {// contains filtered or unexported fields}func (*RollingUpdatesListInstanceUpdatesCall)Context¶
func (c *RollingUpdatesListInstanceUpdatesCall) Context(ctxcontext.Context) *RollingUpdatesListInstanceUpdatesCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesListInstanceUpdatesCall)Do¶
func (c *RollingUpdatesListInstanceUpdatesCall) Do(opts ...googleapi.CallOption) (*InstanceUpdateList,error)
Do executes the "replicapoolupdater.rollingUpdates.listInstanceUpdates" call.Exactly one of *InstanceUpdateList or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*InstanceUpdateList.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*RollingUpdatesListInstanceUpdatesCall)Fields¶
func (c *RollingUpdatesListInstanceUpdatesCall) Fields(s ...googleapi.Field) *RollingUpdatesListInstanceUpdatesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesListInstanceUpdatesCall)Filter¶
func (c *RollingUpdatesListInstanceUpdatesCall) Filter(filterstring) *RollingUpdatesListInstanceUpdatesCall
Filter sets the optional parameter "filter": Filter expression forfiltering listed resources.
func (*RollingUpdatesListInstanceUpdatesCall)Header¶
func (c *RollingUpdatesListInstanceUpdatesCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*RollingUpdatesListInstanceUpdatesCall)IfNoneMatch¶
func (c *RollingUpdatesListInstanceUpdatesCall) IfNoneMatch(entityTagstring) *RollingUpdatesListInstanceUpdatesCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*RollingUpdatesListInstanceUpdatesCall)MaxResults¶
func (c *RollingUpdatesListInstanceUpdatesCall) MaxResults(maxResultsint64) *RollingUpdatesListInstanceUpdatesCall
MaxResults sets the optional parameter "maxResults": Maximum count ofresults to be returned. Maximum value is 500 and default value is500.
func (*RollingUpdatesListInstanceUpdatesCall)PageToken¶
func (c *RollingUpdatesListInstanceUpdatesCall) PageToken(pageTokenstring) *RollingUpdatesListInstanceUpdatesCall
PageToken sets the optional parameter "pageToken": Tag returned by aprevious list request truncated by maxResults. Used to continue aprevious list request.
func (*RollingUpdatesListInstanceUpdatesCall)Pages¶
func (c *RollingUpdatesListInstanceUpdatesCall) Pages(ctxcontext.Context, f func(*InstanceUpdateList)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeRollingUpdatesPauseCall¶
type RollingUpdatesPauseCall struct {// contains filtered or unexported fields}func (*RollingUpdatesPauseCall)Context¶
func (c *RollingUpdatesPauseCall) Context(ctxcontext.Context) *RollingUpdatesPauseCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesPauseCall)Do¶
func (c *RollingUpdatesPauseCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "replicapoolupdater.rollingUpdates.pause" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*RollingUpdatesPauseCall)Fields¶
func (c *RollingUpdatesPauseCall) Fields(s ...googleapi.Field) *RollingUpdatesPauseCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesPauseCall)Header¶
func (c *RollingUpdatesPauseCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeRollingUpdatesResumeCall¶
type RollingUpdatesResumeCall struct {// contains filtered or unexported fields}func (*RollingUpdatesResumeCall)Context¶
func (c *RollingUpdatesResumeCall) Context(ctxcontext.Context) *RollingUpdatesResumeCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesResumeCall)Do¶
func (c *RollingUpdatesResumeCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "replicapoolupdater.rollingUpdates.resume" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*RollingUpdatesResumeCall)Fields¶
func (c *RollingUpdatesResumeCall) Fields(s ...googleapi.Field) *RollingUpdatesResumeCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesResumeCall)Header¶
func (c *RollingUpdatesResumeCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeRollingUpdatesRollbackCall¶
type RollingUpdatesRollbackCall struct {// contains filtered or unexported fields}func (*RollingUpdatesRollbackCall)Context¶
func (c *RollingUpdatesRollbackCall) Context(ctxcontext.Context) *RollingUpdatesRollbackCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*RollingUpdatesRollbackCall)Do¶
func (c *RollingUpdatesRollbackCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "replicapoolupdater.rollingUpdates.rollback" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*RollingUpdatesRollbackCall)Fields¶
func (c *RollingUpdatesRollbackCall) Fields(s ...googleapi.Field) *RollingUpdatesRollbackCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*RollingUpdatesRollbackCall)Header¶
func (c *RollingUpdatesRollbackCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeRollingUpdatesService¶
type RollingUpdatesService struct {// contains filtered or unexported fields}funcNewRollingUpdatesService¶
func NewRollingUpdatesService(s *Service) *RollingUpdatesService
func (*RollingUpdatesService)Cancel¶
func (r *RollingUpdatesService) Cancel(projectstring, zonestring, rollingUpdatestring) *RollingUpdatesCancelCall
Cancel: Cancels an update. The update must be PAUSED before it can becancelled. This has no effect if the update is already CANCELLED.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#cancelrollingupdate
func (*RollingUpdatesService)Get¶
func (r *RollingUpdatesService) Get(projectstring, zonestring, rollingUpdatestring) *RollingUpdatesGetCall
Get: Returns information about an update.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate
func (*RollingUpdatesService)Insert¶
func (r *RollingUpdatesService) Insert(projectstring, zonestring, rollingupdate *RollingUpdate) *RollingUpdatesInsertCall
Insert: Inserts and starts a new update.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#starting_an_update
func (*RollingUpdatesService)List¶
func (r *RollingUpdatesService) List(projectstring, zonestring) *RollingUpdatesListCall
List: Lists recent updates for a given managed instance group, inreverse chronological order and paginated format.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate
func (*RollingUpdatesService)ListInstanceUpdates¶
func (r *RollingUpdatesService) ListInstanceUpdates(projectstring, zonestring, rollingUpdatestring) *RollingUpdatesListInstanceUpdatesCall
ListInstanceUpdates: Lists the current status for each instancewithin a given update.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate
func (*RollingUpdatesService)Pause¶
func (r *RollingUpdatesService) Pause(projectstring, zonestring, rollingUpdatestring) *RollingUpdatesPauseCall
Pause: Pauses the update in state from ROLLING_FORWARD orROLLING_BACK. Has no effect if invoked when the state of the updateis PAUSED.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#pausing_a_rolling_update
func (*RollingUpdatesService)Resume¶
func (r *RollingUpdatesService) Resume(projectstring, zonestring, rollingUpdatestring) *RollingUpdatesResumeCall
Resume: Continues an update in PAUSED state. Has no effect if invokedwhen the state of the update is ROLLED_OUT.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#continuerollingupdate
func (*RollingUpdatesService)Rollback¶
func (r *RollingUpdatesService) Rollback(projectstring, zonestring, rollingUpdatestring) *RollingUpdatesRollbackCall
Rollback: Rolls back the update in state from ROLLING_FORWARD orPAUSED. Has no effect if invoked when the state of the update isROLLED_BACK.For details, seehttps://cloud.google.com/compute/docs/instance-groups/manager/#rollingbackupdate
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentRollingUpdates *RollingUpdatesServiceZoneOperations *ZoneOperationsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.5.0
NewService creates a new Service.
typeZoneOperationsGetCall¶
type ZoneOperationsGetCall struct {// contains filtered or unexported fields}func (*ZoneOperationsGetCall)Context¶
func (c *ZoneOperationsGetCall) Context(ctxcontext.Context) *ZoneOperationsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ZoneOperationsGetCall)Do¶
func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "replicapoolupdater.zoneOperations.get" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ZoneOperationsGetCall)Fields¶
func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ZoneOperationsGetCall)Header¶
func (c *ZoneOperationsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ZoneOperationsGetCall)IfNoneMatch¶
func (c *ZoneOperationsGetCall) IfNoneMatch(entityTagstring) *ZoneOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeZoneOperationsListCall¶
type ZoneOperationsListCall struct {// contains filtered or unexported fields}func (*ZoneOperationsListCall)Context¶
func (c *ZoneOperationsListCall) Context(ctxcontext.Context) *ZoneOperationsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ZoneOperationsListCall)Do¶
func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList,error)
Do executes the "replicapoolupdater.zoneOperations.list" call.Exactly one of *OperationList or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*OperationList.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ZoneOperationsListCall)Fields¶
func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ZoneOperationsListCall)Filter¶
func (c *ZoneOperationsListCall) Filter(filterstring) *ZoneOperationsListCall
Filter sets the optional parameter "filter": Filter expression forfiltering listed resources.
func (*ZoneOperationsListCall)Header¶
func (c *ZoneOperationsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ZoneOperationsListCall)IfNoneMatch¶
func (c *ZoneOperationsListCall) IfNoneMatch(entityTagstring) *ZoneOperationsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*ZoneOperationsListCall)MaxResults¶
func (c *ZoneOperationsListCall) MaxResults(maxResultsint64) *ZoneOperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count ofresults to be returned. Maximum value is 500 and default value is500.
func (*ZoneOperationsListCall)PageToken¶
func (c *ZoneOperationsListCall) PageToken(pageTokenstring) *ZoneOperationsListCall
PageToken sets the optional parameter "pageToken": Tag returned by aprevious list request truncated by maxResults. Used to continue aprevious list request.
func (*ZoneOperationsListCall)Pages¶
func (c *ZoneOperationsListCall) Pages(ctxcontext.Context, f func(*OperationList)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeZoneOperationsService¶
type ZoneOperationsService struct {// contains filtered or unexported fields}funcNewZoneOperationsService¶
func NewZoneOperationsService(s *Service) *ZoneOperationsService
func (*ZoneOperationsService)Get¶
func (r *ZoneOperationsService) Get(projectstring, zonestring, operationstring) *ZoneOperationsGetCall
Get: Retrieves the specified zone-specific operation resource.
func (*ZoneOperationsService)List¶
func (r *ZoneOperationsService) List(projectstring, zonestring) *ZoneOperationsListCall
List: Retrieves the list of Operation resources contained within thespecified zone.