com.aliyun.cs20151215.models.DeployPolicyInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cs20151215 Show documentation
Show all versions of cs20151215 Show documentation
Alibaba Cloud CS (20151215) SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cs20151215.models;
import com.aliyun.tea.*;
public class DeployPolicyInstanceRequest extends TeaModel {
/**
* The action of the policy. Valid values:
*
* deny
: Deployments that match the policy are denied.
* warn
: Alerts are generated for Deployments that match the policy.
*
*
* example:
* deny
*/
@NameInMap("action")
public String action;
/**
* The namespaces to which the policy applies. If you leave this parameter empty, the policy is applicable to all namespaces of the cluster.
*/
@NameInMap("namespaces")
public java.util.List namespaces;
/**
* The parameter settings of the policy. For more information about the parameters supported by each policy, see Predefined security policies of ACK.
*
* example:
* {"restrictedNamespaces": [ "test" ]}
*/
@NameInMap("parameters")
public java.util.Map parameters;
public static DeployPolicyInstanceRequest build(java.util.Map map) throws Exception {
DeployPolicyInstanceRequest self = new DeployPolicyInstanceRequest();
return TeaModel.build(map, self);
}
public DeployPolicyInstanceRequest setAction(String action) {
this.action = action;
return this;
}
public String getAction() {
return this.action;
}
public DeployPolicyInstanceRequest setNamespaces(java.util.List namespaces) {
this.namespaces = namespaces;
return this;
}
public java.util.List getNamespaces() {
return this.namespaces;
}
public DeployPolicyInstanceRequest setParameters(java.util.Map parameters) {
this.parameters = parameters;
return this;
}
public java.util.Map getParameters() {
return this.parameters;
}
}