Class: Google::Apis::ApimV1alpha::HttpOperationPathParam
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::HttpOperationPathParam
- 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
HTTP Path parameter.
Instance Attribute Summary collapse
-
#data_type ⇒ String
Data type of path param Corresponds to the JSON property
dataType
. -
#position ⇒ Fixnum
Segment location in the path, 1-indexed Corresponds to the JSON property
position
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpOperationPathParam
constructor
A new instance of HttpOperationPathParam.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpOperationPathParam
Returns a new instance of HttpOperationPathParam.
451 452 453 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_type ⇒ String
Data type of path param
Corresponds to the JSON property dataType
444 445 446 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 444 def data_type @data_type end |
#position ⇒ Fixnum
Segment location in the path, 1-indexed
Corresponds to the JSON property position
449 450 451 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 449 def position @position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
456 457 458 459 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 456 def update!(**args) @data_type = args[:data_type] if args.key?(:data_type) @position = args[:position] if args.key?(:position) end |