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 Summary
Modifier and TypeMethodDescriptionbooleanMap of deployment configs to deployments ("admission", "audit", "mutation').longSets the interval for Policy Controller Audit Scans (in seconds).longThe maximum number of audit violations to be stored in a constraint.Deprecated.intMap of deployment configs to deployments ("admission", "audit", "mutation').Map of deployment configs to deployments ("admission", "audit", "mutation').getDeploymentConfigsOrDefault(String key, PolicyControllerDeploymentConfig defaultValue) Map of deployment configs to deployments ("admission", "audit", "mutation').Map of deployment configs to deployments ("admission", "audit", "mutation').getExemptableNamespaces(int index) The set of namespaces that are excluded from Policy Controller checks.com.google.protobuf.ByteStringgetExemptableNamespacesBytes(int index) The set of namespaces that are excluded from Policy Controller checks.intThe set of namespaces that are excluded from Policy Controller checks.The set of namespaces that are excluded from Policy Controller checks.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.intThe 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.booleanLogs all denies and dry run failures.Monitoring specifies the configuration of monitoring.Monitoring specifies the configuration of monitoring.booleanEnables the ability to mutate resources using Policy Controller.Specifies the desired policy content on the clusterSpecifies the desired policy content on the clusterbooleanEnables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.booleanSets the interval for Policy Controller Audit Scans (in seconds).booleanThe maximum number of audit violations to be stored in a constraint.booleanMonitoring specifies the configuration of monitoring.booleanSpecifies the desired policy content on the clusterMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
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
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
Map of deployment configs to deployments ("admission", "audit", "mutation').map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11; -
getDeploymentConfigs
Deprecated.UsegetDeploymentConfigsMap()instead. -
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
Map of deployment configs to deployments ("admission", "audit", "mutation').map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
-