Class: Google::Apis::ServicecontrolV1::ResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::ResourceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicecontrol_v1/classes.rb,
lib/google/apis/servicecontrol_v1/representations.rb,
lib/google/apis/servicecontrol_v1/representations.rb
Overview
Describes a resource associated with this operation.
Instance Attribute Summary collapse
-
#permission ⇒ String
The resource permission required for this request.
-
#resource_container ⇒ String
The identifier of the parent of this resource instance.
-
#resource_location ⇒ String
The location of the resource.
-
#resource_name ⇒ String
Name of the resource.
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.
2213 2214 2215 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#permission ⇒ String
The resource permission required for this request.
Corresponds to the JSON property permission
2193 2194 2195 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2193 def @permission end |
#resource_container ⇒ String
The identifier of the parent of this resource instance. Must be in one of the
following formats: - projects/ - folders/ - organizations/
Corresponds to the JSON property resourceContainer
2199 2200 2201 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2199 def resource_container @resource_container end |
#resource_location ⇒ String
The location of the resource. If not empty, the resource will be checked
against location policy. The value must be a valid zone, region or multiregion.
For example: "europe-west4" or "northamerica-northeast1-a"
Corresponds to the JSON property resourceLocation
2206 2207 2208 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2206 def resource_location @resource_location end |
#resource_name ⇒ String
Name of the resource. This is used for auditing purposes.
Corresponds to the JSON property resourceName
2211 2212 2213 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2211 def resource_name @resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2218 2219 2220 2221 2222 2223 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2218 def update!(**args) @permission = args[:permission] if args.key?(:permission) @resource_container = args[:resource_container] if args.key?(:resource_container) @resource_location = args[:resource_location] if args.key?(:resource_location) @resource_name = args[:resource_name] if args.key?(:resource_name) end |