Skip to content

Commit

Permalink
feat(serviceconsumermanagement): update the API
Browse files Browse the repository at this point in the history
#### serviceconsumermanagement:v1
The following keys were added:
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.description
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.id
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.properties.policies.description
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.properties.policies.items.$ref
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.properties.policies.type
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.type
- schemas.V1Beta1ProducerQuotaPolicy.description
- schemas.V1Beta1ProducerQuotaPolicy.id
- schemas.V1Beta1ProducerQuotaPolicy.properties.container.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.container.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.dimensions.additionalProperties.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.dimensions.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.dimensions.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.metric.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.metric.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.name.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.name.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.policyValue.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.policyValue.format
- schemas.V1Beta1ProducerQuotaPolicy.properties.policyValue.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.unit.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.unit.type
- schemas.V1Beta1ProducerQuotaPolicy.type

#### serviceconsumermanagement:v1beta1
The following keys were added:
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.description
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.id
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.properties.policies.description
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.properties.policies.items.$ref
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.properties.policies.type
- schemas.V1Beta1ImportProducerQuotaPoliciesResponse.type
- schemas.V1Beta1ProducerQuotaPolicy.description
- schemas.V1Beta1ProducerQuotaPolicy.id
- schemas.V1Beta1ProducerQuotaPolicy.properties.container.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.container.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.dimensions.additionalProperties.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.dimensions.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.dimensions.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.metric.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.metric.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.name.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.name.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.policyValue.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.policyValue.format
- schemas.V1Beta1ProducerQuotaPolicy.properties.policyValue.type
- schemas.V1Beta1ProducerQuotaPolicy.properties.unit.description
- schemas.V1Beta1ProducerQuotaPolicy.properties.unit.type
- schemas.V1Beta1ProducerQuotaPolicy.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 5, 2020
1 parent 12dcfcd commit 7e785b1
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 2 deletions.
51 changes: 50 additions & 1 deletion discovery/serviceconsumermanagement-v1.json
Expand Up @@ -542,7 +542,7 @@
}
}
},
"revision": "20200516",
"revision": "20200603",
"rootUrl": "https://serviceconsumermanagement.googleapis.com/",
"schemas": {
"AddTenantProjectRequest": {
Expand Down Expand Up @@ -2586,6 +2586,55 @@
},
"type": "object"
},
"V1Beta1ImportProducerQuotaPoliciesResponse": {
"description": "Response message for ImportProducerQuotaPolicies",
"id": "V1Beta1ImportProducerQuotaPoliciesResponse",
"properties": {
"policies": {
"description": "The policies that were created from the imported data.",
"items": {
"$ref": "V1Beta1ProducerQuotaPolicy"
},
"type": "array"
}
},
"type": "object"
},
"V1Beta1ProducerQuotaPolicy": {
"description": "Quota policy created by service producer.",
"id": "V1Beta1ProducerQuotaPolicy",
"properties": {
"container": {
"description": "The cloud resource container at which the quota policy is created. The\nformat is {container_type}/{container_number}",
"type": "string"
},
"dimensions": {
"additionalProperties": {
"type": "string"
},
"description": "\nIf this map is nonempty, then this policy applies only to specific values\nfor dimensions defined in the limit unit.\n\nFor example, an policy on a limit with the unit 1/{project}/{region}\ncould contain an entry with the key \"region\" and the value \"us-east-1\";\nthe policy is only applied to quota consumed in that region.\n\nThis map has the following restrictions:\n\n* Keys that are not defined in the limit's unit are not valid keys.\n Any string appearing in {brackets} in the unit (besides {project} or\n {user}) is a defined key.\n* \"project\" is not a valid key; the project is already specified in\n the parent resource name.\n* \"user\" is not a valid key; the API does not support quota polcies\n that apply only to a specific user.\n* If \"region\" appears as a key, its value must be a valid Cloud region.\n* If \"zone\" appears as a key, its value must be a valid Cloud zone.\n* If any valid key other than \"region\" or \"zone\" appears in the map, then\n all valid keys other than \"region\" or \"zone\" must also appear in the\n map.",
"type": "object"
},
"metric": {
"description": "The name of the metric to which this policy applies.\n\nAn example name would be:\n`compute.googleapis.com/cpus`",
"type": "string"
},
"name": {
"description": "The resource name of the producer policy.\nAn example name would be:\n`services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`",
"type": "string"
},
"policyValue": {
"description": "The quota policy value.\nCan be any nonnegative integer, or -1 (unlimited quota).",
"format": "int64",
"type": "string"
},
"unit": {
"description": "The limit unit of the limit to which this policy applies.\n\nAn example unit would be:\n`1/{project}/{region}`\nNote that `{project}` and `{region}` are not placeholders in this example;\nthe literal characters `{` and `}` occur in the string.",
"type": "string"
}
},
"type": "object"
},
"V1Beta1QuotaOverride": {
"description": "A quota override",
"id": "V1Beta1QuotaOverride",
Expand Down
51 changes: 50 additions & 1 deletion discovery/serviceconsumermanagement-v1beta1.json
Expand Up @@ -437,7 +437,7 @@
}
}
},
"revision": "20200516",
"revision": "20200603",
"rootUrl": "https://serviceconsumermanagement.googleapis.com/",
"schemas": {
"Api": {
Expand Down Expand Up @@ -2221,6 +2221,20 @@
},
"type": "object"
},
"V1Beta1ImportProducerQuotaPoliciesResponse": {
"description": "Response message for ImportProducerQuotaPolicies",
"id": "V1Beta1ImportProducerQuotaPoliciesResponse",
"properties": {
"policies": {
"description": "The policies that were created from the imported data.",
"items": {
"$ref": "V1Beta1ProducerQuotaPolicy"
},
"type": "array"
}
},
"type": "object"
},
"V1Beta1ListConsumerQuotaMetricsResponse": {
"description": "Response message for ListConsumerQuotaMetrics.",
"id": "V1Beta1ListConsumerQuotaMetricsResponse",
Expand Down Expand Up @@ -2271,6 +2285,41 @@
},
"type": "object"
},
"V1Beta1ProducerQuotaPolicy": {
"description": "Quota policy created by service producer.",
"id": "V1Beta1ProducerQuotaPolicy",
"properties": {
"container": {
"description": "The cloud resource container at which the quota policy is created. The\nformat is {container_type}/{container_number}",
"type": "string"
},
"dimensions": {
"additionalProperties": {
"type": "string"
},
"description": "\nIf this map is nonempty, then this policy applies only to specific values\nfor dimensions defined in the limit unit.\n\nFor example, an policy on a limit with the unit 1/{project}/{region}\ncould contain an entry with the key \"region\" and the value \"us-east-1\";\nthe policy is only applied to quota consumed in that region.\n\nThis map has the following restrictions:\n\n* Keys that are not defined in the limit's unit are not valid keys.\n Any string appearing in {brackets} in the unit (besides {project} or\n {user}) is a defined key.\n* \"project\" is not a valid key; the project is already specified in\n the parent resource name.\n* \"user\" is not a valid key; the API does not support quota polcies\n that apply only to a specific user.\n* If \"region\" appears as a key, its value must be a valid Cloud region.\n* If \"zone\" appears as a key, its value must be a valid Cloud zone.\n* If any valid key other than \"region\" or \"zone\" appears in the map, then\n all valid keys other than \"region\" or \"zone\" must also appear in the\n map.",
"type": "object"
},
"metric": {
"description": "The name of the metric to which this policy applies.\n\nAn example name would be:\n`compute.googleapis.com/cpus`",
"type": "string"
},
"name": {
"description": "The resource name of the producer policy.\nAn example name would be:\n`services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`",
"type": "string"
},
"policyValue": {
"description": "The quota policy value.\nCan be any nonnegative integer, or -1 (unlimited quota).",
"format": "int64",
"type": "string"
},
"unit": {
"description": "The limit unit of the limit to which this policy applies.\n\nAn example unit would be:\n`1/{project}/{region}`\nNote that `{project}` and `{region}` are not placeholders in this example;\nthe literal characters `{` and `}` occur in the string.",
"type": "string"
}
},
"type": "object"
},
"V1Beta1QuotaBucket": {
"description": "A quota bucket is a quota provisioning unit for a specific set of dimensions.",
"id": "V1Beta1QuotaBucket",
Expand Down
38 changes: 38 additions & 0 deletions src/apis/serviceconsumermanagement/v1.ts
Expand Up @@ -1548,6 +1548,44 @@ export namespace serviceconsumermanagement_v1 {
*/
overrides?: Schema$V1Beta1QuotaOverride[];
}
/**
* Response message for ImportProducerQuotaPolicies
*/
export interface Schema$V1Beta1ImportProducerQuotaPoliciesResponse {
/**
* The policies that were created from the imported data.
*/
policies?: Schema$V1Beta1ProducerQuotaPolicy[];
}
/**
* Quota policy created by service producer.
*/
export interface Schema$V1Beta1ProducerQuotaPolicy {
/**
* The cloud resource container at which the quota policy is created. The format is {container_type}/{container_number}
*/
container?: string | null;
/**
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit 1/{project}/{region} could contain an entry with the key "region" and the value "us-east-1"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * "project" is not a valid key; the project is already specified in the parent resource name. * "user" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If "region" appears as a key, its value must be a valid Cloud region. * If "zone" appears as a key, its value must be a valid Cloud zone. * If any valid key other than "region" or "zone" appears in the map, then all valid keys other than "region" or "zone" must also appear in the map.
*/
dimensions?: {[key: string]: string} | null;
/**
* The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
*/
metric?: string | null;
/**
* The resource name of the producer policy. An example name would be: `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
*/
name?: string | null;
/**
* The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
*/
policyValue?: string | null;
/**
* The limit unit of the limit to which this policy applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.
*/
unit?: string | null;
}
/**
* A quota override
*/
Expand Down
38 changes: 38 additions & 0 deletions src/apis/serviceconsumermanagement/v1beta1.ts
Expand Up @@ -1421,6 +1421,15 @@ export namespace serviceconsumermanagement_v1beta1 {
*/
overrides?: Schema$V1Beta1QuotaOverride[];
}
/**
* Response message for ImportProducerQuotaPolicies
*/
export interface Schema$V1Beta1ImportProducerQuotaPoliciesResponse {
/**
* The policies that were created from the imported data.
*/
policies?: Schema$V1Beta1ProducerQuotaPolicy[];
}
/**
* Response message for ListConsumerQuotaMetrics.
*/
Expand Down Expand Up @@ -1456,6 +1465,35 @@ export namespace serviceconsumermanagement_v1beta1 {
*/
overrides?: Schema$V1Beta1QuotaOverride[];
}
/**
* Quota policy created by service producer.
*/
export interface Schema$V1Beta1ProducerQuotaPolicy {
/**
* The cloud resource container at which the quota policy is created. The format is {container_type}/{container_number}
*/
container?: string | null;
/**
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit 1/{project}/{region} could contain an entry with the key "region" and the value "us-east-1"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * "project" is not a valid key; the project is already specified in the parent resource name. * "user" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If "region" appears as a key, its value must be a valid Cloud region. * If "zone" appears as a key, its value must be a valid Cloud zone. * If any valid key other than "region" or "zone" appears in the map, then all valid keys other than "region" or "zone" must also appear in the map.
*/
dimensions?: {[key: string]: string} | null;
/**
* The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
*/
metric?: string | null;
/**
* The resource name of the producer policy. An example name would be: `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
*/
name?: string | null;
/**
* The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
*/
policyValue?: string | null;
/**
* The limit unit of the limit to which this policy applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.
*/
unit?: string | null;
}
/**
* A quota bucket is a quota provisioning unit for a specific set of dimensions.
*/
Expand Down

0 comments on commit 7e785b1

Please sign in to comment.