Skip to content

Commit

Permalink
fix(redis): update the API
Browse files Browse the repository at this point in the history
#### redis:v1beta1

The following keys were changed:
- schemas.Instance.description
- schemas.Instance.properties.readReplicasMode.description
- schemas.Instance.properties.readReplicasMode.enumDescriptions
- schemas.Instance.properties.replicaCount.description

#### redis:v1

The following keys were changed:
- schemas.Instance.description
- schemas.Instance.properties.readReplicasMode.description
- schemas.Instance.properties.readReplicasMode.enumDescriptions
- schemas.Instance.properties.replicaCount.description
  • Loading branch information
yoshi-automation authored and bcoe committed Nov 25, 2021
1 parent 1d1cd06 commit b4bef56
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions discovery/redis-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
}
}
},
"revision": "20211026",
"revision": "20211109",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -768,7 +768,7 @@
"type": "object"
},
"Instance": {
"description": "A Google Cloud Redis instance. next id = 38",
"description": "A Google Cloud Redis instance.",
"id": "Instance",
"properties": {
"alternativeLocationId": {
Expand Down Expand Up @@ -881,16 +881,16 @@
"type": "integer"
},
"readReplicasMode": {
"description": "Optional. Read replica mode.",
"description": "Optional. Read replica mode. Can only be specified when trying to create the instance.",
"enum": [
"READ_REPLICAS_MODE_UNSPECIFIED",
"READ_REPLICAS_DISABLED",
"READ_REPLICAS_ENABLED"
],
"enumDescriptions": [
"If not set, Memorystore Redis backend will pick the mode based on other fields in the request.",
"If not set, Memorystore Redis backend will default to READ_REPLICAS_DISABLED.",
"If disabled, read endpoint will not be provided and the instance cannot scale up or down the number of replicas.",
"If enabled, read endpoint will be provided and the instance can scale up and down the number of replicas."
"If enabled, read endpoint will be provided and the instance can scale up and down the number of replicas. Not valid for basic tier."
],
"type": "string"
},
Expand All @@ -906,7 +906,7 @@
"type": "string"
},
"replicaCount": {
"description": "Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 2. Valid value for basic tier is 0 and defaults to 0.",
"description": "Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.",
"format": "int32",
"type": "integer"
},
Expand Down
12 changes: 6 additions & 6 deletions discovery/redis-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
}
}
},
"revision": "20211026",
"revision": "20211109",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -775,7 +775,7 @@
"type": "object"
},
"Instance": {
"description": "A Google Cloud Redis instance. next id = 38",
"description": "A Google Cloud Redis instance.",
"id": "Instance",
"properties": {
"alternativeLocationId": {
Expand Down Expand Up @@ -888,16 +888,16 @@
"type": "integer"
},
"readReplicasMode": {
"description": "Optional. Read replica mode.",
"description": "Optional. Read replica mode. Can only be specified when trying to create the instance.",
"enum": [
"READ_REPLICAS_MODE_UNSPECIFIED",
"READ_REPLICAS_DISABLED",
"READ_REPLICAS_ENABLED"
],
"enumDescriptions": [
"If not set, Memorystore Redis backend will pick the mode based on other fields in the request.",
"If not set, Memorystore Redis backend will default to READ_REPLICAS_DISABLED.",
"If disabled, read endpoint will not be provided and the instance cannot scale up or down the number of replicas.",
"If enabled, read endpoint will be provided and the instance can scale up and down the number of replicas."
"If enabled, read endpoint will be provided and the instance can scale up and down the number of replicas. Not valid for basic tier."
],
"type": "string"
},
Expand All @@ -913,7 +913,7 @@
"type": "string"
},
"replicaCount": {
"description": "Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 2. Valid value for basic tier is 0 and defaults to 0.",
"description": "Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.",
"format": "int32",
"type": "integer"
},
Expand Down
6 changes: 3 additions & 3 deletions src/apis/redis/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export namespace redis_v1 {
gcsSource?: Schema$GcsSource;
}
/**
* A Google Cloud Redis instance. next id = 38
* A Google Cloud Redis instance.
*/
export interface Schema$Instance {
/**
Expand Down Expand Up @@ -316,7 +316,7 @@ export namespace redis_v1 {
*/
readEndpointPort?: number | null;
/**
* Optional. Read replica mode.
* Optional. Read replica mode. Can only be specified when trying to create the instance.
*/
readReplicasMode?: string | null;
/**
Expand All @@ -328,7 +328,7 @@ export namespace redis_v1 {
*/
redisVersion?: string | null;
/**
* Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 2. Valid value for basic tier is 0 and defaults to 0.
* Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.
*/
replicaCount?: number | null;
/**
Expand Down
6 changes: 3 additions & 3 deletions src/apis/redis/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export namespace redis_v1beta1 {
gcsSource?: Schema$GcsSource;
}
/**
* A Google Cloud Redis instance. next id = 38
* A Google Cloud Redis instance.
*/
export interface Schema$Instance {
/**
Expand Down Expand Up @@ -316,7 +316,7 @@ export namespace redis_v1beta1 {
*/
readEndpointPort?: number | null;
/**
* Optional. Read replica mode.
* Optional. Read replica mode. Can only be specified when trying to create the instance.
*/
readReplicasMode?: string | null;
/**
Expand All @@ -328,7 +328,7 @@ export namespace redis_v1beta1 {
*/
redisVersion?: string | null;
/**
* Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 2. Valid value for basic tier is 0 and defaults to 0.
* Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.
*/
replicaCount?: number | null;
/**
Expand Down

0 comments on commit b4bef56

Please sign in to comment.