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
more...

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.

[View source]

282
283
284
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 282

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

Instance Attribute Details

#method_propString

HTTP Method. Corresponds to the JSON property method

Returns:

  • (String)

255
256
257
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 255

def method_prop
  @method_prop
end

#pathString

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

Returns:

  • (String)

260
261
262
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 260

def path
  @path
end

#path_paramsArray<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_paramsHash<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

#requestGoogle::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

#responseGoogle::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

[View source]

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