Class: Google::Apis::AgentregistryV1alpha::EndpointSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb

Overview

The spec of the endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EndpointSpec

Returns a new instance of EndpointSpec.



503
504
505
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 503

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

Instance Attribute Details

#contentHash<String,Object>

Optional. The content of the endpoint spec. Reserved for future use. Corresponds to the JSON property content

Returns:

  • (Hash<String,Object>)


496
497
498
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 496

def content
  @content
end

#typeString

Required. The type of the endpoint spec content. Corresponds to the JSON property type

Returns:

  • (String)


501
502
503
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 501

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



508
509
510
511
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 508

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @type = args[:type] if args.key?(:type)
end