Class: Google::Apis::ServicecontrolV1::ResourceInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceInfo

Returns a new instance of ResourceInfo.



2216
2217
2218
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2216

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

Instance Attribute Details

#permissionString

The resource permission required for this request. Corresponds to the JSON property permission

Returns:

  • (String)


2196
2197
2198
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2196

def permission
  @permission
end

#resource_containerString

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

Returns:

  • (String)


2202
2203
2204
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2202

def resource_container
  @resource_container
end

#resource_locationString

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

Returns:

  • (String)


2209
2210
2211
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2209

def resource_location
  @resource_location
end

#resource_nameString

Name of the resource. This is used for auditing purposes. Corresponds to the JSON property resourceName

Returns:

  • (String)


2214
2215
2216
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2214

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2221
2222
2223
2224
2225
2226
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2221

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