- 2.51.0 (latest)
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class InstanceOSPoliciesCompliance.Builder extends GeneratedMessageV3.Builder<InstanceOSPoliciesCompliance.Builder> implements InstanceOSPoliciesComplianceOrBuilder
This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time.
A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM.
You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy.
For more information, see View compliance.
Protobuf type google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceOSPoliciesCompliance.BuilderImplements
InstanceOSPoliciesComplianceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllOsPolicyCompliances(Iterable<? extends InstanceOSPoliciesCompliance.OSPolicyCompliance> values)
public InstanceOSPoliciesCompliance.Builder addAllOsPolicyCompliances(Iterable<? extends InstanceOSPoliciesCompliance.OSPolicyCompliance> values)
Output only. Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance> |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance value)
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance value)
Output only. Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | InstanceOSPoliciesCompliance.OSPolicyCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
Output only. Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value)
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value)
Output only. Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
value | InstanceOSPoliciesCompliance.OSPolicyCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
Output only. Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliancesBuilder()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder()
Output only. Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];