Class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1MethodSelector

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

Overview

An allowed method or permission of a service specified in ApiOperation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIdentityAccesscontextmanagerV1MethodSelector

Returns a new instance of GoogleIdentityAccesscontextmanagerV1MethodSelector.



3479
3480
3481
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3479

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

Instance Attribute Details

#method_propString

A valid method name for the corresponding service_name in ApiOperation. If * is used as the value for the method, then ALL methods and permissions are allowed. Corresponds to the JSON property method

Returns:

  • (String)


3471
3472
3473
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3471

def method_prop
  @method_prop
end

#permissionString

A valid Cloud IAM permission for the corresponding service_name in ApiOperation. Corresponds to the JSON property permission

Returns:

  • (String)


3477
3478
3479
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3477

def permission
  @permission
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3484
3485
3486
3487
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3484

def update!(**args)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @permission = args[:permission] if args.key?(:permission)
end