@pulumi-labs/vonage 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/accountSettings.d.ts +62 -0
- package/bin/accountSettings.d.ts.map +1 -0
- package/bin/accountSettings.js +87 -0
- package/bin/accountSettings.js.map +1 -0
- package/bin/config/vars.d.ts +2 -2
- package/bin/externalAccountApplicationLink.d.ts +58 -0
- package/bin/externalAccountApplicationLink.d.ts.map +1 -0
- package/bin/externalAccountApplicationLink.js +92 -0
- package/bin/externalAccountApplicationLink.js.map +1 -0
- package/bin/getAccountSettings.d.ts +34 -0
- package/bin/getAccountSettings.d.ts.map +1 -0
- package/bin/getAccountSettings.js +48 -0
- package/bin/getAccountSettings.js.map +1 -0
- package/bin/getApplication.d.ts +33 -0
- package/bin/getApplication.d.ts.map +1 -1
- package/bin/getApplication.js.map +1 -1
- package/bin/getExternalAccount.d.ts +56 -0
- package/bin/getExternalAccount.d.ts.map +1 -0
- package/bin/getExternalAccount.js +53 -0
- package/bin/getExternalAccount.js.map +1 -0
- package/bin/getExternalAccountApplicationLink.d.ts +56 -0
- package/bin/getExternalAccountApplicationLink.d.ts.map +1 -0
- package/bin/getExternalAccountApplicationLink.js +55 -0
- package/bin/getExternalAccountApplicationLink.js.map +1 -0
- package/bin/getExternalAccounts.d.ts +29 -0
- package/bin/getExternalAccounts.d.ts.map +1 -0
- package/bin/getExternalAccounts.js +53 -0
- package/bin/getExternalAccounts.js.map +1 -0
- package/bin/getMessengerAccount.d.ts +48 -0
- package/bin/getMessengerAccount.d.ts.map +1 -0
- package/bin/getMessengerAccount.js +51 -0
- package/bin/getMessengerAccount.js.map +1 -0
- package/bin/getNetworkApplicationProfile.d.ts +77 -0
- package/bin/getNetworkApplicationProfile.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfile.js +51 -0
- package/bin/getNetworkApplicationProfile.js.map +1 -0
- package/bin/getNetworkApplicationProfileShare.d.ts +40 -0
- package/bin/getNetworkApplicationProfileShare.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfileShare.js +53 -0
- package/bin/getNetworkApplicationProfileShare.js.map +1 -0
- package/bin/getNetworkApplicationProfileShares.d.ts +28 -0
- package/bin/getNetworkApplicationProfileShares.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfileShares.js +51 -0
- package/bin/getNetworkApplicationProfileShares.js.map +1 -0
- package/bin/getNetworkApplicationProfiles.d.ts +45 -0
- package/bin/getNetworkApplicationProfiles.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfiles.js +57 -0
- package/bin/getNetworkApplicationProfiles.js.map +1 -0
- package/bin/getNetworkBusinessProfile.d.ts +85 -0
- package/bin/getNetworkBusinessProfile.d.ts.map +1 -0
- package/bin/getNetworkBusinessProfile.js +51 -0
- package/bin/getNetworkBusinessProfile.js.map +1 -0
- package/bin/getNetworkBusinessProfiles.d.ts +29 -0
- package/bin/getNetworkBusinessProfiles.d.ts.map +1 -0
- package/bin/getNetworkBusinessProfiles.js +53 -0
- package/bin/getNetworkBusinessProfiles.js.map +1 -0
- package/bin/getNetworkRegistryCatalogue.d.ts +65 -0
- package/bin/getNetworkRegistryCatalogue.d.ts.map +1 -0
- package/bin/getNetworkRegistryCatalogue.js +55 -0
- package/bin/getNetworkRegistryCatalogue.js.map +1 -0
- package/bin/getNetworkTermsAndConditions.d.ts +36 -0
- package/bin/getNetworkTermsAndConditions.d.ts.map +1 -0
- package/bin/getNetworkTermsAndConditions.js +51 -0
- package/bin/getNetworkTermsAndConditions.js.map +1 -0
- package/bin/getNumberPool.d.ts +44 -0
- package/bin/getNumberPool.d.ts.map +1 -0
- package/bin/getNumberPool.js +51 -0
- package/bin/getNumberPool.js.map +1 -0
- package/bin/getNumberPoolNumber.d.ts +40 -0
- package/bin/getNumberPoolNumber.d.ts.map +1 -0
- package/bin/getNumberPoolNumber.js +53 -0
- package/bin/getNumberPoolNumber.js.map +1 -0
- package/bin/getNumberPoolNumbers.d.ts +28 -0
- package/bin/getNumberPoolNumbers.d.ts.map +1 -0
- package/bin/getNumberPoolNumbers.js +51 -0
- package/bin/getNumberPoolNumbers.js.map +1 -0
- package/bin/getNumberPools.d.ts +19 -0
- package/bin/getNumberPools.d.ts.map +1 -0
- package/bin/getNumberPools.js +48 -0
- package/bin/getNumberPools.js.map +1 -0
- package/bin/getPricing.d.ts +53 -0
- package/bin/getPricing.d.ts.map +1 -0
- package/bin/getPricing.js +57 -0
- package/bin/getPricing.js.map +1 -0
- package/bin/getUser.d.ts +59 -0
- package/bin/getUser.d.ts.map +1 -0
- package/bin/getUser.js +55 -0
- package/bin/getUser.js.map +1 -0
- package/bin/getUsers.d.ts +29 -0
- package/bin/getUsers.d.ts.map +1 -0
- package/bin/getUsers.js +53 -0
- package/bin/getUsers.js.map +1 -0
- package/bin/index.d.ts +87 -0
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +98 -1
- package/bin/index.js.map +1 -1
- package/bin/messengerAccount.d.ts +66 -0
- package/bin/messengerAccount.d.ts.map +1 -0
- package/bin/messengerAccount.js +95 -0
- package/bin/messengerAccount.js.map +1 -0
- package/bin/networkApplicationProfile.d.ts +120 -0
- package/bin/networkApplicationProfile.d.ts.map +1 -0
- package/bin/networkApplicationProfile.js +118 -0
- package/bin/networkApplicationProfile.js.map +1 -0
- package/bin/networkApplicationProfileShare.d.ts +50 -0
- package/bin/networkApplicationProfileShare.d.ts.map +1 -0
- package/bin/networkApplicationProfileShare.js +87 -0
- package/bin/networkApplicationProfileShare.js.map +1 -0
- package/bin/networkBusinessProfile.d.ts +200 -0
- package/bin/networkBusinessProfile.d.ts.map +1 -0
- package/bin/networkBusinessProfile.js +150 -0
- package/bin/networkBusinessProfile.js.map +1 -0
- package/bin/numberPool.d.ts +70 -0
- package/bin/numberPool.d.ts.map +1 -0
- package/bin/numberPool.js +93 -0
- package/bin/numberPool.js.map +1 -0
- package/bin/numberPoolNumber.d.ts +50 -0
- package/bin/numberPoolNumber.d.ts.map +1 -0
- package/bin/numberPoolNumber.js +87 -0
- package/bin/numberPoolNumber.js.map +1 -0
- package/bin/package.json +3 -3
- package/bin/provider.d.ts +4 -4
- package/bin/types/input.d.ts +128 -0
- package/bin/types/input.d.ts.map +1 -1
- package/bin/types/output.d.ts +450 -0
- package/bin/types/output.d.ts.map +1 -1
- package/bin/user.d.ts +80 -0
- package/bin/user.d.ts.map +1 -0
- package/bin/user.js +87 -0
- package/bin/user.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.NetworkBusinessProfile = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Vonage Network Registry business profile. Registering a profile is a legal submission that Vonage and mobile operators review: it is not an instant API call, and its status moves from pending towards accepted on its own. Vonage has no plain update: a changed input is submitted as a change request, which the profile reflects once approved (until then the resource reports the requested values). Destroying the resource deletes the profile (Vonage deletes softly and can undelete it). Shapes follow the published Network Registry OpenAPI definition and were not verified against a live account.
|
|
33
|
+
*/
|
|
34
|
+
class NetworkBusinessProfile extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing NetworkBusinessProfile resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new NetworkBusinessProfile(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:NetworkBusinessProfile';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of NetworkBusinessProfile. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === NetworkBusinessProfile.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a NetworkBusinessProfile resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.businessInformation === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'businessInformation'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.contactRole === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'contactRole'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.countries === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'countries'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.name === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'name'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.organisationType === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'organisationType'");
|
|
83
|
+
}
|
|
84
|
+
if (args?.privacyPolicyManagerEmail === undefined && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'privacyPolicyManagerEmail'");
|
|
86
|
+
}
|
|
87
|
+
if (args?.privacyPolicyUrl === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'privacyPolicyUrl'");
|
|
89
|
+
}
|
|
90
|
+
if (args?.taxNumber === undefined && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'taxNumber'");
|
|
92
|
+
}
|
|
93
|
+
if (args?.termsAndConditionsAccepted === undefined && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'termsAndConditionsAccepted'");
|
|
95
|
+
}
|
|
96
|
+
resourceInputs["businessInformation"] = args?.businessInformation;
|
|
97
|
+
resourceInputs["businessRegistrationId"] = args?.businessRegistrationId;
|
|
98
|
+
resourceInputs["contactRole"] = args?.contactRole;
|
|
99
|
+
resourceInputs["countries"] = args?.countries;
|
|
100
|
+
resourceInputs["dpoEmail"] = args?.dpoEmail;
|
|
101
|
+
resourceInputs["dpoRequired"] = args?.dpoRequired;
|
|
102
|
+
resourceInputs["emailNotificationsEnabled"] = args?.emailNotificationsEnabled;
|
|
103
|
+
resourceInputs["issuingAuthority"] = args?.issuingAuthority;
|
|
104
|
+
resourceInputs["name"] = args?.name;
|
|
105
|
+
resourceInputs["organisationType"] = args?.organisationType;
|
|
106
|
+
resourceInputs["privacyPolicyManagerEmail"] = args?.privacyPolicyManagerEmail;
|
|
107
|
+
resourceInputs["privacyPolicyUrl"] = args?.privacyPolicyUrl;
|
|
108
|
+
resourceInputs["taxNumber"] = args?.taxNumber;
|
|
109
|
+
resourceInputs["termsAndConditionsAccepted"] = args?.termsAndConditionsAccepted;
|
|
110
|
+
resourceInputs["tradingName"] = args?.tradingName;
|
|
111
|
+
resourceInputs["vettingExtraFields"] = args?.vettingExtraFields;
|
|
112
|
+
resourceInputs["vettingTermsAndConditionsAccepted"] = args?.vettingTermsAndConditionsAccepted;
|
|
113
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["changeRequestStatus"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["statusMessage"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["businessInformation"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["businessRegistrationId"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["changeRequestStatus"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["contactRole"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["countries"] = undefined /*out*/;
|
|
127
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["dpoEmail"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["dpoRequired"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["emailNotificationsEnabled"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["issuingAuthority"] = undefined /*out*/;
|
|
132
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
133
|
+
resourceInputs["organisationType"] = undefined /*out*/;
|
|
134
|
+
resourceInputs["privacyPolicyManagerEmail"] = undefined /*out*/;
|
|
135
|
+
resourceInputs["privacyPolicyUrl"] = undefined /*out*/;
|
|
136
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["statusMessage"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["taxNumber"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["termsAndConditionsAccepted"] = undefined /*out*/;
|
|
140
|
+
resourceInputs["tradingName"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["vettingExtraFields"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["vettingTermsAndConditionsAccepted"] = undefined /*out*/;
|
|
144
|
+
}
|
|
145
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
146
|
+
super(NetworkBusinessProfile.__pulumiType, name, resourceInputs, opts);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.NetworkBusinessProfile = NetworkBusinessProfile;
|
|
150
|
+
//# sourceMappingURL=networkBusinessProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkBusinessProfile.js","sourceRoot":"","sources":["../networkBusinessProfile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;OAOG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cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AAhNL,wDAiNC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Vonage number pool. Add numbers with NumberPoolNumber. Shapes follow the published Number Pools API specification and were not verified against a live account.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NumberPool extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing NumberPool resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): NumberPool;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of NumberPool. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is NumberPool;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the account that owns the pool (the API key).
|
|
22
|
+
*/
|
|
23
|
+
readonly accountId: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* What Vonage does when no number in the pool can send the message: Pool (use any pool number), "CustomFrom" (use the sender in the request) or Reject (fail the message).
|
|
26
|
+
*/
|
|
27
|
+
readonly fallback: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Prefer a pool number local to the destination country when one exists. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
30
|
+
*/
|
|
31
|
+
readonly localizedSenderPreferred: pulumi.Output<boolean | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Your identifier for the pool, unique within the account. Also the resource ID. Changing it replaces the pool.
|
|
34
|
+
*/
|
|
35
|
+
readonly poolId: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Keep using the same pool number for the same recipient when possible. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
38
|
+
*/
|
|
39
|
+
readonly predictableSenderPreferred: pulumi.Output<boolean | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a NumberPool resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, args: NumberPoolArgs, opts?: pulumi.CustomResourceOptions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The set of arguments for constructing a NumberPool resource.
|
|
51
|
+
*/
|
|
52
|
+
export interface NumberPoolArgs {
|
|
53
|
+
/**
|
|
54
|
+
* What Vonage does when no number in the pool can send the message: Pool (use any pool number), "CustomFrom" (use the sender in the request) or Reject (fail the message).
|
|
55
|
+
*/
|
|
56
|
+
fallback: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefer a pool number local to the destination country when one exists. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
59
|
+
*/
|
|
60
|
+
localizedSenderPreferred?: pulumi.Input<boolean | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Your identifier for the pool, unique within the account. Also the resource ID. Changing it replaces the pool.
|
|
63
|
+
*/
|
|
64
|
+
poolId: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Keep using the same pool number for the same recipient when possible. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
67
|
+
*/
|
|
68
|
+
predictableSenderPreferred?: pulumi.Input<boolean | undefined>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=numberPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberPool.d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;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CAClE"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.NumberPool = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Vonage number pool. Add numbers with NumberPoolNumber. Shapes follow the published Number Pools API specification and were not verified against a live account.
|
|
33
|
+
*/
|
|
34
|
+
class NumberPool extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing NumberPool resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new NumberPool(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:NumberPool';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of NumberPool. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === NumberPool.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a NumberPool resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.fallback === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'fallback'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.poolId === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'poolId'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["fallback"] = args?.fallback;
|
|
76
|
+
resourceInputs["localizedSenderPreferred"] = args?.localizedSenderPreferred;
|
|
77
|
+
resourceInputs["poolId"] = args?.poolId;
|
|
78
|
+
resourceInputs["predictableSenderPreferred"] = args?.predictableSenderPreferred;
|
|
79
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["fallback"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["localizedSenderPreferred"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["poolId"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["predictableSenderPreferred"] = undefined /*out*/;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(NumberPool.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.NumberPool = NumberPool;
|
|
93
|
+
//# sourceMappingURL=numberPool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberPool.js","sourceRoot":"","sources":["../numberPool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,yBAAyB,CAAC;IAEhE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B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,SAAS,CAAC,OAAO,CAAC;SACpE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA/EL,gCAgFC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Membership of one owned number in a Vonage number pool. The ID is poolId/number. Removing the resource removes the number from the pool and never releases the number itself.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NumberPoolNumber extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing NumberPoolNumber resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): NumberPoolNumber;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of NumberPoolNumber. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is NumberPoolNumber;
|
|
20
|
+
/**
|
|
21
|
+
* The owned number in E.164 format without the leading plus (7-15 digits). Changing it replaces the membership.
|
|
22
|
+
*/
|
|
23
|
+
readonly number: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the pool to add the number to. Changing it replaces the membership.
|
|
26
|
+
*/
|
|
27
|
+
readonly poolId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a NumberPoolNumber resource with the given unique name, arguments, and options.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resource.
|
|
32
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
33
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
34
|
+
*/
|
|
35
|
+
constructor(name: string, args: NumberPoolNumberArgs, opts?: pulumi.CustomResourceOptions);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The set of arguments for constructing a NumberPoolNumber resource.
|
|
39
|
+
*/
|
|
40
|
+
export interface NumberPoolNumberArgs {
|
|
41
|
+
/**
|
|
42
|
+
* The owned number in E.164 format without the leading plus (7-15 digits). Changing it replaces the membership.
|
|
43
|
+
*/
|
|
44
|
+
number: pulumi.Input<string>;
|
|
45
|
+
/**
|
|
46
|
+
* ID of the pool to add the number to. Changing it replaces the membership.
|
|
47
|
+
*/
|
|
48
|
+
poolId: pulumi.Input<string>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=numberPoolNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberPoolNumber.d.ts","sourceRoot":"","sources":["../numberPoolNumber.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,gBAAgB;IAOnH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,gBAAgB;IAO3D;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAmB5F;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.NumberPoolNumber = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Membership of one owned number in a Vonage number pool. The ID is poolId/number. Removing the resource removes the number from the pool and never releases the number itself.
|
|
33
|
+
*/
|
|
34
|
+
class NumberPoolNumber extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing NumberPoolNumber resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new NumberPoolNumber(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:NumberPoolNumber';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of NumberPoolNumber. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === NumberPoolNumber.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a NumberPoolNumber resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.number === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'number'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.poolId === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'poolId'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["number"] = args?.number;
|
|
76
|
+
resourceInputs["poolId"] = args?.poolId;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
resourceInputs["number"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["poolId"] = undefined /*out*/;
|
|
81
|
+
}
|
|
82
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
|
+
super(NumberPoolNumber.__pulumiType, name, resourceInputs, opts);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.NumberPoolNumber = NumberPoolNumber;
|
|
87
|
+
//# sourceMappingURL=numberPoolNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberPoolNumber.js","sourceRoot":"","sources":["../numberPoolNumber.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,+BAA+B,CAAC;IAEtE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ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ental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Experimental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets, Verify v2 templates and Network Registry business profiles as infrastructure with Pulumi.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
7
7
|
"vonage",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"pulumi": {
|
|
28
28
|
"resource": true,
|
|
29
29
|
"name": "vonage",
|
|
30
|
-
"version": "0.1
|
|
30
|
+
"version": "0.2.1",
|
|
31
31
|
"server": "github://api.github.com/pulumi-labs/pulumi-vonage"
|
|
32
32
|
},
|
|
33
33
|
"main": "bin/index.js",
|
package/bin/provider.d.ts
CHANGED
|
@@ -18,11 +18,11 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
18
18
|
*/
|
|
19
19
|
readonly apiSecret: pulumi.Output<string | undefined>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Vonage application ID used to sign the JWT for the Users API (the User resource and the getUser and getUsers functions). Users belong to this application. Falls back to VONAGE_APPLICATION_ID.
|
|
22
22
|
*/
|
|
23
23
|
readonly applicationId: pulumi.Output<string | undefined>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* PEM private key of the application named by applicationId (PKCS#8 'BEGIN PRIVATE KEY' as downloaded from the dashboard, or PKCS#1). Newlines flattened to a literal backslash-n are accepted. Falls back to VONAGE_PRIVATE_KEY.
|
|
26
26
|
*/
|
|
27
27
|
readonly privateKey: pulumi.Output<string | undefined>;
|
|
28
28
|
/**
|
|
@@ -55,11 +55,11 @@ export interface ProviderArgs {
|
|
|
55
55
|
*/
|
|
56
56
|
apiSecret?: pulumi.Input<string | undefined>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Vonage application ID used to sign the JWT for the Users API (the User resource and the getUser and getUsers functions). Users belong to this application. Falls back to VONAGE_APPLICATION_ID.
|
|
59
59
|
*/
|
|
60
60
|
applicationId?: pulumi.Input<string | undefined>;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* PEM private key of the application named by applicationId (PKCS#8 'BEGIN PRIVATE KEY' as downloaded from the dashboard, or PKCS#1). Newlines flattened to a literal backslash-n are accepted. Falls back to VONAGE_PRIVATE_KEY.
|
|
63
63
|
*/
|
|
64
64
|
privateKey?: pulumi.Input<string | undefined>;
|
|
65
65
|
/**
|