pulumi-dnsimple 5.1.0a1768541715__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.
@@ -0,0 +1,353 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._enums import *
18
+
19
+ __all__ = [
20
+ 'RegisteredDomainDomainRegistration',
21
+ 'RegisteredDomainRegistrantChange',
22
+ 'RegisteredDomainTimeouts',
23
+ 'GetCertificateTimeoutsResult',
24
+ 'GetRegistrantChangeCheckExtendedAttributeResult',
25
+ 'GetRegistrantChangeCheckExtendedAttributeOptionResult',
26
+ ]
27
+
28
+ @pulumi.output_type
29
+ class RegisteredDomainDomainRegistration(dict):
30
+ def __init__(__self__, *,
31
+ id: Optional[_builtins.int] = None,
32
+ period: Optional[_builtins.int] = None,
33
+ state: Optional[_builtins.str] = None):
34
+ """
35
+ :param _builtins.int id: (Number) - The ID of the domain registration.
36
+ :param _builtins.int period: (Number) - The registration period in years.
37
+ :param _builtins.str state: (String) - The state of the domain registration.
38
+ """
39
+ if id is not None:
40
+ pulumi.set(__self__, "id", id)
41
+ if period is not None:
42
+ pulumi.set(__self__, "period", period)
43
+ if state is not None:
44
+ pulumi.set(__self__, "state", state)
45
+
46
+ @_builtins.property
47
+ @pulumi.getter
48
+ def id(self) -> Optional[_builtins.int]:
49
+ """
50
+ (Number) - The ID of the domain registration.
51
+ """
52
+ return pulumi.get(self, "id")
53
+
54
+ @_builtins.property
55
+ @pulumi.getter
56
+ def period(self) -> Optional[_builtins.int]:
57
+ """
58
+ (Number) - The registration period in years.
59
+ """
60
+ return pulumi.get(self, "period")
61
+
62
+ @_builtins.property
63
+ @pulumi.getter
64
+ def state(self) -> Optional[_builtins.str]:
65
+ """
66
+ (String) - The state of the domain registration.
67
+ """
68
+ return pulumi.get(self, "state")
69
+
70
+
71
+ @pulumi.output_type
72
+ class RegisteredDomainRegistrantChange(dict):
73
+ @staticmethod
74
+ def __key_warning(key: str):
75
+ suggest = None
76
+ if key == "accountId":
77
+ suggest = "account_id"
78
+ elif key == "contactId":
79
+ suggest = "contact_id"
80
+ elif key == "domainId":
81
+ suggest = "domain_id"
82
+ elif key == "extendedAttributes":
83
+ suggest = "extended_attributes"
84
+ elif key == "irtLockLiftedBy":
85
+ suggest = "irt_lock_lifted_by"
86
+ elif key == "registryOwnerChange":
87
+ suggest = "registry_owner_change"
88
+
89
+ if suggest:
90
+ pulumi.log.warn(f"Key '{key}' not found in RegisteredDomainRegistrantChange. Access the value via the '{suggest}' property getter instead.")
91
+
92
+ def __getitem__(self, key: str) -> Any:
93
+ RegisteredDomainRegistrantChange.__key_warning(key)
94
+ return super().__getitem__(key)
95
+
96
+ def get(self, key: str, default = None) -> Any:
97
+ RegisteredDomainRegistrantChange.__key_warning(key)
98
+ return super().get(key, default)
99
+
100
+ def __init__(__self__, *,
101
+ account_id: Optional[_builtins.int] = None,
102
+ contact_id: Optional[_builtins.int] = None,
103
+ domain_id: Optional[_builtins.str] = None,
104
+ extended_attributes: Optional[Mapping[str, _builtins.str]] = None,
105
+ id: Optional[_builtins.int] = None,
106
+ irt_lock_lifted_by: Optional[_builtins.str] = None,
107
+ registry_owner_change: Optional[_builtins.bool] = None,
108
+ state: Optional[_builtins.str] = None):
109
+ """
110
+ :param _builtins.int account_id: DNSimple Account ID to which the registrant change belongs to
111
+ :param _builtins.int contact_id: The ID of the contact to be used for the domain registration. The contact ID can be changed after the domain has been registered. The change will result in a new registrant change, which may result in a [60-day lock](https://support.dnsimple.com/articles/icann-60-day-lock-registrant-change/).
112
+ :param _builtins.str domain_id: DNSimple domain ID for which the registrant change is being performed
113
+ :param Mapping[str, _builtins.str] extended_attributes: A map of extended attributes to be set for the domain registration. To see if there are any required extended attributes for any TLD use our [Lists the TLD Extended Attributes API](https://developer.dnsimple.com/v2/tlds/#getTldExtendedAttributes). The values provided in the `extended_attributes` will also be sent when a registrant change is initiated as part of changing the `contact_id`.
114
+ :param _builtins.int id: (Number) - The ID of the domain registration.
115
+ :param _builtins.str irt_lock_lifted_by: Date when the registrant change lock was lifted for the domain
116
+ :param _builtins.bool registry_owner_change: True if the registrant change will result in a registry owner change
117
+ :param _builtins.str state: (String) - The state of the domain registration.
118
+ """
119
+ if account_id is not None:
120
+ pulumi.set(__self__, "account_id", account_id)
121
+ if contact_id is not None:
122
+ pulumi.set(__self__, "contact_id", contact_id)
123
+ if domain_id is not None:
124
+ pulumi.set(__self__, "domain_id", domain_id)
125
+ if extended_attributes is not None:
126
+ pulumi.set(__self__, "extended_attributes", extended_attributes)
127
+ if id is not None:
128
+ pulumi.set(__self__, "id", id)
129
+ if irt_lock_lifted_by is not None:
130
+ pulumi.set(__self__, "irt_lock_lifted_by", irt_lock_lifted_by)
131
+ if registry_owner_change is not None:
132
+ pulumi.set(__self__, "registry_owner_change", registry_owner_change)
133
+ if state is not None:
134
+ pulumi.set(__self__, "state", state)
135
+
136
+ @_builtins.property
137
+ @pulumi.getter(name="accountId")
138
+ def account_id(self) -> Optional[_builtins.int]:
139
+ """
140
+ DNSimple Account ID to which the registrant change belongs to
141
+ """
142
+ return pulumi.get(self, "account_id")
143
+
144
+ @_builtins.property
145
+ @pulumi.getter(name="contactId")
146
+ def contact_id(self) -> Optional[_builtins.int]:
147
+ """
148
+ The ID of the contact to be used for the domain registration. The contact ID can be changed after the domain has been registered. The change will result in a new registrant change, which may result in a [60-day lock](https://support.dnsimple.com/articles/icann-60-day-lock-registrant-change/).
149
+ """
150
+ return pulumi.get(self, "contact_id")
151
+
152
+ @_builtins.property
153
+ @pulumi.getter(name="domainId")
154
+ def domain_id(self) -> Optional[_builtins.str]:
155
+ """
156
+ DNSimple domain ID for which the registrant change is being performed
157
+ """
158
+ return pulumi.get(self, "domain_id")
159
+
160
+ @_builtins.property
161
+ @pulumi.getter(name="extendedAttributes")
162
+ def extended_attributes(self) -> Optional[Mapping[str, _builtins.str]]:
163
+ """
164
+ A map of extended attributes to be set for the domain registration. To see if there are any required extended attributes for any TLD use our [Lists the TLD Extended Attributes API](https://developer.dnsimple.com/v2/tlds/#getTldExtendedAttributes). The values provided in the `extended_attributes` will also be sent when a registrant change is initiated as part of changing the `contact_id`.
165
+ """
166
+ return pulumi.get(self, "extended_attributes")
167
+
168
+ @_builtins.property
169
+ @pulumi.getter
170
+ def id(self) -> Optional[_builtins.int]:
171
+ """
172
+ (Number) - The ID of the domain registration.
173
+ """
174
+ return pulumi.get(self, "id")
175
+
176
+ @_builtins.property
177
+ @pulumi.getter(name="irtLockLiftedBy")
178
+ def irt_lock_lifted_by(self) -> Optional[_builtins.str]:
179
+ """
180
+ Date when the registrant change lock was lifted for the domain
181
+ """
182
+ return pulumi.get(self, "irt_lock_lifted_by")
183
+
184
+ @_builtins.property
185
+ @pulumi.getter(name="registryOwnerChange")
186
+ def registry_owner_change(self) -> Optional[_builtins.bool]:
187
+ """
188
+ True if the registrant change will result in a registry owner change
189
+ """
190
+ return pulumi.get(self, "registry_owner_change")
191
+
192
+ @_builtins.property
193
+ @pulumi.getter
194
+ def state(self) -> Optional[_builtins.str]:
195
+ """
196
+ (String) - The state of the domain registration.
197
+ """
198
+ return pulumi.get(self, "state")
199
+
200
+
201
+ @pulumi.output_type
202
+ class RegisteredDomainTimeouts(dict):
203
+ def __init__(__self__, *,
204
+ create: Optional[_builtins.str] = None,
205
+ delete: Optional[_builtins.str] = None,
206
+ update: Optional[_builtins.str] = None):
207
+ """
208
+ :param _builtins.str create: (String) - The timeout for the read operation e.g. `5m`
209
+ :param _builtins.str delete: Delete timeout (currently unused).
210
+ :param _builtins.str update: (String) - The timeout for the read operation e.g. `5m`
211
+ """
212
+ if create is not None:
213
+ pulumi.set(__self__, "create", create)
214
+ if delete is not None:
215
+ pulumi.set(__self__, "delete", delete)
216
+ if update is not None:
217
+ pulumi.set(__self__, "update", update)
218
+
219
+ @_builtins.property
220
+ @pulumi.getter
221
+ def create(self) -> Optional[_builtins.str]:
222
+ """
223
+ (String) - The timeout for the read operation e.g. `5m`
224
+ """
225
+ return pulumi.get(self, "create")
226
+
227
+ @_builtins.property
228
+ @pulumi.getter
229
+ def delete(self) -> Optional[_builtins.str]:
230
+ """
231
+ Delete timeout (currently unused).
232
+ """
233
+ return pulumi.get(self, "delete")
234
+
235
+ @_builtins.property
236
+ @pulumi.getter
237
+ def update(self) -> Optional[_builtins.str]:
238
+ """
239
+ (String) - The timeout for the read operation e.g. `5m`
240
+ """
241
+ return pulumi.get(self, "update")
242
+
243
+
244
+ @pulumi.output_type
245
+ class GetCertificateTimeoutsResult(dict):
246
+ def __init__(__self__, *,
247
+ read: Optional[_builtins.str] = None):
248
+ """
249
+ :param _builtins.str read: (String) - The timeout for the read operation, e.g., `5m`.
250
+ """
251
+ if read is not None:
252
+ pulumi.set(__self__, "read", read)
253
+
254
+ @_builtins.property
255
+ @pulumi.getter
256
+ def read(self) -> Optional[_builtins.str]:
257
+ """
258
+ (String) - The timeout for the read operation, e.g., `5m`.
259
+ """
260
+ return pulumi.get(self, "read")
261
+
262
+
263
+ @pulumi.output_type
264
+ class GetRegistrantChangeCheckExtendedAttributeResult(dict):
265
+ def __init__(__self__, *,
266
+ description: _builtins.str,
267
+ name: _builtins.str,
268
+ options: Sequence['outputs.GetRegistrantChangeCheckExtendedAttributeOptionResult'],
269
+ required: _builtins.bool):
270
+ """
271
+ :param _builtins.str description: (String) - The description of the option.
272
+ :param _builtins.str name: (String) - The name of the extended attribute, e.g., `x-au-registrant-id-type`.
273
+ :param Sequence['GetRegistrantChangeCheckExtendedAttributeOptionArgs'] options: (List) - A list of options for the extended attribute. (see below for nested schema)
274
+ :param _builtins.bool required: (Boolean) - Whether the extended attribute is required.
275
+ """
276
+ pulumi.set(__self__, "description", description)
277
+ pulumi.set(__self__, "name", name)
278
+ pulumi.set(__self__, "options", options)
279
+ pulumi.set(__self__, "required", required)
280
+
281
+ @_builtins.property
282
+ @pulumi.getter
283
+ def description(self) -> _builtins.str:
284
+ """
285
+ (String) - The description of the option.
286
+ """
287
+ return pulumi.get(self, "description")
288
+
289
+ @_builtins.property
290
+ @pulumi.getter
291
+ def name(self) -> _builtins.str:
292
+ """
293
+ (String) - The name of the extended attribute, e.g., `x-au-registrant-id-type`.
294
+ """
295
+ return pulumi.get(self, "name")
296
+
297
+ @_builtins.property
298
+ @pulumi.getter
299
+ def options(self) -> Sequence['outputs.GetRegistrantChangeCheckExtendedAttributeOptionResult']:
300
+ """
301
+ (List) - A list of options for the extended attribute. (see below for nested schema)
302
+ """
303
+ return pulumi.get(self, "options")
304
+
305
+ @_builtins.property
306
+ @pulumi.getter
307
+ def required(self) -> _builtins.bool:
308
+ """
309
+ (Boolean) - Whether the extended attribute is required.
310
+ """
311
+ return pulumi.get(self, "required")
312
+
313
+
314
+ @pulumi.output_type
315
+ class GetRegistrantChangeCheckExtendedAttributeOptionResult(dict):
316
+ def __init__(__self__, *,
317
+ description: _builtins.str,
318
+ title: _builtins.str,
319
+ value: _builtins.str):
320
+ """
321
+ :param _builtins.str description: (String) - The description of the option.
322
+ :param _builtins.str title: (String) - The human-readable title of the option, e.g., `Australian Company Number (ACN)`.
323
+ :param _builtins.str value: (String) - The value of the option.
324
+ """
325
+ pulumi.set(__self__, "description", description)
326
+ pulumi.set(__self__, "title", title)
327
+ pulumi.set(__self__, "value", value)
328
+
329
+ @_builtins.property
330
+ @pulumi.getter
331
+ def description(self) -> _builtins.str:
332
+ """
333
+ (String) - The description of the option.
334
+ """
335
+ return pulumi.get(self, "description")
336
+
337
+ @_builtins.property
338
+ @pulumi.getter
339
+ def title(self) -> _builtins.str:
340
+ """
341
+ (String) - The human-readable title of the option, e.g., `Australian Company Number (ACN)`.
342
+ """
343
+ return pulumi.get(self, "title")
344
+
345
+ @_builtins.property
346
+ @pulumi.getter
347
+ def value(self) -> _builtins.str:
348
+ """
349
+ (String) - The value of the option.
350
+ """
351
+ return pulumi.get(self, "value")
352
+
353
+
@@ -0,0 +1,258 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['ProviderArgs', 'Provider']
18
+
19
+ @pulumi.input_type
20
+ class ProviderArgs:
21
+ def __init__(__self__, *,
22
+ account: Optional[pulumi.Input[_builtins.str]] = None,
23
+ debug_transport_file: Optional[pulumi.Input[_builtins.str]] = None,
24
+ prefetch: Optional[pulumi.Input[_builtins.bool]] = None,
25
+ sandbox: Optional[pulumi.Input[_builtins.bool]] = None,
26
+ token: Optional[pulumi.Input[_builtins.str]] = None,
27
+ user_agent: Optional[pulumi.Input[_builtins.str]] = None):
28
+ """
29
+ The set of arguments for constructing a Provider resource.
30
+ :param pulumi.Input[_builtins.str] account: The account for API operations.
31
+ :param pulumi.Input[_builtins.str] debug_transport_file: File path to enable HTTP request/response debugging. When set, all HTTP requests and responses will be logged to this file.
32
+ :param pulumi.Input[_builtins.bool] prefetch: Flag to enable the prefetch of zone records.
33
+ :param pulumi.Input[_builtins.bool] sandbox: Flag to enable the sandbox API.
34
+ :param pulumi.Input[_builtins.str] token: The API v2 token for API operations.
35
+ :param pulumi.Input[_builtins.str] user_agent: Custom string to append to the user agent used for sending HTTP requests to the API.
36
+ """
37
+ if account is not None:
38
+ pulumi.set(__self__, "account", account)
39
+ if debug_transport_file is not None:
40
+ pulumi.set(__self__, "debug_transport_file", debug_transport_file)
41
+ if prefetch is not None:
42
+ pulumi.set(__self__, "prefetch", prefetch)
43
+ if sandbox is not None:
44
+ pulumi.set(__self__, "sandbox", sandbox)
45
+ if token is not None:
46
+ pulumi.set(__self__, "token", token)
47
+ if user_agent is not None:
48
+ pulumi.set(__self__, "user_agent", user_agent)
49
+
50
+ @_builtins.property
51
+ @pulumi.getter
52
+ def account(self) -> Optional[pulumi.Input[_builtins.str]]:
53
+ """
54
+ The account for API operations.
55
+ """
56
+ return pulumi.get(self, "account")
57
+
58
+ @account.setter
59
+ def account(self, value: Optional[pulumi.Input[_builtins.str]]):
60
+ pulumi.set(self, "account", value)
61
+
62
+ @_builtins.property
63
+ @pulumi.getter(name="debugTransportFile")
64
+ def debug_transport_file(self) -> Optional[pulumi.Input[_builtins.str]]:
65
+ """
66
+ File path to enable HTTP request/response debugging. When set, all HTTP requests and responses will be logged to this file.
67
+ """
68
+ return pulumi.get(self, "debug_transport_file")
69
+
70
+ @debug_transport_file.setter
71
+ def debug_transport_file(self, value: Optional[pulumi.Input[_builtins.str]]):
72
+ pulumi.set(self, "debug_transport_file", value)
73
+
74
+ @_builtins.property
75
+ @pulumi.getter
76
+ def prefetch(self) -> Optional[pulumi.Input[_builtins.bool]]:
77
+ """
78
+ Flag to enable the prefetch of zone records.
79
+ """
80
+ return pulumi.get(self, "prefetch")
81
+
82
+ @prefetch.setter
83
+ def prefetch(self, value: Optional[pulumi.Input[_builtins.bool]]):
84
+ pulumi.set(self, "prefetch", value)
85
+
86
+ @_builtins.property
87
+ @pulumi.getter
88
+ def sandbox(self) -> Optional[pulumi.Input[_builtins.bool]]:
89
+ """
90
+ Flag to enable the sandbox API.
91
+ """
92
+ return pulumi.get(self, "sandbox")
93
+
94
+ @sandbox.setter
95
+ def sandbox(self, value: Optional[pulumi.Input[_builtins.bool]]):
96
+ pulumi.set(self, "sandbox", value)
97
+
98
+ @_builtins.property
99
+ @pulumi.getter
100
+ def token(self) -> Optional[pulumi.Input[_builtins.str]]:
101
+ """
102
+ The API v2 token for API operations.
103
+ """
104
+ return pulumi.get(self, "token")
105
+
106
+ @token.setter
107
+ def token(self, value: Optional[pulumi.Input[_builtins.str]]):
108
+ pulumi.set(self, "token", value)
109
+
110
+ @_builtins.property
111
+ @pulumi.getter(name="userAgent")
112
+ def user_agent(self) -> Optional[pulumi.Input[_builtins.str]]:
113
+ """
114
+ Custom string to append to the user agent used for sending HTTP requests to the API.
115
+ """
116
+ return pulumi.get(self, "user_agent")
117
+
118
+ @user_agent.setter
119
+ def user_agent(self, value: Optional[pulumi.Input[_builtins.str]]):
120
+ pulumi.set(self, "user_agent", value)
121
+
122
+
123
+ @pulumi.type_token("pulumi:providers:dnsimple")
124
+ class Provider(pulumi.ProviderResource):
125
+ @overload
126
+ def __init__(__self__,
127
+ resource_name: str,
128
+ opts: Optional[pulumi.ResourceOptions] = None,
129
+ account: Optional[pulumi.Input[_builtins.str]] = None,
130
+ debug_transport_file: Optional[pulumi.Input[_builtins.str]] = None,
131
+ prefetch: Optional[pulumi.Input[_builtins.bool]] = None,
132
+ sandbox: Optional[pulumi.Input[_builtins.bool]] = None,
133
+ token: Optional[pulumi.Input[_builtins.str]] = None,
134
+ user_agent: Optional[pulumi.Input[_builtins.str]] = None,
135
+ __props__=None):
136
+ """
137
+ The provider type for the dnsimple package. By default, resources use package-wide configuration
138
+ settings, however an explicit `Provider` instance may be created and passed during resource
139
+ construction to achieve fine-grained programmatic control over provider settings. See the
140
+ [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
141
+
142
+ :param str resource_name: The name of the resource.
143
+ :param pulumi.ResourceOptions opts: Options for the resource.
144
+ :param pulumi.Input[_builtins.str] account: The account for API operations.
145
+ :param pulumi.Input[_builtins.str] debug_transport_file: File path to enable HTTP request/response debugging. When set, all HTTP requests and responses will be logged to this file.
146
+ :param pulumi.Input[_builtins.bool] prefetch: Flag to enable the prefetch of zone records.
147
+ :param pulumi.Input[_builtins.bool] sandbox: Flag to enable the sandbox API.
148
+ :param pulumi.Input[_builtins.str] token: The API v2 token for API operations.
149
+ :param pulumi.Input[_builtins.str] user_agent: Custom string to append to the user agent used for sending HTTP requests to the API.
150
+ """
151
+ ...
152
+ @overload
153
+ def __init__(__self__,
154
+ resource_name: str,
155
+ args: Optional[ProviderArgs] = None,
156
+ opts: Optional[pulumi.ResourceOptions] = None):
157
+ """
158
+ The provider type for the dnsimple package. By default, resources use package-wide configuration
159
+ settings, however an explicit `Provider` instance may be created and passed during resource
160
+ construction to achieve fine-grained programmatic control over provider settings. See the
161
+ [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
162
+
163
+ :param str resource_name: The name of the resource.
164
+ :param ProviderArgs args: The arguments to use to populate this resource's properties.
165
+ :param pulumi.ResourceOptions opts: Options for the resource.
166
+ """
167
+ ...
168
+ def __init__(__self__, resource_name: str, *args, **kwargs):
169
+ resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs)
170
+ if resource_args is not None:
171
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
172
+ else:
173
+ __self__._internal_init(resource_name, *args, **kwargs)
174
+
175
+ def _internal_init(__self__,
176
+ resource_name: str,
177
+ opts: Optional[pulumi.ResourceOptions] = None,
178
+ account: Optional[pulumi.Input[_builtins.str]] = None,
179
+ debug_transport_file: Optional[pulumi.Input[_builtins.str]] = None,
180
+ prefetch: Optional[pulumi.Input[_builtins.bool]] = None,
181
+ sandbox: Optional[pulumi.Input[_builtins.bool]] = None,
182
+ token: Optional[pulumi.Input[_builtins.str]] = None,
183
+ user_agent: Optional[pulumi.Input[_builtins.str]] = None,
184
+ __props__=None):
185
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
186
+ if not isinstance(opts, pulumi.ResourceOptions):
187
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
188
+ if opts.id is None:
189
+ if __props__ is not None:
190
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
191
+ __props__ = ProviderArgs.__new__(ProviderArgs)
192
+
193
+ __props__.__dict__["account"] = account
194
+ __props__.__dict__["debug_transport_file"] = debug_transport_file
195
+ __props__.__dict__["prefetch"] = pulumi.Output.from_input(prefetch).apply(pulumi.runtime.to_json) if prefetch is not None else None
196
+ __props__.__dict__["sandbox"] = pulumi.Output.from_input(sandbox).apply(pulumi.runtime.to_json) if sandbox is not None else None
197
+ __props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
198
+ __props__.__dict__["user_agent"] = user_agent
199
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["token"])
200
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
201
+ super(Provider, __self__).__init__(
202
+ 'dnsimple',
203
+ resource_name,
204
+ __props__,
205
+ opts)
206
+
207
+ @_builtins.property
208
+ @pulumi.getter
209
+ def account(self) -> pulumi.Output[Optional[_builtins.str]]:
210
+ """
211
+ The account for API operations.
212
+ """
213
+ return pulumi.get(self, "account")
214
+
215
+ @_builtins.property
216
+ @pulumi.getter(name="debugTransportFile")
217
+ def debug_transport_file(self) -> pulumi.Output[Optional[_builtins.str]]:
218
+ """
219
+ File path to enable HTTP request/response debugging. When set, all HTTP requests and responses will be logged to this file.
220
+ """
221
+ return pulumi.get(self, "debug_transport_file")
222
+
223
+ @_builtins.property
224
+ @pulumi.getter
225
+ def token(self) -> pulumi.Output[Optional[_builtins.str]]:
226
+ """
227
+ The API v2 token for API operations.
228
+ """
229
+ return pulumi.get(self, "token")
230
+
231
+ @_builtins.property
232
+ @pulumi.getter(name="userAgent")
233
+ def user_agent(self) -> pulumi.Output[Optional[_builtins.str]]:
234
+ """
235
+ Custom string to append to the user agent used for sending HTTP requests to the API.
236
+ """
237
+ return pulumi.get(self, "user_agent")
238
+
239
+ @pulumi.output_type
240
+ class TerraformConfigResult:
241
+ def __init__(__self__, result=None):
242
+ if result and not isinstance(result, dict):
243
+ raise TypeError("Expected argument 'result' to be a dict")
244
+ pulumi.set(__self__, "result", result)
245
+
246
+ @_builtins.property
247
+ @pulumi.getter
248
+ def result(self) -> Mapping[str, Any]:
249
+ return pulumi.get(self, "result")
250
+
251
+ def terraform_config(__self__) -> pulumi.Output['Provider.TerraformConfigResult']:
252
+ """
253
+ This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
254
+ """
255
+ __args__ = dict()
256
+ __args__['__self__'] = __self__
257
+ return pulumi.runtime.call('pulumi:providers:dnsimple/terraformConfig', __args__, res=__self__, typ=Provider.TerraformConfigResult)
258
+
@@ -0,0 +1,5 @@
1
+ {
2
+ "resource": true,
3
+ "name": "dnsimple",
4
+ "version": "5.1.0-alpha.1768541715"
5
+ }
File without changes