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

com.aliyun.cs20151215.models.DeployPolicyInstanceRequest Maven / Gradle / Ivy

There is a newer version: 4.8.0
Show newest version
// 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy