Interface OSPolicy.Resource.ExecResourceOrBuilder (2.19.0)

public static interface OSPolicy.Resource.ExecResourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnforce()

public abstract OSPolicy.Resource.ExecResource.Exec getEnforce()

What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec enforce = 2;

Returns
TypeDescription
OSPolicy.Resource.ExecResource.Exec

The enforce.

getEnforceOrBuilder()

public abstract OSPolicy.Resource.ExecResource.ExecOrBuilder getEnforceOrBuilder()

What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec enforce = 2;

Returns
TypeDescription
OSPolicy.Resource.ExecResource.ExecOrBuilder

getValidate()

public abstract OSPolicy.Resource.ExecResource.Exec getValidate()

Required. What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec validate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.ExecResource.Exec

The validate.

getValidateOrBuilder()

public abstract OSPolicy.Resource.ExecResource.ExecOrBuilder getValidateOrBuilder()

Required. What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec validate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.ExecResource.ExecOrBuilder

hasEnforce()

public abstract boolean hasEnforce()

What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec enforce = 2;

Returns
TypeDescription
boolean

Whether the enforce field is set.

hasValidate()

public abstract boolean hasValidate()

Required. What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec validate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the validate field is set.