Class: Google::Apis::ApihubV1::GoogleCloudApihubV1PathParam

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

HTTP Path parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeString

Optional. Data type of path param Corresponds to the JSON property dataType

Returns:

  • (String)


3769
3770
3771
# File 'lib/google/apis/apihub_v1/classes.rb', line 3769

def data_type
  @data_type
end

#positionFixnum

Optional. Segment location in the path, 1-indexed Corresponds to the JSON property position

Returns:

  • (Fixnum)


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