pulumi-dnsimple 3.4.3__py3-none-any.whl → 3.5.0__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-dnsimple might be problematic. Click here for more details.

@@ -15,31 +15,27 @@ __all__ = ['LetsEncryptCertificateArgs', 'LetsEncryptCertificate']
15
15
  class LetsEncryptCertificateArgs:
16
16
  def __init__(__self__, *,
17
17
  auto_renew: pulumi.Input[bool],
18
+ domain_id: pulumi.Input[str],
18
19
  name: pulumi.Input[str],
19
- contact_id: Optional[pulumi.Input[int]] = None,
20
- domain_id: Optional[pulumi.Input[str]] = None):
20
+ signature_algorithm: Optional[pulumi.Input[str]] = None):
21
21
  """
22
22
  The set of arguments for constructing a LetsEncryptCertificate resource.
23
- :param pulumi.Input[bool] auto_renew: Set to true if the certificate will auto-renew
24
- :param pulumi.Input[str] name: The certificate name
25
- :param pulumi.Input[int] contact_id: The contact id for the certificate
23
+ :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
26
24
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
25
+ :param pulumi.Input[str] name: The certificate name
26
+ :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
27
27
  """
28
28
  pulumi.set(__self__, "auto_renew", auto_renew)
29
+ pulumi.set(__self__, "domain_id", domain_id)
29
30
  pulumi.set(__self__, "name", name)
30
- if contact_id is not None:
31
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
32
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
33
- if contact_id is not None:
34
- pulumi.set(__self__, "contact_id", contact_id)
35
- if domain_id is not None:
36
- pulumi.set(__self__, "domain_id", domain_id)
31
+ if signature_algorithm is not None:
32
+ pulumi.set(__self__, "signature_algorithm", signature_algorithm)
37
33
 
38
34
  @property
39
35
  @pulumi.getter(name="autoRenew")
40
36
  def auto_renew(self) -> pulumi.Input[bool]:
41
37
  """
42
- Set to true if the certificate will auto-renew
38
+ True if the certificate should auto-renew
43
39
  """
44
40
  return pulumi.get(self, "auto_renew")
45
41
 
@@ -47,6 +43,18 @@ class LetsEncryptCertificateArgs:
47
43
  def auto_renew(self, value: pulumi.Input[bool]):
48
44
  pulumi.set(self, "auto_renew", value)
49
45
 
46
+ @property
47
+ @pulumi.getter(name="domainId")
48
+ def domain_id(self) -> pulumi.Input[str]:
49
+ """
50
+ The domain to be issued the certificate for
51
+ """
52
+ return pulumi.get(self, "domain_id")
53
+
54
+ @domain_id.setter
55
+ def domain_id(self, value: pulumi.Input[str]):
56
+ pulumi.set(self, "domain_id", value)
57
+
50
58
  @property
51
59
  @pulumi.getter
52
60
  def name(self) -> pulumi.Input[str]:
@@ -60,31 +68,16 @@ class LetsEncryptCertificateArgs:
60
68
  pulumi.set(self, "name", value)
61
69
 
62
70
  @property
63
- @pulumi.getter(name="contactId")
64
- def contact_id(self) -> Optional[pulumi.Input[int]]:
65
- """
66
- The contact id for the certificate
67
- """
68
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
69
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
70
-
71
- return pulumi.get(self, "contact_id")
72
-
73
- @contact_id.setter
74
- def contact_id(self, value: Optional[pulumi.Input[int]]):
75
- pulumi.set(self, "contact_id", value)
76
-
77
- @property
78
- @pulumi.getter(name="domainId")
79
- def domain_id(self) -> Optional[pulumi.Input[str]]:
71
+ @pulumi.getter(name="signatureAlgorithm")
72
+ def signature_algorithm(self) -> Optional[pulumi.Input[str]]:
80
73
  """
81
- The domain to be issued the certificate for
74
+ The signature algorithm to use for the certificate
82
75
  """
83
- return pulumi.get(self, "domain_id")
76
+ return pulumi.get(self, "signature_algorithm")
84
77
 
85
- @domain_id.setter
86
- def domain_id(self, value: Optional[pulumi.Input[str]]):
87
- pulumi.set(self, "domain_id", value)
78
+ @signature_algorithm.setter
79
+ def signature_algorithm(self, value: Optional[pulumi.Input[str]]):
80
+ pulumi.set(self, "signature_algorithm", value)
88
81
 
89
82
 
90
83
  @pulumi.input_type
@@ -92,45 +85,45 @@ class _LetsEncryptCertificateState:
92
85
  def __init__(__self__, *,
93
86
  authority_identifier: Optional[pulumi.Input[str]] = None,
94
87
  auto_renew: Optional[pulumi.Input[bool]] = None,
95
- contact_id: Optional[pulumi.Input[int]] = None,
96
88
  created_at: Optional[pulumi.Input[str]] = None,
97
89
  csr: Optional[pulumi.Input[str]] = None,
98
90
  domain_id: Optional[pulumi.Input[str]] = None,
99
- expires_on: Optional[pulumi.Input[str]] = None,
91
+ expires_at: Optional[pulumi.Input[str]] = None,
100
92
  name: Optional[pulumi.Input[str]] = None,
93
+ signature_algorithm: Optional[pulumi.Input[str]] = None,
101
94
  state: Optional[pulumi.Input[str]] = None,
102
95
  updated_at: Optional[pulumi.Input[str]] = None,
103
96
  years: Optional[pulumi.Input[int]] = None):
104
97
  """
105
98
  Input properties used for looking up and filtering LetsEncryptCertificate resources.
106
99
  :param pulumi.Input[str] authority_identifier: The identifying certification authority (CA)
107
- :param pulumi.Input[bool] auto_renew: Set to true if the certificate will auto-renew
108
- :param pulumi.Input[int] contact_id: The contact id for the certificate
100
+ :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
101
+ :param pulumi.Input[str] created_at: The datetime the certificate was created
109
102
  :param pulumi.Input[str] csr: The certificate signing request
110
103
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
104
+ :param pulumi.Input[str] expires_at: The datetime the certificate will expire
111
105
  :param pulumi.Input[str] name: The certificate name
106
+ :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
112
107
  :param pulumi.Input[str] state: The state of the certificate
108
+ :param pulumi.Input[str] updated_at: The datetime the certificate was last updated
113
109
  :param pulumi.Input[int] years: The years the certificate will last
114
110
  """
115
111
  if authority_identifier is not None:
116
112
  pulumi.set(__self__, "authority_identifier", authority_identifier)
117
113
  if auto_renew is not None:
118
114
  pulumi.set(__self__, "auto_renew", auto_renew)
119
- if contact_id is not None:
120
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
121
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
122
- if contact_id is not None:
123
- pulumi.set(__self__, "contact_id", contact_id)
124
115
  if created_at is not None:
125
116
  pulumi.set(__self__, "created_at", created_at)
126
117
  if csr is not None:
127
118
  pulumi.set(__self__, "csr", csr)
128
119
  if domain_id is not None:
129
120
  pulumi.set(__self__, "domain_id", domain_id)
130
- if expires_on is not None:
131
- pulumi.set(__self__, "expires_on", expires_on)
121
+ if expires_at is not None:
122
+ pulumi.set(__self__, "expires_at", expires_at)
132
123
  if name is not None:
133
124
  pulumi.set(__self__, "name", name)
125
+ if signature_algorithm is not None:
126
+ pulumi.set(__self__, "signature_algorithm", signature_algorithm)
134
127
  if state is not None:
135
128
  pulumi.set(__self__, "state", state)
136
129
  if updated_at is not None:
@@ -154,7 +147,7 @@ class _LetsEncryptCertificateState:
154
147
  @pulumi.getter(name="autoRenew")
155
148
  def auto_renew(self) -> Optional[pulumi.Input[bool]]:
156
149
  """
157
- Set to true if the certificate will auto-renew
150
+ True if the certificate should auto-renew
158
151
  """
159
152
  return pulumi.get(self, "auto_renew")
160
153
 
@@ -162,24 +155,12 @@ class _LetsEncryptCertificateState:
162
155
  def auto_renew(self, value: Optional[pulumi.Input[bool]]):
163
156
  pulumi.set(self, "auto_renew", value)
164
157
 
165
- @property
166
- @pulumi.getter(name="contactId")
167
- def contact_id(self) -> Optional[pulumi.Input[int]]:
168
- """
169
- The contact id for the certificate
170
- """
171
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
172
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
173
-
174
- return pulumi.get(self, "contact_id")
175
-
176
- @contact_id.setter
177
- def contact_id(self, value: Optional[pulumi.Input[int]]):
178
- pulumi.set(self, "contact_id", value)
179
-
180
158
  @property
181
159
  @pulumi.getter(name="createdAt")
182
160
  def created_at(self) -> Optional[pulumi.Input[str]]:
161
+ """
162
+ The datetime the certificate was created
163
+ """
183
164
  return pulumi.get(self, "created_at")
184
165
 
185
166
  @created_at.setter
@@ -211,13 +192,16 @@ class _LetsEncryptCertificateState:
211
192
  pulumi.set(self, "domain_id", value)
212
193
 
213
194
  @property
214
- @pulumi.getter(name="expiresOn")
215
- def expires_on(self) -> Optional[pulumi.Input[str]]:
216
- return pulumi.get(self, "expires_on")
195
+ @pulumi.getter(name="expiresAt")
196
+ def expires_at(self) -> Optional[pulumi.Input[str]]:
197
+ """
198
+ The datetime the certificate will expire
199
+ """
200
+ return pulumi.get(self, "expires_at")
217
201
 
218
- @expires_on.setter
219
- def expires_on(self, value: Optional[pulumi.Input[str]]):
220
- pulumi.set(self, "expires_on", value)
202
+ @expires_at.setter
203
+ def expires_at(self, value: Optional[pulumi.Input[str]]):
204
+ pulumi.set(self, "expires_at", value)
221
205
 
222
206
  @property
223
207
  @pulumi.getter
@@ -231,6 +215,18 @@ class _LetsEncryptCertificateState:
231
215
  def name(self, value: Optional[pulumi.Input[str]]):
232
216
  pulumi.set(self, "name", value)
233
217
 
218
+ @property
219
+ @pulumi.getter(name="signatureAlgorithm")
220
+ def signature_algorithm(self) -> Optional[pulumi.Input[str]]:
221
+ """
222
+ The signature algorithm to use for the certificate
223
+ """
224
+ return pulumi.get(self, "signature_algorithm")
225
+
226
+ @signature_algorithm.setter
227
+ def signature_algorithm(self, value: Optional[pulumi.Input[str]]):
228
+ pulumi.set(self, "signature_algorithm", value)
229
+
234
230
  @property
235
231
  @pulumi.getter
236
232
  def state(self) -> Optional[pulumi.Input[str]]:
@@ -246,6 +242,9 @@ class _LetsEncryptCertificateState:
246
242
  @property
247
243
  @pulumi.getter(name="updatedAt")
248
244
  def updated_at(self) -> Optional[pulumi.Input[str]]:
245
+ """
246
+ The datetime the certificate was last updated
247
+ """
249
248
  return pulumi.get(self, "updated_at")
250
249
 
251
250
  @updated_at.setter
@@ -271,9 +270,9 @@ class LetsEncryptCertificate(pulumi.CustomResource):
271
270
  resource_name: str,
272
271
  opts: Optional[pulumi.ResourceOptions] = None,
273
272
  auto_renew: Optional[pulumi.Input[bool]] = None,
274
- contact_id: Optional[pulumi.Input[int]] = None,
275
273
  domain_id: Optional[pulumi.Input[str]] = None,
276
274
  name: Optional[pulumi.Input[str]] = None,
275
+ signature_algorithm: Optional[pulumi.Input[str]] = None,
277
276
  __props__=None):
278
277
  """
279
278
  Provides a DNSimple Let's Encrypt certificate resource.
@@ -292,10 +291,10 @@ class LetsEncryptCertificate(pulumi.CustomResource):
292
291
 
293
292
  :param str resource_name: The name of the resource.
294
293
  :param pulumi.ResourceOptions opts: Options for the resource.
295
- :param pulumi.Input[bool] auto_renew: Set to true if the certificate will auto-renew
296
- :param pulumi.Input[int] contact_id: The contact id for the certificate
294
+ :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
297
295
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
298
296
  :param pulumi.Input[str] name: The certificate name
297
+ :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
299
298
  """
300
299
  ...
301
300
  @overload
@@ -334,9 +333,9 @@ class LetsEncryptCertificate(pulumi.CustomResource):
334
333
  resource_name: str,
335
334
  opts: Optional[pulumi.ResourceOptions] = None,
336
335
  auto_renew: Optional[pulumi.Input[bool]] = None,
337
- contact_id: Optional[pulumi.Input[int]] = None,
338
336
  domain_id: Optional[pulumi.Input[str]] = None,
339
337
  name: Optional[pulumi.Input[str]] = None,
338
+ signature_algorithm: Optional[pulumi.Input[str]] = None,
340
339
  __props__=None):
341
340
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
342
341
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -349,15 +348,17 @@ class LetsEncryptCertificate(pulumi.CustomResource):
349
348
  if auto_renew is None and not opts.urn:
350
349
  raise TypeError("Missing required property 'auto_renew'")
351
350
  __props__.__dict__["auto_renew"] = auto_renew
352
- __props__.__dict__["contact_id"] = contact_id
351
+ if domain_id is None and not opts.urn:
352
+ raise TypeError("Missing required property 'domain_id'")
353
353
  __props__.__dict__["domain_id"] = domain_id
354
354
  if name is None and not opts.urn:
355
355
  raise TypeError("Missing required property 'name'")
356
356
  __props__.__dict__["name"] = name
357
+ __props__.__dict__["signature_algorithm"] = signature_algorithm
357
358
  __props__.__dict__["authority_identifier"] = None
358
359
  __props__.__dict__["created_at"] = None
359
360
  __props__.__dict__["csr"] = None
360
- __props__.__dict__["expires_on"] = None
361
+ __props__.__dict__["expires_at"] = None
361
362
  __props__.__dict__["state"] = None
362
363
  __props__.__dict__["updated_at"] = None
363
364
  __props__.__dict__["years"] = None
@@ -373,12 +374,12 @@ class LetsEncryptCertificate(pulumi.CustomResource):
373
374
  opts: Optional[pulumi.ResourceOptions] = None,
374
375
  authority_identifier: Optional[pulumi.Input[str]] = None,
375
376
  auto_renew: Optional[pulumi.Input[bool]] = None,
376
- contact_id: Optional[pulumi.Input[int]] = None,
377
377
  created_at: Optional[pulumi.Input[str]] = None,
378
378
  csr: Optional[pulumi.Input[str]] = None,
379
379
  domain_id: Optional[pulumi.Input[str]] = None,
380
- expires_on: Optional[pulumi.Input[str]] = None,
380
+ expires_at: Optional[pulumi.Input[str]] = None,
381
381
  name: Optional[pulumi.Input[str]] = None,
382
+ signature_algorithm: Optional[pulumi.Input[str]] = None,
382
383
  state: Optional[pulumi.Input[str]] = None,
383
384
  updated_at: Optional[pulumi.Input[str]] = None,
384
385
  years: Optional[pulumi.Input[int]] = None) -> 'LetsEncryptCertificate':
@@ -390,12 +391,15 @@ class LetsEncryptCertificate(pulumi.CustomResource):
390
391
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
391
392
  :param pulumi.ResourceOptions opts: Options for the resource.
392
393
  :param pulumi.Input[str] authority_identifier: The identifying certification authority (CA)
393
- :param pulumi.Input[bool] auto_renew: Set to true if the certificate will auto-renew
394
- :param pulumi.Input[int] contact_id: The contact id for the certificate
394
+ :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
395
+ :param pulumi.Input[str] created_at: The datetime the certificate was created
395
396
  :param pulumi.Input[str] csr: The certificate signing request
396
397
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
398
+ :param pulumi.Input[str] expires_at: The datetime the certificate will expire
397
399
  :param pulumi.Input[str] name: The certificate name
400
+ :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
398
401
  :param pulumi.Input[str] state: The state of the certificate
402
+ :param pulumi.Input[str] updated_at: The datetime the certificate was last updated
399
403
  :param pulumi.Input[int] years: The years the certificate will last
400
404
  """
401
405
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -404,12 +408,12 @@ class LetsEncryptCertificate(pulumi.CustomResource):
404
408
 
405
409
  __props__.__dict__["authority_identifier"] = authority_identifier
406
410
  __props__.__dict__["auto_renew"] = auto_renew
407
- __props__.__dict__["contact_id"] = contact_id
408
411
  __props__.__dict__["created_at"] = created_at
409
412
  __props__.__dict__["csr"] = csr
410
413
  __props__.__dict__["domain_id"] = domain_id
411
- __props__.__dict__["expires_on"] = expires_on
414
+ __props__.__dict__["expires_at"] = expires_at
412
415
  __props__.__dict__["name"] = name
416
+ __props__.__dict__["signature_algorithm"] = signature_algorithm
413
417
  __props__.__dict__["state"] = state
414
418
  __props__.__dict__["updated_at"] = updated_at
415
419
  __props__.__dict__["years"] = years
@@ -427,24 +431,16 @@ class LetsEncryptCertificate(pulumi.CustomResource):
427
431
  @pulumi.getter(name="autoRenew")
428
432
  def auto_renew(self) -> pulumi.Output[bool]:
429
433
  """
430
- Set to true if the certificate will auto-renew
434
+ True if the certificate should auto-renew
431
435
  """
432
436
  return pulumi.get(self, "auto_renew")
433
437
 
434
- @property
435
- @pulumi.getter(name="contactId")
436
- def contact_id(self) -> pulumi.Output[Optional[int]]:
437
- """
438
- The contact id for the certificate
439
- """
440
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
441
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
442
-
443
- return pulumi.get(self, "contact_id")
444
-
445
438
  @property
446
439
  @pulumi.getter(name="createdAt")
447
440
  def created_at(self) -> pulumi.Output[str]:
441
+ """
442
+ The datetime the certificate was created
443
+ """
448
444
  return pulumi.get(self, "created_at")
449
445
 
450
446
  @property
@@ -457,16 +453,19 @@ class LetsEncryptCertificate(pulumi.CustomResource):
457
453
 
458
454
  @property
459
455
  @pulumi.getter(name="domainId")
460
- def domain_id(self) -> pulumi.Output[Optional[str]]:
456
+ def domain_id(self) -> pulumi.Output[str]:
461
457
  """
462
458
  The domain to be issued the certificate for
463
459
  """
464
460
  return pulumi.get(self, "domain_id")
465
461
 
466
462
  @property
467
- @pulumi.getter(name="expiresOn")
468
- def expires_on(self) -> pulumi.Output[str]:
469
- return pulumi.get(self, "expires_on")
463
+ @pulumi.getter(name="expiresAt")
464
+ def expires_at(self) -> pulumi.Output[str]:
465
+ """
466
+ The datetime the certificate will expire
467
+ """
468
+ return pulumi.get(self, "expires_at")
470
469
 
471
470
  @property
472
471
  @pulumi.getter
@@ -476,6 +475,14 @@ class LetsEncryptCertificate(pulumi.CustomResource):
476
475
  """
477
476
  return pulumi.get(self, "name")
478
477
 
478
+ @property
479
+ @pulumi.getter(name="signatureAlgorithm")
480
+ def signature_algorithm(self) -> pulumi.Output[Optional[str]]:
481
+ """
482
+ The signature algorithm to use for the certificate
483
+ """
484
+ return pulumi.get(self, "signature_algorithm")
485
+
479
486
  @property
480
487
  @pulumi.getter
481
488
  def state(self) -> pulumi.Output[str]:
@@ -487,6 +494,9 @@ class LetsEncryptCertificate(pulumi.CustomResource):
487
494
  @property
488
495
  @pulumi.getter(name="updatedAt")
489
496
  def updated_at(self) -> pulumi.Output[str]:
497
+ """
498
+ The datetime the certificate was last updated
499
+ """
490
500
  return pulumi.get(self, "updated_at")
491
501
 
492
502
  @property
@@ -14,52 +14,42 @@ __all__ = ['ProviderArgs', 'Provider']
14
14
  @pulumi.input_type
15
15
  class ProviderArgs:
16
16
  def __init__(__self__, *,
17
- account: pulumi.Input[str],
18
- token: pulumi.Input[str],
17
+ account: Optional[pulumi.Input[str]] = None,
19
18
  prefetch: Optional[pulumi.Input[bool]] = None,
20
19
  sandbox: Optional[pulumi.Input[bool]] = None,
20
+ token: Optional[pulumi.Input[str]] = None,
21
21
  user_agent: Optional[pulumi.Input[str]] = None):
22
22
  """
23
23
  The set of arguments for constructing a Provider resource.
24
24
  :param pulumi.Input[str] account: The account for API operations.
25
- :param pulumi.Input[str] token: The API v2 token for API operations.
26
25
  :param pulumi.Input[bool] prefetch: Flag to enable the prefetch of zone records.
27
26
  :param pulumi.Input[bool] sandbox: Flag to enable the sandbox API.
27
+ :param pulumi.Input[str] token: The API v2 token for API operations.
28
28
  :param pulumi.Input[str] user_agent: Custom string to append to the user agent used for sending HTTP requests to the API.
29
29
  """
30
- pulumi.set(__self__, "account", account)
31
- pulumi.set(__self__, "token", token)
30
+ if account is not None:
31
+ pulumi.set(__self__, "account", account)
32
32
  if prefetch is not None:
33
33
  pulumi.set(__self__, "prefetch", prefetch)
34
34
  if sandbox is not None:
35
35
  pulumi.set(__self__, "sandbox", sandbox)
36
+ if token is not None:
37
+ pulumi.set(__self__, "token", token)
36
38
  if user_agent is not None:
37
39
  pulumi.set(__self__, "user_agent", user_agent)
38
40
 
39
41
  @property
40
42
  @pulumi.getter
41
- def account(self) -> pulumi.Input[str]:
43
+ def account(self) -> Optional[pulumi.Input[str]]:
42
44
  """
43
45
  The account for API operations.
44
46
  """
45
47
  return pulumi.get(self, "account")
46
48
 
47
49
  @account.setter
48
- def account(self, value: pulumi.Input[str]):
50
+ def account(self, value: Optional[pulumi.Input[str]]):
49
51
  pulumi.set(self, "account", value)
50
52
 
51
- @property
52
- @pulumi.getter
53
- def token(self) -> pulumi.Input[str]:
54
- """
55
- The API v2 token for API operations.
56
- """
57
- return pulumi.get(self, "token")
58
-
59
- @token.setter
60
- def token(self, value: pulumi.Input[str]):
61
- pulumi.set(self, "token", value)
62
-
63
53
  @property
64
54
  @pulumi.getter
65
55
  def prefetch(self) -> Optional[pulumi.Input[bool]]:
@@ -84,6 +74,18 @@ class ProviderArgs:
84
74
  def sandbox(self, value: Optional[pulumi.Input[bool]]):
85
75
  pulumi.set(self, "sandbox", value)
86
76
 
77
+ @property
78
+ @pulumi.getter
79
+ def token(self) -> Optional[pulumi.Input[str]]:
80
+ """
81
+ The API v2 token for API operations.
82
+ """
83
+ return pulumi.get(self, "token")
84
+
85
+ @token.setter
86
+ def token(self, value: Optional[pulumi.Input[str]]):
87
+ pulumi.set(self, "token", value)
88
+
87
89
  @property
88
90
  @pulumi.getter(name="userAgent")
89
91
  def user_agent(self) -> Optional[pulumi.Input[str]]:
@@ -126,7 +128,7 @@ class Provider(pulumi.ProviderResource):
126
128
  @overload
127
129
  def __init__(__self__,
128
130
  resource_name: str,
129
- args: ProviderArgs,
131
+ args: Optional[ProviderArgs] = None,
130
132
  opts: Optional[pulumi.ResourceOptions] = None):
131
133
  """
132
134
  The provider type for the dnsimple package. By default, resources use package-wide configuration
@@ -163,13 +165,9 @@ class Provider(pulumi.ProviderResource):
163
165
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
164
166
  __props__ = ProviderArgs.__new__(ProviderArgs)
165
167
 
166
- if account is None and not opts.urn:
167
- raise TypeError("Missing required property 'account'")
168
168
  __props__.__dict__["account"] = account
169
169
  __props__.__dict__["prefetch"] = pulumi.Output.from_input(prefetch).apply(pulumi.runtime.to_json) if prefetch is not None else None
170
170
  __props__.__dict__["sandbox"] = pulumi.Output.from_input(sandbox).apply(pulumi.runtime.to_json) if sandbox is not None else None
171
- if token is None and not opts.urn:
172
- raise TypeError("Missing required property 'token'")
173
171
  __props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
174
172
  __props__.__dict__["user_agent"] = user_agent
175
173
  secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["token"])
@@ -182,7 +180,7 @@ class Provider(pulumi.ProviderResource):
182
180
 
183
181
  @property
184
182
  @pulumi.getter
185
- def account(self) -> pulumi.Output[str]:
183
+ def account(self) -> pulumi.Output[Optional[str]]:
186
184
  """
187
185
  The account for API operations.
188
186
  """
@@ -190,7 +188,7 @@ class Provider(pulumi.ProviderResource):
190
188
 
191
189
  @property
192
190
  @pulumi.getter
193
- def token(self) -> pulumi.Output[str]:
191
+ def token(self) -> pulumi.Output[Optional[str]]:
194
192
  """
195
193
  The API v2 token for API operations.
196
194
  """
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "dnsimple",
4
- "version": "3.4.3"
4
+ "version": "3.5.0"
5
5
  }