|
| 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 | + * The schema of agent status data. |
| 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 AgentStatus extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Output only. The name of the agent. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String agentName; |
| 38 | + |
| 39 | + /** |
| 40 | + * Output only. The available version of the agent in artifact registry. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.String availableVersion; |
| 45 | + |
| 46 | + /** |
| 47 | + * Output only. Whether the agent has full access to Cloud APIs. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String cloudApiAccessFullScopesGranted; |
| 52 | + |
| 53 | + /** |
| 54 | + * Output only. The error message for the agent configuration if invalid. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.lang.String configurationErrorMessage; |
| 59 | + |
| 60 | + /** |
| 61 | + * Output only. The path to the agent configuration file. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.lang.String configurationFilePath; |
| 66 | + |
| 67 | + /** |
| 68 | + * Output only. Whether the agent configuration is valid. |
| 69 | + * The value may be {@code null}. |
| 70 | + */ |
| 71 | + @com.google.api.client.util.Key |
| 72 | + private java.lang.String configurationValid; |
| 73 | + |
| 74 | + /** |
| 75 | + * Output only. The installed version of the agent on the host. |
| 76 | + * The value may be {@code null}. |
| 77 | + */ |
| 78 | + @com.google.api.client.util.Key |
| 79 | + private java.lang.String installedVersion; |
| 80 | + |
| 81 | + /** |
| 82 | + * Output only. The kernel version of the system. |
| 83 | + * The value may be {@code null}. |
| 84 | + */ |
| 85 | + @com.google.api.client.util.Key |
| 86 | + private SapDiscoveryResourceInstancePropertiesKernelVersion kernelVersion; |
| 87 | + |
| 88 | + /** |
| 89 | + * Output only. Optional references to public documentation. |
| 90 | + * The value may be {@code null}. |
| 91 | + */ |
| 92 | + @com.google.api.client.util.Key |
| 93 | + private java.util.List<AgentStatusReference> references; |
| 94 | + |
| 95 | + /** |
| 96 | + * Output only. The services (process metrics, host metrics, etc.). |
| 97 | + * The value may be {@code null}. |
| 98 | + */ |
| 99 | + @com.google.api.client.util.Key |
| 100 | + private java.util.List<AgentStatusServiceStatus> services; |
| 101 | + |
| 102 | + /** |
| 103 | + * Output only. Whether the agent service is enabled in systemd. |
| 104 | + * The value may be {@code null}. |
| 105 | + */ |
| 106 | + @com.google.api.client.util.Key |
| 107 | + private java.lang.String systemdServiceEnabled; |
| 108 | + |
| 109 | + /** |
| 110 | + * Output only. Whether the agent service is running in systemd. |
| 111 | + * The value may be {@code null}. |
| 112 | + */ |
| 113 | + @com.google.api.client.util.Key |
| 114 | + private java.lang.String systemdServiceRunning; |
| 115 | + |
| 116 | + /** |
| 117 | + * Output only. The name of the agent. |
| 118 | + * @return value or {@code null} for none |
| 119 | + */ |
| 120 | + public java.lang.String getAgentName() { |
| 121 | + return agentName; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Output only. The name of the agent. |
| 126 | + * @param agentName agentName or {@code null} for none |
| 127 | + */ |
| 128 | + public AgentStatus setAgentName(java.lang.String agentName) { |
| 129 | + this.agentName = agentName; |
| 130 | + return this; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Output only. The available version of the agent in artifact registry. |
| 135 | + * @return value or {@code null} for none |
| 136 | + */ |
| 137 | + public java.lang.String getAvailableVersion() { |
| 138 | + return availableVersion; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Output only. The available version of the agent in artifact registry. |
| 143 | + * @param availableVersion availableVersion or {@code null} for none |
| 144 | + */ |
| 145 | + public AgentStatus setAvailableVersion(java.lang.String availableVersion) { |
| 146 | + this.availableVersion = availableVersion; |
| 147 | + return this; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Output only. Whether the agent has full access to Cloud APIs. |
| 152 | + * @return value or {@code null} for none |
| 153 | + */ |
| 154 | + public java.lang.String getCloudApiAccessFullScopesGranted() { |
| 155 | + return cloudApiAccessFullScopesGranted; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Output only. Whether the agent has full access to Cloud APIs. |
| 160 | + * @param cloudApiAccessFullScopesGranted cloudApiAccessFullScopesGranted or {@code null} for none |
| 161 | + */ |
| 162 | + public AgentStatus setCloudApiAccessFullScopesGranted(java.lang.String cloudApiAccessFullScopesGranted) { |
| 163 | + this.cloudApiAccessFullScopesGranted = cloudApiAccessFullScopesGranted; |
| 164 | + return this; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Output only. The error message for the agent configuration if invalid. |
| 169 | + * @return value or {@code null} for none |
| 170 | + */ |
| 171 | + public java.lang.String getConfigurationErrorMessage() { |
| 172 | + return configurationErrorMessage; |
| 173 | + } |
| 174 | + |
| 175 | + /** |
| 176 | + * Output only. The error message for the agent configuration if invalid. |
| 177 | + * @param configurationErrorMessage configurationErrorMessage or {@code null} for none |
| 178 | + */ |
| 179 | + public AgentStatus setConfigurationErrorMessage(java.lang.String configurationErrorMessage) { |
| 180 | + this.configurationErrorMessage = configurationErrorMessage; |
| 181 | + return this; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Output only. The path to the agent configuration file. |
| 186 | + * @return value or {@code null} for none |
| 187 | + */ |
| 188 | + public java.lang.String getConfigurationFilePath() { |
| 189 | + return configurationFilePath; |
| 190 | + } |
| 191 | + |
| 192 | + /** |
| 193 | + * Output only. The path to the agent configuration file. |
| 194 | + * @param configurationFilePath configurationFilePath or {@code null} for none |
| 195 | + */ |
| 196 | + public AgentStatus setConfigurationFilePath(java.lang.String configurationFilePath) { |
| 197 | + this.configurationFilePath = configurationFilePath; |
| 198 | + return this; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * Output only. Whether the agent configuration is valid. |
| 203 | + * @return value or {@code null} for none |
| 204 | + */ |
| 205 | + public java.lang.String getConfigurationValid() { |
| 206 | + return configurationValid; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * Output only. Whether the agent configuration is valid. |
| 211 | + * @param configurationValid configurationValid or {@code null} for none |
| 212 | + */ |
| 213 | + public AgentStatus setConfigurationValid(java.lang.String configurationValid) { |
| 214 | + this.configurationValid = configurationValid; |
| 215 | + return this; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * Output only. The installed version of the agent on the host. |
| 220 | + * @return value or {@code null} for none |
| 221 | + */ |
| 222 | + public java.lang.String getInstalledVersion() { |
| 223 | + return installedVersion; |
| 224 | + } |
| 225 | + |
| 226 | + /** |
| 227 | + * Output only. The installed version of the agent on the host. |
| 228 | + * @param installedVersion installedVersion or {@code null} for none |
| 229 | + */ |
| 230 | + public AgentStatus setInstalledVersion(java.lang.String installedVersion) { |
| 231 | + this.installedVersion = installedVersion; |
| 232 | + return this; |
| 233 | + } |
| 234 | + |
| 235 | + /** |
| 236 | + * Output only. The kernel version of the system. |
| 237 | + * @return value or {@code null} for none |
| 238 | + */ |
| 239 | + public SapDiscoveryResourceInstancePropertiesKernelVersion getKernelVersion() { |
| 240 | + return kernelVersion; |
| 241 | + } |
| 242 | + |
| 243 | + /** |
| 244 | + * Output only. The kernel version of the system. |
| 245 | + * @param kernelVersion kernelVersion or {@code null} for none |
| 246 | + */ |
| 247 | + public AgentStatus setKernelVersion(SapDiscoveryResourceInstancePropertiesKernelVersion kernelVersion) { |
| 248 | + this.kernelVersion = kernelVersion; |
| 249 | + return this; |
| 250 | + } |
| 251 | + |
| 252 | + /** |
| 253 | + * Output only. Optional references to public documentation. |
| 254 | + * @return value or {@code null} for none |
| 255 | + */ |
| 256 | + public java.util.List<AgentStatusReference> getReferences() { |
| 257 | + return references; |
| 258 | + } |
| 259 | + |
| 260 | + /** |
| 261 | + * Output only. Optional references to public documentation. |
| 262 | + * @param references references or {@code null} for none |
| 263 | + */ |
| 264 | + public AgentStatus setReferences(java.util.List<AgentStatusReference> references) { |
| 265 | + this.references = references; |
| 266 | + return this; |
| 267 | + } |
| 268 | + |
| 269 | + /** |
| 270 | + * Output only. The services (process metrics, host metrics, etc.). |
| 271 | + * @return value or {@code null} for none |
| 272 | + */ |
| 273 | + public java.util.List<AgentStatusServiceStatus> getServices() { |
| 274 | + return services; |
| 275 | + } |
| 276 | + |
| 277 | + /** |
| 278 | + * Output only. The services (process metrics, host metrics, etc.). |
| 279 | + * @param services services or {@code null} for none |
| 280 | + */ |
| 281 | + public AgentStatus setServices(java.util.List<AgentStatusServiceStatus> services) { |
| 282 | + this.services = services; |
| 283 | + return this; |
| 284 | + } |
| 285 | + |
| 286 | + /** |
| 287 | + * Output only. Whether the agent service is enabled in systemd. |
| 288 | + * @return value or {@code null} for none |
| 289 | + */ |
| 290 | + public java.lang.String getSystemdServiceEnabled() { |
| 291 | + return systemdServiceEnabled; |
| 292 | + } |
| 293 | + |
| 294 | + /** |
| 295 | + * Output only. Whether the agent service is enabled in systemd. |
| 296 | + * @param systemdServiceEnabled systemdServiceEnabled or {@code null} for none |
| 297 | + */ |
| 298 | + public AgentStatus setSystemdServiceEnabled(java.lang.String systemdServiceEnabled) { |
| 299 | + this.systemdServiceEnabled = systemdServiceEnabled; |
| 300 | + return this; |
| 301 | + } |
| 302 | + |
| 303 | + /** |
| 304 | + * Output only. Whether the agent service is running in systemd. |
| 305 | + * @return value or {@code null} for none |
| 306 | + */ |
| 307 | + public java.lang.String getSystemdServiceRunning() { |
| 308 | + return systemdServiceRunning; |
| 309 | + } |
| 310 | + |
| 311 | + /** |
| 312 | + * Output only. Whether the agent service is running in systemd. |
| 313 | + * @param systemdServiceRunning systemdServiceRunning or {@code null} for none |
| 314 | + */ |
| 315 | + public AgentStatus setSystemdServiceRunning(java.lang.String systemdServiceRunning) { |
| 316 | + this.systemdServiceRunning = systemdServiceRunning; |
| 317 | + return this; |
| 318 | + } |
| 319 | + |
| 320 | + @Override |
| 321 | + public AgentStatus set(String fieldName, Object value) { |
| 322 | + return (AgentStatus) super.set(fieldName, value); |
| 323 | + } |
| 324 | + |
| 325 | + @Override |
| 326 | + public AgentStatus clone() { |
| 327 | + return (AgentStatus) super.clone(); |
| 328 | + } |
| 329 | + |
| 330 | +} |
0 commit comments