Add support for onCreateSet with validation. - If a filter is not provided or a status is not set, a default filter of `status = running` is used. - update `filters` field to be a slice instead of a string - add dryRunValidation call to validate fields
18 lines
445 B
Go
18 lines
445 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package host
|
|
|
|
const (
|
|
// ConstListInstancesFilter refers to a Google Cloud SDK filter to search for instances
|
|
ConstListInstancesFilter = "filters"
|
|
|
|
// ConstInstanceGroup refers to the name of a Google Cloud instance group
|
|
ConstInstanceGroup = "instance_group"
|
|
)
|
|
|
|
var allowedSetFields = map[string]struct{}{
|
|
ConstListInstancesFilter: {},
|
|
ConstInstanceGroup: {},
|
|
}
|