@pulumi/docker 3.1.0-alpha.1626976245 → 3.1.0

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/network.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * Manages a Docker Network. This can be used alongside
5
- * [docker\_container](https://www.terraform.io/docs/providers/docker/r/container.html)
6
- * to create virtual networks within the docker environment.
4
+ * <!-- Bug: Type and Name are switched -->
5
+ * `docker.Network` provides details about a specific Docker Network.
7
6
  *
8
7
  * ## Example Usage
9
8
  *
@@ -11,16 +10,60 @@ import { input as inputs, output as outputs } from "./types";
11
10
  * import * as pulumi from "@pulumi/pulumi";
12
11
  * import * as docker from "@pulumi/docker";
13
12
  *
14
- * // Create a new docker network
15
13
  * const privateNetwork = new docker.Network("private_network", {});
16
14
  * ```
17
15
  *
16
+ * <!-- schema generated by tfplugindocs -->
17
+ * ## Schema
18
+ *
19
+ * ### Required
20
+ *
21
+ * - **name** (String) The name of the Docker network.
22
+ *
23
+ * ### Optional
24
+ *
25
+ * - **attachable** (Boolean) Enable manual container attachment to the network.
26
+ * - **check_duplicate** (Boolean) Requests daemon to check for networks with same name.
27
+ * - **driver** (String) The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
28
+ * - **id** (String) The ID of this resource.
29
+ * - **ingress** (Boolean) Create swarm routing-mesh network. Defaults to `false`.
30
+ * - **internal** (Boolean) Whether the network is internal.
31
+ * - **ipam_config** (Block Set) The IPAM configuration options (see below for nested schema)
32
+ * - **ipam_driver** (String) Driver used by the custom IP scheme of the network. Defaults to `default`
33
+ * - **ipv6** (Boolean) Enable IPv6 networking. Defaults to `false`.
34
+ * - **labels** (Block Set) User-defined key/value metadata (see below for nested schema)
35
+ * - **options** (Map of String) Only available with bridge networks. See [bridge options docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
36
+ *
37
+ * ### Read-Only
38
+ *
39
+ * - **scope** (String) Scope of the network. One of `swarm`, `global`, or `local`.
40
+ *
41
+ * <a id="nestedblock--ipam_config"></a>
42
+ * ### Nested Schema for `ipamConfig`
43
+ *
44
+ * Optional:
45
+ *
46
+ * - **aux_address** (Map of String) Auxiliary IPv4 or IPv6 addresses used by Network driver
47
+ * - **gateway** (String) The IP address of the gateway
48
+ * - **ip_range** (String) The ip range in CIDR form
49
+ * - **subnet** (String) The subnet in CIDR form
50
+ *
51
+ * <a id="nestedblock--labels"></a>
52
+ * ### Nested Schema for `labels`
53
+ *
54
+ * Required:
55
+ *
56
+ * - **label** (String) Name of the label
57
+ * - **value** (String) Value of the label
58
+ *
18
59
  * ## Import
19
60
  *
20
- * Docker networks can be imported using the long id, e.g. for a network with the short id `p73jelnrme5f`
61
+ * ### Example Assuming you created a `network` as follows #!/bin/bash docker network create foo # prints the long ID 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73 you provide the definition for the resource as follows terraform resource "docker_network" "foo" {
62
+ *
63
+ * name = "foo" } then the import command is as follows #!/bin/bash
21
64
  *
22
65
  * ```sh
23
- * $ pulumi import docker:index/network:Network foo $(docker network inspect -f {{.ID}} p73)
66
+ * $ pulumi import docker:index/network:Network foo 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
24
67
  * ```
25
68
  */
26
69
  export declare class Network extends pulumi.CustomResource {
@@ -41,46 +84,39 @@ export declare class Network extends pulumi.CustomResource {
41
84
  static isInstance(obj: any): obj is Network;
42
85
  /**
43
86
  * Enable manual container attachment to the network.
44
- * Defaults to `false`.
45
87
  */
46
88
  readonly attachable: pulumi.Output<boolean | undefined>;
47
89
  /**
48
- * Requests daemon to check for networks
49
- * with same name.
90
+ * Requests daemon to check for networks with same name.
50
91
  */
51
92
  readonly checkDuplicate: pulumi.Output<boolean | undefined>;
52
93
  /**
53
- * Name of the network driver to use. Defaults to
54
- * `bridge` driver.
94
+ * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network
95
+ * docs](https://docs.docker.com/network/#network-drivers) for more details.
55
96
  */
56
97
  readonly driver: pulumi.Output<string>;
57
98
  /**
58
- * Create swarm routing-mesh network.
59
- * Defaults to `false`.
99
+ * Create swarm routing-mesh network. Defaults to `false`.
60
100
  */
61
101
  readonly ingress: pulumi.Output<boolean | undefined>;
62
102
  /**
63
- * Restrict external access to the network.
64
- * Defaults to `false`.
103
+ * Whether the network is internal.
65
104
  */
66
105
  readonly internal: pulumi.Output<boolean>;
67
106
  /**
68
- * See IPAM config below for
69
- * details.
107
+ * The IPAM configuration options
70
108
  */
71
109
  readonly ipamConfigs: pulumi.Output<outputs.NetworkIpamConfig[]>;
72
110
  /**
73
- * Driver used by the custom IP scheme of the
74
- * network.
111
+ * Driver used by the custom IP scheme of the network. Defaults to `default`
75
112
  */
76
113
  readonly ipamDriver: pulumi.Output<string | undefined>;
77
114
  /**
78
- * Enable IPv6 networking.
79
- * Defaults to `false`.
115
+ * Enable IPv6 networking. Defaults to `false`.
80
116
  */
81
117
  readonly ipv6: pulumi.Output<boolean | undefined>;
82
118
  /**
83
- * See Labels below for details.
119
+ * User-defined key/value metadata
84
120
  */
85
121
  readonly labels: pulumi.Output<outputs.NetworkLabel[] | undefined>;
86
122
  /**
@@ -88,12 +124,15 @@ export declare class Network extends pulumi.CustomResource {
88
124
  */
89
125
  readonly name: pulumi.Output<string>;
90
126
  /**
91
- * Network specific options to be used by
92
- * the drivers.
127
+ * Only available with bridge networks. See [bridge options
128
+ * docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
93
129
  */
94
130
  readonly options: pulumi.Output<{
95
131
  [key: string]: any;
96
132
  }>;
133
+ /**
134
+ * Scope of the network. One of `swarm`, `global`, or `local`.
135
+ */
97
136
  readonly scope: pulumi.Output<string>;
98
137
  /**
99
138
  * Create a Network resource with the given unique name, arguments, and options.
@@ -110,46 +149,39 @@ export declare class Network extends pulumi.CustomResource {
110
149
  export interface NetworkState {
111
150
  /**
112
151
  * Enable manual container attachment to the network.
113
- * Defaults to `false`.
114
152
  */
115
153
  readonly attachable?: pulumi.Input<boolean>;
116
154
  /**
117
- * Requests daemon to check for networks
118
- * with same name.
155
+ * Requests daemon to check for networks with same name.
119
156
  */
120
157
  readonly checkDuplicate?: pulumi.Input<boolean>;
121
158
  /**
122
- * Name of the network driver to use. Defaults to
123
- * `bridge` driver.
159
+ * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network
160
+ * docs](https://docs.docker.com/network/#network-drivers) for more details.
124
161
  */
125
162
  readonly driver?: pulumi.Input<string>;
126
163
  /**
127
- * Create swarm routing-mesh network.
128
- * Defaults to `false`.
164
+ * Create swarm routing-mesh network. Defaults to `false`.
129
165
  */
130
166
  readonly ingress?: pulumi.Input<boolean>;
131
167
  /**
132
- * Restrict external access to the network.
133
- * Defaults to `false`.
168
+ * Whether the network is internal.
134
169
  */
135
170
  readonly internal?: pulumi.Input<boolean>;
136
171
  /**
137
- * See IPAM config below for
138
- * details.
172
+ * The IPAM configuration options
139
173
  */
140
174
  readonly ipamConfigs?: pulumi.Input<pulumi.Input<inputs.NetworkIpamConfig>[]>;
141
175
  /**
142
- * Driver used by the custom IP scheme of the
143
- * network.
176
+ * Driver used by the custom IP scheme of the network. Defaults to `default`
144
177
  */
145
178
  readonly ipamDriver?: pulumi.Input<string>;
146
179
  /**
147
- * Enable IPv6 networking.
148
- * Defaults to `false`.
180
+ * Enable IPv6 networking. Defaults to `false`.
149
181
  */
150
182
  readonly ipv6?: pulumi.Input<boolean>;
151
183
  /**
152
- * See Labels below for details.
184
+ * User-defined key/value metadata
153
185
  */
154
186
  readonly labels?: pulumi.Input<pulumi.Input<inputs.NetworkLabel>[]>;
155
187
  /**
@@ -157,12 +189,15 @@ export interface NetworkState {
157
189
  */
158
190
  readonly name?: pulumi.Input<string>;
159
191
  /**
160
- * Network specific options to be used by
161
- * the drivers.
192
+ * Only available with bridge networks. See [bridge options
193
+ * docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
162
194
  */
163
195
  readonly options?: pulumi.Input<{
164
196
  [key: string]: any;
165
197
  }>;
198
+ /**
199
+ * Scope of the network. One of `swarm`, `global`, or `local`.
200
+ */
166
201
  readonly scope?: pulumi.Input<string>;
167
202
  }
168
203
  /**
@@ -171,46 +206,39 @@ export interface NetworkState {
171
206
  export interface NetworkArgs {
172
207
  /**
173
208
  * Enable manual container attachment to the network.
174
- * Defaults to `false`.
175
209
  */
176
210
  readonly attachable?: pulumi.Input<boolean>;
177
211
  /**
178
- * Requests daemon to check for networks
179
- * with same name.
212
+ * Requests daemon to check for networks with same name.
180
213
  */
181
214
  readonly checkDuplicate?: pulumi.Input<boolean>;
182
215
  /**
183
- * Name of the network driver to use. Defaults to
184
- * `bridge` driver.
216
+ * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network
217
+ * docs](https://docs.docker.com/network/#network-drivers) for more details.
185
218
  */
186
219
  readonly driver?: pulumi.Input<string>;
187
220
  /**
188
- * Create swarm routing-mesh network.
189
- * Defaults to `false`.
221
+ * Create swarm routing-mesh network. Defaults to `false`.
190
222
  */
191
223
  readonly ingress?: pulumi.Input<boolean>;
192
224
  /**
193
- * Restrict external access to the network.
194
- * Defaults to `false`.
225
+ * Whether the network is internal.
195
226
  */
196
227
  readonly internal?: pulumi.Input<boolean>;
197
228
  /**
198
- * See IPAM config below for
199
- * details.
229
+ * The IPAM configuration options
200
230
  */
201
231
  readonly ipamConfigs?: pulumi.Input<pulumi.Input<inputs.NetworkIpamConfig>[]>;
202
232
  /**
203
- * Driver used by the custom IP scheme of the
204
- * network.
233
+ * Driver used by the custom IP scheme of the network. Defaults to `default`
205
234
  */
206
235
  readonly ipamDriver?: pulumi.Input<string>;
207
236
  /**
208
- * Enable IPv6 networking.
209
- * Defaults to `false`.
237
+ * Enable IPv6 networking. Defaults to `false`.
210
238
  */
211
239
  readonly ipv6?: pulumi.Input<boolean>;
212
240
  /**
213
- * See Labels below for details.
241
+ * User-defined key/value metadata
214
242
  */
215
243
  readonly labels?: pulumi.Input<pulumi.Input<inputs.NetworkLabel>[]>;
216
244
  /**
@@ -218,8 +246,8 @@ export interface NetworkArgs {
218
246
  */
219
247
  readonly name?: pulumi.Input<string>;
220
248
  /**
221
- * Network specific options to be used by
222
- * the drivers.
249
+ * Only available with bridge networks. See [bridge options
250
+ * docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
223
251
  */
224
252
  readonly options?: pulumi.Input<{
225
253
  [key: string]: any;
package/network.js CHANGED
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
6
6
  const utilities = require("./utilities");
7
7
  /**
8
- * Manages a Docker Network. This can be used alongside
9
- * [docker\_container](https://www.terraform.io/docs/providers/docker/r/container.html)
10
- * to create virtual networks within the docker environment.
8
+ * <!-- Bug: Type and Name are switched -->
9
+ * `docker.Network` provides details about a specific Docker Network.
11
10
  *
12
11
  * ## Example Usage
13
12
  *
@@ -15,16 +14,60 @@ const utilities = require("./utilities");
15
14
  * import * as pulumi from "@pulumi/pulumi";
16
15
  * import * as docker from "@pulumi/docker";
17
16
  *
18
- * // Create a new docker network
19
17
  * const privateNetwork = new docker.Network("private_network", {});
20
18
  * ```
21
19
  *
20
+ * <!-- schema generated by tfplugindocs -->
21
+ * ## Schema
22
+ *
23
+ * ### Required
24
+ *
25
+ * - **name** (String) The name of the Docker network.
26
+ *
27
+ * ### Optional
28
+ *
29
+ * - **attachable** (Boolean) Enable manual container attachment to the network.
30
+ * - **check_duplicate** (Boolean) Requests daemon to check for networks with same name.
31
+ * - **driver** (String) The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
32
+ * - **id** (String) The ID of this resource.
33
+ * - **ingress** (Boolean) Create swarm routing-mesh network. Defaults to `false`.
34
+ * - **internal** (Boolean) Whether the network is internal.
35
+ * - **ipam_config** (Block Set) The IPAM configuration options (see below for nested schema)
36
+ * - **ipam_driver** (String) Driver used by the custom IP scheme of the network. Defaults to `default`
37
+ * - **ipv6** (Boolean) Enable IPv6 networking. Defaults to `false`.
38
+ * - **labels** (Block Set) User-defined key/value metadata (see below for nested schema)
39
+ * - **options** (Map of String) Only available with bridge networks. See [bridge options docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
40
+ *
41
+ * ### Read-Only
42
+ *
43
+ * - **scope** (String) Scope of the network. One of `swarm`, `global`, or `local`.
44
+ *
45
+ * <a id="nestedblock--ipam_config"></a>
46
+ * ### Nested Schema for `ipamConfig`
47
+ *
48
+ * Optional:
49
+ *
50
+ * - **aux_address** (Map of String) Auxiliary IPv4 or IPv6 addresses used by Network driver
51
+ * - **gateway** (String) The IP address of the gateway
52
+ * - **ip_range** (String) The ip range in CIDR form
53
+ * - **subnet** (String) The subnet in CIDR form
54
+ *
55
+ * <a id="nestedblock--labels"></a>
56
+ * ### Nested Schema for `labels`
57
+ *
58
+ * Required:
59
+ *
60
+ * - **label** (String) Name of the label
61
+ * - **value** (String) Value of the label
62
+ *
22
63
  * ## Import
23
64
  *
24
- * Docker networks can be imported using the long id, e.g. for a network with the short id `p73jelnrme5f`
65
+ * ### Example Assuming you created a `network` as follows #!/bin/bash docker network create foo # prints the long ID 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73 you provide the definition for the resource as follows terraform resource "docker_network" "foo" {
66
+ *
67
+ * name = "foo" } then the import command is as follows #!/bin/bash
25
68
  *
26
69
  * ```sh
27
- * $ pulumi import docker:index/network:Network foo $(docker network inspect -f {{.ID}} p73)
70
+ * $ pulumi import docker:index/network:Network foo 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
28
71
  * ```
29
72
  */
30
73
  class Network extends pulumi.CustomResource {
package/network.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA2F9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,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AC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BA4HC;AA9GG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/docker",
3
- "version": "v3.1.0-alpha.1626976245+2073e8aa",
3
+ "version": "v3.1.0",
4
4
  "description": "A Pulumi package for interacting with Docker in Pulumi programs",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource docker v3.1.0-alpha.1626976245+2073e8aa"
14
+ "install": "node scripts/install-pulumi-plugin.js resource docker v3.1.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0",
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/docker",
3
- "version": "v3.1.0-alpha.1626976245+2073e8aa",
3
+ "version": "v3.1.0",
4
4
  "description": "A Pulumi package for interacting with Docker in Pulumi programs",
5
5
  "keywords": [
6
6
  "pulumi",
package/plugin.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
+ * <!-- Bug: Type and Name are switched -->
4
5
  * Manages the lifecycle of a Docker plugin.
5
6
  *
6
7
  * ## Example Usage
@@ -9,13 +10,6 @@ import { input as inputs, output as outputs } from "./types";
9
10
  * import * as pulumi from "@pulumi/pulumi";
10
11
  * import * as docker from "@pulumi/docker";
11
12
  *
12
- * const sample_volume_plugin = new docker.Plugin("sample-volume-plugin", {});
13
- * ```
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as docker from "@pulumi/docker";
18
- *
19
13
  * const sample_volume_plugin = new docker.Plugin("sample-volume-plugin", {
20
14
  * alias: "sample-volume-plugin",
21
15
  * enableTimeout: 60,
@@ -27,12 +21,43 @@ import { input as inputs, output as outputs } from "./types";
27
21
  * });
28
22
  * ```
29
23
  *
24
+ * <!-- schema generated by tfplugindocs -->
25
+ * ## Schema
26
+ *
27
+ * ### Required
28
+ *
29
+ * - **name** (String) Docker Plugin name
30
+ *
31
+ * ### Optional
32
+ *
33
+ * - **alias** (String) Docker Plugin alias
34
+ * - **enable_timeout** (Number) HTTP client timeout to enable the plugin
35
+ * - **enabled** (Boolean) If `true` the plugin is enabled. Defaults to `true`
36
+ * - **env** (Set of String) The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
37
+ * - **force_destroy** (Boolean) If true, then the plugin is destroyed forcibly
38
+ * - **force_disable** (Boolean) If true, then the plugin is disabled forcibly
39
+ * - **grant_all_permissions** (Boolean) If true, grant all permissions necessary to run the plugin
40
+ * - **grant_permissions** (Block Set) Grant specific permissions only (see below for nested schema)
41
+ * - **id** (String) The ID of this resource.
42
+ *
43
+ * ### Read-Only
44
+ *
45
+ * - **plugin_reference** (String) Docker Plugin Reference
46
+ *
47
+ * <a id="nestedblock--grant_permissions"></a>
48
+ * ### Nested Schema for `grantPermissions`
49
+ *
50
+ * Required:
51
+ *
52
+ * - **name** (String) The name of the permission
53
+ * - **value** (Set of String) The value of the permission
54
+ *
30
55
  * ## Import
31
56
  *
32
- * Docker plugins can be imported using the long id, e.g. for a plugin `tiborvass/sample-volume-plugin:latest`
57
+ * Import is supported using the following syntax#!/bin/bash
33
58
  *
34
59
  * ```sh
35
- * $ pulumi import docker:index/plugin:Plugin sample-volume-plugin $(docker plugin inspect -f "{{.ID}}" tiborvass/sample-volume-plugin:latest)
60
+ * $ pulumi import docker:index/plugin:Plugin sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)"
36
61
  * ```
37
62
  */
38
63
  export declare class Plugin extends pulumi.CustomResource {
@@ -52,35 +77,35 @@ export declare class Plugin extends pulumi.CustomResource {
52
77
  */
53
78
  static isInstance(obj: any): obj is Plugin;
54
79
  /**
55
- * The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
80
+ * Docker Plugin alias
56
81
  */
57
82
  readonly alias: pulumi.Output<string>;
58
83
  /**
59
- * HTTP client timeout to enable the plugin.
84
+ * HTTP client timeout to enable the plugin
60
85
  */
61
86
  readonly enableTimeout: pulumi.Output<number | undefined>;
62
87
  /**
63
- * If true, the plugin is enabled. The default value is `true`.
88
+ * If `true` the plugin is enabled. Defaults to `true`
64
89
  */
65
90
  readonly enabled: pulumi.Output<boolean | undefined>;
66
91
  /**
67
- * . The environment variables.
92
+ * The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
68
93
  */
69
94
  readonly envs: pulumi.Output<string[]>;
70
95
  /**
71
- * If true, the plugin is removed forcibly when the plugin is removed.
96
+ * If true, then the plugin is destroyed forcibly
72
97
  */
73
98
  readonly forceDestroy: pulumi.Output<boolean | undefined>;
74
99
  /**
75
- * If true, then the plugin is disabled forcibly when the plugin is disabled.
100
+ * If true, then the plugin is disabled forcibly
76
101
  */
77
102
  readonly forceDisable: pulumi.Output<boolean | undefined>;
78
103
  /**
79
- * If true, grant all permissions necessary to run the plugin. This attribute conflicts with `grantPermissions`.
104
+ * If true, grant all permissions necessary to run the plugin
80
105
  */
81
106
  readonly grantAllPermissions: pulumi.Output<boolean | undefined>;
82
107
  /**
83
- * grant permissions necessary to run the plugin. This attribute conflicts with `grantAllPermissions`. See grantPermissions below for details.
108
+ * Grant specific permissions only
84
109
  */
85
110
  readonly grantPermissions: pulumi.Output<outputs.PluginGrantPermission[] | undefined>;
86
111
  /**
@@ -88,7 +113,7 @@ export declare class Plugin extends pulumi.CustomResource {
88
113
  */
89
114
  readonly name: pulumi.Output<string>;
90
115
  /**
91
- * (string) The plugin reference.
116
+ * Docker Plugin Reference
92
117
  */
93
118
  readonly pluginReference: pulumi.Output<string>;
94
119
  /**
@@ -105,35 +130,35 @@ export declare class Plugin extends pulumi.CustomResource {
105
130
  */
106
131
  export interface PluginState {
107
132
  /**
108
- * The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
133
+ * Docker Plugin alias
109
134
  */
110
135
  readonly alias?: pulumi.Input<string>;
111
136
  /**
112
- * HTTP client timeout to enable the plugin.
137
+ * HTTP client timeout to enable the plugin
113
138
  */
114
139
  readonly enableTimeout?: pulumi.Input<number>;
115
140
  /**
116
- * If true, the plugin is enabled. The default value is `true`.
141
+ * If `true` the plugin is enabled. Defaults to `true`
117
142
  */
118
143
  readonly enabled?: pulumi.Input<boolean>;
119
144
  /**
120
- * . The environment variables.
145
+ * The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
121
146
  */
122
147
  readonly envs?: pulumi.Input<pulumi.Input<string>[]>;
123
148
  /**
124
- * If true, the plugin is removed forcibly when the plugin is removed.
149
+ * If true, then the plugin is destroyed forcibly
125
150
  */
126
151
  readonly forceDestroy?: pulumi.Input<boolean>;
127
152
  /**
128
- * If true, then the plugin is disabled forcibly when the plugin is disabled.
153
+ * If true, then the plugin is disabled forcibly
129
154
  */
130
155
  readonly forceDisable?: pulumi.Input<boolean>;
131
156
  /**
132
- * If true, grant all permissions necessary to run the plugin. This attribute conflicts with `grantPermissions`.
157
+ * If true, grant all permissions necessary to run the plugin
133
158
  */
134
159
  readonly grantAllPermissions?: pulumi.Input<boolean>;
135
160
  /**
136
- * grant permissions necessary to run the plugin. This attribute conflicts with `grantAllPermissions`. See grantPermissions below for details.
161
+ * Grant specific permissions only
137
162
  */
138
163
  readonly grantPermissions?: pulumi.Input<pulumi.Input<inputs.PluginGrantPermission>[]>;
139
164
  /**
@@ -141,7 +166,7 @@ export interface PluginState {
141
166
  */
142
167
  readonly name?: pulumi.Input<string>;
143
168
  /**
144
- * (string) The plugin reference.
169
+ * Docker Plugin Reference
145
170
  */
146
171
  readonly pluginReference?: pulumi.Input<string>;
147
172
  }
@@ -150,35 +175,35 @@ export interface PluginState {
150
175
  */
151
176
  export interface PluginArgs {
152
177
  /**
153
- * The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
178
+ * Docker Plugin alias
154
179
  */
155
180
  readonly alias?: pulumi.Input<string>;
156
181
  /**
157
- * HTTP client timeout to enable the plugin.
182
+ * HTTP client timeout to enable the plugin
158
183
  */
159
184
  readonly enableTimeout?: pulumi.Input<number>;
160
185
  /**
161
- * If true, the plugin is enabled. The default value is `true`.
186
+ * If `true` the plugin is enabled. Defaults to `true`
162
187
  */
163
188
  readonly enabled?: pulumi.Input<boolean>;
164
189
  /**
165
- * . The environment variables.
190
+ * The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
166
191
  */
167
192
  readonly envs?: pulumi.Input<pulumi.Input<string>[]>;
168
193
  /**
169
- * If true, the plugin is removed forcibly when the plugin is removed.
194
+ * If true, then the plugin is destroyed forcibly
170
195
  */
171
196
  readonly forceDestroy?: pulumi.Input<boolean>;
172
197
  /**
173
- * If true, then the plugin is disabled forcibly when the plugin is disabled.
198
+ * If true, then the plugin is disabled forcibly
174
199
  */
175
200
  readonly forceDisable?: pulumi.Input<boolean>;
176
201
  /**
177
- * If true, grant all permissions necessary to run the plugin. This attribute conflicts with `grantPermissions`.
202
+ * If true, grant all permissions necessary to run the plugin
178
203
  */
179
204
  readonly grantAllPermissions?: pulumi.Input<boolean>;
180
205
  /**
181
- * grant permissions necessary to run the plugin. This attribute conflicts with `grantAllPermissions`. See grantPermissions below for details.
206
+ * Grant specific permissions only
182
207
  */
183
208
  readonly grantPermissions?: pulumi.Input<pulumi.Input<inputs.PluginGrantPermission>[]>;
184
209
  /**