Class: Google::Apis::MerchantapiQuotaV1beta::MethodDetails

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

Overview

The method details per method in the Merchant API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MethodDetails

Returns a new instance of MethodDetails.



77
78
79
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 77

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

Instance Attribute Details

#method_propString

Output only. The name of the method for example products.list. Corresponds to the JSON property method

Returns:

  • (String)


60
61
62
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 60

def method_prop
  @method_prop
end

#pathString

Output only. The path for the method such as products/v1/productInputs.insert Corresponds to the JSON property path

Returns:

  • (String)


65
66
67
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 65

def path
  @path
end

#subapiString

Output only. The sub-API that the method belongs to. Corresponds to the JSON property subapi

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 70

def subapi
  @subapi
end

#versionString

Output only. The API version that the method belongs to. Corresponds to the JSON property version

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 75

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
86
87
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 82

def update!(**args)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @path = args[:path] if args.key?(:path)
  @subapi = args[:subapi] if args.key?(:subapi)
  @version = args[:version] if args.key?(:version)
end