Skip to content

Commit 8c1c238

Browse files
yoshi-automationsofisl
authored andcommitted
feat(servicemanagement): update the API
#### servicemanagement: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 515cb27 commit 8c1c238

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

discovery/servicemanagement-v1.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@
830830
}
831831
}
832832
},
833-
"revision": "20240712",
833+
"revision": "20240823",
834834
"rootUrl": "https://servicemanagement.googleapis.com/",
835835
"schemas": {
836836
"Advice": {
@@ -1775,6 +1775,17 @@
17751775
},
17761776
"type": "object"
17771777
},
1778+
"ExperimentalFeatures": {
1779+
"description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.",
1780+
"id": "ExperimentalFeatures",
1781+
"properties": {
1782+
"restAsyncIoEnabled": {
1783+
"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.",
1784+
"type": "boolean"
1785+
}
1786+
},
1787+
"type": "object"
1788+
},
17781789
"Expr": {
17791790
"description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
17801791
"id": "Expr",
@@ -2578,6 +2589,25 @@
25782589
"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.",
25792590
"format": "google-duration",
25802591
"type": "string"
2592+
},
2593+
"timeSeriesResourceHierarchyLevel": {
2594+
"description": "The scope of the timeseries data of the metric.",
2595+
"items": {
2596+
"enum": [
2597+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
2598+
"PROJECT",
2599+
"ORGANIZATION",
2600+
"FOLDER"
2601+
],
2602+
"enumDescriptions": [
2603+
"Do not use this default value.",
2604+
"Scopes a metric to a project.",
2605+
"Scopes a metric to an organization.",
2606+
"Scopes a metric to a folder."
2607+
],
2608+
"type": "string"
2609+
},
2610+
"type": "array"
25812611
}
25822612
},
25832613
"type": "object"
@@ -2982,6 +3012,10 @@
29823012
"common": {
29833013
"$ref": "CommonLanguageSettings",
29843014
"description": "Some settings."
3015+
},
3016+
"experimentalFeatures": {
3017+
"$ref": "ExperimentalFeatures",
3018+
"description": "Experimental features to be included during client library generation."
29853019
}
29863020
},
29873021
"type": "object"

src/apis/servicemanagement/v1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,15 @@ export namespace servicemanagement_v1 {
765765
*/
766766
options?: Schema$Option[];
767767
}
768+
/**
769+
* Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.
770+
*/
771+
export interface Schema$ExperimentalFeatures {
772+
/**
773+
* 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.
774+
*/
775+
restAsyncIoEnabled?: boolean | null;
776+
}
768777
/**
769778
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
770779
*/
@@ -1296,6 +1305,10 @@ export namespace servicemanagement_v1 {
12961305
* 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.
12971306
*/
12981307
samplePeriod?: string | null;
1308+
/**
1309+
* The scope of the timeseries data of the metric.
1310+
*/
1311+
timeSeriesResourceHierarchyLevel?: string[] | null;
12991312
}
13001313
/**
13011314
* Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
@@ -1572,6 +1585,10 @@ export namespace servicemanagement_v1 {
15721585
* Some settings.
15731586
*/
15741587
common?: Schema$CommonLanguageSettings;
1588+
/**
1589+
* Experimental features to be included during client library generation.
1590+
*/
1591+
experimentalFeatures?: Schema$ExperimentalFeatures;
15751592
}
15761593
/**
15771594
* 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)