containerThreatDetectionSettings()
Returns the containerThreatDetectionSettings Resource.
Close httplib2 connections.
getContainerThreatDetectionSettings(name, x__xgafv=None)
Get the ContainerThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetContainerThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateContainerThreatDetectionSettings for this purpose.
updateContainerThreatDetectionSettings(name, body=None, updateMask=None, x__xgafv=None)
Update the ContainerThreatDetectionSettings resource.
close()
Close httplib2 connections.
getContainerThreatDetectionSettings(name, x__xgafv=None)
Get the ContainerThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetContainerThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateContainerThreatDetectionSettings for this purpose. Args: name: string, Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Resource capturing the settings for the Container Threat Detection service. "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's configuration. "a_key": { # Configuration of a module. "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy. "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent. "a_key": "", # Properties of the object. }, }, }, "name": "A String", # Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings "serviceAccount": "A String", # Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project. "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED. "updateTime": "A String", # Output only. The time the settings were last updated. }
updateContainerThreatDetectionSettings(name, body=None, updateMask=None, x__xgafv=None)
Update the ContainerThreatDetectionSettings resource. Args: name: string, Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings (required) body: object, The request body. The object takes the form of: { # Resource capturing the settings for the Container Threat Detection service. "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's configuration. "a_key": { # Configuration of a module. "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy. "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent. "a_key": "", # Properties of the object. }, }, }, "name": "A String", # Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings "serviceAccount": "A String", # Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project. "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED. "updateTime": "A String", # Output only. The time the settings were last updated. } updateMask: string, The list of fields to be updated. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Resource capturing the settings for the Container Threat Detection service. "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's configuration. "a_key": { # Configuration of a module. "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy. "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent. "a_key": "", # Properties of the object. }, }, }, "name": "A String", # Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings "serviceAccount": "A String", # Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project. "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED. "updateTime": "A String", # Output only. The time the settings were last updated. }