All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.osconfig.v1.model.OSPolicyAssignmentReport Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.osconfig.v1.model;

/**
 * A report of the OS policy assignment status for a given instance.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the OS Config API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class OSPolicyAssignmentReport extends com.google.api.client.json.GenericJson { /** * The Compute Engine VM instance name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** * Unique identifier of the last attempted run to apply the OS policies associated with this * assignment on the VM. This ID is logged by the OS Config agent while applying the OS policies * associated with this assignment on the VM. NOTE: If the service is unable to successfully * connect to the agent for this run, then this id will not be available in the agent logs. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastRunId; /** * The `OSPolicyAssignmentReport` API resource name. Format: `projects/{project_number}/locations/ * {location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `pro * jects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revisi * on_id}` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String osPolicyAssignment; /** * Compliance data for each `OSPolicy` that is applied to the VM. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List osPolicyCompliances; /** * Timestamp for when the report was last generated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * The Compute Engine VM instance name. * @return value or {@code null} for none */ public java.lang.String getInstance() { return instance; } /** * The Compute Engine VM instance name. * @param instance instance or {@code null} for none */ public OSPolicyAssignmentReport setInstance(java.lang.String instance) { this.instance = instance; return this; } /** * Unique identifier of the last attempted run to apply the OS policies associated with this * assignment on the VM. This ID is logged by the OS Config agent while applying the OS policies * associated with this assignment on the VM. NOTE: If the service is unable to successfully * connect to the agent for this run, then this id will not be available in the agent logs. * @return value or {@code null} for none */ public java.lang.String getLastRunId() { return lastRunId; } /** * Unique identifier of the last attempted run to apply the OS policies associated with this * assignment on the VM. This ID is logged by the OS Config agent while applying the OS policies * associated with this assignment on the VM. NOTE: If the service is unable to successfully * connect to the agent for this run, then this id will not be available in the agent logs. * @param lastRunId lastRunId or {@code null} for none */ public OSPolicyAssignmentReport setLastRunId(java.lang.String lastRunId) { this.lastRunId = lastRunId; return this; } /** * The `OSPolicyAssignmentReport` API resource name. Format: `projects/{project_number}/locations/ * {location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report` * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The `OSPolicyAssignmentReport` API resource name. Format: `projects/{project_number}/locations/ * {location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report` * @param name name or {@code null} for none */ public OSPolicyAssignmentReport setName(java.lang.String name) { this.name = name; return this; } /** * Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `pro * jects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revisi * on_id}` * @return value or {@code null} for none */ public java.lang.String getOsPolicyAssignment() { return osPolicyAssignment; } /** * Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `pro * jects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revisi * on_id}` * @param osPolicyAssignment osPolicyAssignment or {@code null} for none */ public OSPolicyAssignmentReport setOsPolicyAssignment(java.lang.String osPolicyAssignment) { this.osPolicyAssignment = osPolicyAssignment; return this; } /** * Compliance data for each `OSPolicy` that is applied to the VM. * @return value or {@code null} for none */ public java.util.List getOsPolicyCompliances() { return osPolicyCompliances; } /** * Compliance data for each `OSPolicy` that is applied to the VM. * @param osPolicyCompliances osPolicyCompliances or {@code null} for none */ public OSPolicyAssignmentReport setOsPolicyCompliances(java.util.List osPolicyCompliances) { this.osPolicyCompliances = osPolicyCompliances; return this; } /** * Timestamp for when the report was last generated. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Timestamp for when the report was last generated. * @param updateTime updateTime or {@code null} for none */ public OSPolicyAssignmentReport setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } @Override public OSPolicyAssignmentReport set(String fieldName, Object value) { return (OSPolicyAssignmentReport) super.set(fieldName, value); } @Override public OSPolicyAssignmentReport clone() { return (OSPolicyAssignmentReport) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy