@pulumi/digitalocean 4.55.0-alpha.1762408233 → 4.55.0-alpha.1763072016

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.
@@ -45,10 +45,10 @@ import * as pulumi from "@pulumi/pulumi";
45
45
  * const example = digitalocean.getKubernetesCluster({
46
46
  * name: "prod-cluster-01",
47
47
  * });
48
- * const exampleSecret = new kubernetes.core.v1.Secret("example", {
49
- * metadata: {
48
+ * const exampleSecret = new kubernetes.index.Secret("example", {
49
+ * metadata: [{
50
50
  * name: "docker-cfg",
51
- * },
51
+ * }],
52
52
  * data: {
53
53
  * ".dockerconfigjson": exampleContainerRegistryDockerCredentials.dockerCredentials,
54
54
  * },
@@ -51,10 +51,10 @@ const utilities = require("./utilities");
51
51
  * const example = digitalocean.getKubernetesCluster({
52
52
  * name: "prod-cluster-01",
53
53
  * });
54
- * const exampleSecret = new kubernetes.core.v1.Secret("example", {
55
- * metadata: {
54
+ * const exampleSecret = new kubernetes.index.Secret("example", {
55
+ * metadata: [{
56
56
  * name: "docker-cfg",
57
- * },
57
+ * }],
58
58
  * data: {
59
59
  * ".dockerconfigjson": exampleContainerRegistryDockerCredentials.dockerCredentials,
60
60
  * },
@@ -23,13 +23,13 @@ import * as pulumi from "@pulumi/pulumi";
23
23
  * subjectName: "test-schema",
24
24
  * schemaType: "avro",
25
25
  * schema: `{
26
- * "type": "record",
27
- * "namespace": "example",
28
- * "name": "TestRecord",
29
- * "fields": [
30
- * {"name": "id", "type": "string"},
31
- * {"name": "name", "type": "string"},
32
- * {"name": "value", "type": "int"}
26
+ * \\"type\\": \\"record\\",
27
+ * \\"namespace\\": \\"example\\",
28
+ * \\"name\\": \\"TestRecord\\",
29
+ * \\"fields\\": [
30
+ * {\\"name\\": \\"id\\", \\"type\\": \\"string\\"},
31
+ * {\\"name\\": \\"name\\", \\"type\\": \\"string\\"},
32
+ * {\\"name\\": \\"value\\", \\"type\\": \\"int\\"}
33
33
  * ]
34
34
  * }
35
35
  * `,
@@ -29,13 +29,13 @@ const utilities = require("./utilities");
29
29
  * subjectName: "test-schema",
30
30
  * schemaType: "avro",
31
31
  * schema: `{
32
- * "type": "record",
33
- * "namespace": "example",
34
- * "name": "TestRecord",
35
- * "fields": [
36
- * {"name": "id", "type": "string"},
37
- * {"name": "name", "type": "string"},
38
- * {"name": "value", "type": "int"}
32
+ * \\"type\\": \\"record\\",
33
+ * \\"namespace\\": \\"example\\",
34
+ * \\"name\\": \\"TestRecord\\",
35
+ * \\"fields\\": [
36
+ * {\\"name\\": \\"id\\", \\"type\\": \\"string\\"},
37
+ * {\\"name\\": \\"name\\", \\"type\\": \\"string\\"},
38
+ * {\\"name\\": \\"value\\", \\"type\\": \\"int\\"}
39
39
  * ]
40
40
  * }
41
41
  * `,
package/getSizes.d.ts CHANGED
@@ -5,6 +5,81 @@ import * as outputs from "./types/output";
5
5
  * Retrieves information about the Droplet sizes that DigitalOcean supports, with
6
6
  * the ability to filter and sort the results. If no filters are specified, all sizes
7
7
  * will be returned.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * Most common usage will probably be to supply a size to Droplet:
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as digitalocean from "@pulumi/digitalocean";
16
+ *
17
+ * const main = digitalocean.getSizes({
18
+ * filters: [{
19
+ * key: "slug",
20
+ * values: ["s-1vcpu-1gb"],
21
+ * }],
22
+ * });
23
+ * const web = new digitalocean.Droplet("web", {
24
+ * image: "ubuntu-18-04-x64",
25
+ * name: "web-1",
26
+ * region: digitalocean.Region.SGP1,
27
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
28
+ * });
29
+ * ```
30
+ *
31
+ * The data source also supports multiple filters and sorts. For example, to fetch sizes with 1 or 2 virtual CPU that are available "sgp1" region, then pick the cheapest one:
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as digitalocean from "@pulumi/digitalocean";
36
+ *
37
+ * const main = digitalocean.getSizes({
38
+ * filters: [
39
+ * {
40
+ * key: "vcpus",
41
+ * values: [
42
+ * "1",
43
+ * "2",
44
+ * ],
45
+ * },
46
+ * {
47
+ * key: "regions",
48
+ * values: ["sgp1"],
49
+ * },
50
+ * ],
51
+ * sorts: [{
52
+ * key: "price_monthly",
53
+ * direction: "asc",
54
+ * }],
55
+ * });
56
+ * const web = new digitalocean.Droplet("web", {
57
+ * image: "ubuntu-18-04-x64",
58
+ * name: "web-1",
59
+ * region: digitalocean.Region.SGP1,
60
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
61
+ * });
62
+ * ```
63
+ *
64
+ * The data source can also handle multiple sorts. In which case, the sort will be applied in the order it is defined. For example, to sort by memory in ascending order, then sort by disk in descending order between sizes with same memory:
65
+ *
66
+ * ```typescript
67
+ * import * as pulumi from "@pulumi/pulumi";
68
+ * import * as digitalocean from "@pulumi/digitalocean";
69
+ *
70
+ * const main = digitalocean.getSizes({
71
+ * sorts: [
72
+ * {
73
+ * key: "memory",
74
+ * direction: "asc",
75
+ * },
76
+ * {
77
+ * key: "disk",
78
+ * direction: "desc",
79
+ * },
80
+ * ],
81
+ * });
82
+ * ```
8
83
  */
9
84
  export declare function getSizes(args?: GetSizesArgs, opts?: pulumi.InvokeOptions): Promise<GetSizesResult>;
10
85
  /**
@@ -38,6 +113,81 @@ export interface GetSizesResult {
38
113
  * Retrieves information about the Droplet sizes that DigitalOcean supports, with
39
114
  * the ability to filter and sort the results. If no filters are specified, all sizes
40
115
  * will be returned.
116
+ *
117
+ * ## Example Usage
118
+ *
119
+ * Most common usage will probably be to supply a size to Droplet:
120
+ *
121
+ * ```typescript
122
+ * import * as pulumi from "@pulumi/pulumi";
123
+ * import * as digitalocean from "@pulumi/digitalocean";
124
+ *
125
+ * const main = digitalocean.getSizes({
126
+ * filters: [{
127
+ * key: "slug",
128
+ * values: ["s-1vcpu-1gb"],
129
+ * }],
130
+ * });
131
+ * const web = new digitalocean.Droplet("web", {
132
+ * image: "ubuntu-18-04-x64",
133
+ * name: "web-1",
134
+ * region: digitalocean.Region.SGP1,
135
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
136
+ * });
137
+ * ```
138
+ *
139
+ * The data source also supports multiple filters and sorts. For example, to fetch sizes with 1 or 2 virtual CPU that are available "sgp1" region, then pick the cheapest one:
140
+ *
141
+ * ```typescript
142
+ * import * as pulumi from "@pulumi/pulumi";
143
+ * import * as digitalocean from "@pulumi/digitalocean";
144
+ *
145
+ * const main = digitalocean.getSizes({
146
+ * filters: [
147
+ * {
148
+ * key: "vcpus",
149
+ * values: [
150
+ * "1",
151
+ * "2",
152
+ * ],
153
+ * },
154
+ * {
155
+ * key: "regions",
156
+ * values: ["sgp1"],
157
+ * },
158
+ * ],
159
+ * sorts: [{
160
+ * key: "price_monthly",
161
+ * direction: "asc",
162
+ * }],
163
+ * });
164
+ * const web = new digitalocean.Droplet("web", {
165
+ * image: "ubuntu-18-04-x64",
166
+ * name: "web-1",
167
+ * region: digitalocean.Region.SGP1,
168
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
169
+ * });
170
+ * ```
171
+ *
172
+ * The data source can also handle multiple sorts. In which case, the sort will be applied in the order it is defined. For example, to sort by memory in ascending order, then sort by disk in descending order between sizes with same memory:
173
+ *
174
+ * ```typescript
175
+ * import * as pulumi from "@pulumi/pulumi";
176
+ * import * as digitalocean from "@pulumi/digitalocean";
177
+ *
178
+ * const main = digitalocean.getSizes({
179
+ * sorts: [
180
+ * {
181
+ * key: "memory",
182
+ * direction: "asc",
183
+ * },
184
+ * {
185
+ * key: "disk",
186
+ * direction: "desc",
187
+ * },
188
+ * ],
189
+ * });
190
+ * ```
41
191
  */
42
192
  export declare function getSizesOutput(args?: GetSizesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSizesResult>;
43
193
  /**
package/getSizes.js CHANGED
@@ -9,6 +9,81 @@ const utilities = require("./utilities");
9
9
  * Retrieves information about the Droplet sizes that DigitalOcean supports, with
10
10
  * the ability to filter and sort the results. If no filters are specified, all sizes
11
11
  * will be returned.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * Most common usage will probably be to supply a size to Droplet:
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as digitalocean from "@pulumi/digitalocean";
20
+ *
21
+ * const main = digitalocean.getSizes({
22
+ * filters: [{
23
+ * key: "slug",
24
+ * values: ["s-1vcpu-1gb"],
25
+ * }],
26
+ * });
27
+ * const web = new digitalocean.Droplet("web", {
28
+ * image: "ubuntu-18-04-x64",
29
+ * name: "web-1",
30
+ * region: digitalocean.Region.SGP1,
31
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
32
+ * });
33
+ * ```
34
+ *
35
+ * The data source also supports multiple filters and sorts. For example, to fetch sizes with 1 or 2 virtual CPU that are available "sgp1" region, then pick the cheapest one:
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as digitalocean from "@pulumi/digitalocean";
40
+ *
41
+ * const main = digitalocean.getSizes({
42
+ * filters: [
43
+ * {
44
+ * key: "vcpus",
45
+ * values: [
46
+ * "1",
47
+ * "2",
48
+ * ],
49
+ * },
50
+ * {
51
+ * key: "regions",
52
+ * values: ["sgp1"],
53
+ * },
54
+ * ],
55
+ * sorts: [{
56
+ * key: "price_monthly",
57
+ * direction: "asc",
58
+ * }],
59
+ * });
60
+ * const web = new digitalocean.Droplet("web", {
61
+ * image: "ubuntu-18-04-x64",
62
+ * name: "web-1",
63
+ * region: digitalocean.Region.SGP1,
64
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
65
+ * });
66
+ * ```
67
+ *
68
+ * The data source can also handle multiple sorts. In which case, the sort will be applied in the order it is defined. For example, to sort by memory in ascending order, then sort by disk in descending order between sizes with same memory:
69
+ *
70
+ * ```typescript
71
+ * import * as pulumi from "@pulumi/pulumi";
72
+ * import * as digitalocean from "@pulumi/digitalocean";
73
+ *
74
+ * const main = digitalocean.getSizes({
75
+ * sorts: [
76
+ * {
77
+ * key: "memory",
78
+ * direction: "asc",
79
+ * },
80
+ * {
81
+ * key: "disk",
82
+ * direction: "desc",
83
+ * },
84
+ * ],
85
+ * });
86
+ * ```
12
87
  */
13
88
  function getSizes(args, opts) {
14
89
  args = args || {};
@@ -23,6 +98,81 @@ exports.getSizes = getSizes;
23
98
  * Retrieves information about the Droplet sizes that DigitalOcean supports, with
24
99
  * the ability to filter and sort the results. If no filters are specified, all sizes
25
100
  * will be returned.
101
+ *
102
+ * ## Example Usage
103
+ *
104
+ * Most common usage will probably be to supply a size to Droplet:
105
+ *
106
+ * ```typescript
107
+ * import * as pulumi from "@pulumi/pulumi";
108
+ * import * as digitalocean from "@pulumi/digitalocean";
109
+ *
110
+ * const main = digitalocean.getSizes({
111
+ * filters: [{
112
+ * key: "slug",
113
+ * values: ["s-1vcpu-1gb"],
114
+ * }],
115
+ * });
116
+ * const web = new digitalocean.Droplet("web", {
117
+ * image: "ubuntu-18-04-x64",
118
+ * name: "web-1",
119
+ * region: digitalocean.Region.SGP1,
120
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
121
+ * });
122
+ * ```
123
+ *
124
+ * The data source also supports multiple filters and sorts. For example, to fetch sizes with 1 or 2 virtual CPU that are available "sgp1" region, then pick the cheapest one:
125
+ *
126
+ * ```typescript
127
+ * import * as pulumi from "@pulumi/pulumi";
128
+ * import * as digitalocean from "@pulumi/digitalocean";
129
+ *
130
+ * const main = digitalocean.getSizes({
131
+ * filters: [
132
+ * {
133
+ * key: "vcpus",
134
+ * values: [
135
+ * "1",
136
+ * "2",
137
+ * ],
138
+ * },
139
+ * {
140
+ * key: "regions",
141
+ * values: ["sgp1"],
142
+ * },
143
+ * ],
144
+ * sorts: [{
145
+ * key: "price_monthly",
146
+ * direction: "asc",
147
+ * }],
148
+ * });
149
+ * const web = new digitalocean.Droplet("web", {
150
+ * image: "ubuntu-18-04-x64",
151
+ * name: "web-1",
152
+ * region: digitalocean.Region.SGP1,
153
+ * size: digitalocean.DropletSlug[main.then(main => main.sizes)[0].slug],
154
+ * });
155
+ * ```
156
+ *
157
+ * The data source can also handle multiple sorts. In which case, the sort will be applied in the order it is defined. For example, to sort by memory in ascending order, then sort by disk in descending order between sizes with same memory:
158
+ *
159
+ * ```typescript
160
+ * import * as pulumi from "@pulumi/pulumi";
161
+ * import * as digitalocean from "@pulumi/digitalocean";
162
+ *
163
+ * const main = digitalocean.getSizes({
164
+ * sorts: [
165
+ * {
166
+ * key: "memory",
167
+ * direction: "asc",
168
+ * },
169
+ * {
170
+ * key: "disk",
171
+ * direction: "desc",
172
+ * },
173
+ * ],
174
+ * });
175
+ * ```
26
176
  */
27
177
  function getSizesOutput(args, opts) {
28
178
  args = args || {};
package/getSizes.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getSizes.js","sourceRoot":"","sources":["../getSizes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4BAOC;AA8BD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAAiC;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAA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AsC,EAAE;QACvE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/digitalocean",
3
- "version": "4.55.0-alpha.1762408233",
3
+ "version": "4.55.0-alpha.1763072016",
4
4
  "description": "A Pulumi package for creating and managing DigitalOcean cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -22,6 +22,6 @@
22
22
  "pulumi": {
23
23
  "resource": true,
24
24
  "name": "digitalocean",
25
- "version": "4.55.0-alpha.1762408233"
25
+ "version": "4.55.0-alpha.1763072016"
26
26
  }
27
27
  }