Class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1MethodSelector

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudasset_v1p5beta1/classes.rb,
generated/google/apis/cloudasset_v1p5beta1/representations.rb,
generated/google/apis/cloudasset_v1p5beta1/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.



1218
1219
1220
# File 'generated/google/apis/cloudasset_v1p5beta1/classes.rb', line 1218

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

Instance Attribute Details

#method_propString

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

Returns:

  • (String)


1210
1211
1212
# File 'generated/google/apis/cloudasset_v1p5beta1/classes.rb', line 1210

def method_prop
  @method_prop
end

#permissionString

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in ApiOperation. Corresponds to the JSON property permission

Returns:

  • (String)


1216
1217
1218
# File 'generated/google/apis/cloudasset_v1p5beta1/classes.rb', line 1216

def permission
  @permission
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1223
1224
1225
1226
# File 'generated/google/apis/cloudasset_v1p5beta1/classes.rb', line 1223

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