Class: Google::Apis::ServicecontrolV2::ResourceInfo

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

Instance Method Summary collapse

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

#nameString

The name of the resource referenced in the request. Corresponds to the JSON property name

Returns:

  • (String)


926
927
928
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 926

def name
  @name
end

#permissionString

The resource permission needed for this request. The format must be "service/ plural.verb". Corresponds to the JSON property permission

Returns:

  • (String)


932
933
934
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 932

def permission
  @permission
end

#typeString

The resource type in the format of "service/kind". Corresponds to the JSON property type

Returns:

  • (String)


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