rokka_client_codegen 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/LICENSE +21 -0
  4. data/README.md +123 -0
  5. data/Rakefile +8 -0
  6. data/config.json +5 -0
  7. data/docs/AdminApi.md +398 -0
  8. data/docs/ListSourceImagesResponse.md +11 -0
  9. data/docs/ListStacksResponse.md +8 -0
  10. data/docs/Membership.md +11 -0
  11. data/docs/Organization.md +14 -0
  12. data/docs/OrganizationDefinition.md +10 -0
  13. data/docs/OrganizationOptions.md +10 -0
  14. data/docs/Role.md +8 -0
  15. data/docs/SourceImage.md +24 -0
  16. data/docs/SourceimagesApi.md +1032 -0
  17. data/docs/Stack.md +14 -0
  18. data/docs/StackDefinition.md +10 -0
  19. data/docs/StackExpression.md +9 -0
  20. data/docs/StackExpressionOverrides.md +8 -0
  21. data/docs/StackOperation.md +9 -0
  22. data/docs/StackOperationDescription.md +11 -0
  23. data/docs/StackOptions.md +8 -0
  24. data/docs/StacksApi.md +329 -0
  25. data/docs/User.md +11 -0
  26. data/docs/UserDefinition.md +9 -0
  27. data/examples/createstack.rb +33 -0
  28. data/examples/liststacks.rb +19 -0
  29. data/examples/setsubjectarea.rb +37 -0
  30. data/examples/uploadimage.rb +28 -0
  31. data/generate.sh +3 -0
  32. data/git_push.sh +55 -0
  33. data/lib/rokka_client_codegen.rb +59 -0
  34. data/lib/rokka_client_codegen/api/admin_api.rb +439 -0
  35. data/lib/rokka_client_codegen/api/sourceimages_api.rb +1225 -0
  36. data/lib/rokka_client_codegen/api/stacks_api.rb +371 -0
  37. data/lib/rokka_client_codegen/api_client.rb +389 -0
  38. data/lib/rokka_client_codegen/api_error.rb +38 -0
  39. data/lib/rokka_client_codegen/configuration.rb +209 -0
  40. data/lib/rokka_client_codegen/models/list_source_images_response.rb +217 -0
  41. data/lib/rokka_client_codegen/models/list_stacks_response.rb +190 -0
  42. data/lib/rokka_client_codegen/models/membership.rb +215 -0
  43. data/lib/rokka_client_codegen/models/organization.rb +264 -0
  44. data/lib/rokka_client_codegen/models/organization_definition.rb +211 -0
  45. data/lib/rokka_client_codegen/models/organization_options.rb +208 -0
  46. data/lib/rokka_client_codegen/models/role.rb +194 -0
  47. data/lib/rokka_client_codegen/models/source_image.rb +333 -0
  48. data/lib/rokka_client_codegen/models/stack.rb +246 -0
  49. data/lib/rokka_client_codegen/models/stack_definition.rb +217 -0
  50. data/lib/rokka_client_codegen/models/stack_expression.rb +207 -0
  51. data/lib/rokka_client_codegen/models/stack_expression_overrides.rb +188 -0
  52. data/lib/rokka_client_codegen/models/stack_operation.rb +203 -0
  53. data/lib/rokka_client_codegen/models/stack_operation_description.rb +231 -0
  54. data/lib/rokka_client_codegen/models/stack_options.rb +193 -0
  55. data/lib/rokka_client_codegen/models/user.rb +216 -0
  56. data/lib/rokka_client_codegen/models/user_definition.rb +204 -0
  57. data/lib/rokka_client_codegen/version.rb +15 -0
  58. data/patches/README.patch +59 -0
  59. data/patches/sourceimage_hash_long_hash.patch +62 -0
  60. data/rokka_client_codegen.gemspec +45 -0
  61. data/spec/api/admin_api_spec.rb +125 -0
  62. data/spec/api/sourceimages_api_spec.rb +274 -0
  63. data/spec/api/stacks_api_spec.rb +110 -0
  64. data/spec/api_client_spec.rb +226 -0
  65. data/spec/configuration_spec.rb +42 -0
  66. data/spec/models/list_source_images_response_spec.rb +60 -0
  67. data/spec/models/list_stacks_response_spec.rb +42 -0
  68. data/spec/models/membership_spec.rb +60 -0
  69. data/spec/models/organization_definition_spec.rb +54 -0
  70. data/spec/models/organization_options_spec.rb +54 -0
  71. data/spec/models/organization_spec.rb +78 -0
  72. data/spec/models/role_spec.rb +42 -0
  73. data/spec/models/source_image_spec.rb +138 -0
  74. data/spec/models/stack_definition_spec.rb +54 -0
  75. data/spec/models/stack_expression_overrides_spec.rb +42 -0
  76. data/spec/models/stack_expression_spec.rb +48 -0
  77. data/spec/models/stack_operation_description_spec.rb +60 -0
  78. data/spec/models/stack_operation_spec.rb +48 -0
  79. data/spec/models/stack_options_spec.rb +42 -0
  80. data/spec/models/stack_spec.rb +78 -0
  81. data/spec/models/user_definition_spec.rb +48 -0
  82. data/spec/models/user_spec.rb +60 -0
  83. data/spec/spec_helper.rb +111 -0
  84. metadata +330 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 35e4a03f2718d2e7f9bca0bdafed6672241498cde8ba4a51c821ea362cec2f0c
4
+ data.tar.gz: ebf3bd621b89a73c648778d18837a3462ff12c75042df4fc6671fe0aefc078b2
5
+ SHA512:
6
+ metadata.gz: 9b7760638d0fd1e9fbb189213cb2b0c60c62691628a96e52d35cf7a95d5813b6f6eae9ad6181591fbe599b7d4e5850cada9ef980670f91e8cfab4229e9915a0e
7
+ data.tar.gz: 4fefdcea096ba4877d4110627f05fb1d2dda7143cb1b5a6b407f874ecf989a72f26f073db83d46bc1ca14e4cbf7b4337e57f6db4587c875d01220038977c139b
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ end
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Christian Stocker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,123 @@
1
+ # rokka_client_codegen
2
+
3
+ This Ruby gem for rokka.io was automatically generated by [Swagger Codegen](https://github.com/swagger-api/swagger-codegen).
4
+
5
+ See the [examples](examples/) directory for some simple rokka specific examples.
6
+
7
+ A thin wrapper package for using this to make some things easier would be welcome. We're [happy to help](https://rokka.io/en/contact/).
8
+
9
+ The gem is currently nowhere published, you have to build it yourself (see below). But if needed, we will publish it.
10
+
11
+ - API version: 1.0.0
12
+ - Package version: 0.0.1
13
+ - Build package: io.swagger.codegen.languages.RubyClientCodegen
14
+
15
+ ## Installation
16
+
17
+ ### Build a gem
18
+
19
+ To build the Ruby code into a gem:
20
+
21
+ ```shell
22
+ gem build rokka_client_codegen.gemspec
23
+ ```
24
+
25
+ Then either install the gem locally:
26
+
27
+ ```shell
28
+ gem install ./rokka_client_codegen-0.0.1.gem
29
+ ```
30
+ (for development, run `gem install --dev ./rokka_client_codegen-0.0.1.gem` to install the development dependencies)
31
+
32
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
+
34
+ Finally add this to the Gemfile:
35
+
36
+ gem 'rokka_client_codegen', '~> 0.0.1'
37
+
38
+ ### Install from Git
39
+
40
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
41
+
42
+ gem 'rokka_client_codegen', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
43
+
44
+ ### Include the Ruby code directly
45
+
46
+ Include the Ruby code directly using `-I` as follows:
47
+
48
+ ```shell
49
+ ruby -Ilib script.rb
50
+ ```
51
+
52
+ ## Getting Started
53
+
54
+ Please follow the [installation procedure](#installation--usage) and then see the [examples](examples/) directory.
55
+
56
+ ## Documentation for API Endpoints
57
+
58
+ All URIs are relative to *https://api.rokka.io*
59
+
60
+ Class | Method | HTTP request | Description
61
+ ------------ | ------------- | ------------- | -------------
62
+ *RokkaClientCodegen::AdminApi* | [**create_membership**](docs/AdminApi.md#create_membership) | **PUT** /organizations/{organization}/memberships/{email} | Add a rokka user into an organization.
63
+ *RokkaClientCodegen::AdminApi* | [**create_organization**](docs/AdminApi.md#create_organization) | **PUT** /organizations/{organization} | Register a new Organization.
64
+ *RokkaClientCodegen::AdminApi* | [**create_organization_options**](docs/AdminApi.md#create_organization_options) | **PUT** /organizations/{organization}/options | Update options for an organization.
65
+ *RokkaClientCodegen::AdminApi* | [**create_user**](docs/AdminApi.md#create_user) | **POST** /users | Register new user.
66
+ *RokkaClientCodegen::AdminApi* | [**delete_membership**](docs/AdminApi.md#delete_membership) | **DELETE** /organizations/{organization}/memberships/{email} | Remove a user from an organization.
67
+ *RokkaClientCodegen::AdminApi* | [**get_membership**](docs/AdminApi.md#get_membership) | **GET** /organizations/{organization}/memberships/{email} | Get information about organization membership of a rokka user.
68
+ *RokkaClientCodegen::AdminApi* | [**get_organization**](docs/AdminApi.md#get_organization) | **GET** /organizations/{organization} | Get information about an organization.
69
+ *RokkaClientCodegen::SourceimagesApi* | [**copy_source_image**](docs/SourceimagesApi.md#copy_source_image) | **POST** /sourceimages/{organization}/{hash}/copy | Copy a single source image to another org.
70
+ *RokkaClientCodegen::SourceimagesApi* | [**create_source_image**](docs/SourceimagesApi.md#create_source_image) | **POST** /sourceimages/{organization} | Upload new source images.
71
+ *RokkaClientCodegen::SourceimagesApi* | [**create_source_image_meta_dynamic_with_name**](docs/SourceimagesApi.md#create_source_image_meta_dynamic_with_name) | **PUT** /sourceimages/{organization}/{hash}/meta/dynamic/{metaName} | Adds or updates a specific dynamic meta data for an image.
72
+ *RokkaClientCodegen::SourceimagesApi* | [**create_source_image_meta_user**](docs/SourceimagesApi.md#create_source_image_meta_user) | **PUT** /sourceimages/{organization}/{hash}/meta/user | Replace the image meta data with new information.
73
+ *RokkaClientCodegen::SourceimagesApi* | [**create_source_image_meta_user_wth_name**](docs/SourceimagesApi.md#create_source_image_meta_user_wth_name) | **PUT** /sourceimages/{organization}/{hash}/meta/user/{metaName} | Adds or updates one user meta data field for an image.
74
+ *RokkaClientCodegen::SourceimagesApi* | [**delete_source_image**](docs/SourceimagesApi.md#delete_source_image) | **DELETE** /sourceimages/{organization}/{hash} | Delete a single source image.
75
+ *RokkaClientCodegen::SourceimagesApi* | [**delete_source_image_meta_dynamic_with_name**](docs/SourceimagesApi.md#delete_source_image_meta_dynamic_with_name) | **DELETE** /sourceimages/{organization}/{hash}/meta/dynamic/{metaName} | Deletes a specific dynamic meta data.
76
+ *RokkaClientCodegen::SourceimagesApi* | [**delete_source_image_meta_user**](docs/SourceimagesApi.md#delete_source_image_meta_user) | **DELETE** /sourceimages/{organization}/{hash}/meta/user | Deletes all user meta data.
77
+ *RokkaClientCodegen::SourceimagesApi* | [**delete_source_image_meta_user_with_name**](docs/SourceimagesApi.md#delete_source_image_meta_user_with_name) | **DELETE** /sourceimages/{organization}/{hash}/meta/user/{metaName} | Deletes user meta data for a specified field.
78
+ *RokkaClientCodegen::SourceimagesApi* | [**download_source_image**](docs/SourceimagesApi.md#download_source_image) | **GET** /sourceimages/{organization}/{hash}/download | Download original source image binary.
79
+ *RokkaClientCodegen::SourceimagesApi* | [**get_source_image**](docs/SourceimagesApi.md#get_source_image) | **GET** /sourceimages/{organization}/{hash} | Get information about a source image.
80
+ *RokkaClientCodegen::SourceimagesApi* | [**get_source_image_meta_user**](docs/SourceimagesApi.md#get_source_image_meta_user) | **GET** /sourceimages/{organization}/{hash}/meta/user | Get all user meta data.
81
+ *RokkaClientCodegen::SourceimagesApi* | [**get_source_image_meta_user_with_name**](docs/SourceimagesApi.md#get_source_image_meta_user_with_name) | **GET** /sourceimages/{organization}/{hash}/meta/user/{metaName} | Get user meta for a specific field.
82
+ *RokkaClientCodegen::SourceimagesApi* | [**list_source_images**](docs/SourceimagesApi.md#list_source_images) | **GET** /sourceimages/{organization} | Get all images of an organization, with paging.
83
+ *RokkaClientCodegen::SourceimagesApi* | [**list_source_images_by_binary_hash**](docs/SourceimagesApi.md#list_source_images_by_binary_hash) | **GET** /sourceimages/{organization}/binaryhash/{binaryHash} | Get all images in this organization that match a binaryhash.
84
+ *RokkaClientCodegen::SourceimagesApi* | [**patch_source_image_meta_user**](docs/SourceimagesApi.md#patch_source_image_meta_user) | **PATCH** /sourceimages/{organization}/{hash}/meta/user | Update the specified meta data fields for an image.
85
+ *RokkaClientCodegen::SourceimagesApi* | [**restore_source_image**](docs/SourceimagesApi.md#restore_source_image) | **POST** /sourceimages/{organization}/{hash}/restore | Restore source image including previously set metadata.
86
+ *RokkaClientCodegen::StacksApi* | [**create_stack**](docs/StacksApi.md#create_stack) | **PUT** /stacks/{organization}/{name} | Create a new stack.
87
+ *RokkaClientCodegen::StacksApi* | [**delete_stack**](docs/StacksApi.md#delete_stack) | **DELETE** /stacks/{organization}/{name} | Delete a stack.
88
+ *RokkaClientCodegen::StacksApi* | [**get_stack**](docs/StacksApi.md#get_stack) | **GET** /stacks/{organization}/{name} | Get a single stack.
89
+ *RokkaClientCodegen::StacksApi* | [**list_operations**](docs/StacksApi.md#list_operations) | **GET** /operations | Listing all available operations that can be used in stacks.
90
+ *RokkaClientCodegen::StacksApi* | [**list_stack_options**](docs/StacksApi.md#list_stack_options) | **GET** /stackoptions | List all available options that can be set on stacks.
91
+ *RokkaClientCodegen::StacksApi* | [**list_stacks**](docs/StacksApi.md#list_stacks) | **GET** /stacks/{organization} | Get all stacks of an organization.
92
+
93
+
94
+ ## Documentation for Models
95
+
96
+ - [RokkaClientCodegen::ListSourceImagesResponse](docs/ListSourceImagesResponse.md)
97
+ - [RokkaClientCodegen::ListStacksResponse](docs/ListStacksResponse.md)
98
+ - [RokkaClientCodegen::Membership](docs/Membership.md)
99
+ - [RokkaClientCodegen::Organization](docs/Organization.md)
100
+ - [RokkaClientCodegen::OrganizationDefinition](docs/OrganizationDefinition.md)
101
+ - [RokkaClientCodegen::OrganizationOptions](docs/OrganizationOptions.md)
102
+ - [RokkaClientCodegen::Role](docs/Role.md)
103
+ - [RokkaClientCodegen::SourceImage](docs/SourceImage.md)
104
+ - [RokkaClientCodegen::Stack](docs/Stack.md)
105
+ - [RokkaClientCodegen::StackDefinition](docs/StackDefinition.md)
106
+ - [RokkaClientCodegen::StackExpression](docs/StackExpression.md)
107
+ - [RokkaClientCodegen::StackExpressionOverrides](docs/StackExpressionOverrides.md)
108
+ - [RokkaClientCodegen::StackOperation](docs/StackOperation.md)
109
+ - [RokkaClientCodegen::StackOperationDescription](docs/StackOperationDescription.md)
110
+ - [RokkaClientCodegen::StackOptions](docs/StackOptions.md)
111
+ - [RokkaClientCodegen::User](docs/User.md)
112
+ - [RokkaClientCodegen::UserDefinition](docs/UserDefinition.md)
113
+
114
+
115
+ ## Documentation for Authorization
116
+
117
+
118
+ ### ApiKeyAuth
119
+
120
+ - **Type**: API key
121
+ - **API key parameter name**: api-key
122
+ - **Location**: HTTP header
123
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
data/config.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "gemVersion": "0.0.1",
3
+ "moduleName": "RokkaClientCodegen",
4
+ "gemLicense": "MIT"
5
+ }
data/docs/AdminApi.md ADDED
@@ -0,0 +1,398 @@
1
+ # RokkaClientCodegen::AdminApi
2
+
3
+ All URIs are relative to *https://api.rokka.io*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_membership**](AdminApi.md#create_membership) | **PUT** /organizations/{organization}/memberships/{email} | Add a rokka user into an organization.
8
+ [**create_organization**](AdminApi.md#create_organization) | **PUT** /organizations/{organization} | Register a new Organization.
9
+ [**create_organization_options**](AdminApi.md#create_organization_options) | **PUT** /organizations/{organization}/options | Update options for an organization.
10
+ [**create_user**](AdminApi.md#create_user) | **POST** /users | Register new user.
11
+ [**delete_membership**](AdminApi.md#delete_membership) | **DELETE** /organizations/{organization}/memberships/{email} | Remove a user from an organization.
12
+ [**get_membership**](AdminApi.md#get_membership) | **GET** /organizations/{organization}/memberships/{email} | Get information about organization membership of a rokka user.
13
+ [**get_organization**](AdminApi.md#get_organization) | **GET** /organizations/{organization} | Get information about an organization.
14
+
15
+
16
+ # **create_membership**
17
+ > Membership create_membership(role, organization, email)
18
+
19
+ Add a rokka user into an organization.
20
+
21
+ ### Example
22
+ ```ruby
23
+ # load the gem
24
+ require 'rokka_client_codegen'
25
+ # setup authorization
26
+ RokkaClientCodegen.configure do |config|
27
+ # Configure API key authorization: ApiKeyAuth
28
+ config.api_key['api-key'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ #config.api_key_prefix['api-key'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = RokkaClientCodegen::AdminApi.new
34
+
35
+ role = RokkaClientCodegen::Role.new # Role | Role specification
36
+
37
+ organization = "organization_example" # String |
38
+
39
+ email = "email_example" # String |
40
+
41
+
42
+ begin
43
+ #Add a rokka user into an organization.
44
+ result = api_instance.create_membership(role, organization, email)
45
+ p result
46
+ rescue RokkaClientCodegen::ApiError => e
47
+ puts "Exception when calling AdminApi->create_membership: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **role** | [**Role**](Role.md)| Role specification |
56
+ **organization** | **String**| |
57
+ **email** | **String**| |
58
+
59
+ ### Return type
60
+
61
+ [**Membership**](Membership.md)
62
+
63
+ ### Authorization
64
+
65
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: Not defined
71
+
72
+
73
+
74
+ # **create_organization**
75
+ > Organization create_organization(organization, organization_definition)
76
+
77
+ Register a new Organization.
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'rokka_client_codegen'
83
+ # setup authorization
84
+ RokkaClientCodegen.configure do |config|
85
+ # Configure API key authorization: ApiKeyAuth
86
+ config.api_key['api-key'] = 'YOUR API KEY'
87
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
88
+ #config.api_key_prefix['api-key'] = 'Bearer'
89
+ end
90
+
91
+ api_instance = RokkaClientCodegen::AdminApi.new
92
+
93
+ organization = "organization_example" # String | Name of the organization to create (must be a web safe string)
94
+
95
+ organization_definition = RokkaClientCodegen::OrganizationDefinition.new # OrganizationDefinition | Organization information
96
+
97
+
98
+ begin
99
+ #Register a new Organization.
100
+ result = api_instance.create_organization(organization, organization_definition)
101
+ p result
102
+ rescue RokkaClientCodegen::ApiError => e
103
+ puts "Exception when calling AdminApi->create_organization: #{e}"
104
+ end
105
+ ```
106
+
107
+ ### Parameters
108
+
109
+ Name | Type | Description | Notes
110
+ ------------- | ------------- | ------------- | -------------
111
+ **organization** | **String**| Name of the organization to create (must be a web safe string) |
112
+ **organization_definition** | [**OrganizationDefinition**](OrganizationDefinition.md)| Organization information |
113
+
114
+ ### Return type
115
+
116
+ [**Organization**](Organization.md)
117
+
118
+ ### Authorization
119
+
120
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
121
+
122
+ ### HTTP request headers
123
+
124
+ - **Content-Type**: Not defined
125
+ - **Accept**: Not defined
126
+
127
+
128
+
129
+ # **create_organization_options**
130
+ > Organization create_organization_options(organization, organization_options)
131
+
132
+ Update options for an organization.
133
+
134
+ This is currently used for the remote_* options. See https://rokka.io/documentation/references/stacks.html#loading-images-from-a-remote-url for details.
135
+
136
+ ### Example
137
+ ```ruby
138
+ # load the gem
139
+ require 'rokka_client_codegen'
140
+ # setup authorization
141
+ RokkaClientCodegen.configure do |config|
142
+ # Configure API key authorization: ApiKeyAuth
143
+ config.api_key['api-key'] = 'YOUR API KEY'
144
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
145
+ #config.api_key_prefix['api-key'] = 'Bearer'
146
+ end
147
+
148
+ api_instance = RokkaClientCodegen::AdminApi.new
149
+
150
+ organization = "organization_example" # String | Organization name
151
+
152
+ organization_options = RokkaClientCodegen::OrganizationOptions.new # OrganizationOptions | Organization options
153
+
154
+
155
+ begin
156
+ #Update options for an organization.
157
+ result = api_instance.create_organization_options(organization, organization_options)
158
+ p result
159
+ rescue RokkaClientCodegen::ApiError => e
160
+ puts "Exception when calling AdminApi->create_organization_options: #{e}"
161
+ end
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+ Name | Type | Description | Notes
167
+ ------------- | ------------- | ------------- | -------------
168
+ **organization** | **String**| Organization name |
169
+ **organization_options** | [**OrganizationOptions**](OrganizationOptions.md)| Organization options |
170
+
171
+ ### Return type
172
+
173
+ [**Organization**](Organization.md)
174
+
175
+ ### Authorization
176
+
177
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
178
+
179
+ ### HTTP request headers
180
+
181
+ - **Content-Type**: Not defined
182
+ - **Accept**: Not defined
183
+
184
+
185
+
186
+ # **create_user**
187
+ > User create_user(user_definition)
188
+
189
+ Register new user.
190
+
191
+ ### Example
192
+ ```ruby
193
+ # load the gem
194
+ require 'rokka_client_codegen'
195
+ # setup authorization
196
+ RokkaClientCodegen.configure do |config|
197
+ # Configure API key authorization: ApiKeyAuth
198
+ config.api_key['api-key'] = 'YOUR API KEY'
199
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
200
+ #config.api_key_prefix['api-key'] = 'Bearer'
201
+ end
202
+
203
+ api_instance = RokkaClientCodegen::AdminApi.new
204
+
205
+ user_definition = RokkaClientCodegen::UserDefinition.new # UserDefinition | User information
206
+
207
+
208
+ begin
209
+ #Register new user.
210
+ result = api_instance.create_user(user_definition)
211
+ p result
212
+ rescue RokkaClientCodegen::ApiError => e
213
+ puts "Exception when calling AdminApi->create_user: #{e}"
214
+ end
215
+ ```
216
+
217
+ ### Parameters
218
+
219
+ Name | Type | Description | Notes
220
+ ------------- | ------------- | ------------- | -------------
221
+ **user_definition** | [**UserDefinition**](UserDefinition.md)| User information |
222
+
223
+ ### Return type
224
+
225
+ [**User**](User.md)
226
+
227
+ ### Authorization
228
+
229
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: Not defined
234
+ - **Accept**: Not defined
235
+
236
+
237
+
238
+ # **delete_membership**
239
+ > delete_membership(organization, email)
240
+
241
+ Remove a user from an organization.
242
+
243
+ ### Example
244
+ ```ruby
245
+ # load the gem
246
+ require 'rokka_client_codegen'
247
+ # setup authorization
248
+ RokkaClientCodegen.configure do |config|
249
+ # Configure API key authorization: ApiKeyAuth
250
+ config.api_key['api-key'] = 'YOUR API KEY'
251
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
252
+ #config.api_key_prefix['api-key'] = 'Bearer'
253
+ end
254
+
255
+ api_instance = RokkaClientCodegen::AdminApi.new
256
+
257
+ organization = "organization_example" # String |
258
+
259
+ email = "email_example" # String |
260
+
261
+
262
+ begin
263
+ #Remove a user from an organization.
264
+ api_instance.delete_membership(organization, email)
265
+ rescue RokkaClientCodegen::ApiError => e
266
+ puts "Exception when calling AdminApi->delete_membership: #{e}"
267
+ end
268
+ ```
269
+
270
+ ### Parameters
271
+
272
+ Name | Type | Description | Notes
273
+ ------------- | ------------- | ------------- | -------------
274
+ **organization** | **String**| |
275
+ **email** | **String**| |
276
+
277
+ ### Return type
278
+
279
+ nil (empty response body)
280
+
281
+ ### Authorization
282
+
283
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
284
+
285
+ ### HTTP request headers
286
+
287
+ - **Content-Type**: Not defined
288
+ - **Accept**: Not defined
289
+
290
+
291
+
292
+ # **get_membership**
293
+ > Membership get_membership(organization, email)
294
+
295
+ Get information about organization membership of a rokka user.
296
+
297
+ ### Example
298
+ ```ruby
299
+ # load the gem
300
+ require 'rokka_client_codegen'
301
+ # setup authorization
302
+ RokkaClientCodegen.configure do |config|
303
+ # Configure API key authorization: ApiKeyAuth
304
+ config.api_key['api-key'] = 'YOUR API KEY'
305
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
306
+ #config.api_key_prefix['api-key'] = 'Bearer'
307
+ end
308
+
309
+ api_instance = RokkaClientCodegen::AdminApi.new
310
+
311
+ organization = "organization_example" # String |
312
+
313
+ email = "email_example" # String |
314
+
315
+
316
+ begin
317
+ #Get information about organization membership of a rokka user.
318
+ result = api_instance.get_membership(organization, email)
319
+ p result
320
+ rescue RokkaClientCodegen::ApiError => e
321
+ puts "Exception when calling AdminApi->get_membership: #{e}"
322
+ end
323
+ ```
324
+
325
+ ### Parameters
326
+
327
+ Name | Type | Description | Notes
328
+ ------------- | ------------- | ------------- | -------------
329
+ **organization** | **String**| |
330
+ **email** | **String**| |
331
+
332
+ ### Return type
333
+
334
+ [**Membership**](Membership.md)
335
+
336
+ ### Authorization
337
+
338
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
339
+
340
+ ### HTTP request headers
341
+
342
+ - **Content-Type**: Not defined
343
+ - **Accept**: Not defined
344
+
345
+
346
+
347
+ # **get_organization**
348
+ > Organization get_organization(organization)
349
+
350
+ Get information about an organization.
351
+
352
+ ### Example
353
+ ```ruby
354
+ # load the gem
355
+ require 'rokka_client_codegen'
356
+ # setup authorization
357
+ RokkaClientCodegen.configure do |config|
358
+ # Configure API key authorization: ApiKeyAuth
359
+ config.api_key['api-key'] = 'YOUR API KEY'
360
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
361
+ #config.api_key_prefix['api-key'] = 'Bearer'
362
+ end
363
+
364
+ api_instance = RokkaClientCodegen::AdminApi.new
365
+
366
+ organization = "organization_example" # String | Organization name
367
+
368
+
369
+ begin
370
+ #Get information about an organization.
371
+ result = api_instance.get_organization(organization)
372
+ p result
373
+ rescue RokkaClientCodegen::ApiError => e
374
+ puts "Exception when calling AdminApi->get_organization: #{e}"
375
+ end
376
+ ```
377
+
378
+ ### Parameters
379
+
380
+ Name | Type | Description | Notes
381
+ ------------- | ------------- | ------------- | -------------
382
+ **organization** | **String**| Organization name |
383
+
384
+ ### Return type
385
+
386
+ [**Organization**](Organization.md)
387
+
388
+ ### Authorization
389
+
390
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
391
+
392
+ ### HTTP request headers
393
+
394
+ - **Content-Type**: Not defined
395
+ - **Accept**: Not defined
396
+
397
+
398
+