Skip to content

Commit

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

The following keys were added:
- schemas.Instance.properties.nodes.description
- schemas.Instance.properties.nodes.items.$ref
- schemas.Instance.properties.nodes.readOnly
- schemas.Instance.properties.nodes.type
- schemas.Instance.properties.readEndpoint.description
- schemas.Instance.properties.readEndpoint.readOnly
- schemas.Instance.properties.readEndpoint.type
- schemas.Instance.properties.readEndpointPort.description
- schemas.Instance.properties.readEndpointPort.format
- schemas.Instance.properties.readEndpointPort.readOnly
- schemas.Instance.properties.readEndpointPort.type
- schemas.Instance.properties.readReplicasMode.description
- schemas.Instance.properties.readReplicasMode.enum
- schemas.Instance.properties.readReplicasMode.enumDescriptions
- schemas.Instance.properties.readReplicasMode.type
- schemas.Instance.properties.replicaCount.description
- schemas.Instance.properties.replicaCount.format
- schemas.Instance.properties.replicaCount.type
- schemas.NodeInfo.description
- schemas.NodeInfo.id
- schemas.NodeInfo.properties.id.description
- schemas.NodeInfo.properties.id.readOnly
- schemas.NodeInfo.properties.id.type
- schemas.NodeInfo.properties.zone.description
- schemas.NodeInfo.properties.zone.readOnly
- schemas.NodeInfo.properties.zone.type
- schemas.NodeInfo.type

#### redis:v1

The following keys were added:
- schemas.Instance.properties.nodes.description
- schemas.Instance.properties.nodes.items.$ref
- schemas.Instance.properties.nodes.readOnly
- schemas.Instance.properties.nodes.type
- schemas.Instance.properties.readEndpoint.description
- schemas.Instance.properties.readEndpoint.readOnly
- schemas.Instance.properties.readEndpoint.type
- schemas.Instance.properties.readEndpointPort.description
- schemas.Instance.properties.readEndpointPort.format
- schemas.Instance.properties.readEndpointPort.readOnly
- schemas.Instance.properties.readEndpointPort.type
- schemas.Instance.properties.readReplicasMode.description
- schemas.Instance.properties.readReplicasMode.enum
- schemas.Instance.properties.readReplicasMode.enumDescriptions
- schemas.Instance.properties.readReplicasMode.type
- schemas.Instance.properties.replicaCount.description
- schemas.Instance.properties.replicaCount.format
- schemas.Instance.properties.replicaCount.type
- schemas.NodeInfo.description
- schemas.NodeInfo.id
- schemas.NodeInfo.properties.id.description
- schemas.NodeInfo.properties.id.readOnly
- schemas.NodeInfo.properties.id.type
- schemas.NodeInfo.properties.zone.description
- schemas.NodeInfo.properties.zone.readOnly
- schemas.NodeInfo.properties.zone.type
- schemas.NodeInfo.type
  • Loading branch information
yoshi-automation authored and bcoe committed Oct 18, 2021
1 parent 8bd83cf commit 6821f71
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 2 deletions.
57 changes: 56 additions & 1 deletion discovery/redis-v1.json
Expand Up @@ -624,7 +624,7 @@
}
}
},
"revision": "20210909",
"revision": "20210930",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -846,6 +846,14 @@
"description": "Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details.",
"type": "string"
},
"nodes": {
"description": "Output only. Info per node.",
"items": {
"$ref": "NodeInfo"
},
"readOnly": true,
"type": "array"
},
"persistenceIamIdentity": {
"description": "Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is \"serviceAccount:\". The value may change over time for a given instance so should be checked before each import/export operation.",
"readOnly": true,
Expand All @@ -857,6 +865,31 @@
"readOnly": true,
"type": "integer"
},
"readEndpoint": {
"description": "Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.",
"readOnly": true,
"type": "string"
},
"readEndpointPort": {
"description": "Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"readReplicasMode": {
"description": "Optional. Read replica mode.",
"enum": [
"READ_REPLICAS_MODE_UNSPECIFIED",
"READ_REPLICAS_DISABLED",
"READ_REPLICAS_ENABLED"
],
"enumDescriptions": [
"If not set, redis backend would pick the mode based on other fields in the request.",
"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."
],
"type": "string"
},
"redisConfigs": {
"additionalProperties": {
"type": "string"
Expand All @@ -868,6 +901,11 @@
"description": "Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility",
"type": "string"
},
"replicaCount": {
"description": "Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults to 0.",
"format": "int32",
"type": "integer"
},
"reservedIpRange": {
"description": "Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29.",
"type": "string"
Expand Down Expand Up @@ -1108,6 +1146,23 @@
},
"type": "object"
},
"NodeInfo": {
"description": "Node specific properties.",
"id": "NodeInfo",
"properties": {
"id": {
"description": "Output only. Output Only. Node identifying string. e.g. 'node-0', 'node-1'",
"readOnly": true,
"type": "string"
},
"zone": {
"description": "Output only. Output Only. Location of the node.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
Expand Down
57 changes: 56 additions & 1 deletion discovery/redis-v1beta1.json
Expand Up @@ -624,7 +624,7 @@
}
}
},
"revision": "20210909",
"revision": "20210930",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -853,6 +853,14 @@
"description": "Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details.",
"type": "string"
},
"nodes": {
"description": "Output only. Info per node.",
"items": {
"$ref": "NodeInfo"
},
"readOnly": true,
"type": "array"
},
"persistenceIamIdentity": {
"description": "Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is \"serviceAccount:\". The value may change over time for a given instance so should be checked before each import/export operation.",
"readOnly": true,
Expand All @@ -864,6 +872,31 @@
"readOnly": true,
"type": "integer"
},
"readEndpoint": {
"description": "Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.",
"readOnly": true,
"type": "string"
},
"readEndpointPort": {
"description": "Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"readReplicasMode": {
"description": "Optional. Read replica mode.",
"enum": [
"READ_REPLICAS_MODE_UNSPECIFIED",
"READ_REPLICAS_DISABLED",
"READ_REPLICAS_ENABLED"
],
"enumDescriptions": [
"If not set, redis backend would pick the mode based on other fields in the request.",
"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."
],
"type": "string"
},
"redisConfigs": {
"additionalProperties": {
"type": "string"
Expand All @@ -875,6 +908,11 @@
"description": "Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility",
"type": "string"
},
"replicaCount": {
"description": "Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults to 0.",
"format": "int32",
"type": "integer"
},
"reservedIpRange": {
"description": "Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29.",
"type": "string"
Expand Down Expand Up @@ -1115,6 +1153,23 @@
},
"type": "object"
},
"NodeInfo": {
"description": "Node specific properties.",
"id": "NodeInfo",
"properties": {
"id": {
"description": "Output only. Output Only. Node identifying string. e.g. 'node-0', 'node-1'",
"readOnly": true,
"type": "string"
},
"zone": {
"description": "Output only. Output Only. Location of the node.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
Expand Down
48 changes: 48 additions & 0 deletions src/apis/redis/v1.ts
Expand Up @@ -291,6 +291,10 @@ export namespace redis_v1 {
* Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id\}/locations/{location_id\}/instances/{instance_id\}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details.
*/
name?: string | null;
/**
* Output only. Info per node.
*/
nodes?: Schema$NodeInfo[];
/**
* Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:". The value may change over time for a given instance so should be checked before each import/export operation.
*/
Expand All @@ -299,6 +303,18 @@ export namespace redis_v1 {
* Output only. The port number of the exposed Redis endpoint.
*/
port?: number | null;
/**
* Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.
*/
readEndpoint?: string | null;
/**
* Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.
*/
readEndpointPort?: number | null;
/**
* Optional. Read replica mode.
*/
readReplicasMode?: string | null;
/**
* Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
*/
Expand All @@ -307,6 +323,10 @@ export namespace redis_v1 {
* Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility
*/
redisVersion?: string | null;
/**
* Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults to 0.
*/
replicaCount?: number | null;
/**
* Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29.
*/
Expand Down Expand Up @@ -451,6 +471,19 @@ export namespace redis_v1 {
*/
startTime?: string | null;
}
/**
* Node specific properties.
*/
export interface Schema$NodeInfo {
/**
* Output only. Output Only. Node identifying string. e.g. 'node-0', 'node-1'
*/
id?: string | null;
/**
* Output only. Output Only. Location of the node.
*/
zone?: string | null;
}
/**
* This resource represents a long-running operation that is the result of a network API call.
*/
Expand Down Expand Up @@ -964,10 +997,15 @@ export namespace redis_v1 {
* // "maintenanceSchedule": {},
* // "memorySizeGb": 0,
* // "name": "my_name",
* // "nodes": [],
* // "persistenceIamIdentity": "my_persistenceIamIdentity",
* // "port": 0,
* // "readEndpoint": "my_readEndpoint",
* // "readEndpointPort": 0,
* // "readReplicasMode": "my_readReplicasMode",
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "replicaCount": 0,
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
Expand Down Expand Up @@ -1537,10 +1575,15 @@ export namespace redis_v1 {
* // "maintenanceSchedule": {},
* // "memorySizeGb": 0,
* // "name": "my_name",
* // "nodes": [],
* // "persistenceIamIdentity": "my_persistenceIamIdentity",
* // "port": 0,
* // "readEndpoint": "my_readEndpoint",
* // "readEndpointPort": 0,
* // "readReplicasMode": "my_readReplicasMode",
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "replicaCount": 0,
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
Expand Down Expand Up @@ -2101,10 +2144,15 @@ export namespace redis_v1 {
* // "maintenanceSchedule": {},
* // "memorySizeGb": 0,
* // "name": "my_name",
* // "nodes": [],
* // "persistenceIamIdentity": "my_persistenceIamIdentity",
* // "port": 0,
* // "readEndpoint": "my_readEndpoint",
* // "readEndpointPort": 0,
* // "readReplicasMode": "my_readReplicasMode",
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "replicaCount": 0,
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
Expand Down

0 comments on commit 6821f71

Please sign in to comment.