Class: Google::Apis::ServicecontrolV2::ResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV2::ResourceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicecontrol_v2/classes.rb,
generated/google/apis/servicecontrol_v2/representations.rb,
generated/google/apis/servicecontrol_v2/representations.rb
Overview
Describes a resource referenced in the request.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the resource referenced in the request.
-
#permission ⇒ String
The resource permission needed for this request.
-
#type ⇒ String
The resource type in the format of "
service
/kind
".
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceInfo
constructor
A new instance of ResourceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceInfo
Returns a new instance of ResourceInfo.
939 940 941 |
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 939 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the resource referenced in the request.
Corresponds to the JSON property name
926 927 928 |
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 926 def name @name end |
#permission ⇒ String
The resource permission needed for this request. The format must be "service
/
plural
.verb
".
Corresponds to the JSON property permission
932 933 934 |
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 932 def @permission end |
#type ⇒ String
The resource type in the format of "service
/kind
".
Corresponds to the JSON property type
937 938 939 |
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 937 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
944 945 946 947 948 |
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 944 def update!(**args) @name = args[:name] if args.key?(:name) @permission = args[:permission] if args.key?(:permission) @type = args[:type] if args.key?(:type) end |