Skip to content
Permalink
Browse files

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 d8cce341d63f52436ae62707841cb359cecb340a
Showing with 2 additions and 1 deletion.
  1. +1 −1 compute/v0.alpha/compute-gen.go
  2. +1 −0 google-api-go-generator/gen.go
// 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
@@ -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"},

0 comments on commit d8cce34

Please sign in to comment.