Class: Google::Apis::ApimV1alpha::HttpOperationPathParam

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

Overview

HTTP Path parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeString

Data type of path param Corresponds to the JSON property dataType

Returns:

  • (String)


444
445
446
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 444

def data_type
  @data_type
end

#positionFixnum

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

Returns:

  • (Fixnum)


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