From 770e82d4274e4121b68730ee809c841a7cf103d5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 29 Aug 2024 01:35:45 +0000 Subject: [PATCH] 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 --- discovery/servicenetworking-v1.json | 36 ++++++++++++++++++++++++- discovery/servicenetworking-v1beta.json | 36 ++++++++++++++++++++++++- src/apis/servicenetworking/v1.ts | 17 ++++++++++++ src/apis/servicenetworking/v1beta.ts | 17 ++++++++++++ 4 files changed, 104 insertions(+), 2 deletions(-) diff --git a/discovery/servicenetworking-v1.json b/discovery/servicenetworking-v1.json index 259c99c56f..f82dc7bf1a 100644 --- a/discovery/servicenetworking-v1.json +++ b/discovery/servicenetworking-v1.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20240820", + "revision": "20240825", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -2186,6 +2186,17 @@ }, "type": "object" }, + "ExperimentalFeatures": { + "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", + "id": "ExperimentalFeatures", + "properties": { + "restAsyncIoEnabled": { + "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.", + "type": "boolean" + } + }, + "type": "object" + }, "Field": { "description": "A single field of a message type.", "id": "Field", @@ -2947,6 +2958,25 @@ "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.", "format": "google-duration", "type": "string" + }, + "timeSeriesResourceHierarchyLevel": { + "description": "The scope of the timeseries data of the metric.", + "items": { + "enum": [ + "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED", + "PROJECT", + "ORGANIZATION", + "FOLDER" + ], + "enumDescriptions": [ + "Do not use this default value.", + "Scopes a metric to a project.", + "Scopes a metric to an organization.", + "Scopes a metric to a folder." + ], + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -3316,6 +3346,10 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "experimentalFeatures": { + "$ref": "ExperimentalFeatures", + "description": "Experimental features to be included during client library generation." } }, "type": "object" diff --git a/discovery/servicenetworking-v1beta.json b/discovery/servicenetworking-v1beta.json index a86b1a57ef..e71abca243 100644 --- a/discovery/servicenetworking-v1beta.json +++ b/discovery/servicenetworking-v1beta.json @@ -307,7 +307,7 @@ } } }, - "revision": "20240820", + "revision": "20240825", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1281,6 +1281,17 @@ }, "type": "object" }, + "ExperimentalFeatures": { + "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", + "id": "ExperimentalFeatures", + "properties": { + "restAsyncIoEnabled": { + "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.", + "type": "boolean" + } + }, + "type": "object" + }, "Field": { "description": "A single field of a message type.", "id": "Field", @@ -1967,6 +1978,25 @@ "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.", "format": "google-duration", "type": "string" + }, + "timeSeriesResourceHierarchyLevel": { + "description": "The scope of the timeseries data of the metric.", + "items": { + "enum": [ + "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED", + "PROJECT", + "ORGANIZATION", + "FOLDER" + ], + "enumDescriptions": [ + "Do not use this default value.", + "Scopes a metric to a project.", + "Scopes a metric to an organization.", + "Scopes a metric to a folder." + ], + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -2336,6 +2366,10 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "experimentalFeatures": { + "$ref": "ExperimentalFeatures", + "description": "Experimental features to be included during client library generation." } }, "type": "object" diff --git a/src/apis/servicenetworking/v1.ts b/src/apis/servicenetworking/v1.ts index 622ecf5d1b..61416d8cd0 100644 --- a/src/apis/servicenetworking/v1.ts +++ b/src/apis/servicenetworking/v1.ts @@ -979,6 +979,15 @@ export namespace servicenetworking_v1 { */ options?: Schema$Option[]; } + /** + * Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default. + */ + export interface Schema$ExperimentalFeatures { + /** + * 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. + */ + restAsyncIoEnabled?: boolean | null; + } /** * A single field of a message type. */ @@ -1480,6 +1489,10 @@ export namespace servicenetworking_v1 { * 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. */ samplePeriod?: string | null; + /** + * The scope of the timeseries data of the metric. + */ + timeSeriesResourceHierarchyLevel?: string[] | null; } /** * 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 { * Some settings. */ common?: Schema$CommonLanguageSettings; + /** + * Experimental features to be included during client library generation. + */ + experimentalFeatures?: Schema$ExperimentalFeatures; } /** * 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 diff --git a/src/apis/servicenetworking/v1beta.ts b/src/apis/servicenetworking/v1beta.ts index a9c320c3a3..eac5b13c7a 100644 --- a/src/apis/servicenetworking/v1beta.ts +++ b/src/apis/servicenetworking/v1beta.ts @@ -827,6 +827,15 @@ export namespace servicenetworking_v1beta { */ options?: Schema$Option[]; } + /** + * Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default. + */ + export interface Schema$ExperimentalFeatures { + /** + * 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. + */ + restAsyncIoEnabled?: boolean | null; + } /** * A single field of a message type. */ @@ -1275,6 +1284,10 @@ export namespace servicenetworking_v1beta { * 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. */ samplePeriod?: string | null; + /** + * The scope of the timeseries data of the metric. + */ + timeSeriesResourceHierarchyLevel?: string[] | null; } /** * 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 { * Some settings. */ common?: Schema$CommonLanguageSettings; + /** + * Experimental features to be included during client library generation. + */ + experimentalFeatures?: Schema$ExperimentalFeatures; } /** * 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