Documentation ¶
Overview ¶
Package replicapoolupdater provides access to the Google Compute Engine Instance Group Updater API.
Usage example:
import "github.com/skelterjohn/gcloud_apis/clients/replicapoolupdater/v1beta1" ... replicapoolupdaterService, err := replicapoolupdater.New(oauthHttpClient)
Index ¶
- Constants
- type FixedOrPercent
- type InstanceUpdate
- type InstanceUpdateError
- type InstanceUpdateErrorErrors
- type InstanceUpdateList
- type ListRolloutResponse
- type Operation
- type OperationError
- type OperationErrorErrors
- type OperationList
- type OperationWarnings
- type OperationWarningsData
- type RampUpRolloutRequest
- type RollingUpdate
- type RollingUpdateError
- type RollingUpdateErrorErrors
- type RollingUpdateList
- type RollingUpdatePolicy
- type RollingUpdatesCancelCall
- 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) IfNoneMatch(entityTag string) *RollingUpdatesGetCall
- type RollingUpdatesInsertCall
- 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) 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) 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
- type RollingUpdatesResumeCall
- type RollingUpdatesRollbackCall
- 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 Rollout
- type RolloutAbandonCall
- type RolloutCommitCall
- type RolloutGetCall
- type RolloutInsertCall
- func (c *RolloutInsertCall) Context(ctx context.Context) *RolloutInsertCall
- func (c *RolloutInsertCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
- func (c *RolloutInsertCall) Fields(s ...googleapi.Field) *RolloutInsertCall
- func (c *RolloutInsertCall) UpdatePolicyInitialisationMethod(updatePolicyInitialisationMethod string) *RolloutInsertCall
- type RolloutListCall
- func (c *RolloutListCall) Context(ctx context.Context) *RolloutListCall
- func (c *RolloutListCall) Do(opts ...googleapi.CallOption) (*ListRolloutResponse, error)
- func (c *RolloutListCall) Fields(s ...googleapi.Field) *RolloutListCall
- func (c *RolloutListCall) Filter(filter string) *RolloutListCall
- func (c *RolloutListCall) IfNoneMatch(entityTag string) *RolloutListCall
- func (c *RolloutListCall) MaxResults(maxResults int64) *RolloutListCall
- func (c *RolloutListCall) PageToken(pageToken string) *RolloutListCall
- type RolloutPauseCall
- type RolloutRampupCall
- type RolloutResumeCall
- type RolloutRollbackCall
- type RolloutService
- func (r *RolloutService) Abandon(project string, zone string, rollout string) *RolloutAbandonCall
- func (r *RolloutService) Commit(project string, zone string, rollout string) *RolloutCommitCall
- func (r *RolloutService) Get(project string, zone string, rollout string) *RolloutGetCall
- func (r *RolloutService) Insert(project string, zone string, rollout *Rollout) *RolloutInsertCall
- func (r *RolloutService) List(project string, zone string) *RolloutListCall
- func (r *RolloutService) Pause(project string, zone string, rollout string) *RolloutPauseCall
- func (r *RolloutService) Rampup(project string, zone string, rollout string, ...) *RolloutRampupCall
- func (r *RolloutService) Resume(project string, zone string, rollout string) *RolloutResumeCall
- func (r *RolloutService) Rollback(project string, zone string, rollout string) *RolloutRollbackCall
- type Service
- type UpdatePolicy
- 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) 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) 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 services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // View your data across Google Cloud Platform services CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only" // View and manage replica pools ReplicapoolScope = "https://www.googleapis.com/auth/replicapool" // View replica pools ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/replicapool.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedOrPercent ¶
type FixedOrPercent struct { // Fixed: Specify a fixed amount of instances Fixed int64 `json:"fixed,omitempty"` // Percent: Specify a percentage of the total amount of instances within // an instance group manager Percent int64 `json:"percent,omitempty"` // ForceSendFields is a list of field names (e.g. "Fixed") 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:"-"` }
FixedOrPercent: Used to specify an amount of instances within an instance group. Only one of fixed and percentage can be specified.
func (*FixedOrPercent) MarshalJSON ¶
func (s *FixedOrPercent) MarshalJSON() ([]byte, error)
type InstanceUpdate ¶
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. Instance string `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. Status string `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:"-"` }
InstanceUpdate: Update of a single instance.
func (*InstanceUpdate) MarshalJSON ¶
func (s *InstanceUpdate) MarshalJSON() ([]byte, error)
type InstanceUpdateError ¶
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:"-"` }
InstanceUpdateError: Errors that occurred during the instance update.
func (*InstanceUpdateError) MarshalJSON ¶
func (s *InstanceUpdateError) MarshalJSON() ([]byte, error)
type InstanceUpdateErrorErrors ¶
type InstanceUpdateErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*InstanceUpdateErrorErrors) MarshalJSON ¶
func (s *InstanceUpdateErrorErrors) MarshalJSON() ([]byte, error)
type InstanceUpdateList ¶
type InstanceUpdateList struct { // Items: Collection of requested instance updates. Items []*InstanceUpdate `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` // NextPageToken: A token used to continue a truncated list request. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
InstanceUpdateList: Response returned by ListInstanceUpdates method.
func (*InstanceUpdateList) MarshalJSON ¶
func (s *InstanceUpdateList) MarshalJSON() ([]byte, error)
type ListRolloutResponse ¶
type ListRolloutResponse struct { Resources []*Rollout `json:"resources,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Resources") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*ListRolloutResponse) MarshalJSON ¶
func (s *ListRolloutResponse) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` 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 string `json:"httpErrorMessage,omitempty"` 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 RFC 3339 format. InsertTime string `json:"insertTime,omitempty"` // Kind: [Output Only] Type of the resource. Always // replicapoolupdater#operation for Operation resources. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` OperationType string `json:"operationType,omitempty"` Progress int64 `json:"progress,omitempty"` // Region: [Output Only] URL of the region where the operation resides. Region string `json:"region,omitempty"` // SelfLink: [Output Only] The fully qualified 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 RFC 3339 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 string `json:"user,omitempty"` Warnings []*OperationWarnings `json:"warnings,omitempty"` // Zone: [Output Only] URL of the zone where the operation resides. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClientOperationId") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Operation: An operation resource, used to manage asynchronous API requests.
func (*Operation) MarshalJSON ¶
type OperationError ¶
type OperationError struct { // Errors: [Output Only] The array of errors encountered while // processing this operation. Errors []*OperationErrorErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
OperationError: [Output Only] If errors occurred during processing of this operation, this field will be populated.
func (*OperationError) MarshalJSON ¶
func (s *OperationError) MarshalJSON() ([]byte, error)
type OperationErrorErrors ¶
type OperationErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OperationErrorErrors) MarshalJSON ¶
func (s *OperationErrorErrors) MarshalJSON() ([]byte, error)
type OperationList ¶
type OperationList struct { // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id string `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. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] A token used to continue a truncate. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
OperationList: Contains a list of Operation resources.
func (*OperationList) MarshalJSON ¶
func (s *OperationList) MarshalJSON() ([]byte, error)
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"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OperationWarnings) MarshalJSON ¶
func (s *OperationWarnings) MarshalJSON() ([]byte, error)
type OperationWarningsData ¶
type OperationWarningsData struct { // Key: [Output Only] Metadata key for this warning. Key string `json:"key,omitempty"` // Value: [Output Only] Metadata value for this warning. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OperationWarningsData) MarshalJSON ¶
func (s *OperationWarningsData) MarshalJSON() ([]byte, error)
type RampUpRolloutRequest ¶
type RampUpRolloutRequest struct { // CanarySize: The new amount of instances in the IGM to update // instances to. CanarySize *FixedOrPercent `json:"canarySize,omitempty"` // ForceSendFields is a list of field names (e.g. "CanarySize") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*RampUpRolloutRequest) MarshalJSON ¶
func (s *RampUpRolloutRequest) MarshalJSON() ([]byte, error)
type RollingUpdate ¶
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. ActionType string `json:"actionType,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional textual description of the resource; // provided by the client when the resource is created. Description string `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. Id string `json:"id,omitempty"` // InstanceGroup: Fully-qualified URL of an instance group being // updated. Exactly one of instanceGroupManager and instanceGroup must // be set. InstanceGroup string `json:"instanceGroup,omitempty"` // InstanceGroupManager: Fully-qualified URL of an instance group // manager being updated. Exactly one of instanceGroupManager and // instanceGroup must be set. InstanceGroupManager string `json:"instanceGroupManager,omitempty"` // InstanceTemplate: Fully-qualified URL of an instance template to // apply. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` // OldInstanceTemplate: Fully-qualified URL of the instance template // encountered while starting the update. OldInstanceTemplate string `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. Progress int64 `json:"progress,omitempty"` // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `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. Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional textual description of the // current status of the update. StatusMessage string `json:"statusMessage,omitempty"` // User: [Output Only] User who requested the update, for example: // user@example.com. User string `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:"-"` }
RollingUpdate: The following represents a resource describing a single update (rollout) of a group of instances to the given template.
func (*RollingUpdate) MarshalJSON ¶
func (s *RollingUpdate) MarshalJSON() ([]byte, error)
type RollingUpdateError ¶
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:"-"` }
RollingUpdateError: [Output Only] Errors that occurred during the rolling update.
func (*RollingUpdateError) MarshalJSON ¶
func (s *RollingUpdateError) MarshalJSON() ([]byte, error)
type RollingUpdateErrorErrors ¶
type RollingUpdateErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*RollingUpdateErrorErrors) MarshalJSON ¶
func (s *RollingUpdateErrorErrors) MarshalJSON() ([]byte, error)
type RollingUpdateList ¶
type RollingUpdateList struct { // Items: Collection of requested updates. Items []*RollingUpdate `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` // NextPageToken: A token used to continue a truncated list request. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
RollingUpdateList: Response returned by List method.
func (*RollingUpdateList) MarshalJSON ¶
func (s *RollingUpdateList) MarshalJSON() ([]byte, error)
type RollingUpdatePolicy ¶
type RollingUpdatePolicy struct { // AutoPauseAfterInstances: Number of instances to update before the // updater pauses the rolling update. AutoPauseAfterInstances int64 `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. InstanceStartupTimeoutSec int64 `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. MaxNumConcurrentInstances int64 `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. MaxNumFailedInstances int64 `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. MinInstanceUpdateTimeSec int64 `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:"-"` }
RollingUpdatePolicy: Parameters of the update process.
func (*RollingUpdatePolicy) MarshalJSON ¶
func (s *RollingUpdatePolicy) MarshalJSON() ([]byte, error)
type RollingUpdatesCancelCall ¶
type RollingUpdatesCancelCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesCancelCall) Context ¶
func (c *RollingUpdatesCancelCall) Context(ctx context.Context) *RollingUpdatesCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesCancelCall) Fields ¶
func (c *RollingUpdatesCancelCall) Fields(s ...googleapi.Field) *RollingUpdatesCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RollingUpdatesGetCall ¶
type RollingUpdatesGetCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesGetCall) Context ¶
func (c *RollingUpdatesGetCall) Context(ctx context.Context) *RollingUpdatesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *RollingUpdate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesGetCall) Fields ¶
func (c *RollingUpdatesGetCall) Fields(s ...googleapi.Field) *RollingUpdatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RollingUpdatesGetCall) IfNoneMatch ¶
func (c *RollingUpdatesGetCall) IfNoneMatch(entityTag string) *RollingUpdatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RollingUpdatesInsertCall ¶
type RollingUpdatesInsertCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesInsertCall) Context ¶
func (c *RollingUpdatesInsertCall) Context(ctx context.Context) *RollingUpdatesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesInsertCall) Fields ¶
func (c *RollingUpdatesInsertCall) Fields(s ...googleapi.Field) *RollingUpdatesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RollingUpdatesListCall ¶
type RollingUpdatesListCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesListCall) Context ¶
func (c *RollingUpdatesListCall) Context(ctx context.Context) *RollingUpdatesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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. Any non-2xx status code is an error. Response headers are in either *RollingUpdateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesListCall) Fields ¶
func (c *RollingUpdatesListCall) Fields(s ...googleapi.Field) *RollingUpdatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RollingUpdatesListCall) Filter ¶
func (c *RollingUpdatesListCall) Filter(filter string) *RollingUpdatesListCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*RollingUpdatesListCall) IfNoneMatch ¶
func (c *RollingUpdatesListCall) IfNoneMatch(entityTag string) *RollingUpdatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RollingUpdatesListCall) MaxResults ¶
func (c *RollingUpdatesListCall) MaxResults(maxResults int64) *RollingUpdatesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*RollingUpdatesListCall) PageToken ¶
func (c *RollingUpdatesListCall) PageToken(pageToken string) *RollingUpdatesListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
func (*RollingUpdatesListCall) Pages ¶
func (c *RollingUpdatesListCall) Pages(ctx context.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.
type RollingUpdatesListInstanceUpdatesCall ¶
type RollingUpdatesListInstanceUpdatesCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesListInstanceUpdatesCall) Context ¶
func (c *RollingUpdatesListInstanceUpdatesCall) Context(ctx context.Context) *RollingUpdatesListInstanceUpdatesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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. Any non-2xx status code is an error. Response headers are in either *InstanceUpdateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesListInstanceUpdatesCall) Fields ¶
func (c *RollingUpdatesListInstanceUpdatesCall) Fields(s ...googleapi.Field) *RollingUpdatesListInstanceUpdatesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RollingUpdatesListInstanceUpdatesCall) Filter ¶
func (c *RollingUpdatesListInstanceUpdatesCall) Filter(filter string) *RollingUpdatesListInstanceUpdatesCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*RollingUpdatesListInstanceUpdatesCall) IfNoneMatch ¶
func (c *RollingUpdatesListInstanceUpdatesCall) IfNoneMatch(entityTag string) *RollingUpdatesListInstanceUpdatesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RollingUpdatesListInstanceUpdatesCall) MaxResults ¶
func (c *RollingUpdatesListInstanceUpdatesCall) MaxResults(maxResults int64) *RollingUpdatesListInstanceUpdatesCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*RollingUpdatesListInstanceUpdatesCall) PageToken ¶
func (c *RollingUpdatesListInstanceUpdatesCall) PageToken(pageToken string) *RollingUpdatesListInstanceUpdatesCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
func (*RollingUpdatesListInstanceUpdatesCall) Pages ¶
func (c *RollingUpdatesListInstanceUpdatesCall) Pages(ctx context.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.
type RollingUpdatesPauseCall ¶
type RollingUpdatesPauseCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesPauseCall) Context ¶
func (c *RollingUpdatesPauseCall) Context(ctx context.Context) *RollingUpdatesPauseCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesPauseCall) Fields ¶
func (c *RollingUpdatesPauseCall) Fields(s ...googleapi.Field) *RollingUpdatesPauseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RollingUpdatesResumeCall ¶
type RollingUpdatesResumeCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesResumeCall) Context ¶
func (c *RollingUpdatesResumeCall) Context(ctx context.Context) *RollingUpdatesResumeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesResumeCall) Fields ¶
func (c *RollingUpdatesResumeCall) Fields(s ...googleapi.Field) *RollingUpdatesResumeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RollingUpdatesRollbackCall ¶
type RollingUpdatesRollbackCall struct {
// contains filtered or unexported fields
}
func (*RollingUpdatesRollbackCall) Context ¶
func (c *RollingUpdatesRollbackCall) Context(ctx context.Context) *RollingUpdatesRollbackCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RollingUpdatesRollbackCall) Fields ¶
func (c *RollingUpdatesRollbackCall) Fields(s ...googleapi.Field) *RollingUpdatesRollbackCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RollingUpdatesService ¶
type RollingUpdatesService struct {
// contains filtered or unexported fields
}
func NewRollingUpdatesService ¶
func NewRollingUpdatesService(s *Service) *RollingUpdatesService
func (*RollingUpdatesService) Cancel ¶
func (r *RollingUpdatesService) Cancel(project string, zone string, rollingUpdate string) *RollingUpdatesCancelCall
Cancel: Cancels an update. The update must be PAUSED before it can be cancelled. This has no effect if the update is already CANCELLED. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#cancelrollingupdate
func (*RollingUpdatesService) Get ¶
func (r *RollingUpdatesService) Get(project string, zone string, rollingUpdate string) *RollingUpdatesGetCall
Get: Returns information about an update. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate
func (*RollingUpdatesService) Insert ¶
func (r *RollingUpdatesService) Insert(project string, zone string, rollingupdate *RollingUpdate) *RollingUpdatesInsertCall
Insert: Inserts and starts a new update. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#starting_an_update
func (*RollingUpdatesService) List ¶
func (r *RollingUpdatesService) List(project string, zone string) *RollingUpdatesListCall
List: Lists recent updates for a given managed instance group, in reverse chronological order and paginated format. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate
func (*RollingUpdatesService) ListInstanceUpdates ¶
func (r *RollingUpdatesService) ListInstanceUpdates(project string, zone string, rollingUpdate string) *RollingUpdatesListInstanceUpdatesCall
ListInstanceUpdates: Lists the current status for each instance within a given update. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate
func (*RollingUpdatesService) Pause ¶
func (r *RollingUpdatesService) Pause(project string, zone string, rollingUpdate string) *RollingUpdatesPauseCall
Pause: Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no effect if invoked when the state of the update is PAUSED. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#pausing_a_rolling_update
func (*RollingUpdatesService) Resume ¶
func (r *RollingUpdatesService) Resume(project string, zone string, rollingUpdate string) *RollingUpdatesResumeCall
Resume: Continues an update in PAUSED state. Has no effect if invoked when the state of the update is ROLLED_OUT. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#continuerollingupdate
func (*RollingUpdatesService) Rollback ¶
func (r *RollingUpdatesService) Rollback(project string, zone string, rollingUpdate string) *RollingUpdatesRollbackCall
Rollback: Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect if invoked when the state of the update is ROLLED_BACK. For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#rollingbackupdate
type Rollout ¶
type Rollout struct { // CanarySize: The amount of instances within the instance group manager // to be updated to the new instance template. CanarySize *FixedOrPercent `json:"canarySize,omitempty"` // CanarySizeStages: A list of the amount of instances within the // instance group manager to be updated to the new instance template. // Each target size is updated sequentially, in the order supplied. CanarySizeStages []*FixedOrPercent `json:"canarySizeStages,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // HealthCheckDeadlineSec: How long to wait for the health checks to // return positive before assuming the update has failed or succeeded. HealthCheckDeadlineSec int64 `json:"healthCheckDeadlineSec,omitempty,string"` // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id string `json:"id,omitempty"` // InstanceGroupManager: Fully-qualified URL of an instance group // manager being updated. InstanceGroupManager string `json:"instanceGroupManager,omitempty"` // InstanceTemplate: Fully-qualified URL of an instance template to // apply. InstanceTemplate string `json:"instanceTemplate,omitempty"` // InstanceTemplateToRollback: Fully-qualified URL of the instance // template to rollback to if the rollout is cancelled. InstanceTemplateToRollback string `json:"instanceTemplateToRollback,omitempty"` // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` // ParentRollout: The parent rollout to inherit unspecified fields from. ParentRollout string `json:"parentRollout,omitempty"` // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` // State: [Output Only] The current state of the rollout. State string `json:"state,omitempty"` // UpdatePolicy: Parameters of the update process. UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CanarySize") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*Rollout) MarshalJSON ¶
type RolloutAbandonCall ¶
type RolloutAbandonCall struct {
// contains filtered or unexported fields
}
func (*RolloutAbandonCall) Context ¶
func (c *RolloutAbandonCall) Context(ctx context.Context) *RolloutAbandonCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutAbandonCall) Do ¶
func (c *RolloutAbandonCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.abandon" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutAbandonCall) Fields ¶
func (c *RolloutAbandonCall) Fields(s ...googleapi.Field) *RolloutAbandonCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RolloutCommitCall ¶
type RolloutCommitCall struct {
// contains filtered or unexported fields
}
func (*RolloutCommitCall) Context ¶
func (c *RolloutCommitCall) Context(ctx context.Context) *RolloutCommitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutCommitCall) Do ¶
func (c *RolloutCommitCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.commit" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutCommitCall) Fields ¶
func (c *RolloutCommitCall) Fields(s ...googleapi.Field) *RolloutCommitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RolloutGetCall ¶
type RolloutGetCall struct {
// contains filtered or unexported fields
}
func (*RolloutGetCall) Context ¶
func (c *RolloutGetCall) Context(ctx context.Context) *RolloutGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutGetCall) Do ¶
func (c *RolloutGetCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.get" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutGetCall) Fields ¶
func (c *RolloutGetCall) Fields(s ...googleapi.Field) *RolloutGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RolloutGetCall) IfNoneMatch ¶
func (c *RolloutGetCall) IfNoneMatch(entityTag string) *RolloutGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RolloutInsertCall ¶
type RolloutInsertCall struct {
// contains filtered or unexported fields
}
func (*RolloutInsertCall) Context ¶
func (c *RolloutInsertCall) Context(ctx context.Context) *RolloutInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutInsertCall) Do ¶
func (c *RolloutInsertCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.insert" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutInsertCall) Fields ¶
func (c *RolloutInsertCall) Fields(s ...googleapi.Field) *RolloutInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RolloutInsertCall) UpdatePolicyInitialisationMethod ¶
func (c *RolloutInsertCall) UpdatePolicyInitialisationMethod(updatePolicyInitialisationMethod string) *RolloutInsertCall
UpdatePolicyInitialisationMethod sets the optional parameter "updatePolicyInitialisationMethod": How the update policy should be initialised.
Possible values:
"FROM_IGM" "FROM_PARENT"
type RolloutListCall ¶
type RolloutListCall struct {
// contains filtered or unexported fields
}
func (*RolloutListCall) Context ¶
func (c *RolloutListCall) Context(ctx context.Context) *RolloutListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutListCall) Do ¶
func (c *RolloutListCall) Do(opts ...googleapi.CallOption) (*ListRolloutResponse, error)
Do executes the "replicapoolupdater.rollout.list" call. Exactly one of *ListRolloutResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRolloutResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutListCall) Fields ¶
func (c *RolloutListCall) Fields(s ...googleapi.Field) *RolloutListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RolloutListCall) Filter ¶
func (c *RolloutListCall) Filter(filter string) *RolloutListCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*RolloutListCall) IfNoneMatch ¶
func (c *RolloutListCall) IfNoneMatch(entityTag string) *RolloutListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RolloutListCall) MaxResults ¶
func (c *RolloutListCall) MaxResults(maxResults int64) *RolloutListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*RolloutListCall) PageToken ¶
func (c *RolloutListCall) PageToken(pageToken string) *RolloutListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type RolloutPauseCall ¶
type RolloutPauseCall struct {
// contains filtered or unexported fields
}
func (*RolloutPauseCall) Context ¶
func (c *RolloutPauseCall) Context(ctx context.Context) *RolloutPauseCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutPauseCall) Do ¶
func (c *RolloutPauseCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.pause" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutPauseCall) Fields ¶
func (c *RolloutPauseCall) Fields(s ...googleapi.Field) *RolloutPauseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RolloutRampupCall ¶
type RolloutRampupCall struct {
// contains filtered or unexported fields
}
func (*RolloutRampupCall) Context ¶
func (c *RolloutRampupCall) Context(ctx context.Context) *RolloutRampupCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutRampupCall) Do ¶
func (c *RolloutRampupCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.rampup" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutRampupCall) Fields ¶
func (c *RolloutRampupCall) Fields(s ...googleapi.Field) *RolloutRampupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RolloutResumeCall ¶
type RolloutResumeCall struct {
// contains filtered or unexported fields
}
func (*RolloutResumeCall) Context ¶
func (c *RolloutResumeCall) Context(ctx context.Context) *RolloutResumeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutResumeCall) Do ¶
func (c *RolloutResumeCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.resume" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutResumeCall) Fields ¶
func (c *RolloutResumeCall) Fields(s ...googleapi.Field) *RolloutResumeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RolloutRollbackCall ¶
type RolloutRollbackCall struct {
// contains filtered or unexported fields
}
func (*RolloutRollbackCall) Context ¶
func (c *RolloutRollbackCall) Context(ctx context.Context) *RolloutRollbackCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RolloutRollbackCall) Do ¶
func (c *RolloutRollbackCall) Do(opts ...googleapi.CallOption) (*Rollout, error)
Do executes the "replicapoolupdater.rollout.rollback" call. Exactly one of *Rollout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Rollout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RolloutRollbackCall) Fields ¶
func (c *RolloutRollbackCall) Fields(s ...googleapi.Field) *RolloutRollbackCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RolloutService ¶
type RolloutService struct {
// contains filtered or unexported fields
}
func NewRolloutService ¶
func NewRolloutService(s *Service) *RolloutService
func (*RolloutService) Abandon ¶
func (r *RolloutService) Abandon(project string, zone string, rollout string) *RolloutAbandonCall
Abandon: Abandon a rollout, leaving the IGM in the state it is already configured. This allows you to apply a new rollout to the IGM.
func (*RolloutService) Commit ¶
func (r *RolloutService) Commit(project string, zone string, rollout string) *RolloutCommitCall
Commit: Commits a rollout, so that it is final and can not be rolled back
func (*RolloutService) Get ¶
func (r *RolloutService) Get(project string, zone string, rollout string) *RolloutGetCall
Get: Get the details of a rollout
func (*RolloutService) Insert ¶
func (r *RolloutService) Insert(project string, zone string, rollout *Rollout) *RolloutInsertCall
Insert: Inserts and starts a new rollout
func (*RolloutService) List ¶
func (r *RolloutService) List(project string, zone string) *RolloutListCall
List: Resume a rollout. This lets the rollout continue updating instances after a pause.
func (*RolloutService) Pause ¶
func (r *RolloutService) Pause(project string, zone string, rollout string) *RolloutPauseCall
Pause: Pause the application of a rollout. This stops the update, and the instances managed by the instance group manager do not change their instance templates.
func (*RolloutService) Rampup ¶
func (r *RolloutService) Rampup(project string, zone string, rollout string, rampuprolloutrequest *RampUpRolloutRequest) *RolloutRampupCall
Rampup: Change the amount of instances within an IGM that should be updated to the new instance template
func (*RolloutService) Resume ¶
func (r *RolloutService) Resume(project string, zone string, rollout string) *RolloutResumeCall
Resume: Resume a rollout. This lets the rollout continue updating instances after a pause.
func (*RolloutService) Rollback ¶
func (r *RolloutService) Rollback(project string, zone string, rollout string) *RolloutRollbackCall
Rollback: Rollback a rollout, cancelling the update and changing all instances with the updated version to have the instanceTemplateToRollback template.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment RollingUpdates *RollingUpdatesService Rollout *RolloutService ZoneOperations *ZoneOperationsService // contains filtered or unexported fields }
type UpdatePolicy ¶
type UpdatePolicy struct { // MaxSurge: Maximum number of instances that can be created above the // InstanceGroupManager.targetSize during the update process. By // default, a fixed value of 1 is used. Using maxSurge > 0 will cause // instance names to change during the update process. At least one of { // maxSurge, maxUnavailable } must be greater than 0. MaxSurge *FixedOrPercent `json:"maxSurge,omitempty"` // during the update process. The instance is considered available if // all of the following conditions are satisfied: 1. instance's status // is RUNNING 2. instance's liveness health check result was observed to // be HEALTHY at least once By default, a fixed value of 1 is used. At // least one of { maxSurge, maxUnavailable } must be greater than 0. MaxUnavailable *FixedOrPercent `json:"maxUnavailable,omitempty"` // MinReadySec: Minimum number of seconds to wait for after a newly // created instance becomes available. This value must be from range [0, // 3600]. MinReadySec int64 `json:"minReadySec,omitempty"` // MinimalAction: Minimal action to be taken on an instance. The order // of action types is: RESTART < REPLACE. MinimalAction string `json:"minimalAction,omitempty"` Type string `json:"type,omitempty"` // UpdateType: The type of update UpdateType string `json:"updateType,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxSurge") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*UpdatePolicy) MarshalJSON ¶
func (s *UpdatePolicy) MarshalJSON() ([]byte, error)
type ZoneOperationsGetCall ¶
type ZoneOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsGetCall) Context ¶
func (c *ZoneOperationsGetCall) Context(ctx context.Context) *ZoneOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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.
func (*ZoneOperationsGetCall) IfNoneMatch ¶
func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ZoneOperationsListCall ¶
type ZoneOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsListCall) Context ¶
func (c *ZoneOperationsListCall) Context(ctx context.Context) *ZoneOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*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-2xx status code is an error. Response headers are in either *OperationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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) IfNoneMatch ¶
func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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.
func (*ZoneOperationsListCall) Pages ¶
func (c *ZoneOperationsListCall) Pages(ctx context.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.
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.