Class: Google::Apis::ApihubV1::GoogleCloudApihubV1PathParam
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1PathParam
- 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
HTTP Path parameter.
Instance Attribute Summary collapse
-
#data_type ⇒ String
Optional.
-
#position ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1PathParam
constructor
A new instance of GoogleCloudApihubV1PathParam.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1PathParam
Returns a new instance of GoogleCloudApihubV1PathParam.
3776 3777 3778 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3776 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_type ⇒ String
Optional. Data type of path param
Corresponds to the JSON property dataType
3769 3770 3771 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3769 def data_type @data_type end |
#position ⇒ Fixnum
Optional. Segment location in the path, 1-indexed
Corresponds to the JSON property position
3774 3775 3776 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3774 def position @position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3781 3782 3783 3784 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3781 def update!(**args) @data_type = args[:data_type] if args.key?(:data_type) @position = args[:position] if args.key?(:position) end |