@Generated public interface PolicyComplianceForJobsService
A job is in compliance if its cluster configurations satisfy the rules of all their respective cluster policies. A job could be out of compliance if a cluster policy it uses was updated after the job was last edited. The job is considered out of compliance if any of its clusters no longer comply with their updated policies.
The get and list compliance APIs allow you to view the policy compliance status of a job. The enforce compliance API allows you to update a job so that it becomes compliant with all of its policies.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
EnforcePolicyComplianceResponse |
enforceCompliance(EnforcePolicyComplianceRequest enforcePolicyComplianceRequest)
Enforce job policy compliance.
|
GetPolicyComplianceResponse |
getCompliance(GetPolicyComplianceRequest getPolicyComplianceRequest)
Get job policy compliance.
|
ListJobComplianceForPolicyResponse |
listCompliance(ListJobComplianceRequest listJobComplianceRequest)
List job policy compliance.
|
EnforcePolicyComplianceResponse enforceCompliance(EnforcePolicyComplianceRequest enforcePolicyComplianceRequest)
Updates a job so the job clusters that are created when running the job (specified in `new_cluster`) are compliant with the current versions of their respective cluster policies. All-purpose clusters used in the job will not be updated.
GetPolicyComplianceResponse getCompliance(GetPolicyComplianceRequest getPolicyComplianceRequest)
Returns the policy compliance status of a job. Jobs could be out of compliance if a cluster policy they use was updated after the job was last edited and some of its job clusters no longer comply with their updated policies.
ListJobComplianceForPolicyResponse listCompliance(ListJobComplianceRequest listJobComplianceRequest)
Returns the policy compliance status of all jobs that use a given policy. Jobs could be out of compliance if a cluster policy they use was updated after the job was last edited and its job clusters no longer comply with the updated policy.
Copyright © 2025. All rights reserved.