Skip to content

Commit 6e1037d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(serviceusage): update the API
#### serviceusage:v1beta1 The following keys were added: - schemas.CommonLanguageSettings.properties.selectiveGapicGeneration.$ref - schemas.CommonLanguageSettings.properties.selectiveGapicGeneration.description - schemas.ExperimentalFeatures.description - schemas.ExperimentalFeatures.id - schemas.ExperimentalFeatures.properties.restAsyncIoEnabled.description - schemas.ExperimentalFeatures.properties.restAsyncIoEnabled.type - schemas.ExperimentalFeatures.type - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.description - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.enum - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.enumDescriptions - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.type - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.type - schemas.PythonSettings.properties.experimentalFeatures.$ref - schemas.PythonSettings.properties.experimentalFeatures.description - schemas.SelectiveGapicGeneration.description - schemas.SelectiveGapicGeneration.id - schemas.SelectiveGapicGeneration.properties.methods.description - schemas.SelectiveGapicGeneration.properties.methods.items.type - schemas.SelectiveGapicGeneration.properties.methods.type - schemas.SelectiveGapicGeneration.type The following keys were changed: - schemas.Mixin.description #### serviceusage:v1 The following keys were added: - schemas.CommonLanguageSettings.properties.selectiveGapicGeneration.$ref - schemas.CommonLanguageSettings.properties.selectiveGapicGeneration.description - schemas.ExperimentalFeatures.description - schemas.ExperimentalFeatures.id - schemas.ExperimentalFeatures.properties.restAsyncIoEnabled.description - schemas.ExperimentalFeatures.properties.restAsyncIoEnabled.type - schemas.ExperimentalFeatures.type - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.description - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.enum - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.enumDescriptions - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.type - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.type - schemas.PythonSettings.properties.experimentalFeatures.$ref - schemas.PythonSettings.properties.experimentalFeatures.description - schemas.SelectiveGapicGeneration.description - schemas.SelectiveGapicGeneration.id - schemas.SelectiveGapicGeneration.properties.methods.description - schemas.SelectiveGapicGeneration.properties.methods.items.type - schemas.SelectiveGapicGeneration.properties.methods.type - schemas.SelectiveGapicGeneration.type The following keys were changed: - schemas.Mixin.description
1 parent 524ddae commit 6e1037d

File tree

4 files changed

+170
-6
lines changed

4 files changed

+170
-6
lines changed

discovery/serviceusage-v1.json

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
}
427427
}
428428
},
429-
"revision": "20240811",
429+
"revision": "20240929",
430430
"rootUrl": "https://serviceusage.googleapis.com/",
431431
"schemas": {
432432
"AddEnableRulesMetadata": {
@@ -1003,6 +1003,10 @@
10031003
"deprecated": true,
10041004
"description": "Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest",
10051005
"type": "string"
1006+
},
1007+
"selectiveGapicGeneration": {
1008+
"$ref": "SelectiveGapicGeneration",
1009+
"description": "Configuration for which RPCs should be generated in the GAPIC client."
10061010
}
10071011
},
10081012
"type": "object"
@@ -1516,6 +1520,17 @@
15161520
},
15171521
"type": "object"
15181522
},
1523+
"ExperimentalFeatures": {
1524+
"description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.",
1525+
"id": "ExperimentalFeatures",
1526+
"properties": {
1527+
"restAsyncIoEnabled": {
1528+
"description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.",
1529+
"type": "boolean"
1530+
}
1531+
},
1532+
"type": "object"
1533+
},
15191534
"Field": {
15201535
"description": "A single field of a message type.",
15211536
"id": "Field",
@@ -2617,6 +2632,25 @@
26172632
"description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.",
26182633
"format": "google-duration",
26192634
"type": "string"
2635+
},
2636+
"timeSeriesResourceHierarchyLevel": {
2637+
"description": "The scope of the timeseries data of the metric.",
2638+
"items": {
2639+
"enum": [
2640+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
2641+
"PROJECT",
2642+
"ORGANIZATION",
2643+
"FOLDER"
2644+
],
2645+
"enumDescriptions": [
2646+
"Do not use this default value.",
2647+
"Scopes a metric to a project.",
2648+
"Scopes a metric to an organization.",
2649+
"Scopes a metric to a folder."
2650+
],
2651+
"type": "string"
2652+
},
2653+
"type": "array"
26202654
}
26212655
},
26222656
"type": "object"
@@ -2641,7 +2675,7 @@
26412675
"type": "object"
26422676
},
26432677
"Mixin": {
2644-
"description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }",
2678+
"description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }",
26452679
"id": "Mixin",
26462680
"properties": {
26472681
"name": {
@@ -2958,6 +2992,10 @@
29582992
"common": {
29592993
"$ref": "CommonLanguageSettings",
29602994
"description": "Some settings."
2995+
},
2996+
"experimentalFeatures": {
2997+
"$ref": "ExperimentalFeatures",
2998+
"description": "Experimental features to be included during client library generation."
29612999
}
29623000
},
29633001
"type": "object"
@@ -3108,6 +3146,20 @@
31083146
},
31093147
"type": "object"
31103148
},
3149+
"SelectiveGapicGeneration": {
3150+
"description": "This message is used to configure the generation of a subset of the RPCs in a service for client libraries.",
3151+
"id": "SelectiveGapicGeneration",
3152+
"properties": {
3153+
"methods": {
3154+
"description": "An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.",
3155+
"items": {
3156+
"type": "string"
3157+
},
3158+
"type": "array"
3159+
}
3160+
},
3161+
"type": "object"
3162+
},
31113163
"ServiceIdentity": {
31123164
"description": "Service identity for a service. This is the identity that service producer should use to access consumer resources.",
31133165
"id": "ServiceIdentity",

discovery/serviceusage-v1beta1.json

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@
964964
}
965965
}
966966
},
967-
"revision": "20240811",
967+
"revision": "20240929",
968968
"rootUrl": "https://serviceusage.googleapis.com/",
969969
"schemas": {
970970
"AddEnableRulesMetadata": {
@@ -1521,6 +1521,10 @@
15211521
"deprecated": true,
15221522
"description": "Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest",
15231523
"type": "string"
1524+
},
1525+
"selectiveGapicGeneration": {
1526+
"$ref": "SelectiveGapicGeneration",
1527+
"description": "Configuration for which RPCs should be generated in the GAPIC client."
15241528
}
15251529
},
15261530
"type": "object"
@@ -2093,6 +2097,17 @@
20932097
},
20942098
"type": "object"
20952099
},
2100+
"ExperimentalFeatures": {
2101+
"description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.",
2102+
"id": "ExperimentalFeatures",
2103+
"properties": {
2104+
"restAsyncIoEnabled": {
2105+
"description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.",
2106+
"type": "boolean"
2107+
}
2108+
},
2109+
"type": "object"
2110+
},
20962111
"Field": {
20972112
"description": "A single field of a message type.",
20982113
"id": "Field",
@@ -3312,6 +3327,25 @@
33123327
"description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.",
33133328
"format": "google-duration",
33143329
"type": "string"
3330+
},
3331+
"timeSeriesResourceHierarchyLevel": {
3332+
"description": "The scope of the timeseries data of the metric.",
3333+
"items": {
3334+
"enum": [
3335+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
3336+
"PROJECT",
3337+
"ORGANIZATION",
3338+
"FOLDER"
3339+
],
3340+
"enumDescriptions": [
3341+
"Do not use this default value.",
3342+
"Scopes a metric to a project.",
3343+
"Scopes a metric to an organization.",
3344+
"Scopes a metric to a folder."
3345+
],
3346+
"type": "string"
3347+
},
3348+
"type": "array"
33153349
}
33163350
},
33173351
"type": "object"
@@ -3336,7 +3370,7 @@
33363370
"type": "object"
33373371
},
33383372
"Mixin": {
3339-
"description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }",
3373+
"description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }",
33403374
"id": "Mixin",
33413375
"properties": {
33423376
"name": {
@@ -3702,6 +3736,10 @@
37023736
"common": {
37033737
"$ref": "CommonLanguageSettings",
37043738
"description": "Some settings."
3739+
},
3740+
"experimentalFeatures": {
3741+
"$ref": "ExperimentalFeatures",
3742+
"description": "Experimental features to be included during client library generation."
37053743
}
37063744
},
37073745
"type": "object"
@@ -3907,6 +3945,20 @@
39073945
},
39083946
"type": "object"
39093947
},
3948+
"SelectiveGapicGeneration": {
3949+
"description": "This message is used to configure the generation of a subset of the RPCs in a service for client libraries.",
3950+
"id": "SelectiveGapicGeneration",
3951+
"properties": {
3952+
"methods": {
3953+
"description": "An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.",
3954+
"items": {
3955+
"type": "string"
3956+
},
3957+
"type": "array"
3958+
}
3959+
},
3960+
"type": "object"
3961+
},
39103962
"Service": {
39113963
"description": "A service that is available for use by the consumer.",
39123964
"id": "Service",

0 commit comments

Comments
 (0)