This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cloud.project): add io api bindings (#240)
- Loading branch information
1 parent
9f685c1
commit c79872d
Showing
12 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/api/cloud/project/io/capabilities/cloud-project-io-capabilities.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoCapabilities', $injector => ({ | ||
Stream: () => $injector.get('OvhApiCloudProjectIoCapabilitiesStream'), | ||
})); |
5 changes: 5 additions & 0 deletions
5
src/api/cloud/project/io/capabilities/stream/cloud-project-io-capabilities-stream.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoCapabilitiesStream', $injector => ({ | ||
Region: () => $injector.get('OvhApiCloudProjectIoCapabilitiesStreamRegion'), | ||
})); |
5 changes: 5 additions & 0 deletions
5
...ject/io/capabilities/stream/region/cloud-project-io-capabilities-stream-region.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoCapabilitiesStreamRegion', $injector => ({ | ||
v6: () => $injector.get('OvhApiCloudProjectIoCapabilitiesStreamRegionV6'), | ||
})); |
10 changes: 10 additions & 0 deletions
10
...t/io/capabilities/stream/region/cloud-project-io-capabilities-stream-region.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoCapabilitiesStreamRegionV6', ($resource) => { | ||
const resource = $resource('/cloud/project/:serviceName/io/capabilities/stream/region/:regionName', { | ||
serviceName: '@serviceName', | ||
regionName: '@regionName', | ||
}); | ||
|
||
return resource; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIo', $injector => ({ | ||
Capabilities: () => $injector.get('OvhApiCloudProjectIoCapabilities'), | ||
Stream: () => $injector.get('OvhApiCloudProjectIoStream'), | ||
})); |
7 changes: 7 additions & 0 deletions
7
src/api/cloud/project/io/stream/cloud-project-io-stream.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoStream', $injector => ({ | ||
v6: () => $injector.get('OvhApiCloudProjectIoStreamV6'), | ||
Subscription: () => $injector.get('OvhApiCloudProjectIoStreamSubscription'), | ||
Token: () => $injector.get('OvhApiCloudProjectIoStreamToken'), | ||
})); |
19 changes: 19 additions & 0 deletions
19
src/api/cloud/project/io/stream/cloud-project-io-stream.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoStreamV6', ($resource) => { | ||
const resource = $resource('/cloud/project/:serviceName/io/stream/:streamId', { | ||
serviceName: '@serviceName', | ||
streamId: '@streamId', | ||
}, { | ||
edit: { | ||
method: 'PUT', | ||
}, | ||
getStats: { | ||
url: '/cloud/project/:serviceName/io/stream/:streamId/stats', | ||
method: 'GET', | ||
isArray: false, | ||
}, | ||
}); | ||
|
||
return resource; | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/api/cloud/project/io/stream/subscription/cloud-project-io-stream-subscription.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoStreamSubscription', $injector => ({ | ||
v6: () => $injector.get('OvhApiCloudProjectIoStreamSubscriptionV6'), | ||
})); |
21 changes: 21 additions & 0 deletions
21
...i/cloud/project/io/stream/subscription/cloud-project-io-stream-subscription.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoStreamSubscriptionV6', ($resource) => { | ||
const resource = $resource('/cloud/project/:serviceName/io/stream/:streamId/subscription/:subscriptionId', { | ||
serviceName: '@serviceName', | ||
streamId: '@streamId', | ||
subscriptionId: '@subscriptionId', | ||
}, { | ||
resetCursor: { | ||
method: 'POST', | ||
url: '/cloud/project/:serviceName/io/stream/:streamId/subscription/:subscriptionId/resetCursor', | ||
}, | ||
getStats: { | ||
url: '/cloud/project/:serviceName/io/stream/:streamId/subscription/:subscriptionId/stats', | ||
method: 'GET', | ||
isArray: false, | ||
}, | ||
}); | ||
|
||
return resource; | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/api/cloud/project/io/stream/token/cloud-project-io-stream-token.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoStreamToken', $injector => ({ | ||
v6: () => $injector.get('OvhApiCloudProjectIoStreamTokenV6'), | ||
})); |
11 changes: 11 additions & 0 deletions
11
src/api/cloud/project/io/stream/token/cloud-project-io-stream-token.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
angular | ||
.module('ovh-api-services') | ||
.service('OvhApiCloudProjectIoStreamTokenV6', ($resource) => { | ||
const resource = $resource('/cloud/project/:serviceName/io/stream/:streamId/token/:tokenId', { | ||
serviceName: '@serviceName', | ||
streamId: '@streamId', | ||
tokenId: '@tokenId', | ||
}); | ||
|
||
return resource; | ||
}); |