Skip to content

Commit

Permalink
feat(spanner): add autoscaling config to the instance proto (#2674)
Browse files Browse the repository at this point in the history
* feat(spanner): add autoscaling config to the instance proto

PiperOrigin-RevId: 573098210

Source-Link: googleapis/googleapis@d6467db

Source-Link: googleapis/googleapis-gen@9ea8b73
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWVhOGI3MzQ1ZWYyZDkzYTQ5YjE1YTMzMmE2ODJhNjE3MTRmMDczZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 13, 2023
1 parent b58d4ee commit 8d38ca3
Show file tree
Hide file tree
Showing 9 changed files with 4,079 additions and 255 deletions.
Expand Up @@ -1466,6 +1466,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.AutoscalingConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingLimits",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingLimits$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingTargets",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingTargets$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata",
"queryAllDeclaredConstructors": true,
Expand Down
Expand Up @@ -42,6 +42,7 @@
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import com.google.protobuf.Timestamp;
import com.google.spanner.admin.instance.v1.AutoscalingConfig;
import com.google.spanner.admin.instance.v1.Instance;
import com.google.spanner.admin.instance.v1.InstanceConfig;
import com.google.spanner.admin.instance.v1.InstanceConfigName;
Expand Down Expand Up @@ -801,6 +802,7 @@ public void getInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -853,6 +855,7 @@ public void getInstanceTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -905,6 +908,7 @@ public void createInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -966,6 +970,7 @@ public void createInstanceTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1027,6 +1032,7 @@ public void updateInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand All @@ -1047,6 +1053,7 @@ public void updateInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1087,6 +1094,7 @@ public void updateInstanceExceptionTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down
Expand Up @@ -44,6 +44,7 @@
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import com.google.protobuf.Timestamp;
import com.google.spanner.admin.instance.v1.AutoscalingConfig;
import com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest;
import com.google.spanner.admin.instance.v1.CreateInstanceRequest;
import com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest;
Expand Down Expand Up @@ -740,6 +741,7 @@ public void getInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -786,6 +788,7 @@ public void getInstanceTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -832,6 +835,7 @@ public void createInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -892,6 +896,7 @@ public void createInstanceTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -952,6 +957,7 @@ public void updateInstanceTest() throws Exception {
.setDisplayName("displayName1714148973")
.setNodeCount(1539922066)
.setProcessingUnits(-329117885)
.setAutoscalingConfig(AutoscalingConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.addAllEndpointUris(new ArrayList<String>())
.setCreateTime(Timestamp.newBuilder().build())
Expand Down

0 comments on commit 8d38ca3

Please sign in to comment.