@@ -15,7 +15,7 @@ Method | HTTP request | Description
15
15
16
16
<a name =" adminCreateOrg " ></a >
17
17
# ** adminCreateOrg**
18
- > Organization adminCreateOrg(username)
18
+ > Organization adminCreateOrg(username, organization )
19
19
20
20
Create an organization
21
21
@@ -67,8 +67,9 @@ Token.setApiKey("YOUR API KEY");
67
67
68
68
AdminApi apiInstance = new AdminApi ();
69
69
String username = " username_example" ; // String | username of the user that will own the created organization
70
+ CreateOrgOption organization = new CreateOrgOption (); // CreateOrgOption |
70
71
try {
71
- Organization result = apiInstance. adminCreateOrg(username);
72
+ Organization result = apiInstance. adminCreateOrg(username, organization );
72
73
System . out. println(result);
73
74
} catch (ApiException e) {
74
75
System . err. println(" Exception when calling AdminApi#adminCreateOrg" );
81
82
Name | Type | Description | Notes
82
83
------------- | ------------- | ------------- | -------------
83
84
** username** | ** String** | username of the user that will own the created organization |
85
+ ** organization** | [ ** CreateOrgOption** ] ( CreateOrgOption.md ) | |
84
86
85
87
### Return type
86
88
@@ -97,7 +99,7 @@ Name | Type | Description | Notes
97
99
98
100
<a name =" adminCreatePublicKey " ></a >
99
101
# ** adminCreatePublicKey**
100
- > PublicKey adminCreatePublicKey(username)
102
+ > PublicKey adminCreatePublicKey(username, key )
101
103
102
104
Add a public key on behalf of a user
103
105
@@ -149,8 +151,9 @@ Token.setApiKey("YOUR API KEY");
149
151
150
152
AdminApi apiInstance = new AdminApi ();
151
153
String username = " username_example" ; // String | username of the user
154
+ CreateKeyOption key = new CreateKeyOption (); // CreateKeyOption |
152
155
try {
153
- PublicKey result = apiInstance. adminCreatePublicKey(username);
156
+ PublicKey result = apiInstance. adminCreatePublicKey(username, key );
154
157
System . out. println(result);
155
158
} catch (ApiException e) {
156
159
System . err. println(" Exception when calling AdminApi#adminCreatePublicKey" );
@@ -163,6 +166,7 @@ try {
163
166
Name | Type | Description | Notes
164
167
------------- | ------------- | ------------- | -------------
165
168
** username** | ** String** | username of the user |
169
+ ** key** | [ ** CreateKeyOption** ] ( CreateKeyOption.md ) | | [ optional]
166
170
167
171
### Return type
168
172
@@ -179,7 +183,7 @@ Name | Type | Description | Notes
179
183
180
184
<a name =" adminCreateRepo " ></a >
181
185
# ** adminCreateRepo**
182
- > Repository adminCreateRepo(username)
186
+ > Repository adminCreateRepo(username, repository )
183
187
184
188
Create a repository on behalf a user
185
189
@@ -231,8 +235,9 @@ Token.setApiKey("YOUR API KEY");
231
235
232
236
AdminApi apiInstance = new AdminApi ();
233
237
String username = " username_example" ; // String | username of the user. This user will own the created repository
238
+ CreateRepoOption repository = new CreateRepoOption (); // CreateRepoOption |
234
239
try {
235
- Repository result = apiInstance. adminCreateRepo(username);
240
+ Repository result = apiInstance. adminCreateRepo(username, repository );
236
241
System . out. println(result);
237
242
} catch (ApiException e) {
238
243
System . err. println(" Exception when calling AdminApi#adminCreateRepo" );
@@ -245,6 +250,7 @@ try {
245
250
Name | Type | Description | Notes
246
251
------------- | ------------- | ------------- | -------------
247
252
** username** | ** String** | username of the user. This user will own the created repository |
253
+ ** repository** | [ ** CreateRepoOption** ] ( CreateRepoOption.md ) | |
248
254
249
255
### Return type
250
256
@@ -476,7 +482,7 @@ Token.setApiKey("YOUR API KEY");
476
482
477
483
AdminApi apiInstance = new AdminApi ();
478
484
String username = " username_example" ; // String | username of user
479
- Integer id = 56 ; // Integer | id of the key to delete
485
+ Long id = 789L ; // Long | id of the key to delete
480
486
try {
481
487
apiInstance. adminDeleteUserPublicKey(username, id);
482
488
} catch (ApiException e) {
@@ -490,7 +496,7 @@ try {
490
496
Name | Type | Description | Notes
491
497
------------- | ------------- | ------------- | -------------
492
498
** username** | ** String** | username of user |
493
- ** id** | ** Integer ** | id of the key to delete |
499
+ ** id** | ** Long ** | id of the key to delete |
494
500
495
501
### Return type
496
502
0 commit comments