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.serverCaCerts.description
- schemas.Instance.properties.serverCaCerts.items.$ref
- schemas.Instance.properties.serverCaCerts.readOnly
- schemas.Instance.properties.serverCaCerts.type
- schemas.Instance.properties.transitEncryptionMode.description
- schemas.Instance.properties.transitEncryptionMode.enum
- schemas.Instance.properties.transitEncryptionMode.enumDescriptions
- schemas.Instance.properties.transitEncryptionMode.type
- schemas.TlsCertificate.description
- schemas.TlsCertificate.id
- schemas.TlsCertificate.properties.cert.description
- schemas.TlsCertificate.properties.cert.type
- schemas.TlsCertificate.properties.createTime.description
- schemas.TlsCertificate.properties.createTime.format
- schemas.TlsCertificate.properties.createTime.readOnly
- schemas.TlsCertificate.properties.createTime.type
- schemas.TlsCertificate.properties.expireTime.description
- schemas.TlsCertificate.properties.expireTime.format
- schemas.TlsCertificate.properties.expireTime.readOnly
- schemas.TlsCertificate.properties.expireTime.type
- schemas.TlsCertificate.properties.serialNumber.description
- schemas.TlsCertificate.properties.serialNumber.type
- schemas.TlsCertificate.properties.sha1Fingerprint.description
- schemas.TlsCertificate.properties.sha1Fingerprint.type
- schemas.TlsCertificate.type

#### redis:v1
The following keys were added:
- schemas.Instance.properties.serverCaCerts.description
- schemas.Instance.properties.serverCaCerts.items.$ref
- schemas.Instance.properties.serverCaCerts.readOnly
- schemas.Instance.properties.serverCaCerts.type
- schemas.Instance.properties.transitEncryptionMode.description
- schemas.Instance.properties.transitEncryptionMode.enum
- schemas.Instance.properties.transitEncryptionMode.enumDescriptions
- schemas.Instance.properties.transitEncryptionMode.type
- schemas.TlsCertificate.description
- schemas.TlsCertificate.id
- schemas.TlsCertificate.properties.cert.description
- schemas.TlsCertificate.properties.cert.type
- schemas.TlsCertificate.properties.createTime.description
- schemas.TlsCertificate.properties.createTime.format
- schemas.TlsCertificate.properties.createTime.readOnly
- schemas.TlsCertificate.properties.createTime.type
- schemas.TlsCertificate.properties.expireTime.description
- schemas.TlsCertificate.properties.expireTime.format
- schemas.TlsCertificate.properties.expireTime.readOnly
- schemas.TlsCertificate.properties.expireTime.type
- schemas.TlsCertificate.properties.serialNumber.description
- schemas.TlsCertificate.properties.serialNumber.type
- schemas.TlsCertificate.properties.sha1Fingerprint.description
- schemas.TlsCertificate.properties.sha1Fingerprint.type
- schemas.TlsCertificate.type
  • Loading branch information
yoshi-automation authored and bcoe committed Nov 16, 2020
1 parent d42ee26 commit 6dce97d
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 9 deletions.
55 changes: 54 additions & 1 deletion discovery/redis-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
}
}
},
"revision": "20201104",
"revision": "20201110",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -835,6 +835,14 @@
"description": "Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network.",
"type": "string"
},
"serverCaCerts": {
"description": "Output only. List of server CA certificates for the instance.",
"items": {
"$ref": "TlsCertificate"
},
"readOnly": true,
"type": "array"
},
"state": {
"description": "Output only. The current state of this instance.",
"enum": [
Expand Down Expand Up @@ -880,6 +888,20 @@
"STANDARD_HA tier: highly available primary/replica instances"
],
"type": "string"
},
"transitEncryptionMode": {
"description": "Optional. The In-transit encryption mode of Redis instance. If not provided, in-transit encryption is disabled for instance.",
"enum": [
"TRANSIT_ENCRYPTION_MODE_UNSPECIFIED",
"SERVER_AUTHENTICATION",
"DISABLED"
],
"enumDescriptions": [
"Not set.",
"In-transit encryption enabled with server authentication",
"In-transit encryption is disabled for instance."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1063,6 +1085,37 @@
},
"type": "object"
},
"TlsCertificate": {
"description": "TlsCertificate Resource",
"id": "TlsCertificate",
"properties": {
"cert": {
"description": "PEM representation.",
"type": "string"
},
"createTime": {
"description": "Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"expireTime": {
"description": "Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"serialNumber": {
"description": "Serial number, as extracted from the certificate.",
"type": "string"
},
"sha1Fingerprint": {
"description": "Sha1 Fingerprint of the certificate.",
"type": "string"
}
},
"type": "object"
},
"UpgradeInstanceRequest": {
"description": "Request for UpgradeInstance.",
"id": "UpgradeInstanceRequest",
Expand Down
55 changes: 54 additions & 1 deletion discovery/redis-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
}
}
},
"revision": "20200928",
"revision": "20201110",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -835,6 +835,14 @@
"description": "Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network.",
"type": "string"
},
"serverCaCerts": {
"description": "Output only. List of server CA certificates for the instance.",
"items": {
"$ref": "TlsCertificate"
},
"readOnly": true,
"type": "array"
},
"state": {
"description": "Output only. The current state of this instance.",
"enum": [
Expand Down Expand Up @@ -880,6 +888,20 @@
"STANDARD_HA tier: highly available primary/replica instances"
],
"type": "string"
},
"transitEncryptionMode": {
"description": "Optional. The In-transit encryption mode of Redis instance. If not provided, in-transit encryption is disabled for instance.",
"enum": [
"TRANSIT_ENCRYPTION_MODE_UNSPECIFIED",
"SERVER_AUTHENTICATION",
"DISABLED"
],
"enumDescriptions": [
"Not set.",
"In-transit encryption enabled with server authentication",
"In-transit encryption is disabled for instance."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1063,6 +1085,37 @@
},
"type": "object"
},
"TlsCertificate": {
"description": "TlsCertificate Resource",
"id": "TlsCertificate",
"properties": {
"cert": {
"description": "PEM representation.",
"type": "string"
},
"createTime": {
"description": "Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"expireTime": {
"description": "Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"serialNumber": {
"description": "Serial number, as extracted from the certificate.",
"type": "string"
},
"sha1Fingerprint": {
"description": "Sha1 Fingerprint of the certificate.",
"type": "string"
}
},
"type": "object"
},
"UpgradeInstanceRequest": {
"description": "Request for UpgradeInstance.",
"id": "UpgradeInstanceRequest",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/redis/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@google/redis",
"name": "@googleapis/redis",
"version": "0.1.0",
"description": "redis",
"main": "build/index.js",
Expand Down
45 changes: 42 additions & 3 deletions src/apis/redis/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ export namespace redis_v1 {
* Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network.
*/
reservedIpRange?: string | null;
/**
* Output only. List of server CA certificates for the instance.
*/
serverCaCerts?: Schema$TlsCertificate[];
/**
* Output only. The current state of this instance.
*/
Expand All @@ -313,6 +317,10 @@ export namespace redis_v1 {
* Required. The service tier of the instance.
*/
tier?: string | null;
/**
* Optional. The In-transit encryption mode of Redis instance. If not provided, in-transit encryption is disabled for instance.
*/
transitEncryptionMode?: string | null;
}
/**
* Instance AUTH string details.
Expand Down Expand Up @@ -442,6 +450,31 @@ export namespace redis_v1 {
*/
message?: string | null;
}
/**
* TlsCertificate Resource
*/
export interface Schema$TlsCertificate {
/**
* PEM representation.
*/
cert?: string | null;
/**
* Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.
*/
createTime?: string | null;
/**
* Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.
*/
expireTime?: string | null;
/**
* Serial number, as extracted from the certificate.
*/
serialNumber?: string | null;
/**
* Sha1 Fingerprint of the certificate.
*/
sha1Fingerprint?: string | null;
}
/**
* Request for UpgradeInstance.
*/
Expand Down Expand Up @@ -831,9 +864,11 @@ export namespace redis_v1 {
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
* // "statusMessage": "my_statusMessage",
* // "tier": "my_tier"
* // "tier": "my_tier",
* // "transitEncryptionMode": "my_transitEncryptionMode"
* // }
* },
* });
Expand Down Expand Up @@ -1400,9 +1435,11 @@ export namespace redis_v1 {
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
* // "statusMessage": "my_statusMessage",
* // "tier": "my_tier"
* // "tier": "my_tier",
* // "transitEncryptionMode": "my_transitEncryptionMode"
* // }
* }
*
Expand Down Expand Up @@ -1959,9 +1996,11 @@ export namespace redis_v1 {
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
* // "statusMessage": "my_statusMessage",
* // "tier": "my_tier"
* // "tier": "my_tier",
* // "transitEncryptionMode": "my_transitEncryptionMode"
* // }
* },
* });
Expand Down
45 changes: 42 additions & 3 deletions src/apis/redis/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ export namespace redis_v1beta1 {
* Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network.
*/
reservedIpRange?: string | null;
/**
* Output only. List of server CA certificates for the instance.
*/
serverCaCerts?: Schema$TlsCertificate[];
/**
* Output only. The current state of this instance.
*/
Expand All @@ -313,6 +317,10 @@ export namespace redis_v1beta1 {
* Required. The service tier of the instance.
*/
tier?: string | null;
/**
* Optional. The In-transit encryption mode of Redis instance. If not provided, in-transit encryption is disabled for instance.
*/
transitEncryptionMode?: string | null;
}
/**
* Instance AUTH string details.
Expand Down Expand Up @@ -442,6 +450,31 @@ export namespace redis_v1beta1 {
*/
message?: string | null;
}
/**
* TlsCertificate Resource
*/
export interface Schema$TlsCertificate {
/**
* PEM representation.
*/
cert?: string | null;
/**
* Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.
*/
createTime?: string | null;
/**
* Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.
*/
expireTime?: string | null;
/**
* Serial number, as extracted from the certificate.
*/
serialNumber?: string | null;
/**
* Sha1 Fingerprint of the certificate.
*/
sha1Fingerprint?: string | null;
}
/**
* Request for UpgradeInstance.
*/
Expand Down Expand Up @@ -831,9 +864,11 @@ export namespace redis_v1beta1 {
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
* // "statusMessage": "my_statusMessage",
* // "tier": "my_tier"
* // "tier": "my_tier",
* // "transitEncryptionMode": "my_transitEncryptionMode"
* // }
* },
* });
Expand Down Expand Up @@ -1403,9 +1438,11 @@ export namespace redis_v1beta1 {
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
* // "statusMessage": "my_statusMessage",
* // "tier": "my_tier"
* // "tier": "my_tier",
* // "transitEncryptionMode": "my_transitEncryptionMode"
* // }
* }
*
Expand Down Expand Up @@ -1965,9 +2002,11 @@ export namespace redis_v1beta1 {
* // "redisConfigs": {},
* // "redisVersion": "my_redisVersion",
* // "reservedIpRange": "my_reservedIpRange",
* // "serverCaCerts": [],
* // "state": "my_state",
* // "statusMessage": "my_statusMessage",
* // "tier": "my_tier"
* // "tier": "my_tier",
* // "transitEncryptionMode": "my_transitEncryptionMode"
* // }
* },
* });
Expand Down

0 comments on commit 6dce97d

Please sign in to comment.