Skip to content

Commit

Permalink
Update OpenAPI Specification (#9)
Browse files Browse the repository at this point in the history
* Update OpenAPI Specification (composio.json)

* Regenerate SDKs

---------

Co-authored-by: konfig-bot[bot] <121480725+konfig-bot[bot]@users.noreply.github.com>
Co-authored-by: konfig-publisher <[email protected]>
  • Loading branch information
konfig-bot[bot] and konfig-publisher authored Sep 16, 2024
1 parent f3544b6 commit 93c2a0d
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .konfig/changesets/salty-bears-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
ruby: patch
---

Regenerate SDKs
4 changes: 2 additions & 2 deletions STATISTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

| SDK Name | Lines of Code |
| -------- | ------------- |
| ruby | 45965 |
| **Total** | 45965 |
| ruby | 45989 |
| **Total** | 45989 |
4 changes: 4 additions & 0 deletions composio.json
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,10 @@
"triggerConfig": {
"type": "object",
"description": "The trigger configuration"
},
"verifyHost": {
"type": "string",
"description": "The verify host"
}
},
"type": "object",
Expand Down
4 changes: 4 additions & 0 deletions openapi-fixed.json
Original file line number Diff line number Diff line change
Expand Up @@ -3547,6 +3547,10 @@
"triggerConfig": {
"description": "The trigger configuration",
"type": "object"
},
"verifyHost": {
"description": "The verify host",
"type": "string"
}
},
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion ruby/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0de9221e-c62a-485a-b9d8-8a778359d9f7
5bc35665-35b0-4fcd-abe5-92c0c742234f
4 changes: 4 additions & 0 deletions ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ result = composio.triggers.enable(
trigger_config: {},
connected_account_id: "'+j>6",
trigger_name: "'+j>6",
verify_host: "string_example",
)
p result
```
Expand All @@ -932,6 +933,9 @@ The trigger configuration

##### connected_account_id: `String`<a id="connected_account_id-string"></a>
##### trigger_name: `String`<a id="trigger_name-string"></a>
##### verifyHost: `String`<a id="verifyhost-string"></a>
The verify host

#### 🔄 Return<a id="🔄-return"></a>

[TriggerResponseDTO](./lib/composio/models/trigger_response_dto.rb)
Expand Down
8 changes: 6 additions & 2 deletions ruby/lib/composio/api/triggers_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,13 @@ def disable_trigger_instance_with_http_info(trigger_instance_id:, extra: {})
# @param trigger_config [Object] The trigger configuration
# @param connected_account_id [String]
# @param trigger_name [String]
# @param verify_host [String] The verify host
# @param body [EnableTriggerBodyDTO]
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
def enable(trigger_config:, connected_account_id:, trigger_name:, extra: {})
def enable(trigger_config:, connected_account_id:, trigger_name:, verify_host: SENTINEL, extra: {})
_body = {}
_body[:triggerConfig] = trigger_config if trigger_config != SENTINEL
_body[:verifyHost] = verify_host if verify_host != SENTINEL
extra[:enable_trigger_body_dto] = _body if !_body.empty?
api_response = enable_with_http_info_impl(connected_account_id, trigger_name, extra)
api_response.data
Expand All @@ -220,11 +222,13 @@ def enable(trigger_config:, connected_account_id:, trigger_name:, extra: {})
# @param trigger_config [Object] The trigger configuration
# @param connected_account_id [String]
# @param trigger_name [String]
# @param verify_host [String] The verify host
# @param body [EnableTriggerBodyDTO]
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
def enable_with_http_info(trigger_config:, connected_account_id:, trigger_name:, extra: {})
def enable_with_http_info(trigger_config:, connected_account_id:, trigger_name:, verify_host: SENTINEL, extra: {})
_body = {}
_body[:triggerConfig] = trigger_config if trigger_config != SENTINEL
_body[:verifyHost] = verify_host if verify_host != SENTINEL
extra[:enable_trigger_body_dto] = _body if !_body.empty?
enable_with_http_info_impl(connected_account_id, trigger_name, extra)
end
Expand Down
18 changes: 14 additions & 4 deletions ruby/lib/composio/models/enable_trigger_body_dto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ class EnableTriggerBodyDTO
# The trigger configuration
attr_accessor :trigger_config

# The verify host
attr_accessor :verify_host

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'trigger_config' => :'triggerConfig'
:'trigger_config' => :'triggerConfig',
:'verify_host' => :'verifyHost'
}
end

Expand All @@ -29,7 +33,8 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'trigger_config' => :'Object'
:'trigger_config' => :'Object',
:'verify_host' => :'String'
}
end

Expand Down Expand Up @@ -57,6 +62,10 @@ def initialize(attributes = {})
if attributes.key?(:'trigger_config')
self.trigger_config = attributes[:'trigger_config']
end

if attributes.key?(:'verify_host')
self.verify_host = attributes[:'verify_host']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -82,7 +91,8 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
trigger_config == o.trigger_config
trigger_config == o.trigger_config &&
verify_host == o.verify_host
end

# @see the `==` method
Expand All @@ -94,7 +104,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[trigger_config].hash
[trigger_config, verify_host].hash
end

# Builds the object from hash
Expand Down
6 changes: 6 additions & 0 deletions ruby/spec/models/enable_trigger_body_dto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@
end
end

describe 'test attribute "verify_host"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end

end

0 comments on commit 93c2a0d

Please sign in to comment.