Interface HubConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
HubConfig, HubConfig.Builder

@Generated public interface HubConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getInstallSpecValue

      int getInstallSpecValue()
       The install_spec represents the intended state specified by the
       latest request that mutated install_spec in the feature spec,
       not the lifecycle state of the
       feature observed by the Hub feature controller
       that is reported in the feature state.
       
      .google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec install_spec = 1;
      Returns:
      The enum numeric value on the wire for installSpec.
    • getInstallSpec

      HubConfig.InstallSpec getInstallSpec()
       The install_spec represents the intended state specified by the
       latest request that mutated install_spec in the feature spec,
       not the lifecycle state of the
       feature observed by the Hub feature controller
       that is reported in the feature state.
       
      .google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec install_spec = 1;
      Returns:
      The installSpec.
    • hasAuditIntervalSeconds

      boolean hasAuditIntervalSeconds()
       Sets the interval for Policy Controller Audit Scans (in seconds).
       When set to 0, this disables audit functionality altogether.
       
      optional int64 audit_interval_seconds = 2;
      Returns:
      Whether the auditIntervalSeconds field is set.
    • getAuditIntervalSeconds

      long getAuditIntervalSeconds()
       Sets the interval for Policy Controller Audit Scans (in seconds).
       When set to 0, this disables audit functionality altogether.
       
      optional int64 audit_interval_seconds = 2;
      Returns:
      The auditIntervalSeconds.
    • getExemptableNamespacesList

      List<String> getExemptableNamespacesList()
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 3;
      Returns:
      A list containing the exemptableNamespaces.
    • getExemptableNamespacesCount

      int getExemptableNamespacesCount()
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 3;
      Returns:
      The count of exemptableNamespaces.
    • getExemptableNamespaces

      String getExemptableNamespaces(int index)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The exemptableNamespaces at the given index.
    • getExemptableNamespacesBytes

      com.google.protobuf.ByteString getExemptableNamespacesBytes(int index)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the exemptableNamespaces at the given index.
    • getReferentialRulesEnabled

      boolean getReferentialRulesEnabled()
       Enables the ability to use Constraint Templates that reference to objects
       other than the object currently being evaluated.
       
      bool referential_rules_enabled = 4;
      Returns:
      The referentialRulesEnabled.
    • getLogDeniesEnabled

      boolean getLogDeniesEnabled()
       Logs all denies and dry run failures.
       
      bool log_denies_enabled = 5;
      Returns:
      The logDeniesEnabled.
    • getMutationEnabled

      boolean getMutationEnabled()
       Enables the ability to mutate resources using Policy Controller.
       
      bool mutation_enabled = 6;
      Returns:
      The mutationEnabled.
    • hasMonitoring

      boolean hasMonitoring()
       Monitoring specifies the configuration of monitoring.
       
      optional .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig monitoring = 8;
      Returns:
      Whether the monitoring field is set.
    • getMonitoring

      MonitoringConfig getMonitoring()
       Monitoring specifies the configuration of monitoring.
       
      optional .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig monitoring = 8;
      Returns:
      The monitoring.
    • getMonitoringOrBuilder

      MonitoringConfigOrBuilder getMonitoringOrBuilder()
       Monitoring specifies the configuration of monitoring.
       
      optional .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig monitoring = 8;
    • hasPolicyContent

      boolean hasPolicyContent()
       Specifies the desired policy content on the cluster
       
      optional .google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec policy_content = 9;
      Returns:
      Whether the policyContent field is set.
    • getPolicyContent

      PolicyContentSpec getPolicyContent()
       Specifies the desired policy content on the cluster
       
      optional .google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec policy_content = 9;
      Returns:
      The policyContent.
    • getPolicyContentOrBuilder

      PolicyContentSpecOrBuilder getPolicyContentOrBuilder()
       Specifies the desired policy content on the cluster
       
      optional .google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec policy_content = 9;
    • hasConstraintViolationLimit

      boolean hasConstraintViolationLimit()
       The maximum number of audit violations to be stored in a constraint.
       If not set, the internal default (currently 20) will be used.
       
      optional int64 constraint_violation_limit = 10;
      Returns:
      Whether the constraintViolationLimit field is set.
    • getConstraintViolationLimit

      long getConstraintViolationLimit()
       The maximum number of audit violations to be stored in a constraint.
       If not set, the internal default (currently 20) will be used.
       
      optional int64 constraint_violation_limit = 10;
      Returns:
      The constraintViolationLimit.
    • getDeploymentConfigsCount

      int getDeploymentConfigsCount()
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
    • containsDeploymentConfigs

      boolean containsDeploymentConfigs(String key)
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
    • getDeploymentConfigs

      Deprecated.
    • getDeploymentConfigsMap

      Map<String,PolicyControllerDeploymentConfig> getDeploymentConfigsMap()
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
    • getDeploymentConfigsOrDefault

      PolicyControllerDeploymentConfig getDeploymentConfigsOrDefault(String key, PolicyControllerDeploymentConfig defaultValue)
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
    • getDeploymentConfigsOrThrow

      PolicyControllerDeploymentConfig getDeploymentConfigsOrThrow(String key)
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;