mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(json): fetch latest json and re-gen all code
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *monitoring* crate version *1.0.0+20160425*, where *20160425* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.0*.
|
||||
//! This documentation was generated from *Monitoring* crate version *1.0.0+20161212*, where *20161212* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.0*.
|
||||
//!
|
||||
//! Everything else about the *monitoring* *v3* API can be found at the
|
||||
//! Everything else about the *Monitoring* *v3* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/monitoring/api/).
|
||||
//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/monitoring3).
|
||||
//! # Features
|
||||
|
||||
@@ -172,16 +172,16 @@ impl<'a, C, A> Monitoring<C, A>
|
||||
// ############
|
||||
// SCHEMAS ###
|
||||
// ##########
|
||||
/// A time interval extending from after `startTime` through `endTime`. If `startTime` is omitted, the interval is the single point in time, `endTime`.
|
||||
/// A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct TimeInterval {
|
||||
/// Required. The end of the interval. The interval includes this time.
|
||||
/// Required. The end of the time interval.
|
||||
#[serde(rename="endTime")]
|
||||
pub end_time: Option<String>,
|
||||
/// If this value is omitted, the interval is a point in time, `endTime`. If `startTime` is present, it must be earlier than (less than) `endTime`. The interval begins after `startTime`—it does not include `startTime`.
|
||||
/// Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
|
||||
#[serde(rename="startTime")]
|
||||
pub start_time: Option<String>,
|
||||
}
|
||||
@@ -189,7 +189,7 @@ pub struct TimeInterval {
|
||||
impl Part for TimeInterval {}
|
||||
|
||||
|
||||
/// The `ListMetricDescriptors` response.
|
||||
/// The ListMetricDescriptors response.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -200,10 +200,10 @@ impl Part for TimeInterval {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ListMetricDescriptorsResponse {
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `pageToken` in the next call to this method.
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.
|
||||
#[serde(rename="nextPageToken")]
|
||||
pub next_page_token: Option<String>,
|
||||
/// The metric descriptors that are available to the project and that match the value of `filter`, if present.
|
||||
/// The metric descriptors that are available to the project and that match the value of filter, if present.
|
||||
#[serde(rename="metricDescriptors")]
|
||||
pub metric_descriptors: Option<Vec<MetricDescriptor>>,
|
||||
}
|
||||
@@ -211,7 +211,7 @@ pub struct ListMetricDescriptorsResponse {
|
||||
impl ResponseResult for ListMetricDescriptorsResponse {}
|
||||
|
||||
|
||||
/// The `ListGroupMembers` response.
|
||||
/// The ListGroupMembers response.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -222,7 +222,7 @@ impl ResponseResult for ListMetricDescriptorsResponse {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ListGroupMembersResponse {
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `pageToken` in the next call to this method.
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.
|
||||
#[serde(rename="nextPageToken")]
|
||||
pub next_page_token: Option<String>,
|
||||
/// The total number of elements matching this request.
|
||||
@@ -235,7 +235,7 @@ pub struct ListGroupMembersResponse {
|
||||
impl ResponseResult for ListGroupMembersResponse {}
|
||||
|
||||
|
||||
/// The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups. Groups can be nested in parent-child hierarchies. The `parentName` field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource. For example, consider an infrastructure running a set of instances with two user-defined tags: `"environment"` and `"role"`. A parent group has a filter, `environment="production"`. A child of that parent group has a filter, `role="transcoder"`. The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role *and* are in the production environment. The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors.
|
||||
/// The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups.Groups can be nested in parent-child hierarchies. The parentName field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource.For example, consider an infrastructure running a set of instances with two user-defined tags: "environment" and "role". A parent group has a filter, environment="production". A child of that parent group has a filter, role="transcoder". The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role and are in the production environment.The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -250,13 +250,13 @@ impl ResponseResult for ListGroupMembersResponse {}
|
||||
pub struct Group {
|
||||
/// The filter used to determine which monitored resources belong to this group.
|
||||
pub filter: Option<String>,
|
||||
/// The name of the group's parent, if it has one. The format is `"projects/{project_id_or_number}/groups/{group_id}"`. For groups with no parent, `parentName` is the empty string, `""`.
|
||||
/// The name of the group's parent, if it has one. The format is "projects/{project_id_or_number}/groups/{group_id}". For groups with no parent, parentName is the empty string, "".
|
||||
#[serde(rename="parentName")]
|
||||
pub parent_name: Option<String>,
|
||||
/// A user-assigned name for this group, used only for display purposes.
|
||||
#[serde(rename="displayName")]
|
||||
pub display_name: Option<String>,
|
||||
/// The name of this group. The format is `"projects/{project_id_or_number}/groups/{group_id}"`. When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to `CreateGroup` and a unique `{group_id}` that is generated automatically. @OutputOnly
|
||||
/// Output only. The name of this group. The format is "projects/{project_id_or_number}/groups/{group_id}". When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique {group_id} that is generated automatically.
|
||||
pub name: Option<String>,
|
||||
/// If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.
|
||||
#[serde(rename="isCluster")]
|
||||
@@ -279,13 +279,13 @@ pub struct TypedValue {
|
||||
/// A variable-length string value.
|
||||
#[serde(rename="stringValue")]
|
||||
pub string_value: Option<String>,
|
||||
/// A Boolean value: `true` or `false`.
|
||||
/// A Boolean value: true or false.
|
||||
#[serde(rename="boolValue")]
|
||||
pub bool_value: Option<bool>,
|
||||
/// A 64-bit integer. Its range is approximately ±9.2x1018.
|
||||
/// A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
|
||||
#[serde(rename="int64Value")]
|
||||
pub int64_value: Option<String>,
|
||||
/// A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision.
|
||||
/// A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.
|
||||
#[serde(rename="doubleValue")]
|
||||
pub double_value: Option<f64>,
|
||||
}
|
||||
@@ -293,18 +293,18 @@ pub struct TypedValue {
|
||||
impl Part for TypedValue {}
|
||||
|
||||
|
||||
/// Specify a sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket. Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for bucket i: Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
||||
/// Specify a sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Exponential {
|
||||
/// Must be greater than 0
|
||||
/// Must be greater than 0.
|
||||
pub scale: Option<f64>,
|
||||
/// Must be greater than 1
|
||||
/// Must be greater than 1.
|
||||
#[serde(rename="growthFactor")]
|
||||
pub growth_factor: Option<f64>,
|
||||
/// must be greater than 0
|
||||
/// Must be greater than 0.
|
||||
#[serde(rename="numFiniteBuckets")]
|
||||
pub num_finite_buckets: Option<i32>,
|
||||
}
|
||||
@@ -312,18 +312,18 @@ pub struct Exponential {
|
||||
impl Part for Exponential {}
|
||||
|
||||
|
||||
/// A collection of data points sent from a `collectd`-based plugin. See the `collectd` documentation for more information.
|
||||
/// A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct CollectdPayload {
|
||||
/// The name of the plugin. Example: `"disk"`.
|
||||
/// The name of the plugin. Example: "disk".
|
||||
pub plugin: Option<String>,
|
||||
/// The measurement type instance. Example: `"used"`.
|
||||
/// The measurement type instance. Example: "used".
|
||||
#[serde(rename="typeInstance")]
|
||||
pub type_instance: Option<String>,
|
||||
/// The measured values during this time interval. Each value must have a different `dataSourceName`.
|
||||
/// The measured values during this time interval. Each value must have a different dataSourceName.
|
||||
pub values: Option<Vec<CollectdValue>>,
|
||||
/// The start time of the interval.
|
||||
#[serde(rename="startTime")]
|
||||
@@ -331,20 +331,20 @@ pub struct CollectdPayload {
|
||||
/// The end time of the interval.
|
||||
#[serde(rename="endTime")]
|
||||
pub end_time: Option<String>,
|
||||
/// The measurement type. Example: `"memory"`.
|
||||
/// The measurement type. Example: "memory".
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
/// The instance name of the plugin Example: `"hdcl"`.
|
||||
/// The instance name of the plugin Example: "hdcl".
|
||||
#[serde(rename="pluginInstance")]
|
||||
pub plugin_instance: Option<String>,
|
||||
/// The measurement metadata. Example: `"process_id" -> 12345`
|
||||
/// The measurement metadata. Example: "process_id" -> 12345
|
||||
pub metadata: Option<HashMap<String, TypedValue>>,
|
||||
}
|
||||
|
||||
impl Part for CollectdPayload {}
|
||||
|
||||
|
||||
/// A set of buckets with arbitrary widths. Defines `size(bounds) + 1` (= N) buckets with these boundaries for bucket i: Upper bound (0 <= i < N-1): bounds[i] Lower bound (1 <= i < N); bounds[i - 1] There must be at least one element in `bounds`. If `bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.
|
||||
/// A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1There must be at least one element in bounds. If bounds has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -357,15 +357,19 @@ pub struct Explicit {
|
||||
impl Part for Explicit {}
|
||||
|
||||
|
||||
/// An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The `type` field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the `labels` field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for `"gce_instance"` has labels `"instance_id"` and `"zone"`: { "type": "gce_instance", "labels": { "instance_id": "my-instance", "zone": "us-central1-a" }}
|
||||
/// An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone":
|
||||
/// { "type": "gce_instance",
|
||||
/// "labels": { "instance_id": "12345678901234",
|
||||
/// "zone": "us-central1-a" }}
|
||||
///
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct MonitoredResource {
|
||||
/// Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Cloud SQL databases use the labels `"database_id"` and `"zone"`.
|
||||
/// Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Cloud SQL databases use the labels "database_id" and "zone".
|
||||
pub labels: Option<HashMap<String, String>>,
|
||||
/// Required. The monitored resource type. This field must match the `type` field of a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL database is `"cloudsql_database"`.
|
||||
/// Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL database is "cloudsql_database".
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
}
|
||||
@@ -388,7 +392,7 @@ pub struct Range {
|
||||
impl Part for Range {}
|
||||
|
||||
|
||||
/// A single data point from a `collectd`-based plugin.
|
||||
/// A single data point from a collectd-based plugin.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -397,7 +401,7 @@ pub struct CollectdValue {
|
||||
/// The type of measurement.
|
||||
#[serde(rename="dataSourceType")]
|
||||
pub data_source_type: Option<String>,
|
||||
/// The data source for the `collectd` value. For example there are two data sources for network measurements: `"rx"` and `"tx"`.
|
||||
/// The data source for the collectd value. For example there are two data sources for network measurements: "rx" and "tx".
|
||||
#[serde(rename="dataSourceName")]
|
||||
pub data_source_name: Option<String>,
|
||||
/// The measurement value.
|
||||
@@ -407,22 +411,22 @@ pub struct CollectdValue {
|
||||
impl Part for CollectdValue {}
|
||||
|
||||
|
||||
/// A collection of data points that describes the time-varying nature of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric.
|
||||
/// A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct TimeSeries {
|
||||
/// The metric kind of the time series. This can be different than the metric kind specified in [google.api.MetricDescriptor] because of alignment and reduction operations on the data. This field is ignored when writing data; the value specified in the descriptor is used instead. @OutputOnly
|
||||
/// The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either GAUGE (the default) or CUMULATIVE.
|
||||
#[serde(rename="metricKind")]
|
||||
pub metric_kind: Option<String>,
|
||||
/// The fully-specified metric used to identify the time series.
|
||||
/// The associated metric. A fully-specified metric used to identify the time series.
|
||||
pub metric: Option<Metric>,
|
||||
/// The data points of this time series. When used as output, points will be sorted by decreasing time order. When used as input, points could be written in any orders.
|
||||
/// The data points of this time series. When listing time series, the order of the points is specified by the list method.When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
|
||||
pub points: Option<Vec<Point>>,
|
||||
/// The fully-specified monitored resource used to identify the time series.
|
||||
/// The associated resource. A fully-specified monitored resource used to identify the time series.
|
||||
pub resource: Option<MonitoredResource>,
|
||||
/// The value type of the time series. This can be different than the value type specified in [google.api.MetricDescriptor] because of alignment and reduction operations on the data. This field is ignored when writing data; the value specified in the descriptor is used instead. @OutputOnly
|
||||
/// The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the type of the data in the points field.
|
||||
#[serde(rename="valueType")]
|
||||
pub value_type: Option<String>,
|
||||
}
|
||||
@@ -430,7 +434,7 @@ pub struct TimeSeries {
|
||||
impl Part for TimeSeries {}
|
||||
|
||||
|
||||
/// Distribution contains summary statistics for a population of values and, optionally, a histogram representing the distribution of those values across a specified set of histogram buckets. The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by specifying parameters for a method of computing them (buckets of fixed width or buckets of exponentially increasing width). Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the `mean` and `sum_of_squared_deviation` fields meaningless.
|
||||
/// Distribution contains summary statistics for a population of values and, optionally, a histogram representing the distribution of those values across a specified set of histogram buckets.The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values.The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by specifying parameters for a method of computing them (buckets of fixed width or buckets of exponentially increasing width).Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the mean and sum_of_squared_deviation fields meaningless.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -438,25 +442,31 @@ impl Part for TimeSeries {}
|
||||
pub struct Distribution {
|
||||
/// The number of values in the population. Must be non-negative.
|
||||
pub count: Option<String>,
|
||||
/// If `bucket_options` is given, then the sum of the values in `bucket_counts` must equal the value in `count`. If `bucket_options` is not given, no `bucket_counts` fields may be given. Bucket counts are given in order under the numbering scheme described above (the underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; the overflow bucket has number N-1). The size of `bucket_counts` must be no greater than N as defined in `bucket_options`. Any suffix of trailing zero bucket_count fields may be omitted.
|
||||
/// If bucket_options is given, then the sum of the values in bucket_counts must equal the value in count. If bucket_options is not given, no bucket_counts fields may be given.Bucket counts are given in order under the numbering scheme described above (the underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; the overflow bucket has number N-1).The size of bucket_counts must be no greater than N as defined in bucket_options.Any suffix of trailing zero bucket_count fields may be omitted.
|
||||
#[serde(rename="bucketCounts")]
|
||||
pub bucket_counts: Option<Vec<i64>>,
|
||||
/// The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition describes Welford's method for accumulating this sum in one pass. If `count` is zero then this field must be zero.
|
||||
/// The sum of squared deviations from the mean of the values in the population. For values x_i this is:
|
||||
/// Sum[i=1..n]((x_i - mean)^2)
|
||||
/// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition describes Welford's method for accumulating this sum in one pass.If count is zero then this field must be zero.
|
||||
#[serde(rename="sumOfSquaredDeviation")]
|
||||
pub sum_of_squared_deviation: Option<f64>,
|
||||
/// If specified, contains the range of the population values. The field must not be present if the `count` is zero.
|
||||
/// If specified, contains the range of the population values. The field must not be present if the count is zero. This field is presently ignored by the Stackdriver Monitoring API v3.
|
||||
pub range: Option<Range>,
|
||||
/// Defines the histogram bucket boundaries.
|
||||
#[serde(rename="bucketOptions")]
|
||||
pub bucket_options: Option<BucketOptions>,
|
||||
/// The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
|
||||
/// The arithmetic mean of the values in the population. If count is zero then this field must be zero.
|
||||
pub mean: Option<f64>,
|
||||
}
|
||||
|
||||
impl Part for Distribution {}
|
||||
|
||||
|
||||
/// A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
/// A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
|
||||
/// service Foo {
|
||||
/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
/// }
|
||||
/// The JSON representation for Empty is empty JSON object {}.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -474,7 +484,7 @@ pub struct Empty { _never_set: Option<bool> }
|
||||
impl ResponseResult for Empty {}
|
||||
|
||||
|
||||
/// The `ListTimeSeries` response.
|
||||
/// The ListTimeSeries response.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -485,7 +495,7 @@ impl ResponseResult for Empty {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ListTimeSeriesResponse {
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `pageToken` in the next call to this method.
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.
|
||||
#[serde(rename="nextPageToken")]
|
||||
pub next_page_token: Option<String>,
|
||||
/// One or more time series that match the filter included in the request.
|
||||
@@ -496,7 +506,7 @@ pub struct ListTimeSeriesResponse {
|
||||
impl ResponseResult for ListTimeSeriesResponse {}
|
||||
|
||||
|
||||
/// Specify a sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket. Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for bucket `i`: Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
/// Specify a sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -514,7 +524,7 @@ pub struct Linear {
|
||||
impl Part for Linear {}
|
||||
|
||||
|
||||
/// Defines a metric type and its schema.
|
||||
/// Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -529,38 +539,82 @@ pub struct MetricDescriptor {
|
||||
/// A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
|
||||
#[serde(rename="displayName")]
|
||||
pub display_name: Option<String>,
|
||||
/// Resource name. The format of the name may vary between different implementations. For examples: projects/{project_id}/metricDescriptors/{type=**} metricDescriptors/{type=**}
|
||||
pub name: Option<String>,
|
||||
/// Whether the metric records instantaneous values, changes to a value, etc.
|
||||
#[serde(rename="metricKind")]
|
||||
pub metric_kind: Option<String>,
|
||||
/// Whether the measurement is an integer, a floating-point number, etc.
|
||||
#[serde(rename="valueType")]
|
||||
pub value_type: Option<String>,
|
||||
/// The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
|
||||
pub labels: Option<Vec<LabelDescriptor>>,
|
||||
/// The metric type including a DNS name prefix, for example `"compute.googleapis.com/instance/cpu/utilization"`. Metric types should use a natural hierarchical grouping such as the following: compute.googleapis.com/instance/cpu/utilization compute.googleapis.com/instance/disk/read_ops_count compute.googleapis.com/instance/network/received_bytes_count Note that if the metric type changes, the monitoring data will be discontinued, and anything depends on it will break, such as monitoring dashboards, alerting rules and quota limits. Therefore, once a metric has been published, its type should be immutable.
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
/// The unit in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported units are a subset of [The Unified Code for Units of Measure](http://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day **Prefixes (PREFIX)** * `k` kilo (10**3) * `M` mega (10**6) * `G` giga (10**9) * `T` tera (10**12) * `P` peta (10**15) * `E` exa (10**18) * `Z` zetta (10**21) * `Y` yotta (10**24) * `m` milli (10**-3) * `u` micro (10**-6) * `n` nano (10**-9) * `p` pico (10**-12) * `f` femto (10**-15) * `a` atto (10**-18) * `z` zepto (10**-21) * `y` yocto (10**-24) * `Ki` kibi (2**10) * `Mi` mebi (2**20) * `Gi` gibi (2**30) * `Ti` tebi (2**40) **Grammar** The grammar includes the dimensionless unit `1`, such as `1/s`. The grammar also includes these connectors: * `/` division (as an infix operator, e.g. `1/s`). * `.` multiplication (as an infix operator, e.g. `GBy.d`) The grammar for a unit is as follows: Expression = Component { "." Component } { "/" Component } ; Component = [ PREFIX ] UNIT [ Annotation ] | Annotation | "1" ; Annotation = "{" NAME "}" ; Notes: * `Annotation` is just a comment if it follows a `UNIT` and is equivalent to `1` if it is used alone. For examples, `{requests}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing '{' or '}'.
|
||||
pub unit: Option<String>,
|
||||
/// A detailed description of the metric, which can be used in documentation.
|
||||
pub description: Option<String>,
|
||||
/// Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported.
|
||||
#[serde(rename="metricKind")]
|
||||
pub metric_kind: Option<String>,
|
||||
/// Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
|
||||
#[serde(rename="valueType")]
|
||||
pub value_type: Option<String>,
|
||||
/// The set of labels that can be used to describe a specific instance of this metric type. For example, the appengine.googleapis.com/http/server/response_latencies metric type has a label for the HTTP response code, response_code, so you can look at latencies for successful responses or just for responses that failed.
|
||||
pub labels: Option<Vec<LabelDescriptor>>,
|
||||
/// The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined metric types have the DNS name custom.googleapis.com. Metric types should use a natural hierarchical grouping. For example:
|
||||
/// "custom.googleapis.com/invoice/paid/amount"
|
||||
/// "appengine.googleapis.com/http/server/response_latencies"
|
||||
///
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
/// The unit in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)
|
||||
/// bit bit
|
||||
/// By byte
|
||||
/// s second
|
||||
/// min minute
|
||||
/// h hour
|
||||
/// d dayPrefixes (PREFIX)
|
||||
/// k kilo (10**3)
|
||||
/// M mega (10**6)
|
||||
/// G giga (10**9)
|
||||
/// T tera (10**12)
|
||||
/// P peta (10**15)
|
||||
/// E exa (10**18)
|
||||
/// Z zetta (10**21)
|
||||
/// Y yotta (10**24)
|
||||
/// m milli (10**-3)
|
||||
/// u micro (10**-6)
|
||||
/// n nano (10**-9)
|
||||
/// p pico (10**-12)
|
||||
/// f femto (10**-15)
|
||||
/// a atto (10**-18)
|
||||
/// z zepto (10**-21)
|
||||
/// y yocto (10**-24)
|
||||
/// Ki kibi (2**10)
|
||||
/// Mi mebi (2**20)
|
||||
/// Gi gibi (2**30)
|
||||
/// Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/s.The grammar also includes these connectors:
|
||||
/// / division (as an infix operator, e.g. 1/s).
|
||||
/// . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is as follows:
|
||||
/// Expression = Component { "." Component } { "/" Component } ;
|
||||
///
|
||||
/// Component = [ PREFIX ] UNIT [ Annotation ]
|
||||
/// | Annotation
|
||||
/// | "1"
|
||||
/// ;
|
||||
///
|
||||
/// Annotation = "{" NAME "}" ;
|
||||
/// Notes:
|
||||
/// Annotation is just a comment if it follows a UNIT and is equivalent to 1 if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s == By/s.
|
||||
/// NAME is a sequence of non-blank printable ASCII characters not containing '{' or '}'.
|
||||
pub unit: Option<String>,
|
||||
/// The resource name of the metric descriptor. Depending on the implementation, the name typically includes: (1) the parent resource name that defines the scope of the metric type or of its data; and (2) the metric's URL-encoded type, which also appears in the type field of this descriptor. For example, following is the resource name of a custom metric within the GCP project 123456789:
|
||||
/// "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount"
|
||||
///
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl RequestValue for MetricDescriptor {}
|
||||
impl ResponseResult for MetricDescriptor {}
|
||||
|
||||
|
||||
/// A specific metric identified by specifying values for all of the labels of a `MetricDescriptor`.
|
||||
/// A specific metric, identified by specifying values for all of the labels of a MetricDescriptor.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Metric {
|
||||
/// The set of labels that uniquely identify a metric. To specify a metric, all labels enumerated in the `MetricDescriptor` must be assigned values.
|
||||
/// The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.
|
||||
pub labels: Option<HashMap<String, String>>,
|
||||
/// An existing metric type, see google.api.MetricDescriptor. For example, `compute.googleapis.com/instance/cpu/usage_time`.
|
||||
/// An existing metric type, see google.api.MetricDescriptor. For example, custom.googleapis.com/invoice/paid/amount.
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
}
|
||||
@@ -574,7 +628,7 @@ impl Part for Metric {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Point {
|
||||
/// The time interval to which the value applies.
|
||||
/// The time interval to which the data point applies. For GAUGE metrics, only the end time of the interval is used. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
|
||||
pub interval: Option<TimeInterval>,
|
||||
/// The value of the data point.
|
||||
pub value: Option<TypedValue>,
|
||||
@@ -583,7 +637,7 @@ pub struct Point {
|
||||
impl Part for Point {}
|
||||
|
||||
|
||||
/// A Distribution may optionally contain a histogram of the values in the population. The histogram is given in `bucket_counts` as counts of values that fall into one of a sequence of non-overlapping buckets. The sequence of buckets is described by `bucket_options`. A bucket specifies an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket is strictly greater than the lower bound. The sequence of N buckets for a Distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite. `BucketOptions` describes bucket boundaries in one of three ways. Two describe the boundaries by giving parameters for a formula to generate boundaries and one gives the bucket boundaries explicitly. If `bucket_boundaries` is not given, then no `bucket_counts` may be given.
|
||||
/// A Distribution may optionally contain a histogram of the values in the population. The histogram is given in bucket_counts as counts of values that fall into one of a sequence of non-overlapping buckets. The sequence of buckets is described by bucket_options.A bucket specifies an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket is strictly greater than the lower bound.The sequence of N buckets for a Distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.BucketOptions describes bucket boundaries in one of three ways. Two describe the boundaries by giving parameters for a formula to generate boundaries and one gives the bucket boundaries explicitly.If bucket_options is not given, then no bucket_counts may be given.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -603,7 +657,7 @@ pub struct BucketOptions {
|
||||
impl Part for BucketOptions {}
|
||||
|
||||
|
||||
/// The `ListGroups` response.
|
||||
/// The ListGroups response.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -614,7 +668,7 @@ impl Part for BucketOptions {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ListGroupsResponse {
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `pageToken` in the next call to this method.
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.
|
||||
#[serde(rename="nextPageToken")]
|
||||
pub next_page_token: Option<String>,
|
||||
/// The groups that match the specified filters.
|
||||
@@ -624,7 +678,7 @@ pub struct ListGroupsResponse {
|
||||
impl ResponseResult for ListGroupsResponse {}
|
||||
|
||||
|
||||
/// The `ListMonitoredResourcDescriptors` response.
|
||||
/// The ListMonitoredResourcDescriptors response.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -635,10 +689,10 @@ impl ResponseResult for ListGroupsResponse {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ListMonitoredResourceDescriptorsResponse {
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `pageToken` in the next call to this method.
|
||||
/// If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.
|
||||
#[serde(rename="nextPageToken")]
|
||||
pub next_page_token: Option<String>,
|
||||
/// The monitored resource descriptors that are available to this project and that match `filter`, if present.
|
||||
/// The monitored resource descriptors that are available to this project and that match filter, if present.
|
||||
#[serde(rename="resourceDescriptors")]
|
||||
pub resource_descriptors: Option<Vec<MonitoredResourceDescriptor>>,
|
||||
}
|
||||
@@ -664,7 +718,7 @@ pub struct LabelDescriptor {
|
||||
impl Part for LabelDescriptor {}
|
||||
|
||||
|
||||
/// The `CreateCollectdTimeSeries` request.
|
||||
/// The CreateCollectdTimeSeries request.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -675,12 +729,12 @@ impl Part for LabelDescriptor {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct CreateCollectdTimeSeriesRequest {
|
||||
/// The `collectd` payloads representing the time series data. You must not include more than a single point for each time series, so no two payloads can have the same values for all of the fields `plugin`, `plugin_instance`, `type`, and `type_instance`.
|
||||
/// The collectd payloads representing the time series data. You must not include more than a single point for each time series, so no two payloads can have the same values for all of the fields plugin, plugin_instance, type, and type_instance.
|
||||
#[serde(rename="collectdPayloads")]
|
||||
pub collectd_payloads: Option<Vec<CollectdPayload>>,
|
||||
/// The monitored resource associated with the time series.
|
||||
pub resource: Option<MonitoredResource>,
|
||||
/// The version of `collectd` that collected the data. Example: `"5.3.0-192.el6"`.
|
||||
/// The version of collectd that collected the data. Example: "5.3.0-192.el6".
|
||||
#[serde(rename="collectdVersion")]
|
||||
pub collectd_version: Option<String>,
|
||||
}
|
||||
@@ -688,7 +742,7 @@ pub struct CreateCollectdTimeSeriesRequest {
|
||||
impl RequestValue for CreateCollectdTimeSeriesRequest {}
|
||||
|
||||
|
||||
/// The `CreateTimeSeries` request.
|
||||
/// The CreateTimeSeries request.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -699,7 +753,7 @@ impl RequestValue for CreateCollectdTimeSeriesRequest {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct CreateTimeSeriesRequest {
|
||||
/// The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each `TimeSeries` value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.
|
||||
/// The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each TimeSeries value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.
|
||||
#[serde(rename="timeSeries")]
|
||||
pub time_series: Option<Vec<TimeSeries>>,
|
||||
}
|
||||
@@ -707,7 +761,7 @@ pub struct CreateTimeSeriesRequest {
|
||||
impl RequestValue for CreateTimeSeriesRequest {}
|
||||
|
||||
|
||||
/// An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of `"gce_instance"` and specifies the use of the labels `"instance_id"` and `"zone"` to identify particular VM instances. Different APIs can support different monitored resource types. APIs generally provide a `list` method that returns the monitored resource descriptors used by the API.
|
||||
/// An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of "gce_instance" and specifies the use of the labels "instance_id" and "zone" to identify particular VM instances.Different APIs can support different monitored resource types. APIs generally provide a list method that returns the monitored resource descriptors used by the API.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
@@ -718,18 +772,18 @@ impl RequestValue for CreateTimeSeriesRequest {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct MonitoredResourceDescriptor {
|
||||
/// Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL.
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
/// Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels `"database_id"` and `"zone"`.
|
||||
pub labels: Option<Vec<LabelDescriptor>>,
|
||||
/// Optional. A concise name for the monitored resource type that might be displayed in user interfaces. For example, `"Google Cloud SQL Database"`.
|
||||
/// Optional. A concise name for the monitored resource type that might be displayed in user interfaces. It should be a Title Cased Noun Phrase, without any article or other determiners. For example, "Google Cloud SQL Database".
|
||||
#[serde(rename="displayName")]
|
||||
pub display_name: Option<String>,
|
||||
/// Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type} is the value of the `type` field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format `"monitoredResourceDescriptors/{type}"`.
|
||||
pub name: Option<String>,
|
||||
/// Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels "database_id" and "zone".
|
||||
pub labels: Option<Vec<LabelDescriptor>>,
|
||||
/// Required. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.
|
||||
#[serde(rename="type")]
|
||||
pub type_: Option<String>,
|
||||
/// Optional. A detailed description of the monitored resource type that might be used in documentation.
|
||||
pub description: Option<String>,
|
||||
/// Optional. The resource name of the monitored resource descriptor: "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format "monitoredResourceDescriptors/{type}".
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl ResponseResult for MonitoredResourceDescriptor {}
|
||||
@@ -784,7 +838,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The metric descriptor on which to execute the request. The format is `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example value of `{metric_id}` is `"compute.googleapis.com/instance/disk/read_bytes_count"`.
|
||||
/// * `name` - The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example value of {metric_id} is "compute.googleapis.com/instance/disk/read_bytes_count".
|
||||
pub fn metric_descriptors_get(&self, name: &str) -> ProjectMetricDescriptorGetCall<'a, C, A> {
|
||||
ProjectMetricDescriptorGetCall {
|
||||
hub: self.hub,
|
||||
@@ -802,7 +856,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
/// * `name` - The project in which to create the group. The format is `"projects/{project_id_or_number}"`.
|
||||
/// * `name` - The project in which to create the group. The format is "projects/{project_id_or_number}".
|
||||
pub fn groups_create(&self, request: Group, name: &str) -> ProjectGroupCreateCall<'a, C, A> {
|
||||
ProjectGroupCreateCall {
|
||||
hub: self.hub,
|
||||
@@ -821,7 +875,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The group to retrieve. The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
|
||||
/// * `name` - The group to retrieve. The format is "projects/{project_id_or_number}/groups/{group_id}".
|
||||
pub fn groups_get(&self, name: &str) -> ProjectGroupGetCall<'a, C, A> {
|
||||
ProjectGroupGetCall {
|
||||
hub: self.hub,
|
||||
@@ -834,11 +888,11 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Deletes a metric descriptor. Only user-created [custom metrics](/monitoring/custom-metrics) can be deleted.
|
||||
/// Deletes a metric descriptor. Only user-created custom metrics can be deleted.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The metric descriptor on which to execute the request. The format is `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example of `{metric_id}` is: `"custom.googleapis.com/my_test_metric"`.
|
||||
/// * `name` - The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example of {metric_id} is: "custom.googleapis.com/my_test_metric".
|
||||
pub fn metric_descriptors_delete(&self, name: &str) -> ProjectMetricDescriptorDeleteCall<'a, C, A> {
|
||||
ProjectMetricDescriptorDeleteCall {
|
||||
hub: self.hub,
|
||||
@@ -851,12 +905,12 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Creates a new time series with the given data points. This method is only for use in `collectd`-related code, including the Google Monitoring Agent. See [google.monitoring.v3.MetricService.CreateTimeSeries] instead.
|
||||
/// Stackdriver Monitoring Agent only: Creates a new time series.<aside class="caution">This method is only for use by the Stackdriver Monitoring Agent. Use projects.timeSeries.create instead.</aside>
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
/// * `name` - The project in which to create the time series. The format is `"projects/PROJECT_ID_OR_NUMBER"`.
|
||||
/// * `name` - The project in which to create the time series. The format is "projects/PROJECT_ID_OR_NUMBER".
|
||||
pub fn collectd_time_series_create(&self, request: CreateCollectdTimeSeriesRequest, name: &str) -> ProjectCollectdTimeSeryCreateCall<'a, C, A> {
|
||||
ProjectCollectdTimeSeryCreateCall {
|
||||
hub: self.hub,
|
||||
@@ -874,7 +928,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The group whose members are listed. The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
|
||||
/// * `name` - The group whose members are listed. The format is "projects/{project_id_or_number}/groups/{group_id}".
|
||||
pub fn groups_members_list(&self, name: &str) -> ProjectGroupMemberListCall<'a, C, A> {
|
||||
ProjectGroupMemberListCall {
|
||||
hub: self.hub,
|
||||
@@ -896,7 +950,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// * `name` - The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
pub fn monitored_resource_descriptors_list(&self, name: &str) -> ProjectMonitoredResourceDescriptorListCall<'a, C, A> {
|
||||
ProjectMonitoredResourceDescriptorListCall {
|
||||
hub: self.hub,
|
||||
@@ -917,7 +971,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
/// * `name` - The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// * `name` - The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
pub fn time_series_create(&self, request: CreateTimeSeriesRequest, name: &str) -> ProjectTimeSeryCreateCall<'a, C, A> {
|
||||
ProjectTimeSeryCreateCall {
|
||||
hub: self.hub,
|
||||
@@ -931,12 +985,12 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Creates a new metric descriptor. User-created metric descriptors define [custom metrics](/monitoring/custom-metrics).
|
||||
/// Creates a new metric descriptor. User-created metric descriptors define custom metrics.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
/// * `name` - The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// * `name` - The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
pub fn metric_descriptors_create(&self, request: MetricDescriptor, name: &str) -> ProjectMetricDescriptorCreateCall<'a, C, A> {
|
||||
ProjectMetricDescriptorCreateCall {
|
||||
hub: self.hub,
|
||||
@@ -954,7 +1008,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The project whose groups are to be listed. The format is `"projects/{project_id_or_number}"`.
|
||||
/// * `name` - The project whose groups are to be listed. The format is "projects/{project_id_or_number}".
|
||||
pub fn groups_list(&self, name: &str) -> ProjectGroupListCall<'a, C, A> {
|
||||
ProjectGroupListCall {
|
||||
hub: self.hub,
|
||||
@@ -976,7 +1030,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// * `name` - The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
pub fn metric_descriptors_list(&self, name: &str) -> ProjectMetricDescriptorListCall<'a, C, A> {
|
||||
ProjectMetricDescriptorListCall {
|
||||
hub: self.hub,
|
||||
@@ -996,7 +1050,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The monitored resource descriptor to get. The format is `"projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}"`. The `{resource_type}` is a predefined type, such as `cloudsql_database`.
|
||||
/// * `name` - The monitored resource descriptor to get. The format is "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}". The {resource_type} is a predefined type, such as cloudsql_database.
|
||||
pub fn monitored_resource_descriptors_get(&self, name: &str) -> ProjectMonitoredResourceDescriptorGetCall<'a, C, A> {
|
||||
ProjectMonitoredResourceDescriptorGetCall {
|
||||
hub: self.hub,
|
||||
@@ -1009,12 +1063,12 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Updates an existing group. You can change any group attributes except `name`.
|
||||
/// Updates an existing group. You can change any group attributes except name.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
/// * `name` - The name of this group. The format is `"projects/{project_id_or_number}/groups/{group_id}"`. When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to `CreateGroup` and a unique `{group_id}` that is generated automatically. @OutputOnly
|
||||
/// * `name` - Output only. The name of this group. The format is "projects/{project_id_or_number}/groups/{group_id}". When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique {group_id} that is generated automatically.
|
||||
pub fn groups_update(&self, request: Group, name: &str) -> ProjectGroupUpdateCall<'a, C, A> {
|
||||
ProjectGroupUpdateCall {
|
||||
hub: self.hub,
|
||||
@@ -1033,7 +1087,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The group to delete. The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
|
||||
/// * `name` - The group to delete. The format is "projects/{project_id_or_number}/groups/{group_id}".
|
||||
pub fn groups_delete(&self, name: &str) -> ProjectGroupDeleteCall<'a, C, A> {
|
||||
ProjectGroupDeleteCall {
|
||||
hub: self.hub,
|
||||
@@ -1258,7 +1312,7 @@ impl<'a, C, A> ProjectMetricDescriptorGetCall<'a, C, A> where C: BorrowMut<hyper
|
||||
}
|
||||
|
||||
|
||||
/// The metric descriptor on which to execute the request. The format is `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example value of `{metric_id}` is `"compute.googleapis.com/instance/disk/read_bytes_count"`.
|
||||
/// The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example value of {metric_id} is "compute.googleapis.com/instance/disk/read_bytes_count".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -1539,7 +1593,7 @@ impl<'a, C, A> ProjectGroupCreateCall<'a, C, A> where C: BorrowMut<hyper::Client
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
/// The project in which to create the group. The format is `"projects/{project_id_or_number}"`.
|
||||
/// The project in which to create the group. The format is "projects/{project_id_or_number}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -1791,7 +1845,7 @@ impl<'a, C, A> ProjectGroupGetCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
/// The group to retrieve. The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
|
||||
/// The group to retrieve. The format is "projects/{project_id_or_number}/groups/{group_id}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -1859,7 +1913,7 @@ impl<'a, C, A> ProjectGroupGetCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
/// Deletes a metric descriptor. Only user-created [custom metrics](/monitoring/custom-metrics) can be deleted.
|
||||
/// Deletes a metric descriptor. Only user-created custom metrics can be deleted.
|
||||
///
|
||||
/// A builder for the *metricDescriptors.delete* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -2036,7 +2090,7 @@ impl<'a, C, A> ProjectMetricDescriptorDeleteCall<'a, C, A> where C: BorrowMut<hy
|
||||
}
|
||||
|
||||
|
||||
/// The metric descriptor on which to execute the request. The format is `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example of `{metric_id}` is: `"custom.googleapis.com/my_test_metric"`.
|
||||
/// The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example of {metric_id} is: "custom.googleapis.com/my_test_metric".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -2104,7 +2158,7 @@ impl<'a, C, A> ProjectMetricDescriptorDeleteCall<'a, C, A> where C: BorrowMut<hy
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new time series with the given data points. This method is only for use in `collectd`-related code, including the Google Monitoring Agent. See [google.monitoring.v3.MetricService.CreateTimeSeries] instead.
|
||||
/// Stackdriver Monitoring Agent only: Creates a new time series.<aside class="caution">This method is only for use by the Stackdriver Monitoring Agent. Use projects.timeSeries.create instead.</aside>
|
||||
///
|
||||
/// A builder for the *collectdTimeSeries.create* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -2312,7 +2366,7 @@ impl<'a, C, A> ProjectCollectdTimeSeryCreateCall<'a, C, A> where C: BorrowMut<hy
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
/// The project in which to create the time series. The format is `"projects/PROJECT_ID_OR_NUMBER"`.
|
||||
/// The project in which to create the time series. The format is "projects/PROJECT_ID_OR_NUMBER".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -2582,7 +2636,7 @@ impl<'a, C, A> ProjectGroupMemberListCall<'a, C, A> where C: BorrowMut<hyper::Cl
|
||||
}
|
||||
|
||||
|
||||
/// The group whose members are listed. The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
|
||||
/// The group whose members are listed. The format is "projects/{project_id_or_number}/groups/{group_id}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -2592,7 +2646,7 @@ impl<'a, C, A> ProjectGroupMemberListCall<'a, C, A> where C: BorrowMut<hyper::Cl
|
||||
self._name = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
/// If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> ProjectGroupMemberListCall<'a, C, A> {
|
||||
@@ -2606,21 +2660,23 @@ impl<'a, C, A> ProjectGroupMemberListCall<'a, C, A> where C: BorrowMut<hyper::Cl
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// If this value is omitted, the interval is a point in time, `endTime`. If `startTime` is present, it must be earlier than (less than) `endTime`. The interval begins after `startTime`—it does not include `startTime`.
|
||||
/// Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
|
||||
///
|
||||
/// Sets the *interval.start time* query property to the given value.
|
||||
pub fn interval_start_time(mut self, new_value: &str) -> ProjectGroupMemberListCall<'a, C, A> {
|
||||
self._interval_start_time = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Required. The end of the interval. The interval includes this time.
|
||||
/// Required. The end of the time interval.
|
||||
///
|
||||
/// Sets the *interval.end time* query property to the given value.
|
||||
pub fn interval_end_time(mut self, new_value: &str) -> ProjectGroupMemberListCall<'a, C, A> {
|
||||
self._interval_end_time = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// An optional [list filter](/monitoring/api/learn_more#filtering) describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter: resource.type = "gce_instance"
|
||||
/// An optional list filter describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter:
|
||||
/// resource.type = "gce_instance"
|
||||
///
|
||||
///
|
||||
/// Sets the *filter* query property to the given value.
|
||||
pub fn filter(mut self, new_value: &str) -> ProjectGroupMemberListCall<'a, C, A> {
|
||||
@@ -2877,7 +2933,7 @@ impl<'a, C, A> ProjectMonitoredResourceDescriptorListCall<'a, C, A> where C: Bor
|
||||
}
|
||||
|
||||
|
||||
/// The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -2887,7 +2943,7 @@ impl<'a, C, A> ProjectMonitoredResourceDescriptorListCall<'a, C, A> where C: Bor
|
||||
self._name = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
/// If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> ProjectMonitoredResourceDescriptorListCall<'a, C, A> {
|
||||
@@ -2901,7 +2957,9 @@ impl<'a, C, A> ProjectMonitoredResourceDescriptorListCall<'a, C, A> where C: Bor
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// An optional [filter](/monitoring/api/v3/filters) describing the descriptors to be returned. The filter can reference the descriptor's type and labels. For example, the following filter returns only Google Compute Engine descriptors that have an `id` label: resource.type = starts_with("gce_") AND resource.label:id
|
||||
/// An optional filter describing the descriptors to be returned. The filter can reference the descriptor's type and labels. For example, the following filter returns only Google Compute Engine descriptors that have an id label:
|
||||
/// resource.type = starts_with("gce_") AND resource.label:id
|
||||
///
|
||||
///
|
||||
/// Sets the *filter* query property to the given value.
|
||||
pub fn filter(mut self, new_value: &str) -> ProjectMonitoredResourceDescriptorListCall<'a, C, A> {
|
||||
@@ -3174,7 +3232,7 @@ impl<'a, C, A> ProjectTimeSeryCreateCall<'a, C, A> where C: BorrowMut<hyper::Cli
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
/// The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -3242,7 +3300,7 @@ impl<'a, C, A> ProjectTimeSeryCreateCall<'a, C, A> where C: BorrowMut<hyper::Cli
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new metric descriptor. User-created metric descriptors define [custom metrics](/monitoring/custom-metrics).
|
||||
/// Creates a new metric descriptor. User-created metric descriptors define custom metrics.
|
||||
///
|
||||
/// A builder for the *metricDescriptors.create* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -3450,7 +3508,7 @@ impl<'a, C, A> ProjectMetricDescriptorCreateCall<'a, C, A> where C: BorrowMut<hy
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
/// The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -3720,7 +3778,7 @@ impl<'a, C, A> ProjectGroupListCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
/// The project whose groups are to be listed. The format is `"projects/{project_id_or_number}"`.
|
||||
/// The project whose groups are to be listed. The format is "projects/{project_id_or_number}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -3730,7 +3788,7 @@ impl<'a, C, A> ProjectGroupListCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
self._name = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
/// If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> ProjectGroupListCall<'a, C, A> {
|
||||
@@ -3744,21 +3802,21 @@ impl<'a, C, A> ProjectGroupListCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// A group name: `"projects/{project_id_or_number}/groups/{group_id}"`. Returns the descendants of the specified group. This is a superset of the results returned by the `childrenOfGroup` filter, and includes children-of-children, and so forth.
|
||||
/// A group name: "projects/{project_id_or_number}/groups/{group_id}". Returns the descendants of the specified group. This is a superset of the results returned by the childrenOfGroup filter, and includes children-of-children, and so forth.
|
||||
///
|
||||
/// Sets the *descendants of group* query property to the given value.
|
||||
pub fn descendants_of_group(mut self, new_value: &str) -> ProjectGroupListCall<'a, C, A> {
|
||||
self._descendants_of_group = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// A group name: `"projects/{project_id_or_number}/groups/{group_id}"`. Returns groups whose `parentName` field contains the group name. If no groups have this parent, the results are empty.
|
||||
/// A group name: "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose parentName field contains the group name. If no groups have this parent, the results are empty.
|
||||
///
|
||||
/// Sets the *children of group* query property to the given value.
|
||||
pub fn children_of_group(mut self, new_value: &str) -> ProjectGroupListCall<'a, C, A> {
|
||||
self._children_of_group = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// A group name: `"projects/{project_id_or_number}/groups/{group_id}"`. Returns groups that are ancestors of the specified group. The groups are returned in order, starting with the immediate parent and ending with the most distant ancestor. If the specified group has no immediate parent, the results are empty.
|
||||
/// A group name: "projects/{project_id_or_number}/groups/{group_id}". Returns groups that are ancestors of the specified group. The groups are returned in order, starting with the immediate parent and ending with the most distant ancestor. If the specified group has no immediate parent, the results are empty.
|
||||
///
|
||||
/// Sets the *ancestors of group* query property to the given value.
|
||||
pub fn ancestors_of_group(mut self, new_value: &str) -> ProjectGroupListCall<'a, C, A> {
|
||||
@@ -4015,7 +4073,7 @@ impl<'a, C, A> ProjectMetricDescriptorListCall<'a, C, A> where C: BorrowMut<hype
|
||||
}
|
||||
|
||||
|
||||
/// The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
|
||||
/// The project on which to execute the request. The format is "projects/{project_id_or_number}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -4025,7 +4083,7 @@ impl<'a, C, A> ProjectMetricDescriptorListCall<'a, C, A> where C: BorrowMut<hype
|
||||
self._name = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
/// If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> ProjectMetricDescriptorListCall<'a, C, A> {
|
||||
@@ -4039,7 +4097,9 @@ impl<'a, C, A> ProjectMetricDescriptorListCall<'a, C, A> where C: BorrowMut<hype
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the [filter](/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all [custom metrics](/monitoring/custom-metrics): metric.type = starts_with("custom.googleapis.com/")
|
||||
/// If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics:
|
||||
/// metric.type = starts_with("custom.googleapis.com/")
|
||||
///
|
||||
///
|
||||
/// Sets the *filter* query property to the given value.
|
||||
pub fn filter(mut self, new_value: &str) -> ProjectMetricDescriptorListCall<'a, C, A> {
|
||||
@@ -4281,7 +4341,7 @@ impl<'a, C, A> ProjectMonitoredResourceDescriptorGetCall<'a, C, A> where C: Borr
|
||||
}
|
||||
|
||||
|
||||
/// The monitored resource descriptor to get. The format is `"projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}"`. The `{resource_type}` is a predefined type, such as `cloudsql_database`.
|
||||
/// The monitored resource descriptor to get. The format is "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}". The {resource_type} is a predefined type, such as cloudsql_database.
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -4349,7 +4409,7 @@ impl<'a, C, A> ProjectMonitoredResourceDescriptorGetCall<'a, C, A> where C: Borr
|
||||
}
|
||||
|
||||
|
||||
/// Updates an existing group. You can change any group attributes except `name`.
|
||||
/// Updates an existing group. You can change any group attributes except name.
|
||||
///
|
||||
/// A builder for the *groups.update* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -4562,7 +4622,7 @@ impl<'a, C, A> ProjectGroupUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
/// The name of this group. The format is `"projects/{project_id_or_number}/groups/{group_id}"`. When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to `CreateGroup` and a unique `{group_id}` that is generated automatically. @OutputOnly
|
||||
/// Output only. The name of this group. The format is "projects/{project_id_or_number}/groups/{group_id}". When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique {group_id} that is generated automatically.
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -4814,7 +4874,7 @@ impl<'a, C, A> ProjectGroupDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client
|
||||
}
|
||||
|
||||
|
||||
/// The group to delete. The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
|
||||
/// The group to delete. The format is "projects/{project_id_or_number}/groups/{group_id}".
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -5133,14 +5193,14 @@ impl<'a, C, A> ProjectTimeSeryListCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
||||
self._view = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
/// If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
self._page_token = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// A positive number that is the maximum number of results to return. When `view` field sets to `FULL`, it limits the number of `Points` server will return; if `view` field is `HEADERS`, it limits the number of `TimeSeries` server will return.
|
||||
/// A positive number that is the maximum number of results to return. When view field sets to FULL, it limits the number of Points server will return; if view field is HEADERS, it limits the number of TimeSeries server will return.
|
||||
///
|
||||
/// Sets the *page size* query property to the given value.
|
||||
pub fn page_size(mut self, new_value: i32) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
@@ -5154,35 +5214,38 @@ impl<'a, C, A> ProjectTimeSeryListCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
||||
self._order_by = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// If this value is omitted, the interval is a point in time, `endTime`. If `startTime` is present, it must be earlier than (less than) `endTime`. The interval begins after `startTime`—it does not include `startTime`.
|
||||
/// Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
|
||||
///
|
||||
/// Sets the *interval.start time* query property to the given value.
|
||||
pub fn interval_start_time(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
self._interval_start_time = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Required. The end of the interval. The interval includes this time.
|
||||
/// Required. The end of the time interval.
|
||||
///
|
||||
/// Sets the *interval.end time* query property to the given value.
|
||||
pub fn interval_end_time(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
self._interval_end_time = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// A [monitoring filter](/monitoring/api/v3/filters) that specifies which time series should be returned. The filter must specify a single metric type, and can additionally specify metric labels and other information. For example: metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND metric.label.instance_name = "my-instance-name"
|
||||
/// A monitoring filter that specifies which time series should be returned. The filter must specify a single metric type, and can additionally specify metric labels and other information. For example:
|
||||
/// metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
|
||||
/// metric.label.instance_name = "my-instance-name"
|
||||
///
|
||||
///
|
||||
/// Sets the *filter* query property to the given value.
|
||||
pub fn filter(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
self._filter = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// The approach to be used to align individual time series. Not all alignment functions may be applied to all time series, depending on the metric type and value type of the original time series. Alignment may change the metric type or the value type of the time series. Time series data must be aligned in order to perform cross-time series reduction. If `crossSeriesReducer` is specified, then `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and `alignmentPeriod` must be specified; otherwise, an error is returned.
|
||||
/// The approach to be used to align individual time series. Not all alignment functions may be applied to all time series, depending on the metric type and value type of the original time series. Alignment may change the metric type or the value type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned.
|
||||
///
|
||||
/// Sets the *aggregation.per series aligner* query property to the given value.
|
||||
pub fn aggregation_per_series_aligner(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
self._aggregation_per_series_aligner = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// The set of fields to preserve when `crossSeriesReducer` is specified. The `groupByFields` determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The `crossSeriesReducer` is applied to each subset of time series. Fields not specified in `groupByFields` are aggregated away. If `groupByFields` is not specified, the time series are aggregated into a single output time series. If `crossSeriesReducer` is not defined, this field is ignored.
|
||||
/// The set of fields to preserve when crossSeriesReducer is specified. The groupByFields determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The crossSeriesReducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in groupByFields are aggregated away. If groupByFields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If crossSeriesReducer is not defined, this field is ignored.
|
||||
///
|
||||
/// Append the given value to the *aggregation.group by fields* query property.
|
||||
/// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters.
|
||||
@@ -5190,14 +5253,14 @@ impl<'a, C, A> ProjectTimeSeryListCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
||||
self._aggregation_group_by_fields.push(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// The approach to be used to combine time series. Not all reducer functions may be applied to all time series, depending on the metric type and the value type of the original time series. Reduction may change the metric type of value type of the time series. Time series data must be aligned in order to perform cross-time series reduction. If `crossSeriesReducer` is specified, then `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and `alignmentPeriod` must be specified; otherwise, an error is returned.
|
||||
/// The approach to be used to combine time series. Not all reducer functions may be applied to all time series, depending on the metric type and the value type of the original time series. Reduction may change the metric type of value type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned.
|
||||
///
|
||||
/// Sets the *aggregation.cross series reducer* query property to the given value.
|
||||
pub fn aggregation_cross_series_reducer(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
self._aggregation_cross_series_reducer = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// The alignment period for per-[time series](TimeSeries) alignment. If present, `alignmentPeriod` must be at least 60 seconds. After per-time series alignment, each time series will contain data points only on the period boundaries. If `perSeriesAligner` is not specified or equals `ALIGN_NONE`, then this field is ignored. If `perSeriesAligner` is specified and does not equal `ALIGN_NONE`, then this field must be defined; otherwise an error is returned.
|
||||
/// The alignment period for per-time series alignment. If present, alignmentPeriod must be at least 60 seconds. After per-time series alignment, each time series will contain data points only on the period boundaries. If perSeriesAligner is not specified or equals ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then this field must be defined; otherwise an error is returned.
|
||||
///
|
||||
/// Sets the *aggregation.alignment period* query property to the given value.
|
||||
pub fn aggregation_alignment_period(mut self, new_value: &str) -> ProjectTimeSeryListCall<'a, C, A> {
|
||||
|
||||
Reference in New Issue
Block a user