Class: Google::Apis::AgentregistryV1alpha::AgentSpec
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::AgentSpec
- 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 agent.
Instance Attribute Summary collapse
-
#content ⇒ Hash<String,Object>
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentSpec
constructor
A new instance of AgentSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentSpec
Returns a new instance of AgentSpec.
145 146 147 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Hash<String,Object>
Optional. The content of the Agent spec in the JSON format. This payload is
validated against the schema for the specified type. The content size is
limited to 10KB.
Corresponds to the JSON property content
138 139 140 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 138 def content @content end |
#type ⇒ String
Required. The type of the agent spec content.
Corresponds to the JSON property type
143 144 145 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 143 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
150 151 152 153 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 150 def update!(**args) @content = args[:content] if args.key?(:content) @type = args[:type] if args.key?(:type) end |