Skip to content

Commit 1615615

Browse files
committed
Added shieldedInstanceConfig object
Added `shieldedInstanceConfig` object to GCP EG
1 parent ac18ab1 commit 1615615

File tree

1 file changed

+48
-12
lines changed
  • service/elastigroup/providers/gcp

1 file changed

+48
-12
lines changed

service/elastigroup/providers/gcp/gcp.go

+48-12
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,19 @@ type Label struct {
229229

230230
// LaunchSpecification defines launch attributes for the Group. LaunchSpecification is an element of Compute.
231231
type LaunchSpecification struct {
232-
BackendServiceConfig *BackendServiceConfig `json:"backendServiceConfig,omitempty"`
233-
Disks []*Disk `json:"disks,omitempty"`
234-
Labels []*Label `json:"labels,omitempty"`
235-
IPForwarding *bool `json:"ipForwarding,omitempty"`
236-
NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`
237-
Metadata []*Metadata `json:"metadata,omitempty"`
238-
ServiceAccount *string `json:"serviceAccount,omitempty"`
239-
StartupScript *string `json:"startupScript,omitempty"`
240-
ShutdownScript *string `json:"shutdownScript,omitempty"`
241-
Tags []string `json:"tags,omitempty"`
242-
InstanceNamePrefix *string `json:"instanceNamePrefix,omitempty"`
243-
MinCpuPlatform *string `json:"minCpuPlatform,omitempty"`
232+
BackendServiceConfig *BackendServiceConfig `json:"backendServiceConfig,omitempty"`
233+
Disks []*Disk `json:"disks,omitempty"`
234+
Labels []*Label `json:"labels,omitempty"`
235+
IPForwarding *bool `json:"ipForwarding,omitempty"`
236+
NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`
237+
Metadata []*Metadata `json:"metadata,omitempty"`
238+
ServiceAccount *string `json:"serviceAccount,omitempty"`
239+
StartupScript *string `json:"startupScript,omitempty"`
240+
ShutdownScript *string `json:"shutdownScript,omitempty"`
241+
Tags []string `json:"tags,omitempty"`
242+
InstanceNamePrefix *string `json:"instanceNamePrefix,omitempty"`
243+
MinCpuPlatform *string `json:"minCpuPlatform,omitempty"`
244+
ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"`
244245

245246
forceSendFields []string
246247
nullFields []string
@@ -284,6 +285,14 @@ type Subnet struct {
284285
nullFields []string
285286
}
286287

288+
type ShieldedInstanceConfig struct {
289+
EnableSecureBoot *bool `json:"enableSecureBoot,omitempty"`
290+
EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"`
291+
292+
forceSendFields []string
293+
nullFields []string
294+
}
295+
287296
// endregion
288297

289298
// region GKE structs
@@ -1337,6 +1346,13 @@ func (o *LaunchSpecification) SetMinCpuPlatform(v *string) *LaunchSpecification
13371346
return o
13381347
}
13391348

1349+
func (o *LaunchSpecification) SetShieldedInstanceConfig(v *ShieldedInstanceConfig) *LaunchSpecification {
1350+
if o.ShieldedInstanceConfig = v; o.ShieldedInstanceConfig == nil {
1351+
o.nullFields = append(o.nullFields, "ShieldedInstanceConfig")
1352+
}
1353+
return o
1354+
}
1355+
13401356
// region BackendServiceConfig setters
13411357

13421358
func (o BackendServiceConfig) MarshalJSON() ([]byte, error) {
@@ -2242,3 +2258,23 @@ func (o *Strategy) SetShouldUtilizeCommitments(v *bool) *Strategy {
22422258
}
22432259

22442260
// endregion
2261+
2262+
func (o ShieldedInstanceConfig) MarshalJSON() ([]byte, error) {
2263+
type noMethod ShieldedInstanceConfig
2264+
raw := noMethod(o)
2265+
return jsonutil.MarshalJSON(raw, o.forceSendFields, o.nullFields)
2266+
}
2267+
2268+
func (o *ShieldedInstanceConfig) SetEnableSecureBoot(v *bool) *ShieldedInstanceConfig {
2269+
if o.EnableSecureBoot = v; o.EnableSecureBoot == nil {
2270+
o.nullFields = append(o.nullFields, "EnableSecureBoot")
2271+
}
2272+
return o
2273+
}
2274+
2275+
func (o *ShieldedInstanceConfig) SetEnableIntegrityMonitoring(v *bool) *ShieldedInstanceConfig {
2276+
if o.EnableIntegrityMonitoring = v; o.EnableIntegrityMonitoring == nil {
2277+
o.nullFields = append(o.nullFields, "EnableIntegrityMonitoring")
2278+
}
2279+
return o
2280+
}

0 commit comments

Comments
 (0)