Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gcp.go #241

Merged
merged 1 commit into from
Apr 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions service/elastigroup/providers/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ type LaunchSpecification struct {
StartupScript *string `json:"startupScript,omitempty"`
ShutdownScript *string `json:"shutdownScript,omitempty"`
Tags []string `json:"tags,omitempty"`
InstanceNamePrefix *string `json:"instanceNamePrefix,omitempty"`

forceSendFields []string
nullFields []string
Expand Down Expand Up @@ -1302,6 +1303,14 @@ func (o *LaunchSpecification) SetTags(v []string) *LaunchSpecification {
return o
}

// SetInstanceNamePrefix sets an instance name prefix to be used for all launched instances and their boot disk.
func (o *LaunchSpecification) SetInstanceNamePrefix(v *string) *LaunchSpecification {
if o.InstanceNamePrefix = v; o.InstanceNamePrefix == nil {
o.nullFields = append(o.nullFields, "InstanceNamePrefix")
}
return o
}

// region BackendServiceConfig setters

func (o BackendServiceConfig) MarshalJSON() ([]byte, error) {
Expand Down