Skip to content

Commit 2f45541

Browse files
yoshi-automationsofisl
authored andcommitted
feat(serviceusage): update the API
#### serviceusage:v1beta1 The following keys were added: - resources.services.methods.batchEnable.deprecated - resources.services.methods.disable.deprecated - resources.services.methods.enable.deprecated - resources.services.methods.get.deprecated - resources.services.methods.list.deprecated - schemas.DocumentationRule.properties.disableReplacementWords.description - schemas.DocumentationRule.properties.disableReplacementWords.type The following keys were changed: - schemas.Publishing.properties.organization.enum - schemas.Publishing.properties.organization.enumDescriptions #### serviceusage:v1 The following keys were added: - schemas.DocumentationRule.properties.disableReplacementWords.description - schemas.DocumentationRule.properties.disableReplacementWords.type The following keys were changed: - schemas.Publishing.properties.organization.enum - schemas.Publishing.properties.organization.enumDescriptions
1 parent c153e1f commit 2f45541

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed

discovery/serviceusage-v1.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
}
427427
}
428428
},
429-
"revision": "20230412",
429+
"revision": "20230428",
430430
"rootUrl": "https://serviceusage.googleapis.com/",
431431
"schemas": {
432432
"AdminQuotaPolicy": {
@@ -1162,6 +1162,10 @@
11621162
"description": "Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.",
11631163
"type": "string"
11641164
},
1165+
"disableReplacementWords": {
1166+
"description": "String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen.",
1167+
"type": "string"
1168+
},
11651169
"selector": {
11661170
"description": "The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in \"*\", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"foo.*.bar\". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern \"*\" is used.",
11671171
"type": "string"
@@ -2668,15 +2672,19 @@
26682672
"ADS",
26692673
"PHOTOS",
26702674
"STREET_VIEW",
2671-
"SHOPPING"
2675+
"SHOPPING",
2676+
"GEO",
2677+
"GENERATIVE_AI"
26722678
],
26732679
"enumDescriptions": [
26742680
"Not useful.",
26752681
"Google Cloud Platform Org.",
26762682
"Ads (Advertising) Org.",
26772683
"Photos Org.",
26782684
"Street View Org.",
2679-
"Shopping Org."
2685+
"Shopping Org.",
2686+
"Geo Org.",
2687+
"Generative AI - https://developers.generativeai.google"
26802688
],
26812689
"type": "string"
26822690
},

discovery/serviceusage-v1beta1.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
"services": {
183183
"methods": {
184184
"batchEnable": {
185+
"deprecated": true,
185186
"description": "Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation response type: `google.protobuf.Empty`",
186187
"flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services:batchEnable",
187188
"httpMethod": "POST",
@@ -211,6 +212,7 @@
211212
]
212213
},
213214
"disable": {
215+
"deprecated": true,
214216
"description": "Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation response type: `google.protobuf.Empty`",
215217
"flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}:disable",
216218
"httpMethod": "POST",
@@ -240,6 +242,7 @@
240242
]
241243
},
242244
"enable": {
245+
"deprecated": true,
243246
"description": "Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty`",
244247
"flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}:enable",
245248
"httpMethod": "POST",
@@ -295,6 +298,7 @@
295298
]
296299
},
297300
"get": {
301+
"deprecated": true,
298302
"description": "Returns the service configuration and enabled state for a given service.",
299303
"flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}",
300304
"httpMethod": "GET",
@@ -321,6 +325,7 @@
321325
]
322326
},
323327
"list": {
328+
"deprecated": true,
324329
"description": "Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.",
325330
"flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services",
326331
"httpMethod": "GET",
@@ -959,7 +964,7 @@
959964
}
960965
}
961966
},
962-
"revision": "20230412",
967+
"revision": "20230428",
963968
"rootUrl": "https://serviceusage.googleapis.com/",
964969
"schemas": {
965970
"AdminQuotaPolicy": {
@@ -1734,6 +1739,10 @@
17341739
"description": "Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.",
17351740
"type": "string"
17361741
},
1742+
"disableReplacementWords": {
1743+
"description": "String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen.",
1744+
"type": "string"
1745+
},
17371746
"selector": {
17381747
"description": "The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in \"*\", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"foo.*.bar\". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern \"*\" is used.",
17391748
"type": "string"
@@ -3372,15 +3381,19 @@
33723381
"ADS",
33733382
"PHOTOS",
33743383
"STREET_VIEW",
3375-
"SHOPPING"
3384+
"SHOPPING",
3385+
"GEO",
3386+
"GENERATIVE_AI"
33763387
],
33773388
"enumDescriptions": [
33783389
"Not useful.",
33793390
"Google Cloud Platform Org.",
33803391
"Ads (Advertising) Org.",
33813392
"Photos Org.",
33823393
"Street View Org.",
3383-
"Shopping Org."
3394+
"Shopping Org.",
3395+
"Geo Org.",
3396+
"Generative AI - https://developers.generativeai.google"
33843397
],
33853398
"type": "string"
33863399
},

src/apis/serviceusage/v1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,10 @@ export namespace serviceusage_v1 {
639639
* Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
640640
*/
641641
description?: string | null;
642+
/**
643+
* String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen.
644+
*/
645+
disableReplacementWords?: string | null;
642646
/**
643647
* The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
644648
*/

src/apis/serviceusage/v1beta1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ export namespace serviceusage_v1beta1 {
679679
* Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
680680
*/
681681
description?: string | null;
682+
/**
683+
* String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen.
684+
*/
685+
disableReplacementWords?: string | null;
682686
/**
683687
* The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
684688
*/

0 commit comments

Comments
 (0)