mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs
This commit is contained in:
@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
|
||||
/// Identifies the an OAuth2 authorization scope.
|
||||
/// A scope is needed when requesting an
|
||||
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
|
||||
#[derive(PartialEq, Eq, Hash)]
|
||||
#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Debug, Clone, Copy)]
|
||||
pub enum Scope {
|
||||
/// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
||||
CloudPlatform,
|
||||
@@ -235,14 +235,14 @@ pub struct AlertPolicy {
|
||||
/// How to combine the results of multiple conditions to determine if an incident should be opened. If condition_time_series_query_language is present, this must be COMBINE_UNSPECIFIED.
|
||||
|
||||
pub combiner: Option<String>,
|
||||
/// A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If condition_time_series_query_language is present, it must be the only condition.
|
||||
/// A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If condition_time_series_query_language is present, it must be the only condition. If condition_monitoring_query_language is present, it must be the only condition.
|
||||
|
||||
pub conditions: Option<Vec<Condition>>,
|
||||
/// A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
|
||||
#[serde(rename="creationRecord")]
|
||||
|
||||
pub creation_record: Option<MutationRecord>,
|
||||
/// A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
|
||||
/// A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.The convention for the display_name of a PrometheusQueryLanguageCondition is "{rule group name}/{alert name}", where the {rule group name} and {alert name} should be taken from the corresponding Prometheus configuration file. This convention is not enforced. In any case the display_name is not a unique key of the AlertPolicy.
|
||||
#[serde(rename="displayName")]
|
||||
|
||||
pub display_name: Option<String>,
|
||||
@@ -263,11 +263,14 @@ pub struct AlertPolicy {
|
||||
#[serde(rename="notificationChannels")]
|
||||
|
||||
pub notification_channels: Option<Vec<String>>,
|
||||
/// User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
|
||||
/// Optional. The severity of an alert policy indicates how important incidents generated by that policy are. The severity level will be displayed on the Incident detail page and in notifications.
|
||||
|
||||
pub severity: Option<String>,
|
||||
/// User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.Note that Prometheus {alert name} is a valid Prometheus label names (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels), whereas Prometheus {rule group} is an unrestricted UTF-8 string. This means that they cannot be stored as-is in user labels, because they may contain characters that are not allowed in user-label values.
|
||||
#[serde(rename="userLabels")]
|
||||
|
||||
pub user_labels: Option<HashMap<String, String>>,
|
||||
/// Read-only description of how the alert policy is invalid. OK if the alert policy is valid. If not OK, the alert policy will not generate incidents.
|
||||
/// Read-only description of how the alert policy is invalid. This field is only set when the alert policy is invalid. An invalid alert policy will not generate incidents.
|
||||
|
||||
pub validity: Option<Status>,
|
||||
}
|
||||
@@ -288,6 +291,10 @@ pub struct AlertStrategy {
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
pub auto_close: Option<client::chrono::Duration>,
|
||||
/// Control how notifications will be sent out, on a per-channel basis.
|
||||
#[serde(rename="notificationChannelStrategy")]
|
||||
|
||||
pub notification_channel_strategy: Option<Vec<NotificationChannelStrategy>>,
|
||||
/// Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
|
||||
#[serde(rename="notificationRateLimit")]
|
||||
|
||||
@@ -428,6 +435,25 @@ pub struct CloudEndpoints {
|
||||
impl client::Part for CloudEndpoints {}
|
||||
|
||||
|
||||
/// A Synthetic Monitor deployed to a Cloud Functions V2 instance.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct CloudFunctionV2Target {
|
||||
/// Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.
|
||||
#[serde(rename="cloudRunRevision")]
|
||||
|
||||
pub cloud_run_revision: Option<MonitoredResource>,
|
||||
/// Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.
|
||||
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for CloudFunctionV2Target {}
|
||||
|
||||
|
||||
/// Cloud Run service. Learn more at https://cloud.google.com/run.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -597,6 +623,10 @@ pub struct Condition {
|
||||
#[serde(rename="conditionMonitoringQueryLanguage")]
|
||||
|
||||
pub condition_monitoring_query_language: Option<MonitoringQueryLanguageCondition>,
|
||||
/// A condition that uses the Prometheus query language to define alerts.
|
||||
#[serde(rename="conditionPrometheusQueryLanguage")]
|
||||
|
||||
pub condition_prometheus_query_language: Option<PrometheusQueryLanguageCondition>,
|
||||
/// A condition that compares a time series against a threshold.
|
||||
#[serde(rename="conditionThreshold")]
|
||||
|
||||
@@ -736,7 +766,7 @@ impl client::Part for CreateTimeSeriesSummary {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Criteria {
|
||||
/// The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 100 policies per snooze. This limit is checked during snooze creation.
|
||||
/// The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
|
||||
|
||||
pub policies: Option<Vec<String>>,
|
||||
}
|
||||
@@ -826,6 +856,9 @@ pub struct Documentation {
|
||||
#[serde(rename="mimeType")]
|
||||
|
||||
pub mime_type: Option<String>,
|
||||
/// Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by this thread (https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255).The contents of the subject line can be templatized by using variables (https://cloud.google.com/monitoring/alerts/doc-variables). If this field is missing or empty, a default subject line will be generated.
|
||||
|
||||
pub subject: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for Documentation {}
|
||||
@@ -910,7 +943,7 @@ pub struct Explicit {
|
||||
impl client::Part for Explicit {}
|
||||
|
||||
|
||||
/// Specifies an exponential 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.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
||||
/// Specifies an exponential 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.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: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.
|
||||
///
|
||||
@@ -940,7 +973,7 @@ impl client::Part for Exponential {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ForecastOptions {
|
||||
/// Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.
|
||||
/// Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing. The forecast horizon can range from 1 hour to 60 hours.
|
||||
#[serde(rename="forecastHorizon")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
@@ -1158,12 +1191,16 @@ pub struct HttpCheck {
|
||||
pub auth_info: Option<BasicAuthentication>,
|
||||
/// The request body associated with the HTTP POST request. If content_type is URL_ENCODED, the body passed in must be URL-encoded. Users can provide a Content-Length header via the headers field or the API will do so. If the request_method is GET and body is not empty, the API will return an error. The maximum byte size is 1 megabyte.Note: If client libraries aren't used (which performs the conversion automatically) base64 encode your body data since the field is of bytes type.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub body: Option<Vec<u8>>,
|
||||
/// The content type header to use for the check. The following configurations result in errors: 1. Content type is specified in both the headers field and the content_type field. 2. Request method is GET and content_type is not TYPE_UNSPECIFIED 3. Request method is POST and content_type is TYPE_UNSPECIFIED. 4. Request method is POST and a "Content-Type" header is provided via headers field. The content_type field should be used instead.
|
||||
#[serde(rename="contentType")]
|
||||
|
||||
pub content_type: Option<String>,
|
||||
/// A user provided content type header to use for the check. The invalid configurations outlined in the content_type field apply to custom_content_type, as well as the following: 1. content_type is URL_ENCODED and custom_content_type is set. 2. content_type is USER_PROVIDED and custom_content_type is not set.
|
||||
#[serde(rename="customContentType")]
|
||||
|
||||
pub custom_content_type: Option<String>,
|
||||
/// The list of headers to send as part of the Uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
|
||||
|
||||
pub headers: Option<HashMap<String, String>>,
|
||||
@@ -1338,7 +1375,7 @@ pub struct LatencyCriteria {
|
||||
impl client::Part for LatencyCriteria {}
|
||||
|
||||
|
||||
/// Specifies a linear 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.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
/// Specifies a linear 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.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: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.
|
||||
///
|
||||
@@ -1907,14 +1944,14 @@ pub struct MetricThreshold {
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
pub duration: Option<client::chrono::Duration>,
|
||||
/// A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
|
||||
/// A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. To use this control, the value of the duration field must be greater than or equal to 60 seconds.
|
||||
#[serde(rename="evaluationMissingData")]
|
||||
|
||||
pub evaluation_missing_data: Option<String>,
|
||||
/// Required. A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies which time series should be compared with the threshold.The filter is similar to the one that is specified in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call is useful to verify the time series that will be retrieved / processed). The filter must specify the metric type and the resource type. Optionally, it can specify resource labels and metric labels. This field must not exceed 2048 Unicode characters in length.
|
||||
|
||||
pub filter: Option<String>,
|
||||
/// When this field is present, the MetricThreshold condition forecasts whether the time series is predicted to violate the threshold within the forecast_horizion. When this field is not set, the MetricThreshold tests the current value of the timeseries against the threshold.
|
||||
/// When this field is present, the MetricThreshold condition forecasts whether the time series is predicted to violate the threshold within the forecast_horizon. When this field is not set, the MetricThreshold tests the current value of the timeseries against the threshold.
|
||||
#[serde(rename="forecastOptions")]
|
||||
|
||||
pub forecast_options: Option<ForecastOptions>,
|
||||
@@ -1977,7 +2014,7 @@ pub struct MonitoredResourceDescriptor {
|
||||
/// 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. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
|
||||
/// Required. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL. For a list of types, see Monitored resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
|
||||
#[serde(rename="type")]
|
||||
|
||||
pub type_: Option<String>,
|
||||
@@ -2149,6 +2186,27 @@ pub struct NotificationChannelDescriptor {
|
||||
impl client::ResponseResult for NotificationChannelDescriptor {}
|
||||
|
||||
|
||||
/// Control over how the notification channels in notification_channels are notified when this alert fires, on a per-channel basis.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct NotificationChannelStrategy {
|
||||
/// The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
|
||||
#[serde(rename="notificationChannelNames")]
|
||||
|
||||
pub notification_channel_names: Option<Vec<String>>,
|
||||
/// The frequency at which to send reminder notifications for open incidents.
|
||||
#[serde(rename="renotifyInterval")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
pub renotify_interval: Option<client::chrono::Duration>,
|
||||
}
|
||||
|
||||
impl client::Part for NotificationChannelStrategy {}
|
||||
|
||||
|
||||
/// Control over the rate of notifications sent to this alert policy's notification channels.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -2240,6 +2298,41 @@ pub struct PointData {
|
||||
impl client::Part for PointData {}
|
||||
|
||||
|
||||
/// A condition type that allows alert policies to be defined using Prometheus Query Language (PromQL) (https://prometheus.io/docs/prometheus/latest/querying/basics/).The PrometheusQueryLanguageCondition message contains information from a Prometheus alerting rule and its associated rule group.A Prometheus alerting rule is described here (https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/). The semantics of a Prometheus alerting rule is described here (https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule).A Prometheus rule group is described here (https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/). The semantics of a Prometheus rule group is described here (https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule_group).Because Cloud Alerting has no representation of a Prometheus rule group resource, we must embed the information of the parent rule group inside each of the conditions that refer to it. We must also update the contents of all Prometheus alerts in case the information of their rule group changes.The PrometheusQueryLanguageCondition protocol buffer combines the information of the corresponding rule group and alerting rule. The structure of the PrometheusQueryLanguageCondition protocol buffer does NOT mimic the structure of the Prometheus rule group and alerting rule YAML declarations. The PrometheusQueryLanguageCondition protocol buffer may change in the future to support future rule group and/or alerting rule features. There are no new such features at the present time (2023-06-26).
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct PrometheusQueryLanguageCondition {
|
||||
/// Optional. The alerting rule name of this alert in the corresponding Prometheus configuration file.Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future.This field is optional. If this field is not empty, then it must be a valid Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). This field may not exceed 2048 Unicode characters in length.
|
||||
#[serde(rename="alertRule")]
|
||||
|
||||
pub alert_rule: Option<String>,
|
||||
/// Optional. Alerts are considered firing once their PromQL expression was evaluated to be "true" for this long. Alerts whose PromQL expression was not evaluated to be "true" for long enough are considered pending. Must be a non-negative duration or missing. This field is optional. Its default value is zero.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
pub duration: Option<client::chrono::Duration>,
|
||||
/// Optional. How often this rule should be evaluated. Must be a positive multiple of 30 seconds or missing. This field is optional. Its default value is 30 seconds. If this PrometheusQueryLanguageCondition was generated from a Prometheus alerting rule, then this value should be taken from the enclosing rule group.
|
||||
#[serde(rename="evaluationInterval")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
pub evaluation_interval: Option<client::chrono::Duration>,
|
||||
/// Optional. Labels to add to or overwrite in the PromQL query result. Label names must be valid (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). Label values can be templatized by using variables (https://cloud.google.com/monitoring/alerts/doc-variables). The only available variable names are the names of the labels in the PromQL result, including "__name__" and "value". "labels" may be empty.
|
||||
|
||||
pub labels: Option<HashMap<String, String>>,
|
||||
/// Required. The PromQL expression to evaluate. Every evaluation cycle this expression is evaluated at the current time, and all resultant time series become pending/firing alerts. This field must not be empty.
|
||||
|
||||
pub query: Option<String>,
|
||||
/// Optional. The rule group name of this alert in the corresponding Prometheus configuration file.Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future.This field is optional. If this field is not empty, then it must contain a valid UTF-8 string. This field may not exceed 2048 Unicode characters in length.
|
||||
#[serde(rename="ruleGroup")]
|
||||
|
||||
pub rule_group: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for PrometheusQueryLanguageCondition {}
|
||||
|
||||
|
||||
/// The QueryTimeSeries request.
|
||||
///
|
||||
/// # Activities
|
||||
@@ -2599,6 +2692,22 @@ pub struct Status {
|
||||
impl client::Part for Status {}
|
||||
|
||||
|
||||
/// Describes a Synthetic Monitor to be invoked by Uptime.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct SyntheticMonitorTarget {
|
||||
/// Target a Synthetic Monitor GCFv2 instance.
|
||||
#[serde(rename="cloudFunctionV2")]
|
||||
|
||||
pub cloud_function_v2: Option<CloudFunctionV2Target>,
|
||||
}
|
||||
|
||||
impl client::Part for SyntheticMonitorTarget {}
|
||||
|
||||
|
||||
/// Information required for a TCP Uptime check request.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -2845,7 +2954,7 @@ pub struct UptimeCheckConfig {
|
||||
#[serde(rename="monitoredResource")]
|
||||
|
||||
pub monitored_resource: Option<MonitoredResource>,
|
||||
/// A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
|
||||
/// Identifier. A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
|
||||
|
||||
pub name: Option<String>,
|
||||
/// How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
|
||||
@@ -2860,6 +2969,10 @@ pub struct UptimeCheckConfig {
|
||||
#[serde(rename="selectedRegions")]
|
||||
|
||||
pub selected_regions: Option<Vec<String>>,
|
||||
/// Specifies a Synthetic Monitor to invoke.
|
||||
#[serde(rename="syntheticMonitor")]
|
||||
|
||||
pub synthetic_monitor: Option<SyntheticMonitorTarget>,
|
||||
/// Contains information needed to make a TCP check.
|
||||
#[serde(rename="tcpCheck")]
|
||||
|
||||
@@ -3624,7 +3737,7 @@ impl<'a, S> ProjectMethods<'a, S> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Lists the notification channels that have been created for the project.
|
||||
/// Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the ListNotificationChannelDescriptors method.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -3779,7 +3892,7 @@ impl<'a, S> ProjectMethods<'a, S> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.
|
||||
/// Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy (https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -3946,7 +4059,7 @@ impl<'a, S> ProjectMethods<'a, S> {
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
/// * `name` - A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
|
||||
/// * `name` - Identifier. A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
|
||||
pub fn uptime_check_configs_patch(&self, request: UptimeCheckConfig, name: &str) -> ProjectUptimeCheckConfigPatchCall<'a, S> {
|
||||
ProjectUptimeCheckConfigPatchCall {
|
||||
hub: self.hub,
|
||||
@@ -9684,7 +9797,7 @@ where
|
||||
self._page_token = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// A positive number that is the maximum number of results to return.
|
||||
/// A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results.
|
||||
///
|
||||
/// Sets the *page size* query property to the given value.
|
||||
pub fn page_size(mut self, new_value: i32) -> ProjectMetricDescriptorListCall<'a, S> {
|
||||
@@ -12002,7 +12115,7 @@ where
|
||||
}
|
||||
|
||||
|
||||
/// Lists the notification channels that have been created for the project.
|
||||
/// Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the ListNotificationChannelDescriptors method.
|
||||
///
|
||||
/// A builder for the *notificationChannels.list* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a [`ProjectMethods`] instance.
|
||||
@@ -14356,7 +14469,7 @@ where
|
||||
}
|
||||
|
||||
|
||||
/// Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.
|
||||
/// Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy (https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).
|
||||
///
|
||||
/// A builder for the *timeSeries.create* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a [`ProjectMethods`] instance.
|
||||
@@ -17005,7 +17118,7 @@ where
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
/// A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
|
||||
/// Identifier. A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
|
||||
///
|
||||
/// Sets the *name* path property to the given value.
|
||||
///
|
||||
@@ -17319,7 +17432,7 @@ where
|
||||
self._parent = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern [a-z0-9\-]+
|
||||
/// Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern ^[a-zA-Z0-9-_:.]+$
|
||||
///
|
||||
/// Sets the *service level objective id* query property to the given value.
|
||||
pub fn service_level_objective_id(mut self, new_value: &str) -> ServiceServiceLevelObjectiveCreateCall<'a, S> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *Monitoring* crate version *5.0.3+20230115*, where *20230115* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//! This documentation was generated from *Monitoring* crate version *5.0.3+20240225*, where *20240225* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//!
|
||||
//! Everything else about the *Monitoring* *v3* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/monitoring/api/).
|
||||
|
||||
Reference in New Issue
Block a user