Class: Google::Apis::BinaryauthorizationV1::Scope
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::Scope
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/binaryauthorization_v1/classes.rb,
lib/google/apis/binaryauthorization_v1/representations.rb,
lib/google/apis/binaryauthorization_v1/representations.rb
Overview
A scope specifier for CheckSets.
Instance Attribute Summary collapse
-
#kubernetes_namespace ⇒ String
Optional.
-
#kubernetes_service_account ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Scope
constructor
A new instance of Scope.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Scope
Returns a new instance of Scope.
1003 1004 1005 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1003 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kubernetes_namespace ⇒ String
Optional. Matches all Kubernetes service accounts in the provided namespace,
unless a more specific kubernetes_service_account scope already matched.
Corresponds to the JSON property kubernetesNamespace
994 995 996 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 994 def kubernetes_namespace @kubernetes_namespace end |
#kubernetes_service_account ⇒ String
Optional. Matches a single Kubernetes service account, e.g. 'my-namespace:my-
service-account'. kubernetes_service_account scope is always more specific
than kubernetes_namespace scope for the same namespace.
Corresponds to the JSON property kubernetesServiceAccount
1001 1002 1003 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1001 def kubernetes_service_account @kubernetes_service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1008 1009 1010 1011 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1008 def update!(**args) @kubernetes_namespace = args[:kubernetes_namespace] if args.key?(:kubernetes_namespace) @kubernetes_service_account = args[:kubernetes_service_account] if args.key?(:kubernetes_service_account) end |