Skip to content

Commit 4c0e500

Browse files
authored
Merge pull request #2 from RusticiSoftware/namespaceCorrection
Updates name spacing for Api and Model to remove duplicate namespace
2 parents d0e35a3 + 9028ea0 commit 4c0e500

File tree

120 files changed

+1224
-882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1224
-882
lines changed

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,19 @@ require_once(__DIR__ . '/vendor/autoload.php');
6060
// Configure HTTP basic authorization: APP_NORMAL
6161
$config = RusticiSoftware\Cloud\V2\Configuration::getDefaultConfiguration()
6262
->setUsername('YOUR_USERNAME')
63-
->setPassword('YOUR_PASSWORD');
64-
// Configure OAuth2 access token for authorization: OAUTH
65-
$config = RusticiSoftware\Cloud\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
66-
67-
$apiInstance = new RusticiSoftware\Cloud\V2\Api\ApplicationManagementApi(
68-
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
69-
// This is optional, `GuzzleHttp\Client` will be used as default.
70-
new GuzzleHttp\Client(),
71-
$config
72-
);
73-
$application_name = "application_name_example"; // string |
63+
->setPassword('YOUR_PASSWORD')
64+
->setAccessToken(null);
65+
// Alternatively configure OAuth2 access token for authorization: OAUTH
66+
// $config = RusticiSoftware\Cloud\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
67+
68+
$pingInstance = new RusticiSoftware\Cloud\V2\Api\PingApi(null, $config, null);
7469

7570
try {
76-
$result = $apiInstance->createApplication($application_name);
71+
$result = $pingInstance->pingAppId();
7772
print_r($result);
7873
} catch (Exception $e) {
79-
echo 'Exception when calling ApplicationManagementApi->createApplication: ', $e->getMessage(), PHP_EOL;
74+
echo $e->getMessage();
8075
}
81-
8276
?>
8377
```
8478

docs/Api/ApplicationManagementApi.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717

1818

1919
# **createApplication**
20-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\ApplicationSchema createApplication($application_name)
20+
> \RusticiSoftware\Cloud\V2\Model\ApplicationSchema createApplication($application_name)
2121
2222
Create a new application
2323

@@ -59,7 +59,7 @@ Name | Type | Description | Notes
5959

6060
### Return type
6161

62-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\ApplicationSchema**](../Model/ApplicationSchema.md)
62+
[**\RusticiSoftware\Cloud\V2\Model\ApplicationSchema**](../Model/ApplicationSchema.md)
6363

6464
### Authorization
6565

@@ -73,7 +73,7 @@ Name | Type | Description | Notes
7373
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
7474

7575
# **createCredential**
76-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialCreatedSchema createCredential($child_app_id, $credential_request)
76+
> \RusticiSoftware\Cloud\V2\Model\CredentialCreatedSchema createCredential($child_app_id, $credential_request)
7777
7878
Create credential
7979

@@ -97,7 +97,7 @@ $apiInstance = new RusticiSoftware\Cloud\V2\Api\ApplicationManagementApi(
9797
$config
9898
);
9999
$child_app_id = "child_app_id_example"; // string |
100-
$credential_request = new \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema(); // \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema |
100+
$credential_request = new \RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema(); // \RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema |
101101

102102
try {
103103
$result = $apiInstance->createCredential($child_app_id, $credential_request);
@@ -113,11 +113,11 @@ try {
113113
Name | Type | Description | Notes
114114
------------- | ------------- | ------------- | -------------
115115
**child_app_id** | **string**| |
116-
**credential_request** | [**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema**](../Model/CredentialRequestSchema.md)| |
116+
**credential_request** | [**\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema**](../Model/CredentialRequestSchema.md)| |
117117

118118
### Return type
119119

120-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialCreatedSchema**](../Model/CredentialCreatedSchema.md)
120+
[**\RusticiSoftware\Cloud\V2\Model\CredentialCreatedSchema**](../Model/CredentialCreatedSchema.md)
121121

122122
### Authorization
123123

@@ -131,7 +131,7 @@ Name | Type | Description | Notes
131131
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
132132

133133
# **createToken**
134-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\StringResultSchema createToken($token_request)
134+
> \RusticiSoftware\Cloud\V2\Model\StringResultSchema createToken($token_request)
135135
136136
Create token
137137

@@ -154,7 +154,7 @@ $apiInstance = new RusticiSoftware\Cloud\V2\Api\ApplicationManagementApi(
154154
new GuzzleHttp\Client(),
155155
$config
156156
);
157-
$token_request = new \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\TokenRequestSchema(); // \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\TokenRequestSchema |
157+
$token_request = new \RusticiSoftware\Cloud\V2\Model\TokenRequestSchema(); // \RusticiSoftware\Cloud\V2\Model\TokenRequestSchema |
158158

159159
try {
160160
$result = $apiInstance->createToken($token_request);
@@ -169,11 +169,11 @@ try {
169169

170170
Name | Type | Description | Notes
171171
------------- | ------------- | ------------- | -------------
172-
**token_request** | [**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\TokenRequestSchema**](../Model/TokenRequestSchema.md)| |
172+
**token_request** | [**\RusticiSoftware\Cloud\V2\Model\TokenRequestSchema**](../Model/TokenRequestSchema.md)| |
173173

174174
### Return type
175175

176-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\StringResultSchema**](../Model/StringResultSchema.md)
176+
[**\RusticiSoftware\Cloud\V2\Model\StringResultSchema**](../Model/StringResultSchema.md)
177177

178178
### Authorization
179179

@@ -299,7 +299,7 @@ void (empty response body)
299299
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
300300

301301
# **getApplicationConfiguration**
302-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\SettingListSchema getApplicationConfiguration($learning_standard, $single_sco, $include_metadata)
302+
> \RusticiSoftware\Cloud\V2\Model\SettingListSchema getApplicationConfiguration($learning_standard, $single_sco, $include_metadata)
303303
304304
Returns all configuration settings for this level
305305

@@ -345,7 +345,7 @@ Name | Type | Description | Notes
345345

346346
### Return type
347347

348-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\SettingListSchema**](../Model/SettingListSchema.md)
348+
[**\RusticiSoftware\Cloud\V2\Model\SettingListSchema**](../Model/SettingListSchema.md)
349349

350350
### Authorization
351351

@@ -359,7 +359,7 @@ Name | Type | Description | Notes
359359
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
360360

361361
# **getApplicationList**
362-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\ApplicationListSchema getApplicationList()
362+
> \RusticiSoftware\Cloud\V2\Model\ApplicationListSchema getApplicationList()
363363
364364
Get list of all applications in this realm.
365365

@@ -397,7 +397,7 @@ This endpoint does not need any parameter.
397397

398398
### Return type
399399

400-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\ApplicationListSchema**](../Model/ApplicationListSchema.md)
400+
[**\RusticiSoftware\Cloud\V2\Model\ApplicationListSchema**](../Model/ApplicationListSchema.md)
401401

402402
### Authorization
403403

@@ -411,7 +411,7 @@ This endpoint does not need any parameter.
411411
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
412412

413413
# **getCredentials**
414-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialListSchema getCredentials($child_app_id)
414+
> \RusticiSoftware\Cloud\V2\Model\CredentialListSchema getCredentials($child_app_id)
415415
416416
List of credentials
417417

@@ -453,7 +453,7 @@ Name | Type | Description | Notes
453453

454454
### Return type
455455

456-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialListSchema**](../Model/CredentialListSchema.md)
456+
[**\RusticiSoftware\Cloud\V2\Model\CredentialListSchema**](../Model/CredentialListSchema.md)
457457

458458
### Authorization
459459

@@ -490,7 +490,7 @@ $apiInstance = new RusticiSoftware\Cloud\V2\Api\ApplicationManagementApi(
490490
new GuzzleHttp\Client(),
491491
$config
492492
);
493-
$configuration_settings = new \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\SettingsPostSchema(); // \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\SettingsPostSchema |
493+
$configuration_settings = new \RusticiSoftware\Cloud\V2\Model\SettingsPostSchema(); // \RusticiSoftware\Cloud\V2\Model\SettingsPostSchema |
494494
$learning_standard = "learning_standard_example"; // string | If specified, the request will be scoped to the provided learning standard.
495495
$single_sco = true; // bool | Required if learningStandard is specified. Scopes settings to whether a package has only one SCO or assignable unit within it or not. To apply a configuration setting to a learning standard for single and multi-SCO content, it must be set for both scopes.
496496

@@ -506,7 +506,7 @@ try {
506506

507507
Name | Type | Description | Notes
508508
------------- | ------------- | ------------- | -------------
509-
**configuration_settings** | [**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\SettingsPostSchema**](../Model/SettingsPostSchema.md)| |
509+
**configuration_settings** | [**\RusticiSoftware\Cloud\V2\Model\SettingsPostSchema**](../Model/SettingsPostSchema.md)| |
510510
**learning_standard** | **string**| If specified, the request will be scoped to the provided learning standard. | [optional]
511511
**single_sco** | **bool**| Required if learningStandard is specified. Scopes settings to whether a package has only one SCO or assignable unit within it or not. To apply a configuration setting to a learning standard for single and multi-SCO content, it must be set for both scopes. | [optional]
512512

@@ -551,7 +551,7 @@ $apiInstance = new RusticiSoftware\Cloud\V2\Api\ApplicationManagementApi(
551551
);
552552
$child_app_id = "child_app_id_example"; // string |
553553
$credential_id = "credential_id_example"; // string |
554-
$credential_update = new \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema(); // \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema |
554+
$credential_update = new \RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema(); // \RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema |
555555

556556
try {
557557
$apiInstance->updateCredential($child_app_id, $credential_id, $credential_update);
@@ -567,7 +567,7 @@ Name | Type | Description | Notes
567567
------------- | ------------- | ------------- | -------------
568568
**child_app_id** | **string**| |
569569
**credential_id** | **string**| |
570-
**credential_update** | [**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema**](../Model/CredentialRequestSchema.md)| |
570+
**credential_update** | [**\RusticiSoftware\Cloud\V2\Model\CredentialRequestSchema**](../Model/CredentialRequestSchema.md)| |
571571

572572
### Return type
573573

docs/Api/AuthenticationApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99

1010
# **getAppToken**
11-
> \RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\ApplicationToken getAppToken($scope, $expiration)
11+
> \RusticiSoftware\Cloud\V2\Model\ApplicationToken getAppToken($scope, $expiration)
1212
1313
Authenticates for a oauth token
1414

@@ -50,7 +50,7 @@ Name | Type | Description | Notes
5050

5151
### Return type
5252

53-
[**\RusticiSoftware\Cloud\V2\RusticiSoftware\Cloud\V2\Model\ApplicationToken**](../Model/ApplicationToken.md)
53+
[**\RusticiSoftware\Cloud\V2\Model\ApplicationToken**](../Model/ApplicationToken.md)
5454

5555
### Authorization
5656

0 commit comments

Comments
 (0)