Class: Google::Apis::ApimV1alpha::HttpOperation
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::HttpOperation
- 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
-
#method_prop ⇒ String
HTTP Method.
-
#path ⇒ String
Path of the HTTP request.
-
#path_params ⇒ Array<Google::Apis::ApimV1alpha::HttpOperationPathParam>
Path params of HttpOperation Corresponds to the JSON property
pathParams
. -
#query_params ⇒ Hash<String,Google::Apis::ApimV1alpha::HttpOperationQueryParam>
Query params of HttpOperation Corresponds to the JSON property
queryParams
. -
#request ⇒ Google::Apis::ApimV1alpha::HttpOperationHttpRequest
An aggregation of HTTP requests.
-
#response ⇒ Google::Apis::ApimV1alpha::HttpOperationHttpResponse
An aggregation of HTTP responses.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpOperation
constructor
A new instance of HttpOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_prop ⇒ String
HTTP Method.
Corresponds to the JSON property method
320 321 322 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 320 def method_prop @method_prop end |
#path ⇒ String
Path of the HTTP request.
Corresponds to the JSON property path
325 326 327 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 325 def path @path end |
#path_params ⇒ Array<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_params ⇒ Hash<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 |
#request ⇒ Google::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 |
#response ⇒ Google::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 |