From 5d5097861f632634915858d88a0cb8c9c4fe4b05 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 22 Jun 2022 12:44:00 -0700 Subject: [PATCH] fix(storage): *int64 instead of int64 for Age cond --- google-api-go-generator/gen.go | 1 + storage/v1/storage-gen.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 3dc26090268..4e26623dcb1 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -1011,6 +1011,7 @@ var pointerFields = []fieldName{ {api: "sqladmin:v1beta4", schema: "Settings", field: "StorageAutoResize"}, {api: "sqladmin:v1", schema: "Settings", field: "StorageAutoResize"}, {api: "storage:v1", schema: "BucketLifecycleRuleCondition", field: "IsLive"}, + {api: "storage:v1", schema: "BucketLifecycleRuleCondition", field: "Age"}, {api: "storage:v1beta2", schema: "BucketLifecycleRuleCondition", field: "IsLive"}, {api: "tasks:v1", schema: "Task", field: "Completed"}, {api: "youtube:v3", schema: "ChannelSectionSnippet", field: "Position"}, diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index 0b01f8557c3..37930cd5e16 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -822,7 +822,7 @@ func (s *BucketLifecycleRuleAction) MarshalJSON() ([]byte, error) { type BucketLifecycleRuleCondition struct { // Age: Age of an object (in days). This condition is satisfied when an // object reaches the specified age. - Age int64 `json:"age,omitempty"` + Age *int64 `json:"age,omitempty"` // CreatedBefore: A date in RFC 3339 format with only the date part (for // instance, "2013-01-15"). This condition is satisfied when an object