Class: Google::Apis::ApimV1alpha::HttpOperation

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

Overview

An HTTP-based API Operation, sometimes called a "REST" Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpOperation

Returns a new instance of HttpOperation.



347
348
349
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 347

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

Instance Attribute Details

#method_propString

HTTP Method. Corresponds to the JSON property method

Returns:

  • (String)


320
321
322
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 320

def method_prop
  @method_prop
end

#pathString

Path of the HTTP request. Corresponds to the JSON property path

Returns:

  • (String)


325
326
327
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 325

def path
  @path
end

#path_paramsArray<Google::Apis::ApimV1alpha::HttpOperationPathParam>

Path params of HttpOperation Corresponds to the JSON property pathParams



330
331
332
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 330

def path_params
  @path_params
end

#query_paramsHash<String,Google::Apis::ApimV1alpha::HttpOperationQueryParam>

Query params of HttpOperation Corresponds to the JSON property queryParams



335
336
337
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 335

def query_params
  @query_params
end

#requestGoogle::Apis::ApimV1alpha::HttpOperationHttpRequest

An aggregation of HTTP requests. Corresponds to the JSON property request



340
341
342
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 340

def request
  @request
end

#responseGoogle::Apis::ApimV1alpha::HttpOperationHttpResponse

An aggregation of HTTP responses. Corresponds to the JSON property response



345
346
347
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 345

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



352
353
354
355
356
357
358
359
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 352

def update!(**args)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @path = args[:path] if args.key?(:path)
  @path_params = args[:path_params] if args.key?(:path_params)
  @query_params = args[:query_params] if args.key?(:query_params)
  @request = args[:request] if args.key?(:request)
  @response = args[:response] if args.key?(:response)
end