Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(compute): make MetadataItems.Value a pointer (#973)
This is already the case in both the beta and v1 surface.
  • Loading branch information
codyoss committed Apr 7, 2021
1 parent c12a66a commit d8cce34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compute/v0.alpha/compute-gen.go
Expand Up @@ -26656,7 +26656,7 @@ type MetadataItems struct {
// only have meaning as interpreted by the image running in the
// instance. The only restriction placed on values is that their size
// must be less than or equal to 262144 bytes (256 KiB).
Value string `json:"value,omitempty"`
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
Expand Down
1 change: 1 addition & 0 deletions google-api-go-generator/gen.go
Expand Up @@ -966,6 +966,7 @@ var pointerFields = []fieldName{
{api: "cloudmonitoring:v2beta2", schema: "Point", field: "Int64Value"},
{api: "cloudmonitoring:v2beta2", schema: "Point", field: "StringValue"},
{api: "compute:alpha", schema: "ExternalVpnGateway", field: "Id"},
{api: "compute:alpha", schema: "MetadataItems", field: "Value"},
{api: "compute:alpha", schema: "Scheduling", field: "AutomaticRestart"},
{api: "compute:beta", schema: "ExternalVpnGateway", field: "Id"},
{api: "compute:beta", schema: "MetadataItems", field: "Value"},
Expand Down

0 comments on commit d8cce34

Please sign in to comment.