Skip to content

Commit

Permalink
feat(serviceusage)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### serviceusage:v1beta1

The following keys were deleted:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.read-only.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/service.management.description

The following keys were changed:
- resources.operations.methods.get.scopes
- resources.operations.methods.list.scopes
- resources.services.methods.batchEnable.description
- resources.services.methods.batchEnable.scopes
- resources.services.methods.disable.description
- resources.services.methods.disable.scopes
- resources.services.methods.enable.description
- resources.services.methods.enable.scopes
- resources.services.methods.generateServiceIdentity.description
- resources.services.methods.generateServiceIdentity.scopes
- resources.services.methods.get.scopes
- resources.services.methods.list.description
- resources.services.methods.list.scopes
- resources.services.resources.consumerQuotaMetrics.methods.get.parameters.name.description
- resources.services.resources.consumerQuotaMetrics.methods.get.scopes
- resources.services.resources.consumerQuotaMetrics.methods.importAdminOverrides.description
- resources.services.resources.consumerQuotaMetrics.methods.importAdminOverrides.scopes
- resources.services.resources.consumerQuotaMetrics.methods.importConsumerOverrides.description
- resources.services.resources.consumerQuotaMetrics.methods.importConsumerOverrides.scopes
- resources.services.resources.consumerQuotaMetrics.methods.list.parameters.parent.description
- resources.services.resources.consumerQuotaMetrics.methods.list.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.methods.get.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.adminOverrides.methods.create.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.adminOverrides.methods.delete.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.adminOverrides.methods.list.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.adminOverrides.methods.patch.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.consumerOverrides.methods.create.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.consumerOverrides.methods.delete.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.consumerOverrides.methods.list.scopes
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.consumerOverrides.methods.patch.scopes
- schemas.AdminQuotaPolicy.properties.container.description
- schemas.AdminQuotaPolicy.properties.dimensions.description
- schemas.Authentication.description
- schemas.ConsumerQuotaMetric.properties.displayName.description
- schemas.ConsumerQuotaMetric.properties.name.description
- schemas.QuotaBucket.properties.dimensions.description
- schemas.QuotaOverride.properties.adminOverrideAncestor.description
- schemas.QuotaOverride.properties.dimensions.description
- schemas.Service.properties.name.description
- schemas.Service.properties.parent.description

#### serviceusage:v1

The following keys were deleted:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.read-only.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/service.management.description

The following keys were changed:
- resources.operations.methods.cancel.scopes
- resources.operations.methods.delete.scopes
- resources.operations.methods.get.scopes
- resources.operations.methods.list.scopes
- resources.services.methods.batchEnable.scopes
- resources.services.methods.batchGet.scopes
- resources.services.methods.disable.scopes
- resources.services.methods.enable.scopes
- resources.services.methods.get.scopes
- resources.services.methods.list.scopes
- schemas.AdminQuotaPolicy.properties.container.description
- schemas.AdminQuotaPolicy.properties.dimensions.description
- schemas.Authentication.description
- schemas.QuotaOverride.properties.adminOverrideAncestor.description
- schemas.QuotaOverride.properties.dimensions.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 21, 2021
1 parent 6415b6d commit c3b183c
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 250 deletions.
48 changes: 16 additions & 32 deletions discovery/serviceusage-v1.json
Expand Up @@ -4,12 +4,6 @@
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "See, edit, configure, and delete your Google Cloud Platform data"
},
"https://www.googleapis.com/auth/cloud-platform.read-only": {
"description": "View your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/service.management": {
"description": "Manage your Google API service configuration"
}
}
}
Expand Down Expand Up @@ -138,8 +132,7 @@
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
Expand All @@ -164,8 +157,7 @@
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
Expand All @@ -190,8 +182,7 @@
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
Expand Down Expand Up @@ -228,8 +219,7 @@
"$ref": "ListOperationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
Expand Down Expand Up @@ -261,8 +251,7 @@
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"batchGet": {
Expand Down Expand Up @@ -293,8 +282,7 @@
"$ref": "BatchGetServicesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"disable": {
Expand Down Expand Up @@ -322,8 +310,7 @@
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"enable": {
Expand Down Expand Up @@ -351,8 +338,7 @@
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
Expand All @@ -377,8 +363,7 @@
"$ref": "GoogleApiServiceusageV1Service"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
Expand Down Expand Up @@ -419,29 +404,28 @@
"$ref": "ListServicesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
},
"revision": "20210413",
"revision": "20210417",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
"description": "Quota policy created by quota administrator.",
"id": "AdminQuotaPolicy",
"properties": {
"container": {
"description": "The cloud resource container at which the quota policy is created. The format is {container_type}/{container_number}",
"description": "The cloud resource container at which the quota policy is created. The format is `{container_type}/{container_number}`",
"type": "string"
},
"dimensions": {
"additionalProperties": {
"type": "string"
},
"description": " 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: * 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. * Keys other than \"region\" or \"zone\" are not valid.",
"description": " 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: * 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. * Keys other than `region` or `zone` are not valid.",
"type": "object"
},
"metric": {
Expand Down Expand Up @@ -566,7 +550,7 @@
"type": "object"
},
"Authentication": {
"description": "`Authentication` defines the authentication configuration for an API. Example for an API targeted for external use: name: calendar.googleapis.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth",
"description": "`Authentication` defines the authentication configuration for API methods provided by an API service. Example: name: calendar.googleapis.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth - selector: google.calendar.Delegate oauth: canonical_scopes: https://www.googleapis.com/auth/calendar.read",
"id": "Authentication",
"properties": {
"providers": {
Expand Down Expand Up @@ -2331,14 +2315,14 @@
"id": "QuotaOverride",
"properties": {
"adminOverrideAncestor": {
"description": "The resource name of the ancestor that requested the override. For example: \"organizations/12345\" or \"folders/67890\". Used by admin overrides only.",
"description": "The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only.",
"type": "string"
},
"dimensions": {
"additionalProperties": {
"type": "string"
},
"description": "If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. For example, an override on a limit with the unit 1/{project}/{region} could contain an entry with the key \"region\" and the value \"us-east-1\"; the override 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 overrides 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.",
"description": "If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. For example, an override on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the override 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 overrides 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.",
"type": "object"
},
"metric": {
Expand Down

0 comments on commit c3b183c

Please sign in to comment.