Skip to content

Commit

Permalink
feat(servicemanagement): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 4, 2024
1 parent 515cb27 commit 8c1c238
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
36 changes: 35 additions & 1 deletion discovery/servicemanagement-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
}
}
},
"revision": "20240712",
"revision": "20240823",
"rootUrl": "https://servicemanagement.googleapis.com/",
"schemas": {
"Advice": {
Expand Down Expand Up @@ -1775,6 +1775,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"
},
"Expr": {
"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.",
"id": "Expr",
Expand Down Expand Up @@ -2578,6 +2589,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 @@ -2982,6 +3012,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/servicemanagement/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,15 @@ export namespace servicemanagement_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;
}
/**
* 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.
*/
Expand Down Expand Up @@ -1296,6 +1305,10 @@ export namespace servicemanagement_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 @@ -1572,6 +1585,10 @@ export namespace servicemanagement_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

0 comments on commit 8c1c238

Please sign in to comment.