(organization)
- create_repo_organization - Create an organization
- get_accounting_organization - Retrieve an organization
- get_repo_organization - Retrieve an organization
- list_accounting_organizations - List all organizations
- list_repo_organizations - List all organizations
- patch_repo_organization - Update an organization
- remove_repo_organization - Remove an organization
- update_repo_organization - Update an organization
Create an organization
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
res = s.organization.create_repo_organization(repo_organization=::UnifiedRubySDK::Shared::RepoOrganization.new(), connection_id="<id>", fields_=[
"<value>",
])
if ! res.repo_organization.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
repo_organization |
::UnifiedRubySDK::Shared::RepoOrganization | ✔️ | N/A |
connection_id |
::String | ✔️ | ID of the connection |
fields_ |
T::Array<::String> | ➖ | Comma-delimited fields to return |
T.nilable(::UnifiedRubySDK::Operations::CreateRepoOrganizationResponse)
Retrieve an organization
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
res = s.organization.get_accounting_organization(connection_id="<id>", id="<id>", fields_=[
"<value>",
])
if ! res.accounting_organization.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
connection_id |
::String | ✔️ | ID of the connection |
id |
::String | ✔️ | ID of the Organization |
fields_ |
T::Array<::String> | ➖ | Comma-delimited fields to return |
T.nilable(::UnifiedRubySDK::Operations::GetAccountingOrganizationResponse)
Retrieve an organization
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
res = s.organization.get_repo_organization(connection_id="<id>", id="<id>", fields_=[
"<value>",
])
if ! res.repo_organization.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
connection_id |
::String | ✔️ | ID of the connection |
id |
::String | ✔️ | ID of the Organization |
fields_ |
T::Array<::String> | ➖ | Comma-delimited fields to return |
T.nilable(::UnifiedRubySDK::Operations::GetRepoOrganizationResponse)
List all organizations
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
req = ::UnifiedRubySDK::Operations::ListAccountingOrganizationsRequest.new(
connection_id: "<id>",
)
res = s.organization.list_accounting_organizations(req)
if ! res.accounting_organizations.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::UnifiedRubySDK::Operations::ListAccountingOrganizationsRequest | ✔️ | The request object to use for the request. |
T.nilable(::UnifiedRubySDK::Operations::ListAccountingOrganizationsResponse)
List all organizations
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
req = ::UnifiedRubySDK::Operations::ListRepoOrganizationsRequest.new(
connection_id: "<id>",
)
res = s.organization.list_repo_organizations(req)
if ! res.repo_organizations.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::UnifiedRubySDK::Operations::ListRepoOrganizationsRequest | ✔️ | The request object to use for the request. |
T.nilable(::UnifiedRubySDK::Operations::ListRepoOrganizationsResponse)
Update an organization
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
res = s.organization.patch_repo_organization(repo_organization=::UnifiedRubySDK::Shared::RepoOrganization.new(), connection_id="<id>", id="<id>", fields_=[
"<value>",
])
if ! res.repo_organization.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
repo_organization |
::UnifiedRubySDK::Shared::RepoOrganization | ✔️ | N/A |
connection_id |
::String | ✔️ | ID of the connection |
id |
::String | ✔️ | ID of the Organization |
fields_ |
T::Array<::String> | ➖ | Comma-delimited fields to return |
T.nilable(::UnifiedRubySDK::Operations::PatchRepoOrganizationResponse)
Remove an organization
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
res = s.organization.remove_repo_organization(connection_id="<id>", id="<id>")
if res.status_code == 200
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
connection_id |
::String | ✔️ | ID of the connection |
id |
::String | ✔️ | ID of the Organization |
T.nilable(::UnifiedRubySDK::Operations::RemoveRepoOrganizationResponse)
Update an organization
require 'unified_ruby_sdk'
s = ::UnifiedRubySDK::UnifiedTo.new(
security: ::UnifiedRubySDK::Shared::Security.new(
jwt: "<YOUR_API_KEY_HERE>",
),
)
res = s.organization.update_repo_organization(repo_organization=::UnifiedRubySDK::Shared::RepoOrganization.new(), connection_id="<id>", id="<id>", fields_=[
"<value>",
])
if ! res.repo_organization.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
repo_organization |
::UnifiedRubySDK::Shared::RepoOrganization | ✔️ | N/A |
connection_id |
::String | ✔️ | ID of the connection |
id |
::String | ✔️ | ID of the Organization |
fields_ |
T::Array<::String> | ➖ | Comma-delimited fields to return |
T.nilable(::UnifiedRubySDK::Operations::UpdateRepoOrganizationResponse)