Skip to content

Commit

Permalink
feat(servicenetworking): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 30, 2024
1 parent b82bcee commit 770e82d
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 2 deletions.
36 changes: 35 additions & 1 deletion discovery/servicenetworking-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@
}
}
},
"revision": "20240820",
"revision": "20240825",
"rootUrl": "https://servicenetworking.googleapis.com/",
"schemas": {
"AddDnsRecordSetMetadata": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
36 changes: 35 additions & 1 deletion discovery/servicenetworking-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
}
}
},
"revision": "20240820",
"revision": "20240825",
"rootUrl": "https://servicenetworking.googleapis.com/",
"schemas": {
"AddDnsRecordSetMetadata": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
17 changes: 17 additions & 0 deletions src/apis/servicenetworking/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions src/apis/servicenetworking/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 770e82d

Please sign in to comment.