Skip to content

Commit b3bc1da

Browse files
1 parent 5db599c commit b3bc1da

File tree

6 files changed

+303
-6
lines changed

6 files changed

+303
-6
lines changed

clients/google-api-services-monitoring/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-monitoring</artifactId>
25-
<version>v1-rev20240427-2.0.0</version>
25+
<version>v1-rev20240505-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-monitoring:v1-rev20240427-2.0.0'
38+
implementation 'com.google.apis:google-api-services-monitoring:v1-rev20240505-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Dashboard.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
@SuppressWarnings("javadoc")
3131
public final class Dashboard extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Configuration for event annotations to display on this dashboard.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private DashboardAnnotations annotations;
39+
3340
/**
3441
* The content is divided into equally spaced columns and the widgets are arranged vertically.
3542
* The value may be {@code null}.
@@ -99,6 +106,23 @@ public final class Dashboard extends com.google.api.client.json.GenericJson {
99106
@com.google.api.client.util.Key
100107
private RowLayout rowLayout;
101108

109+
/**
110+
* Configuration for event annotations to display on this dashboard.
111+
* @return value or {@code null} for none
112+
*/
113+
public DashboardAnnotations getAnnotations() {
114+
return annotations;
115+
}
116+
117+
/**
118+
* Configuration for event annotations to display on this dashboard.
119+
* @param annotations annotations or {@code null} for none
120+
*/
121+
public Dashboard setAnnotations(DashboardAnnotations annotations) {
122+
this.annotations = annotations;
123+
return this;
124+
}
125+
102126
/**
103127
* The content is divided into equally spaced columns and the widgets are arranged vertically.
104128
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.monitoring.v1.model;
18+
19+
/**
20+
* Dashboard-level configuration for annotations
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 Monitoring 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 DashboardAnnotations extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Dashboard level defaults for names of logging resources to search for events. Currently only
34+
* projects are supported. Each individual EventAnnotation may have its own overrides. If both
35+
* this field and the per annotation field is empty, then the scoping project is used. Limit: 50
36+
* projects. For example: “projects/some-project-id”
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.util.List<java.lang.String> defaultResourceNames;
41+
42+
/**
43+
* List of annotation configurations for this dashboard. Each entry specifies one event type.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.List<EventAnnotation> eventAnnotations;
48+
49+
/**
50+
* Dashboard level defaults for names of logging resources to search for events. Currently only
51+
* projects are supported. Each individual EventAnnotation may have its own overrides. If both
52+
* this field and the per annotation field is empty, then the scoping project is used. Limit: 50
53+
* projects. For example: “projects/some-project-id”
54+
* @return value or {@code null} for none
55+
*/
56+
public java.util.List<java.lang.String> getDefaultResourceNames() {
57+
return defaultResourceNames;
58+
}
59+
60+
/**
61+
* Dashboard level defaults for names of logging resources to search for events. Currently only
62+
* projects are supported. Each individual EventAnnotation may have its own overrides. If both
63+
* this field and the per annotation field is empty, then the scoping project is used. Limit: 50
64+
* projects. For example: “projects/some-project-id”
65+
* @param defaultResourceNames defaultResourceNames or {@code null} for none
66+
*/
67+
public DashboardAnnotations setDefaultResourceNames(java.util.List<java.lang.String> defaultResourceNames) {
68+
this.defaultResourceNames = defaultResourceNames;
69+
return this;
70+
}
71+
72+
/**
73+
* List of annotation configurations for this dashboard. Each entry specifies one event type.
74+
* @return value or {@code null} for none
75+
*/
76+
public java.util.List<EventAnnotation> getEventAnnotations() {
77+
return eventAnnotations;
78+
}
79+
80+
/**
81+
* List of annotation configurations for this dashboard. Each entry specifies one event type.
82+
* @param eventAnnotations eventAnnotations or {@code null} for none
83+
*/
84+
public DashboardAnnotations setEventAnnotations(java.util.List<EventAnnotation> eventAnnotations) {
85+
this.eventAnnotations = eventAnnotations;
86+
return this;
87+
}
88+
89+
@Override
90+
public DashboardAnnotations set(String fieldName, Object value) {
91+
return (DashboardAnnotations) super.set(fieldName, value);
92+
}
93+
94+
@Override
95+
public DashboardAnnotations clone() {
96+
return (DashboardAnnotations) super.clone();
97+
}
98+
99+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
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.monitoring.v1.model;
18+
19+
/**
20+
* Annotation configuration for one event type on a dashboard
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 Monitoring 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 EventAnnotation extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Solely for UI display. Should not be used programmatically.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String displayName;
38+
39+
/**
40+
* Whether or not to show the events on the dashboard by default
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Boolean enabled;
45+
46+
/**
47+
* The type of event to display.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String eventType;
52+
53+
/**
54+
* string filtering the events - event dependant. Example values: "resource.labels.pod_name =
55+
* 'pod-1'" "protoPayload.authenticationInfo.principalEmail='[email protected]'"
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.lang.String filter;
60+
61+
/**
62+
* Per annotation level override for the names of logging resources to search for events.
63+
* Currently only projects are supported. If both this field and the per annotation field is
64+
* empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-
65+
* project-id”
66+
* The value may be {@code null}.
67+
*/
68+
@com.google.api.client.util.Key
69+
private java.util.List<java.lang.String> resourceNames;
70+
71+
/**
72+
* Solely for UI display. Should not be used programmatically.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.String getDisplayName() {
76+
return displayName;
77+
}
78+
79+
/**
80+
* Solely for UI display. Should not be used programmatically.
81+
* @param displayName displayName or {@code null} for none
82+
*/
83+
public EventAnnotation setDisplayName(java.lang.String displayName) {
84+
this.displayName = displayName;
85+
return this;
86+
}
87+
88+
/**
89+
* Whether or not to show the events on the dashboard by default
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.Boolean getEnabled() {
93+
return enabled;
94+
}
95+
96+
/**
97+
* Whether or not to show the events on the dashboard by default
98+
* @param enabled enabled or {@code null} for none
99+
*/
100+
public EventAnnotation setEnabled(java.lang.Boolean enabled) {
101+
this.enabled = enabled;
102+
return this;
103+
}
104+
105+
/**
106+
* The type of event to display.
107+
* @return value or {@code null} for none
108+
*/
109+
public java.lang.String getEventType() {
110+
return eventType;
111+
}
112+
113+
/**
114+
* The type of event to display.
115+
* @param eventType eventType or {@code null} for none
116+
*/
117+
public EventAnnotation setEventType(java.lang.String eventType) {
118+
this.eventType = eventType;
119+
return this;
120+
}
121+
122+
/**
123+
* string filtering the events - event dependant. Example values: "resource.labels.pod_name =
124+
* 'pod-1'" "protoPayload.authenticationInfo.principalEmail='[email protected]'"
125+
* @return value or {@code null} for none
126+
*/
127+
public java.lang.String getFilter() {
128+
return filter;
129+
}
130+
131+
/**
132+
* string filtering the events - event dependant. Example values: "resource.labels.pod_name =
133+
* 'pod-1'" "protoPayload.authenticationInfo.principalEmail='[email protected]'"
134+
* @param filter filter or {@code null} for none
135+
*/
136+
public EventAnnotation setFilter(java.lang.String filter) {
137+
this.filter = filter;
138+
return this;
139+
}
140+
141+
/**
142+
* Per annotation level override for the names of logging resources to search for events.
143+
* Currently only projects are supported. If both this field and the per annotation field is
144+
* empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-
145+
* project-id”
146+
* @return value or {@code null} for none
147+
*/
148+
public java.util.List<java.lang.String> getResourceNames() {
149+
return resourceNames;
150+
}
151+
152+
/**
153+
* Per annotation level override for the names of logging resources to search for events.
154+
* Currently only projects are supported. If both this field and the per annotation field is
155+
* empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-
156+
* project-id”
157+
* @param resourceNames resourceNames or {@code null} for none
158+
*/
159+
public EventAnnotation setResourceNames(java.util.List<java.lang.String> resourceNames) {
160+
this.resourceNames = resourceNames;
161+
return this;
162+
}
163+
164+
@Override
165+
public EventAnnotation set(String fieldName, Object value) {
166+
return (EventAnnotation) super.set(fieldName, value);
167+
}
168+
169+
@Override
170+
public EventAnnotation clone() {
171+
return (EventAnnotation) super.clone();
172+
}
173+
174+
}

clients/google-api-services-monitoring/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-monitoring</artifactId>
11-
<version>v1-rev20240427-2.0.0</version>
12-
<name>Cloud Monitoring API v1-rev20240427-2.0.0</name>
11+
<version>v1-rev20240505-2.0.0</version>
12+
<name>Cloud Monitoring API v1-rev20240505-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-monitoring/v1/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-monitoring</artifactId>
25-
<version>v1-rev20240427-2.0.0</version>
25+
<version>v1-rev20240505-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-monitoring:v1-rev20240427-2.0.0'
38+
implementation 'com.google.apis:google-api-services-monitoring:v1-rev20240505-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)