Class: Google::Apis::ServicecontrolV2::ResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV2::ResourceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/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.
957 958 959 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 957 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
944 945 946 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 944 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
950 951 952 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 950 def @permission end |
#type ⇒ String
The resource type in the format of "service/kind".
Corresponds to the JSON property type
955 956 957 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 955 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
962 963 964 965 966 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 962 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 |