Skip to content

Commit 770e82d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(servicenetworking): update the API
#### servicenetworking:v1beta The following keys were added: - 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 #### servicenetworking:v1 The following keys were added: - 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
1 parent b82bcee commit 770e82d

File tree

4 files changed

+104
-2
lines changed

4 files changed

+104
-2
lines changed

‎discovery/servicenetworking-v1.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@
10291029
}
10301030
}
10311031
},
1032-
"revision": "20240820",
1032+
"revision": "20240825",
10331033
"rootUrl": "https://servicenetworking.googleapis.com/",
10341034
"schemas": {
10351035
"AddDnsRecordSetMetadata": {
@@ -2186,6 +2186,17 @@
21862186
},
21872187
"type": "object"
21882188
},
2189+
"ExperimentalFeatures": {
2190+
"description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.",
2191+
"id": "ExperimentalFeatures",
2192+
"properties": {
2193+
"restAsyncIoEnabled": {
2194+
"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.",
2195+
"type": "boolean"
2196+
}
2197+
},
2198+
"type": "object"
2199+
},
21892200
"Field": {
21902201
"description": "A single field of a message type.",
21912202
"id": "Field",
@@ -2947,6 +2958,25 @@
29472958
"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.",
29482959
"format": "google-duration",
29492960
"type": "string"
2961+
},
2962+
"timeSeriesResourceHierarchyLevel": {
2963+
"description": "The scope of the timeseries data of the metric.",
2964+
"items": {
2965+
"enum": [
2966+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
2967+
"PROJECT",
2968+
"ORGANIZATION",
2969+
"FOLDER"
2970+
],
2971+
"enumDescriptions": [
2972+
"Do not use this default value.",
2973+
"Scopes a metric to a project.",
2974+
"Scopes a metric to an organization.",
2975+
"Scopes a metric to a folder."
2976+
],
2977+
"type": "string"
2978+
},
2979+
"type": "array"
29502980
}
29512981
},
29522982
"type": "object"
@@ -3316,6 +3346,10 @@
33163346
"common": {
33173347
"$ref": "CommonLanguageSettings",
33183348
"description": "Some settings."
3349+
},
3350+
"experimentalFeatures": {
3351+
"$ref": "ExperimentalFeatures",
3352+
"description": "Experimental features to be included during client library generation."
33193353
}
33203354
},
33213355
"type": "object"

‎discovery/servicenetworking-v1beta.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
}
308308
}
309309
},
310-
"revision": "20240820",
310+
"revision": "20240825",
311311
"rootUrl": "https://servicenetworking.googleapis.com/",
312312
"schemas": {
313313
"AddDnsRecordSetMetadata": {
@@ -1281,6 +1281,17 @@
12811281
},
12821282
"type": "object"
12831283
},
1284+
"ExperimentalFeatures": {
1285+
"description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.",
1286+
"id": "ExperimentalFeatures",
1287+
"properties": {
1288+
"restAsyncIoEnabled": {
1289+
"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.",
1290+
"type": "boolean"
1291+
}
1292+
},
1293+
"type": "object"
1294+
},
12841295
"Field": {
12851296
"description": "A single field of a message type.",
12861297
"id": "Field",
@@ -1967,6 +1978,25 @@
19671978
"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.",
19681979
"format": "google-duration",
19691980
"type": "string"
1981+
},
1982+
"timeSeriesResourceHierarchyLevel": {
1983+
"description": "The scope of the timeseries data of the metric.",
1984+
"items": {
1985+
"enum": [
1986+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
1987+
"PROJECT",
1988+
"ORGANIZATION",
1989+
"FOLDER"
1990+
],
1991+
"enumDescriptions": [
1992+
"Do not use this default value.",
1993+
"Scopes a metric to a project.",
1994+
"Scopes a metric to an organization.",
1995+
"Scopes a metric to a folder."
1996+
],
1997+
"type": "string"
1998+
},
1999+
"type": "array"
19702000
}
19712001
},
19722002
"type": "object"
@@ -2336,6 +2366,10 @@
23362366
"common": {
23372367
"$ref": "CommonLanguageSettings",
23382368
"description": "Some settings."
2369+
},
2370+
"experimentalFeatures": {
2371+
"$ref": "ExperimentalFeatures",
2372+
"description": "Experimental features to be included during client library generation."
23392373
}
23402374
},
23412375
"type": "object"

‎src/apis/servicenetworking/v1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,15 @@ export namespace servicenetworking_v1 {
979979
*/
980980
options?: Schema$Option[];
981981
}
982+
/**
983+
* Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.
984+
*/
985+
export interface Schema$ExperimentalFeatures {
986+
/**
987+
* 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.
988+
*/
989+
restAsyncIoEnabled?: boolean | null;
990+
}
982991
/**
983992
* A single field of a message type.
984993
*/
@@ -1480,6 +1489,10 @@ export namespace servicenetworking_v1 {
14801489
* 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.
14811490
*/
14821491
samplePeriod?: string | null;
1492+
/**
1493+
* The scope of the timeseries data of the metric.
1494+
*/
1495+
timeSeriesResourceHierarchyLevel?: string[] | null;
14831496
}
14841497
/**
14851498
* Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
@@ -1735,6 +1748,10 @@ export namespace servicenetworking_v1 {
17351748
* Some settings.
17361749
*/
17371750
common?: Schema$CommonLanguageSettings;
1751+
/**
1752+
* Experimental features to be included during client library generation.
1753+
*/
1754+
experimentalFeatures?: Schema$ExperimentalFeatures;
17381755
}
17391756
/**
17401757
* Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/{project\}" # rate limit for consumer projects values: STANDARD: 10000 (The metric rules bind all methods to the read_calls metric, except for the UpdateBook and DeleteBook methods. These two methods are mapped to the write_calls metric, with the UpdateBook method consuming at twice rate as the DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64

‎src/apis/servicenetworking/v1beta.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,15 @@ export namespace servicenetworking_v1beta {
827827
*/
828828
options?: Schema$Option[];
829829
}
830+
/**
831+
* Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.
832+
*/
833+
export interface Schema$ExperimentalFeatures {
834+
/**
835+
* 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.
836+
*/
837+
restAsyncIoEnabled?: boolean | null;
838+
}
830839
/**
831840
* A single field of a message type.
832841
*/
@@ -1275,6 +1284,10 @@ export namespace servicenetworking_v1beta {
12751284
* 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.
12761285
*/
12771286
samplePeriod?: string | null;
1287+
/**
1288+
* The scope of the timeseries data of the metric.
1289+
*/
1290+
timeSeriesResourceHierarchyLevel?: string[] | null;
12781291
}
12791292
/**
12801293
* Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
@@ -1530,6 +1543,10 @@ export namespace servicenetworking_v1beta {
15301543
* Some settings.
15311544
*/
15321545
common?: Schema$CommonLanguageSettings;
1546+
/**
1547+
* Experimental features to be included during client library generation.
1548+
*/
1549+
experimentalFeatures?: Schema$ExperimentalFeatures;
15331550
}
15341551
/**
15351552
* Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/{project\}" # rate limit for consumer projects values: STANDARD: 10000 (The metric rules bind all methods to the read_calls metric, except for the UpdateBook and DeleteBook methods. These two methods are mapped to the write_calls metric, with the UpdateBook method consuming at twice rate as the DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64

0 commit comments

Comments
 (0)