Class: Google::Apis::BinaryauthorizationV1::Scope

Inherits:
Object
  • Object
show all
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 CheckSet objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Scope

Returns a new instance of Scope.



1023
1024
1025
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1023

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kubernetes_namespaceString

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

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1014

def kubernetes_namespace
  @kubernetes_namespace
end

#kubernetes_service_accountString

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

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1021

def 
  @kubernetes_service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1028

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