Class: Infrawrench::OrgsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::OrgsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.orgs
Instance Method Summary collapse
-
#create(body:, request_options: nil) ⇒ Hash
Create a new organization.
-
#initialize(transport) ⇒ OrgsNamespace
constructor
private
A new instance of OrgsNamespace.
Constructor Details
#initialize(transport) ⇒ OrgsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of OrgsNamespace.
2035 2036 2037 |
# File 'lib/infrawrench/client.rb', line 2035 def initialize(transport) @transport = transport end |
Instance Method Details
#create(body:, request_options: nil) ⇒ Hash
Create a new organization
The caller becomes the owner of the new organization.
POST /api/orgs
Raises on 400: Bad request
Raises on 401: Unauthenticated
2053 2054 2055 2056 2057 2058 2059 2060 |
# File 'lib/infrawrench/client.rb', line 2053 def create(body:, request_options: nil) @transport.request( http_method: "POST", path: "/api/orgs", body: body, request_options: ) end |