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 more...
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.
282 283 284 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 282 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_prop ⇒ String
HTTP Method.
Corresponds to the JSON property method
255 256 257 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 255 def method_prop @method_prop end |
#path ⇒ String
Path of the HTTP request.
Corresponds to the JSON property path
260 261 262 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 260 def path @path end |
#path_params ⇒ Array<Google::Apis::ApimV1alpha::HttpOperationPathParam>
Path params of HttpOperation
Corresponds to the JSON property pathParams
265 266 267 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 265 def path_params @path_params end |
#query_params ⇒ Hash<String,Google::Apis::ApimV1alpha::HttpOperationQueryParam>
Query params of HttpOperation
Corresponds to the JSON property queryParams
270 271 272 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 270 def query_params @query_params end |
#request ⇒ Google::Apis::ApimV1alpha::HttpOperationHttpRequest
An aggregation of HTTP requests.
Corresponds to the JSON property request
275 276 277 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 275 def request @request end |
#response ⇒ Google::Apis::ApimV1alpha::HttpOperationHttpResponse
An aggregation of HTTP responses.
Corresponds to the JSON property response
280 281 282 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 280 def response @response end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
287 288 289 290 291 292 293 294 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 287 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 |