Skip to content

Commit efe74c9

Browse files
1 parent 927d63b commit efe74c9

File tree

8 files changed

+360
-9
lines changed

8 files changed

+360
-9
lines changed

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.workloadmanager.v1.model;
18+
19+
/**
20+
* * An AgentCommand specifies a one-time executable program for the agent to run.
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 Workload Manager 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 AgentCommand extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* command is the name of the agent one-time executable that will be invoked.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String command;
38+
39+
/**
40+
* parameters is a map of key/value pairs that can be used to specify additional one-time
41+
* executable settings.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.Map<String, java.lang.String> parameters;
46+
47+
/**
48+
* command is the name of the agent one-time executable that will be invoked.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getCommand() {
52+
return command;
53+
}
54+
55+
/**
56+
* command is the name of the agent one-time executable that will be invoked.
57+
* @param command command or {@code null} for none
58+
*/
59+
public AgentCommand setCommand(java.lang.String command) {
60+
this.command = command;
61+
return this;
62+
}
63+
64+
/**
65+
* parameters is a map of key/value pairs that can be used to specify additional one-time
66+
* executable settings.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.util.Map<String, java.lang.String> getParameters() {
70+
return parameters;
71+
}
72+
73+
/**
74+
* parameters is a map of key/value pairs that can be used to specify additional one-time
75+
* executable settings.
76+
* @param parameters parameters or {@code null} for none
77+
*/
78+
public AgentCommand setParameters(java.util.Map<String, java.lang.String> parameters) {
79+
this.parameters = parameters;
80+
return this;
81+
}
82+
83+
@Override
84+
public AgentCommand set(String fieldName, Object value) {
85+
return (AgentCommand) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public AgentCommand clone() {
90+
return (AgentCommand) super.clone();
91+
}
92+
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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.workloadmanager.v1.model;
18+
19+
/**
20+
* * Command specifies the type of command to execute.
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 Workload Manager 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 Command extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* AgentCommand specifies a one-time executable program for the agent to run.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private AgentCommand agentCommand;
38+
39+
/**
40+
* ShellCommand is invoked via the agent's command line executor.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private ShellCommand shellCommand;
45+
46+
/**
47+
* AgentCommand specifies a one-time executable program for the agent to run.
48+
* @return value or {@code null} for none
49+
*/
50+
public AgentCommand getAgentCommand() {
51+
return agentCommand;
52+
}
53+
54+
/**
55+
* AgentCommand specifies a one-time executable program for the agent to run.
56+
* @param agentCommand agentCommand or {@code null} for none
57+
*/
58+
public Command setAgentCommand(AgentCommand agentCommand) {
59+
this.agentCommand = agentCommand;
60+
return this;
61+
}
62+
63+
/**
64+
* ShellCommand is invoked via the agent's command line executor.
65+
* @return value or {@code null} for none
66+
*/
67+
public ShellCommand getShellCommand() {
68+
return shellCommand;
69+
}
70+
71+
/**
72+
* ShellCommand is invoked via the agent's command line executor.
73+
* @param shellCommand shellCommand or {@code null} for none
74+
*/
75+
public Command setShellCommand(ShellCommand shellCommand) {
76+
this.shellCommand = shellCommand;
77+
return this;
78+
}
79+
80+
@Override
81+
public Command set(String fieldName, Object value) {
82+
return (Command) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public Command clone() {
87+
return (Command) super.clone();
88+
}
89+
90+
}

clients/google-api-services-workloadmanager/v1/2.0.0/com/google/api/services/workloadmanager/v1/model/ExecutionResult.java

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

32+
/**
33+
* The commands to remediate the violation.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<Command> commands;
38+
39+
static {
40+
// hack to force ProGuard to consider Command used, since otherwise it would be stripped out
41+
// see https://github.com/google/google-api-java-client/issues/543
42+
com.google.api.client.util.Data.nullOf(Command.class);
43+
}
44+
3245
/**
3346
* The URL for the documentation of the rule.
3447
* The value may be {@code null}.
@@ -71,6 +84,23 @@ public final class ExecutionResult extends com.google.api.client.json.GenericJso
7184
@com.google.api.client.util.Key
7285
private java.lang.String violationMessage;
7386

87+
/**
88+
* The commands to remediate the violation.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.util.List<Command> getCommands() {
92+
return commands;
93+
}
94+
95+
/**
96+
* The commands to remediate the violation.
97+
* @param commands commands or {@code null} for none
98+
*/
99+
public ExecutionResult setCommands(java.util.List<Command> commands) {
100+
this.commands = commands;
101+
return this;
102+
}
103+
74104
/**
75105
* The URL for the documentation of the rule.
76106
* @return value or {@code null} for none

clients/google-api-services-workloadmanager/v1/2.0.0/com/google/api/services/workloadmanager/v1/model/ExternalDataSources.java

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@
3030
public final class ExternalDataSources extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Required. Name of external data source. The name will be used inside the rego/sql to refer the
33+
* Required. The asset type of the external data source must be one of go/cai-asset-types
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String assetType;
38+
39+
/**
40+
* Optional. Name of external data source. The name will be used inside the rego/sql to refer the
3441
* external data
3542
* The value may be {@code null}.
3643
*/
@@ -52,7 +59,24 @@ public final class ExternalDataSources extends com.google.api.client.json.Generi
5259
private java.lang.String uri;
5360

5461
/**
55-
* Required. Name of external data source. The name will be used inside the rego/sql to refer the
62+
* Required. The asset type of the external data source must be one of go/cai-asset-types
63+
* @return value or {@code null} for none
64+
*/
65+
public java.lang.String getAssetType() {
66+
return assetType;
67+
}
68+
69+
/**
70+
* Required. The asset type of the external data source must be one of go/cai-asset-types
71+
* @param assetType assetType or {@code null} for none
72+
*/
73+
public ExternalDataSources setAssetType(java.lang.String assetType) {
74+
this.assetType = assetType;
75+
return this;
76+
}
77+
78+
/**
79+
* Optional. Name of external data source. The name will be used inside the rego/sql to refer the
5680
* external data
5781
* @return value or {@code null} for none
5882
*/
@@ -61,7 +85,7 @@ public java.lang.String getName() {
6185
}
6286

6387
/**
64-
* Required. Name of external data source. The name will be used inside the rego/sql to refer the
88+
* Optional. Name of external data source. The name will be used inside the rego/sql to refer the
6589
* external data
6690
* @param name name or {@code null} for none
6791
*/

0 commit comments

Comments
 (0)