Class: Google::Apis::ApihubV1::GoogleCloudApihubV1HttpOperationDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/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) ⇒ GoogleCloudApihubV1HttpOperationDetails

Returns a new instance of GoogleCloudApihubV1HttpOperationDetails.



2659
2660
2661
# File 'lib/google/apis/apihub_v1/classes.rb', line 2659

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

Instance Attribute Details

#http_operationGoogle::Apis::ApihubV1::GoogleCloudApihubV1HttpOperation

The HTTP Operation. Corresponds to the JSON property httpOperation



2637
2638
2639
# File 'lib/google/apis/apihub_v1/classes.rb', line 2637

def http_operation
  @http_operation
end

#path_paramsArray<Google::Apis::ApihubV1::GoogleCloudApihubV1PathParam>

Optional. Path params of HttpOperation Corresponds to the JSON property pathParams



2642
2643
2644
# File 'lib/google/apis/apihub_v1/classes.rb', line 2642

def path_params
  @path_params
end

#query_paramsHash<String,Google::Apis::ApihubV1::GoogleCloudApihubV1QueryParam>

Optional. Query params of HttpOperation Corresponds to the JSON property queryParams



2647
2648
2649
# File 'lib/google/apis/apihub_v1/classes.rb', line 2647

def query_params
  @query_params
end

#requestGoogle::Apis::ApihubV1::GoogleCloudApihubV1HttpRequest

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



2652
2653
2654
# File 'lib/google/apis/apihub_v1/classes.rb', line 2652

def request
  @request
end

#responseGoogle::Apis::ApihubV1::GoogleCloudApihubV1HttpResponse

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



2657
2658
2659
# File 'lib/google/apis/apihub_v1/classes.rb', line 2657

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2664
2665
2666
2667
2668
2669
2670
# File 'lib/google/apis/apihub_v1/classes.rb', line 2664

def update!(**args)
  @http_operation = args[:http_operation] if args.key?(:http_operation)
  @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