Skip to content

Commit 95e5582

Browse files
committed
gen: add a pointer field
Add a sqladmin:Settings.StorageAutoResize to the list of fields represented by pointers, since false != absence. See #201. Change-Id: Iafbd9396a9fbe0749ae6d0155538a7a6dd852e24 Reviewed-on: https://code-review.googlesource.com/13112 Reviewed-by: Ross Light <[email protected]>
1 parent 1377dd1 commit 95e5582

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

google-api-go-generator/gen.go

+1
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ var pointerFields = []fieldName{
794794
{api: "servicecontrol:v1", schema: "MetricValue", field: "DoubleValue"},
795795
{api: "servicecontrol:v1", schema: "MetricValue", field: "Int64Value"},
796796
{api: "servicecontrol:v1", schema: "MetricValue", field: "StringValue"},
797+
{api: "sqladmin:v1beta4", schema: "Settings", field: "StorageAutoResize"},
797798
{api: "tasks:v1", schema: "Task", field: "Completed"},
798799
{api: "youtube:v3", schema: "ChannelSectionSnippet", field: "Position"},
799800
}

sqladmin/v1beta4/sqladmin-gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ type Settings struct {
19421942
// StorageAutoResize: Configuration to increase storage size
19431943
// automatically. The default value is false. Applies only to Second
19441944
// Generation instances.
1945-
StorageAutoResize bool `json:"storageAutoResize,omitempty"`
1945+
StorageAutoResize *bool `json:"storageAutoResize,omitempty"`
19461946

19471947
// StorageAutoResizeLimit: The maximum size to which storage capacity
19481948
// can be automatically increased. The default value is 0, which

0 commit comments

Comments
 (0)