Skip to content

Commit b4d9749

Browse files
feat(serviceusage): update the api
#### serviceusage:v1 The following keys were added: - schemas.ConsumerPolicy (Total Keys: 10) - schemas.EnableRule (Total Keys: 9) - schemas.UpdateConsumerPolicyLROMetadata (Total Keys: 2) #### serviceusage:v1beta1 The following keys were added: - schemas.ConsumerPolicy (Total Keys: 10) - schemas.EnableRule (Total Keys: 9) - schemas.UpdateConsumerPolicyLROMetadata (Total Keys: 2)
1 parent 137e81c commit b4d9749

File tree

2 files changed

+174
-4
lines changed

2 files changed

+174
-4
lines changed

googleapiclient/discovery_cache/documents/serviceusage.v1.json

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
}
427427
}
428428
},
429-
"revision": "20230330",
429+
"revision": "20230409",
430430
"rootUrl": "https://serviceusage.googleapis.com/",
431431
"schemas": {
432432
"AdminQuotaPolicy": {
@@ -904,6 +904,41 @@
904904
},
905905
"type": "object"
906906
},
907+
"ConsumerPolicy": {
908+
"description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.",
909+
"id": "ConsumerPolicy",
910+
"properties": {
911+
"annotations": {
912+
"additionalProperties": {
913+
"type": "string"
914+
},
915+
"description": "Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)",
916+
"type": "object"
917+
},
918+
"enableRules": {
919+
"description": "Enable rules define usable services and service groups.",
920+
"items": {
921+
"$ref": "EnableRule"
922+
},
923+
"type": "array"
924+
},
925+
"etag": {
926+
"description": "An opaque tag indicating the current version of the policy, used for concurrency control.",
927+
"type": "string"
928+
},
929+
"name": {
930+
"description": "Output only. The resource name of the policy. For example, `projects/12345/consumerPolicy`, `folders/12345/consumerPolicy`, `organizations/12345/consumerPolicy`.",
931+
"readOnly": true,
932+
"type": "string"
933+
},
934+
"updateTime": {
935+
"description": "The last-modified time.",
936+
"format": "google-datetime",
937+
"type": "string"
938+
}
939+
},
940+
"type": "object"
941+
},
907942
"Context": {
908943
"description": "`Context` defines which contexts an API requests. Example: context: rules: - selector: \"*\" requested: - google.rpc.context.ProjectContext - google.rpc.context.OriginContext The above specifies that all methods in the API request `google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`. Available context types are defined in package `google.rpc.context`. This also provides mechanism to allowlist any protobuf message extension that can be sent in grpc metadata using \u201cx-goog-ext--bin\u201d and \u201cx-goog-ext--jspb\u201d format. For example, list any service specific protobuf types that can appear in grpc metadata as follows in your yaml file: Example: context: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allowed_request_extensions: - google.foo.v1.NewExtension allowed_response_extensions: - google.foo.v1.NewExtension You can also specify extension ID instead of fully qualified extension name here.",
909944
"id": "Context",
@@ -1201,6 +1236,50 @@
12011236
},
12021237
"type": "object"
12031238
},
1239+
"EnableRule": {
1240+
"description": "The consumer policy rule that defines usable services and service groups.",
1241+
"id": "EnableRule",
1242+
"properties": {
1243+
"enableType": {
1244+
"description": "Client and resource project enable type.",
1245+
"enum": [
1246+
"ENABLE_TYPE_UNSPECIFIED",
1247+
"CLIENT",
1248+
"RESOURCE",
1249+
"V1_COMPATIBLE"
1250+
],
1251+
"enumDescriptions": [
1252+
"Unspecified enable type, which means enabled as both client and resource project.",
1253+
"Enable all clients under the CRM node specified by `ConsumerPolicy.name` to use the listed services. A client can be an API key, an OAuth client, or a service account.",
1254+
"Enable resources in the list services to be created and used under the CRM node specified by the `ConsumerPolicy.name`.",
1255+
"Activation made by Service Usage v1 API. This will be how consumers differentiate between policy changes made by v1 and v2 clients and understand what is actually possible based on those different policies."
1256+
],
1257+
"type": "string"
1258+
},
1259+
"groups": {
1260+
"description": "DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of the service groups that are enabled (Not Implemented). go/predefined-service-groups. Example: `groups/googleServices`.",
1261+
"items": {
1262+
"type": "string"
1263+
},
1264+
"type": "array"
1265+
},
1266+
"services": {
1267+
"description": "DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`.",
1268+
"items": {
1269+
"type": "string"
1270+
},
1271+
"type": "array"
1272+
},
1273+
"values": {
1274+
"description": "The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, groups/googleServices`, groups/allServices`.",
1275+
"items": {
1276+
"type": "string"
1277+
},
1278+
"type": "array"
1279+
}
1280+
},
1281+
"type": "object"
1282+
},
12041283
"EnableServiceRequest": {
12051284
"description": "Request message for the `EnableService` method.",
12061285
"id": "EnableServiceRequest",
@@ -2578,7 +2657,7 @@
25782657
"type": "array"
25792658
},
25802659
"newIssueUri": {
2581-
"description": "Link to a place that API users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103",
2660+
"description": "Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103",
25822661
"type": "string"
25832662
},
25842663
"organization": {
@@ -2920,6 +2999,12 @@
29202999
"properties": {},
29213000
"type": "object"
29223001
},
3002+
"UpdateConsumerPolicyLROMetadata": {
3003+
"description": "Metadata for the `UpdateConsumerPolicyLRO` method.",
3004+
"id": "UpdateConsumerPolicyLROMetadata",
3005+
"properties": {},
3006+
"type": "object"
3007+
},
29233008
"Usage": {
29243009
"description": "Configuration controlling usage of a service.",
29253010
"id": "Usage",

googleapiclient/discovery_cache/documents/serviceusage.v1beta1.json

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@
959959
}
960960
}
961961
},
962-
"revision": "20230330",
962+
"revision": "20230409",
963963
"rootUrl": "https://serviceusage.googleapis.com/",
964964
"schemas": {
965965
"AdminQuotaPolicy": {
@@ -1417,6 +1417,41 @@
14171417
},
14181418
"type": "object"
14191419
},
1420+
"ConsumerPolicy": {
1421+
"description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.",
1422+
"id": "ConsumerPolicy",
1423+
"properties": {
1424+
"annotations": {
1425+
"additionalProperties": {
1426+
"type": "string"
1427+
},
1428+
"description": "Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)",
1429+
"type": "object"
1430+
},
1431+
"enableRules": {
1432+
"description": "Enable rules define usable services and service groups.",
1433+
"items": {
1434+
"$ref": "EnableRule"
1435+
},
1436+
"type": "array"
1437+
},
1438+
"etag": {
1439+
"description": "An opaque tag indicating the current version of the policy, used for concurrency control.",
1440+
"type": "string"
1441+
},
1442+
"name": {
1443+
"description": "Output only. The resource name of the policy. For example, `projects/12345/consumerPolicy`, `folders/12345/consumerPolicy`, `organizations/12345/consumerPolicy`.",
1444+
"readOnly": true,
1445+
"type": "string"
1446+
},
1447+
"updateTime": {
1448+
"description": "The last-modified time.",
1449+
"format": "google-datetime",
1450+
"type": "string"
1451+
}
1452+
},
1453+
"type": "object"
1454+
},
14201455
"ConsumerQuotaLimit": {
14211456
"description": "Consumer quota settings for a quota limit.",
14221457
"id": "ConsumerQuotaLimit",
@@ -1773,6 +1808,50 @@
17731808
},
17741809
"type": "object"
17751810
},
1811+
"EnableRule": {
1812+
"description": "The consumer policy rule that defines usable services and service groups.",
1813+
"id": "EnableRule",
1814+
"properties": {
1815+
"enableType": {
1816+
"description": "Client and resource project enable type.",
1817+
"enum": [
1818+
"ENABLE_TYPE_UNSPECIFIED",
1819+
"CLIENT",
1820+
"RESOURCE",
1821+
"V1_COMPATIBLE"
1822+
],
1823+
"enumDescriptions": [
1824+
"Unspecified enable type, which means enabled as both client and resource project.",
1825+
"Enable all clients under the CRM node specified by `ConsumerPolicy.name` to use the listed services. A client can be an API key, an OAuth client, or a service account.",
1826+
"Enable resources in the list services to be created and used under the CRM node specified by the `ConsumerPolicy.name`.",
1827+
"Activation made by Service Usage v1 API. This will be how consumers differentiate between policy changes made by v1 and v2 clients and understand what is actually possible based on those different policies."
1828+
],
1829+
"type": "string"
1830+
},
1831+
"groups": {
1832+
"description": "DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of the service groups that are enabled (Not Implemented). go/predefined-service-groups. Example: `groups/googleServices`.",
1833+
"items": {
1834+
"type": "string"
1835+
},
1836+
"type": "array"
1837+
},
1838+
"services": {
1839+
"description": "DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`.",
1840+
"items": {
1841+
"type": "string"
1842+
},
1843+
"type": "array"
1844+
},
1845+
"values": {
1846+
"description": "The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, groups/googleServices`, groups/allServices`.",
1847+
"items": {
1848+
"type": "string"
1849+
},
1850+
"type": "array"
1851+
}
1852+
},
1853+
"type": "object"
1854+
},
17761855
"EnableServiceRequest": {
17771856
"description": "Request message for the `EnableService` method.",
17781857
"id": "EnableServiceRequest",
@@ -3282,7 +3361,7 @@
32823361
"type": "array"
32833362
},
32843363
"newIssueUri": {
3285-
"description": "Link to a place that API users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103",
3364+
"description": "Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103",
32863365
"type": "string"
32873366
},
32883367
"organization": {
@@ -3749,6 +3828,12 @@
37493828
"properties": {},
37503829
"type": "object"
37513830
},
3831+
"UpdateConsumerPolicyLROMetadata": {
3832+
"description": "Metadata for the `UpdateConsumerPolicyLRO` method.",
3833+
"id": "UpdateConsumerPolicyLROMetadata",
3834+
"properties": {},
3835+
"type": "object"
3836+
},
37523837
"Usage": {
37533838
"description": "Configuration controlling usage of a service.",
37543839
"id": "Usage",

0 commit comments

Comments
 (0)