Class: Google::Apis::SecuritycenterV1beta2::AccessReview

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Conveys information about a Kubernetes access review (such as one returned by a kubectl auth can-i command) that was involved in a finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessReview

Returns a new instance of AccessReview.



167
168
169
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 167

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

Instance Attribute Details

#groupString

The API group of the resource. "*" means all. Corresponds to the JSON property group

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 133

def group
  @group
end

#nameString

The name of the resource being requested. Empty means all. Corresponds to the JSON property name

Returns:

  • (String)


138
139
140
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 138

def name
  @name
end

#nsString

Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty). Corresponds to the JSON property ns

Returns:

  • (String)


144
145
146
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 144

def ns
  @ns
end

#resourceString

The optional resource type requested. "*" means all. Corresponds to the JSON property resource

Returns:

  • (String)


149
150
151
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 149

def resource
  @resource
end

#subresourceString

The optional subresource type. Corresponds to the JSON property subresource

Returns:

  • (String)


154
155
156
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 154

def subresource
  @subresource
end

#verbString

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all. Corresponds to the JSON property verb

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 160

def verb
  @verb
end

#versionString

The API version of the resource. "*" means all. Corresponds to the JSON property version

Returns:

  • (String)


165
166
167
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 165

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



172
173
174
175
176
177
178
179
180
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 172

def update!(**args)
  @group = args[:group] if args.key?(:group)
  @name = args[:name] if args.key?(:name)
  @ns = args[:ns] if args.key?(:ns)
  @resource = args[:resource] if args.key?(:resource)
  @subresource = args[:subresource] if args.key?(:subresource)
  @verb = args[:verb] if args.key?(:verb)
  @version = args[:version] if args.key?(:version)
end