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.Cluster.properties.zoneDistributionConfig.$ref
- schemas.Cluster.properties.zoneDistributionConfig.description
- schemas.TypedValue.properties.boolValue.description
- schemas.TypedValue.properties.doubleValue.description
- schemas.TypedValue.properties.int64Value.description
- schemas.TypedValue.properties.stringValue.description
- schemas.ZoneDistributionConfig.description
- schemas.ZoneDistributionConfig.id
- schemas.ZoneDistributionConfig.properties.mode.description
- schemas.ZoneDistributionConfig.properties.mode.enum
- schemas.ZoneDistributionConfig.properties.mode.enumDescriptions
- schemas.ZoneDistributionConfig.properties.mode.type
- schemas.ZoneDistributionConfig.properties.zone.description
- schemas.ZoneDistributionConfig.properties.zone.type
- schemas.ZoneDistributionConfig.type

The following keys were changed:
- schemas.ObservabilityMetricData.properties.aggregationType.enum
- schemas.ObservabilityMetricData.properties.aggregationType.enumDescriptions
- schemas.ObservabilityMetricData.properties.metricType.enum
- schemas.ObservabilityMetricData.properties.metricType.enumDescriptions

#### redis:v1

The following keys were added:
- schemas.Cluster.properties.zoneDistributionConfig.$ref
- schemas.Cluster.properties.zoneDistributionConfig.description
- schemas.TypedValue.properties.boolValue.description
- schemas.TypedValue.properties.doubleValue.description
- schemas.TypedValue.properties.int64Value.description
- schemas.TypedValue.properties.stringValue.description
- schemas.ZoneDistributionConfig.description
- schemas.ZoneDistributionConfig.id
- schemas.ZoneDistributionConfig.properties.mode.description
- schemas.ZoneDistributionConfig.properties.mode.enum
- schemas.ZoneDistributionConfig.properties.mode.enumDescriptions
- schemas.ZoneDistributionConfig.properties.mode.type
- schemas.ZoneDistributionConfig.properties.zone.description
- schemas.ZoneDistributionConfig.properties.zone.type
- schemas.ZoneDistributionConfig.type

The following keys were changed:
- schemas.ObservabilityMetricData.properties.aggregationType.enum
- schemas.ObservabilityMetricData.properties.aggregationType.enumDescriptions
- schemas.ObservabilityMetricData.properties.metricType.enum
- schemas.ObservabilityMetricData.properties.metricType.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Jun 6, 2024
1 parent 96053d3 commit bef75f0
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 12 deletions.
55 changes: 49 additions & 6 deletions discovery/redis-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@
}
}
},
"revision": "20240524",
"revision": "20240531",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"AOFConfig": {
Expand Down Expand Up @@ -1111,6 +1111,10 @@
"description": "Output only. System assigned, unique identifier for the cluster.",
"readOnly": true,
"type": "string"
},
"zoneDistributionConfig": {
"$ref": "ZoneDistributionConfig",
"description": "Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region."
}
},
"type": "object"
Expand Down Expand Up @@ -2801,11 +2805,17 @@
"description": "Required. Type of aggregation performed on the metric.",
"enum": [
"AGGREGATION_TYPE_UNSPECIFIED",
"MAXIMUM"
"PEAK",
"P99",
"P95",
"CURRENT"
],
"enumDescriptions": [
"Unspecified aggregation type.",
"Maximum aggregation type."
"PEAK aggregation type.",
"P99 aggregation type.",
"P95 aggregation type.",
"current aggregation type."
],
"type": "string"
},
Expand All @@ -2815,13 +2825,17 @@
"METRIC_TYPE_UNSPECIFIED",
"CPU_UTILIZATION",
"MEMORY_UTILIZATION",
"NETWORK_CONNECTIONS"
"NETWORK_CONNECTIONS",
"STORAGE_UTILIZATION",
"STORAGE_USED_BYTES"
],
"enumDescriptions": [
"",
"Unspecified metric type.",
"CPU utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
"Memory utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
"Number of network connections for a resource."
"Number of network connections for a resource.",
"Storage utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
"Sotrage used by a resource."
],
"type": "string"
},
Expand Down Expand Up @@ -3384,17 +3398,21 @@
"id": "TypedValue",
"properties": {
"boolValue": {
"description": "For boolean value",
"type": "boolean"
},
"doubleValue": {
"description": "For double value",
"format": "double",
"type": "number"
},
"int64Value": {
"description": "For integer value",
"format": "int64",
"type": "string"
},
"stringValue": {
"description": "For string value",
"type": "string"
}
},
Expand Down Expand Up @@ -3481,6 +3499,31 @@
}
},
"type": "object"
},
"ZoneDistributionConfig": {
"description": "Zone distribution config for allocation of cluster resources.",
"id": "ZoneDistributionConfig",
"properties": {
"mode": {
"description": "Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.",
"enum": [
"ZONE_DISTRIBUTION_MODE_UNSPECIFIED",
"MULTI_ZONE",
"SINGLE_ZONE"
],
"enumDescriptions": [
"Not Set. Default: MULTI_ZONE",
"Distribute all resources across 3 zones picked at random, within the region.",
"Distribute all resources in a single zone. The zone field must be specified, when this mode is selected."
],
"type": "string"
},
"zone": {
"description": "Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down
55 changes: 49 additions & 6 deletions discovery/redis-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@
}
}
},
"revision": "20240524",
"revision": "20240531",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"AOFConfig": {
Expand Down Expand Up @@ -1111,6 +1111,10 @@
"description": "Output only. System assigned, unique identifier for the cluster.",
"readOnly": true,
"type": "string"
},
"zoneDistributionConfig": {
"$ref": "ZoneDistributionConfig",
"description": "Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region."
}
},
"type": "object"
Expand Down Expand Up @@ -2808,11 +2812,17 @@
"description": "Required. Type of aggregation performed on the metric.",
"enum": [
"AGGREGATION_TYPE_UNSPECIFIED",
"MAXIMUM"
"PEAK",
"P99",
"P95",
"CURRENT"
],
"enumDescriptions": [
"Unspecified aggregation type.",
"Maximum aggregation type."
"PEAK aggregation type.",
"P99 aggregation type.",
"P95 aggregation type.",
"current aggregation type."
],
"type": "string"
},
Expand All @@ -2822,13 +2832,17 @@
"METRIC_TYPE_UNSPECIFIED",
"CPU_UTILIZATION",
"MEMORY_UTILIZATION",
"NETWORK_CONNECTIONS"
"NETWORK_CONNECTIONS",
"STORAGE_UTILIZATION",
"STORAGE_USED_BYTES"
],
"enumDescriptions": [
"",
"Unspecified metric type.",
"CPU utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
"Memory utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
"Number of network connections for a resource."
"Number of network connections for a resource.",
"Storage utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
"Sotrage used by a resource."
],
"type": "string"
},
Expand Down Expand Up @@ -3391,17 +3405,21 @@
"id": "TypedValue",
"properties": {
"boolValue": {
"description": "For boolean value",
"type": "boolean"
},
"doubleValue": {
"description": "For double value",
"format": "double",
"type": "number"
},
"int64Value": {
"description": "For integer value",
"format": "int64",
"type": "string"
},
"stringValue": {
"description": "For string value",
"type": "string"
}
},
Expand Down Expand Up @@ -3488,6 +3506,31 @@
}
},
"type": "object"
},
"ZoneDistributionConfig": {
"description": "Zone distribution config for allocation of cluster resources.",
"id": "ZoneDistributionConfig",
"properties": {
"mode": {
"description": "Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.",
"enum": [
"ZONE_DISTRIBUTION_MODE_UNSPECIFIED",
"MULTI_ZONE",
"SINGLE_ZONE"
],
"enumDescriptions": [
"Not Set. Default: MULTI_ZONE",
"Distribute all resources across 3 zones picked at random, within the region.",
"Distribute all resources in a single zone. The zone field must be specified, when this mode is selected."
],
"type": "string"
},
"zone": {
"description": "Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down
29 changes: 29 additions & 0 deletions src/apis/redis/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ export namespace redis_v1 {
* Output only. System assigned, unique identifier for the cluster.
*/
uid?: string | null;
/**
* Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
*/
zoneDistributionConfig?: Schema$ZoneDistributionConfig;
}
/**
* Configuration of the persistence functionality.
Expand Down Expand Up @@ -1299,9 +1303,21 @@ export namespace redis_v1 {
* TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
*/
export interface Schema$TypedValue {
/**
* For boolean value
*/
boolValue?: boolean | null;
/**
* For double value
*/
doubleValue?: number | null;
/**
* For integer value
*/
int64Value?: string | null;
/**
* For string value
*/
stringValue?: string | null;
}
/**
Expand Down Expand Up @@ -1349,6 +1365,19 @@ export namespace redis_v1 {
*/
startTime?: Schema$TimeOfDay;
}
/**
* Zone distribution config for allocation of cluster resources.
*/
export interface Schema$ZoneDistributionConfig {
/**
* Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
*/
mode?: string | null;
/**
* Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
*/
zone?: string | null;
}

export class Resource$Projects {
context: APIRequestContext;
Expand Down
29 changes: 29 additions & 0 deletions src/apis/redis/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ export namespace redis_v1beta1 {
* Output only. System assigned, unique identifier for the cluster.
*/
uid?: string | null;
/**
* Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
*/
zoneDistributionConfig?: Schema$ZoneDistributionConfig;
}
/**
* Configuration of the persistence functionality.
Expand Down Expand Up @@ -1299,9 +1303,21 @@ export namespace redis_v1beta1 {
* TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
*/
export interface Schema$TypedValue {
/**
* For boolean value
*/
boolValue?: boolean | null;
/**
* For double value
*/
doubleValue?: number | null;
/**
* For integer value
*/
int64Value?: string | null;
/**
* For string value
*/
stringValue?: string | null;
}
/**
Expand Down Expand Up @@ -1349,6 +1365,19 @@ export namespace redis_v1beta1 {
*/
startTime?: Schema$TimeOfDay;
}
/**
* Zone distribution config for allocation of cluster resources.
*/
export interface Schema$ZoneDistributionConfig {
/**
* Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
*/
mode?: string | null;
/**
* Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
*/
zone?: string | null;
}

export class Resource$Projects {
context: APIRequestContext;
Expand Down

0 comments on commit bef75f0

Please sign in to comment.