Skip to content

Commit 880619a

Browse files
1 parent 0419da3 commit 880619a

38 files changed

+2450
-6
lines changed

clients/google-api-services-clouddeploy/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-clouddeploy</artifactId>
25-
<version>v1-rev20260128-2.0.0</version>
25+
<version>v1-rev20260313-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20260128-2.0.0'
38+
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20260313-2.0.0'
3939
}
4040
```
4141

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.clouddeploy.v1.model;
18+
19+
/**
20+
* AlertPolicyCheck configures a set of Cloud Monitoring alerting policies that will be periodically
21+
* polled for alerts. If any of the listed policies have an active alert, the analysis check will
22+
* fail.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class AlertPolicyCheck extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. The Cloud Monitoring Alert Policies to check for active alerts. Format is
36+
* `projects/{project}/alertPolicies/{alert_policy}`.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.util.List<java.lang.String> alertPolicies;
41+
42+
/**
43+
* Required. The ID of the analysis check.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String id;
48+
49+
/**
50+
* Optional. A set of labels to filter active alerts. If set, only alerts having all of the
51+
* specified labels will be considered. Otherwise, all active alerts will be considered.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.util.Map<String, java.lang.String> labels;
56+
57+
/**
58+
* Required. The Cloud Monitoring Alert Policies to check for active alerts. Format is
59+
* `projects/{project}/alertPolicies/{alert_policy}`.
60+
* @return value or {@code null} for none
61+
*/
62+
public java.util.List<java.lang.String> getAlertPolicies() {
63+
return alertPolicies;
64+
}
65+
66+
/**
67+
* Required. The Cloud Monitoring Alert Policies to check for active alerts. Format is
68+
* `projects/{project}/alertPolicies/{alert_policy}`.
69+
* @param alertPolicies alertPolicies or {@code null} for none
70+
*/
71+
public AlertPolicyCheck setAlertPolicies(java.util.List<java.lang.String> alertPolicies) {
72+
this.alertPolicies = alertPolicies;
73+
return this;
74+
}
75+
76+
/**
77+
* Required. The ID of the analysis check.
78+
* @return value or {@code null} for none
79+
*/
80+
public java.lang.String getId() {
81+
return id;
82+
}
83+
84+
/**
85+
* Required. The ID of the analysis check.
86+
* @param id id or {@code null} for none
87+
*/
88+
public AlertPolicyCheck setId(java.lang.String id) {
89+
this.id = id;
90+
return this;
91+
}
92+
93+
/**
94+
* Optional. A set of labels to filter active alerts. If set, only alerts having all of the
95+
* specified labels will be considered. Otherwise, all active alerts will be considered.
96+
* @return value or {@code null} for none
97+
*/
98+
public java.util.Map<String, java.lang.String> getLabels() {
99+
return labels;
100+
}
101+
102+
/**
103+
* Optional. A set of labels to filter active alerts. If set, only alerts having all of the
104+
* specified labels will be considered. Otherwise, all active alerts will be considered.
105+
* @param labels labels or {@code null} for none
106+
*/
107+
public AlertPolicyCheck setLabels(java.util.Map<String, java.lang.String> labels) {
108+
this.labels = labels;
109+
return this;
110+
}
111+
112+
@Override
113+
public AlertPolicyCheck set(String fieldName, Object value) {
114+
return (AlertPolicyCheck) super.set(fieldName, value);
115+
}
116+
117+
@Override
118+
public AlertPolicyCheck clone() {
119+
return (AlertPolicyCheck) super.clone();
120+
}
121+
122+
}
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.clouddeploy.v1.model;
18+
19+
/**
20+
* AlertPolicyCheckStatus contains information specific to a single run of an alert policy check.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AlertPolicyCheckStatus extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. The alert policies that this analysis monitors. Format is
34+
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> alertPolicies;
39+
40+
/**
41+
* Output only. The alert policies that were found to be firing during this check. This will be
42+
* empty if no incidents were found.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<FailedAlertPolicy> failedAlertPolicies;
47+
48+
/**
49+
* Output only. Additional information about the alert policy check failure, if available. This
50+
* will be empty if the alert policy check succeeded.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String failureMessage;
55+
56+
/**
57+
* Output only. The ID of this analysis.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private java.lang.String id;
62+
63+
/**
64+
* Output only. The resolved labels used to filter for specific incidents.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.util.Map<String, java.lang.String> labels;
69+
70+
/**
71+
* Output only. The alert policies that this analysis monitors. Format is
72+
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.util.List<java.lang.String> getAlertPolicies() {
76+
return alertPolicies;
77+
}
78+
79+
/**
80+
* Output only. The alert policies that this analysis monitors. Format is
81+
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
82+
* @param alertPolicies alertPolicies or {@code null} for none
83+
*/
84+
public AlertPolicyCheckStatus setAlertPolicies(java.util.List<java.lang.String> alertPolicies) {
85+
this.alertPolicies = alertPolicies;
86+
return this;
87+
}
88+
89+
/**
90+
* Output only. The alert policies that were found to be firing during this check. This will be
91+
* empty if no incidents were found.
92+
* @return value or {@code null} for none
93+
*/
94+
public java.util.List<FailedAlertPolicy> getFailedAlertPolicies() {
95+
return failedAlertPolicies;
96+
}
97+
98+
/**
99+
* Output only. The alert policies that were found to be firing during this check. This will be
100+
* empty if no incidents were found.
101+
* @param failedAlertPolicies failedAlertPolicies or {@code null} for none
102+
*/
103+
public AlertPolicyCheckStatus setFailedAlertPolicies(java.util.List<FailedAlertPolicy> failedAlertPolicies) {
104+
this.failedAlertPolicies = failedAlertPolicies;
105+
return this;
106+
}
107+
108+
/**
109+
* Output only. Additional information about the alert policy check failure, if available. This
110+
* will be empty if the alert policy check succeeded.
111+
* @return value or {@code null} for none
112+
*/
113+
public java.lang.String getFailureMessage() {
114+
return failureMessage;
115+
}
116+
117+
/**
118+
* Output only. Additional information about the alert policy check failure, if available. This
119+
* will be empty if the alert policy check succeeded.
120+
* @param failureMessage failureMessage or {@code null} for none
121+
*/
122+
public AlertPolicyCheckStatus setFailureMessage(java.lang.String failureMessage) {
123+
this.failureMessage = failureMessage;
124+
return this;
125+
}
126+
127+
/**
128+
* Output only. The ID of this analysis.
129+
* @return value or {@code null} for none
130+
*/
131+
public java.lang.String getId() {
132+
return id;
133+
}
134+
135+
/**
136+
* Output only. The ID of this analysis.
137+
* @param id id or {@code null} for none
138+
*/
139+
public AlertPolicyCheckStatus setId(java.lang.String id) {
140+
this.id = id;
141+
return this;
142+
}
143+
144+
/**
145+
* Output only. The resolved labels used to filter for specific incidents.
146+
* @return value or {@code null} for none
147+
*/
148+
public java.util.Map<String, java.lang.String> getLabels() {
149+
return labels;
150+
}
151+
152+
/**
153+
* Output only. The resolved labels used to filter for specific incidents.
154+
* @param labels labels or {@code null} for none
155+
*/
156+
public AlertPolicyCheckStatus setLabels(java.util.Map<String, java.lang.String> labels) {
157+
this.labels = labels;
158+
return this;
159+
}
160+
161+
@Override
162+
public AlertPolicyCheckStatus set(String fieldName, Object value) {
163+
return (AlertPolicyCheckStatus) super.set(fieldName, value);
164+
}
165+
166+
@Override
167+
public AlertPolicyCheckStatus clone() {
168+
return (AlertPolicyCheckStatus) super.clone();
169+
}
170+
171+
}

0 commit comments

Comments
 (0)