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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb

Overview

Describes a resource associated with this operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourceInfo

Returns a new instance of ResourceInfo



1899
1900
1901
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1899

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

Instance Attribute Details

#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)


1892
1893
1894
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1892

def resource_container
  @resource_container
end

#resource_nameString

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

Returns:

  • (String)


1897
1898
1899
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1897

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1904
1905
1906
1907
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1904

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