pulumi-azure-native 2.19.1a1701158701__py3-none-any.whl → 2.19.1a1701217948__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-azure-native might be problematic. Click here for more details.
- pulumi_azure_native/__init__.py +24 -0
- pulumi_azure_native/dataprotection/__init__.py +3 -0
- pulumi_azure_native/dataprotection/backup_instance.py +3 -3
- pulumi_azure_native/dataprotection/backup_policy.py +3 -3
- pulumi_azure_native/dataprotection/backup_vault.py +3 -3
- pulumi_azure_native/dataprotection/dpp_resource_guard_proxy.py +3 -3
- pulumi_azure_native/dataprotection/get_backup_instance.py +2 -2
- pulumi_azure_native/dataprotection/get_backup_policy.py +2 -2
- pulumi_azure_native/dataprotection/get_backup_vault.py +2 -2
- pulumi_azure_native/dataprotection/get_dpp_resource_guard_proxy.py +2 -2
- pulumi_azure_native/dataprotection/get_resource_guard.py +2 -2
- pulumi_azure_native/dataprotection/resource_guard.py +3 -3
- pulumi_azure_native/dataprotection/v20221101preview/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20230101/backup_instance.py +1 -1
- pulumi_azure_native/dataprotection/v20230101/backup_policy.py +1 -1
- pulumi_azure_native/dataprotection/v20230101/backup_vault.py +1 -1
- pulumi_azure_native/dataprotection/v20230101/dpp_resource_guard_proxy.py +1 -1
- pulumi_azure_native/dataprotection/v20230101/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20230401preview/backup_instance.py +1 -1
- pulumi_azure_native/dataprotection/v20230401preview/backup_policy.py +1 -1
- pulumi_azure_native/dataprotection/v20230401preview/backup_vault.py +1 -1
- pulumi_azure_native/dataprotection/v20230401preview/dpp_resource_guard_proxy.py +1 -1
- pulumi_azure_native/dataprotection/v20230401preview/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20230501/backup_instance.py +1 -1
- pulumi_azure_native/dataprotection/v20230501/backup_policy.py +1 -1
- pulumi_azure_native/dataprotection/v20230501/backup_vault.py +1 -1
- pulumi_azure_native/dataprotection/v20230501/dpp_resource_guard_proxy.py +1 -1
- pulumi_azure_native/dataprotection/v20230501/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20230601preview/backup_instance.py +1 -1
- pulumi_azure_native/dataprotection/v20230601preview/backup_policy.py +1 -1
- pulumi_azure_native/dataprotection/v20230601preview/backup_vault.py +1 -1
- pulumi_azure_native/dataprotection/v20230601preview/dpp_resource_guard_proxy.py +1 -1
- pulumi_azure_native/dataprotection/v20230601preview/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20230801/backup_instance.py +1 -1
- pulumi_azure_native/dataprotection/v20230801/backup_policy.py +1 -1
- pulumi_azure_native/dataprotection/v20230801/backup_vault.py +1 -1
- pulumi_azure_native/dataprotection/v20230801/dpp_resource_guard_proxy.py +1 -1
- pulumi_azure_native/dataprotection/v20230801/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20230801preview/backup_instance.py +1 -1
- pulumi_azure_native/dataprotection/v20230801preview/backup_policy.py +1 -1
- pulumi_azure_native/dataprotection/v20230801preview/backup_vault.py +1 -1
- pulumi_azure_native/dataprotection/v20230801preview/dpp_resource_guard_proxy.py +1 -1
- pulumi_azure_native/dataprotection/v20230801preview/resource_guard.py +1 -1
- pulumi_azure_native/dataprotection/v20231101/__init__.py +20 -0
- pulumi_azure_native/dataprotection/v20231101/_enums.py +163 -0
- pulumi_azure_native/dataprotection/v20231101/_inputs.py +2399 -0
- pulumi_azure_native/dataprotection/v20231101/backup_instance.py +245 -0
- pulumi_azure_native/dataprotection/v20231101/backup_policy.py +216 -0
- pulumi_azure_native/dataprotection/v20231101/backup_vault.py +312 -0
- pulumi_azure_native/dataprotection/v20231101/dpp_resource_guard_proxy.py +215 -0
- pulumi_azure_native/dataprotection/v20231101/get_backup_instance.py +149 -0
- pulumi_azure_native/dataprotection/v20231101/get_backup_policy.py +134 -0
- pulumi_azure_native/dataprotection/v20231101/get_backup_vault.py +183 -0
- pulumi_azure_native/dataprotection/v20231101/get_dpp_resource_guard_proxy.py +136 -0
- pulumi_azure_native/dataprotection/v20231101/get_resource_guard.py +165 -0
- pulumi_azure_native/dataprotection/v20231101/outputs.py +3662 -0
- pulumi_azure_native/dataprotection/v20231101/resource_guard.py +279 -0
- pulumi_azure_native/hybridcontainerservice/v20231115preview/outputs.py +119 -120
- pulumi_azure_native/notificationhubs/__init__.py +3 -0
- pulumi_azure_native/notificationhubs/get_namespace.py +2 -2
- pulumi_azure_native/notificationhubs/get_namespace_authorization_rule.py +2 -2
- pulumi_azure_native/notificationhubs/get_namespace_pns_credentials.py +2 -2
- pulumi_azure_native/notificationhubs/get_notification_hub.py +2 -2
- pulumi_azure_native/notificationhubs/get_notification_hub_authorization_rule.py +2 -2
- pulumi_azure_native/notificationhubs/get_notification_hub_pns_credentials.py +2 -2
- pulumi_azure_native/notificationhubs/get_private_endpoint_connection.py +2 -2
- pulumi_azure_native/notificationhubs/list_namespace_keys.py +2 -2
- pulumi_azure_native/notificationhubs/list_notification_hub_keys.py +2 -2
- pulumi_azure_native/notificationhubs/namespace.py +3 -3
- pulumi_azure_native/notificationhubs/namespace_authorization_rule.py +3 -3
- pulumi_azure_native/notificationhubs/notification_hub.py +3 -3
- pulumi_azure_native/notificationhubs/notification_hub_authorization_rule.py +3 -3
- pulumi_azure_native/notificationhubs/private_endpoint_connection.py +3 -3
- pulumi_azure_native/notificationhubs/v20170401/namespace.py +1 -1
- pulumi_azure_native/notificationhubs/v20170401/namespace_authorization_rule.py +1 -1
- pulumi_azure_native/notificationhubs/v20170401/notification_hub.py +1 -1
- pulumi_azure_native/notificationhubs/v20170401/notification_hub_authorization_rule.py +1 -1
- pulumi_azure_native/notificationhubs/v20230101preview/namespace.py +1 -1
- pulumi_azure_native/notificationhubs/v20230101preview/namespace_authorization_rule.py +1 -1
- pulumi_azure_native/notificationhubs/v20230101preview/notification_hub.py +1 -1
- pulumi_azure_native/notificationhubs/v20230101preview/notification_hub_authorization_rule.py +1 -1
- pulumi_azure_native/notificationhubs/v20230101preview/private_endpoint_connection.py +1 -1
- pulumi_azure_native/notificationhubs/v20230901/namespace.py +1 -1
- pulumi_azure_native/notificationhubs/v20230901/namespace_authorization_rule.py +1 -1
- pulumi_azure_native/notificationhubs/v20230901/notification_hub.py +1 -1
- pulumi_azure_native/notificationhubs/v20230901/notification_hub_authorization_rule.py +1 -1
- pulumi_azure_native/notificationhubs/v20230901/private_endpoint_connection.py +1 -1
- pulumi_azure_native/notificationhubs/v20231001preview/__init__.py +24 -0
- pulumi_azure_native/notificationhubs/v20231001preview/_enums.py +121 -0
- pulumi_azure_native/notificationhubs/v20231001preview/_inputs.py +1638 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_namespace.py +170 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_namespace_authorization_rule.py +162 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_namespace_pns_credentials.py +160 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_notification_hub.py +175 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_notification_hub_authorization_rule.py +167 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_notification_hub_pns_credentials.py +165 -0
- pulumi_azure_native/notificationhubs/v20231001preview/get_private_endpoint_connection.py +136 -0
- pulumi_azure_native/notificationhubs/v20231001preview/list_namespace_keys.py +136 -0
- pulumi_azure_native/notificationhubs/v20231001preview/list_notification_hub_keys.py +141 -0
- pulumi_azure_native/notificationhubs/v20231001preview/namespace.py +283 -0
- pulumi_azure_native/notificationhubs/v20231001preview/namespace_authorization_rule.py +274 -0
- pulumi_azure_native/notificationhubs/v20231001preview/notification_hub.py +303 -0
- pulumi_azure_native/notificationhubs/v20231001preview/notification_hub_authorization_rule.py +295 -0
- pulumi_azure_native/notificationhubs/v20231001preview/outputs.py +2248 -0
- pulumi_azure_native/notificationhubs/v20231001preview/private_endpoint_connection.py +216 -0
- {pulumi_azure_native-2.19.1a1701158701.dist-info → pulumi_azure_native-2.19.1a1701217948.dist-info}/METADATA +1 -1
- {pulumi_azure_native-2.19.1a1701158701.dist-info → pulumi_azure_native-2.19.1a1701217948.dist-info}/RECORD +109 -77
- {pulumi_azure_native-2.19.1a1701158701.dist-info → pulumi_azure_native-2.19.1a1701217948.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.19.1a1701158701.dist-info → pulumi_azure_native-2.19.1a1701217948.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,245 @@
|
|
|
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 copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from ... import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._enums import *
|
|
13
|
+
from ._inputs import *
|
|
14
|
+
|
|
15
|
+
__all__ = ['BackupInstanceInitArgs', 'BackupInstance']
|
|
16
|
+
|
|
17
|
+
@pulumi.input_type
|
|
18
|
+
class BackupInstanceInitArgs:
|
|
19
|
+
def __init__(__self__, *,
|
|
20
|
+
resource_group_name: pulumi.Input[str],
|
|
21
|
+
vault_name: pulumi.Input[str],
|
|
22
|
+
backup_instance_name: Optional[pulumi.Input[str]] = None,
|
|
23
|
+
properties: Optional[pulumi.Input['BackupInstanceArgs']] = None,
|
|
24
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a BackupInstance resource.
|
|
27
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
28
|
+
:param pulumi.Input[str] vault_name: The name of the backup vault.
|
|
29
|
+
:param pulumi.Input[str] backup_instance_name: The name of the backup instance.
|
|
30
|
+
:param pulumi.Input['BackupInstanceArgs'] properties: BackupInstanceResource properties
|
|
31
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Proxy Resource tags.
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "resource_group_name", resource_group_name)
|
|
34
|
+
pulumi.set(__self__, "vault_name", vault_name)
|
|
35
|
+
if backup_instance_name is not None:
|
|
36
|
+
pulumi.set(__self__, "backup_instance_name", backup_instance_name)
|
|
37
|
+
if properties is not None:
|
|
38
|
+
pulumi.set(__self__, "properties", properties)
|
|
39
|
+
if tags is not None:
|
|
40
|
+
pulumi.set(__self__, "tags", tags)
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
@pulumi.getter(name="resourceGroupName")
|
|
44
|
+
def resource_group_name(self) -> pulumi.Input[str]:
|
|
45
|
+
"""
|
|
46
|
+
The name of the resource group. The name is case insensitive.
|
|
47
|
+
"""
|
|
48
|
+
return pulumi.get(self, "resource_group_name")
|
|
49
|
+
|
|
50
|
+
@resource_group_name.setter
|
|
51
|
+
def resource_group_name(self, value: pulumi.Input[str]):
|
|
52
|
+
pulumi.set(self, "resource_group_name", value)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
@pulumi.getter(name="vaultName")
|
|
56
|
+
def vault_name(self) -> pulumi.Input[str]:
|
|
57
|
+
"""
|
|
58
|
+
The name of the backup vault.
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "vault_name")
|
|
61
|
+
|
|
62
|
+
@vault_name.setter
|
|
63
|
+
def vault_name(self, value: pulumi.Input[str]):
|
|
64
|
+
pulumi.set(self, "vault_name", value)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter(name="backupInstanceName")
|
|
68
|
+
def backup_instance_name(self) -> Optional[pulumi.Input[str]]:
|
|
69
|
+
"""
|
|
70
|
+
The name of the backup instance.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "backup_instance_name")
|
|
73
|
+
|
|
74
|
+
@backup_instance_name.setter
|
|
75
|
+
def backup_instance_name(self, value: Optional[pulumi.Input[str]]):
|
|
76
|
+
pulumi.set(self, "backup_instance_name", value)
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter
|
|
80
|
+
def properties(self) -> Optional[pulumi.Input['BackupInstanceArgs']]:
|
|
81
|
+
"""
|
|
82
|
+
BackupInstanceResource properties
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "properties")
|
|
85
|
+
|
|
86
|
+
@properties.setter
|
|
87
|
+
def properties(self, value: Optional[pulumi.Input['BackupInstanceArgs']]):
|
|
88
|
+
pulumi.set(self, "properties", value)
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter
|
|
92
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
93
|
+
"""
|
|
94
|
+
Proxy Resource tags.
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "tags")
|
|
97
|
+
|
|
98
|
+
@tags.setter
|
|
99
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
100
|
+
pulumi.set(self, "tags", value)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class BackupInstance(pulumi.CustomResource):
|
|
104
|
+
@overload
|
|
105
|
+
def __init__(__self__,
|
|
106
|
+
resource_name: str,
|
|
107
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
108
|
+
backup_instance_name: Optional[pulumi.Input[str]] = None,
|
|
109
|
+
properties: Optional[pulumi.Input[pulumi.InputType['BackupInstanceArgs']]] = None,
|
|
110
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
111
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
112
|
+
vault_name: Optional[pulumi.Input[str]] = None,
|
|
113
|
+
__props__=None):
|
|
114
|
+
"""
|
|
115
|
+
BackupInstance Resource
|
|
116
|
+
|
|
117
|
+
:param str resource_name: The name of the resource.
|
|
118
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
119
|
+
:param pulumi.Input[str] backup_instance_name: The name of the backup instance.
|
|
120
|
+
:param pulumi.Input[pulumi.InputType['BackupInstanceArgs']] properties: BackupInstanceResource properties
|
|
121
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
122
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Proxy Resource tags.
|
|
123
|
+
:param pulumi.Input[str] vault_name: The name of the backup vault.
|
|
124
|
+
"""
|
|
125
|
+
...
|
|
126
|
+
@overload
|
|
127
|
+
def __init__(__self__,
|
|
128
|
+
resource_name: str,
|
|
129
|
+
args: BackupInstanceInitArgs,
|
|
130
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
131
|
+
"""
|
|
132
|
+
BackupInstance Resource
|
|
133
|
+
|
|
134
|
+
:param str resource_name: The name of the resource.
|
|
135
|
+
:param BackupInstanceInitArgs args: The arguments to use to populate this resource's properties.
|
|
136
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
137
|
+
"""
|
|
138
|
+
...
|
|
139
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
140
|
+
resource_args, opts = _utilities.get_resource_args_opts(BackupInstanceInitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
141
|
+
if resource_args is not None:
|
|
142
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
143
|
+
else:
|
|
144
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
145
|
+
|
|
146
|
+
def _internal_init(__self__,
|
|
147
|
+
resource_name: str,
|
|
148
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
149
|
+
backup_instance_name: Optional[pulumi.Input[str]] = None,
|
|
150
|
+
properties: Optional[pulumi.Input[pulumi.InputType['BackupInstanceArgs']]] = None,
|
|
151
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
152
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
153
|
+
vault_name: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
__props__=None):
|
|
155
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
156
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
157
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
158
|
+
if opts.id is None:
|
|
159
|
+
if __props__ is not None:
|
|
160
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
161
|
+
__props__ = BackupInstanceInitArgs.__new__(BackupInstanceInitArgs)
|
|
162
|
+
|
|
163
|
+
__props__.__dict__["backup_instance_name"] = backup_instance_name
|
|
164
|
+
__props__.__dict__["properties"] = properties
|
|
165
|
+
if resource_group_name is None and not opts.urn:
|
|
166
|
+
raise TypeError("Missing required property 'resource_group_name'")
|
|
167
|
+
__props__.__dict__["resource_group_name"] = resource_group_name
|
|
168
|
+
__props__.__dict__["tags"] = tags
|
|
169
|
+
if vault_name is None and not opts.urn:
|
|
170
|
+
raise TypeError("Missing required property 'vault_name'")
|
|
171
|
+
__props__.__dict__["vault_name"] = vault_name
|
|
172
|
+
__props__.__dict__["name"] = None
|
|
173
|
+
__props__.__dict__["system_data"] = None
|
|
174
|
+
__props__.__dict__["type"] = None
|
|
175
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dataprotection:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20210101:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20210201preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20210601preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20210701:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20211001preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20211201preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220101:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220201preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220301:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220331preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220401:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220501:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20220901preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20221001preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20221101preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20221201:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20230101:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20230401preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20230501:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20230601preview:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20230801:BackupInstance"), pulumi.Alias(type_="azure-native:dataprotection/v20230801preview:BackupInstance")])
|
|
176
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
177
|
+
super(BackupInstance, __self__).__init__(
|
|
178
|
+
'azure-native:dataprotection/v20231101:BackupInstance',
|
|
179
|
+
resource_name,
|
|
180
|
+
__props__,
|
|
181
|
+
opts)
|
|
182
|
+
|
|
183
|
+
@staticmethod
|
|
184
|
+
def get(resource_name: str,
|
|
185
|
+
id: pulumi.Input[str],
|
|
186
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'BackupInstance':
|
|
187
|
+
"""
|
|
188
|
+
Get an existing BackupInstance resource's state with the given name, id, and optional extra
|
|
189
|
+
properties used to qualify the lookup.
|
|
190
|
+
|
|
191
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
192
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
193
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
194
|
+
"""
|
|
195
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
196
|
+
|
|
197
|
+
__props__ = BackupInstanceInitArgs.__new__(BackupInstanceInitArgs)
|
|
198
|
+
|
|
199
|
+
__props__.__dict__["name"] = None
|
|
200
|
+
__props__.__dict__["properties"] = None
|
|
201
|
+
__props__.__dict__["system_data"] = None
|
|
202
|
+
__props__.__dict__["tags"] = None
|
|
203
|
+
__props__.__dict__["type"] = None
|
|
204
|
+
return BackupInstance(resource_name, opts=opts, __props__=__props__)
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
@pulumi.getter
|
|
208
|
+
def name(self) -> pulumi.Output[str]:
|
|
209
|
+
"""
|
|
210
|
+
Proxy Resource name associated with the resource.
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "name")
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
@pulumi.getter
|
|
216
|
+
def properties(self) -> pulumi.Output['outputs.BackupInstanceResponse']:
|
|
217
|
+
"""
|
|
218
|
+
BackupInstanceResource properties
|
|
219
|
+
"""
|
|
220
|
+
return pulumi.get(self, "properties")
|
|
221
|
+
|
|
222
|
+
@property
|
|
223
|
+
@pulumi.getter(name="systemData")
|
|
224
|
+
def system_data(self) -> pulumi.Output['outputs.SystemDataResponse']:
|
|
225
|
+
"""
|
|
226
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
227
|
+
"""
|
|
228
|
+
return pulumi.get(self, "system_data")
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
@pulumi.getter
|
|
232
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
233
|
+
"""
|
|
234
|
+
Proxy Resource tags.
|
|
235
|
+
"""
|
|
236
|
+
return pulumi.get(self, "tags")
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
@pulumi.getter
|
|
240
|
+
def type(self) -> pulumi.Output[str]:
|
|
241
|
+
"""
|
|
242
|
+
Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
|
|
243
|
+
"""
|
|
244
|
+
return pulumi.get(self, "type")
|
|
245
|
+
|
|
@@ -0,0 +1,216 @@
|
|
|
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 copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from ... import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._enums import *
|
|
13
|
+
from ._inputs import *
|
|
14
|
+
|
|
15
|
+
__all__ = ['BackupPolicyInitArgs', 'BackupPolicy']
|
|
16
|
+
|
|
17
|
+
@pulumi.input_type
|
|
18
|
+
class BackupPolicyInitArgs:
|
|
19
|
+
def __init__(__self__, *,
|
|
20
|
+
resource_group_name: pulumi.Input[str],
|
|
21
|
+
vault_name: pulumi.Input[str],
|
|
22
|
+
backup_policy_name: Optional[pulumi.Input[str]] = None,
|
|
23
|
+
properties: Optional[pulumi.Input['BackupPolicyArgs']] = None):
|
|
24
|
+
"""
|
|
25
|
+
The set of arguments for constructing a BackupPolicy resource.
|
|
26
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
27
|
+
:param pulumi.Input[str] vault_name: The name of the backup vault.
|
|
28
|
+
:param pulumi.Input[str] backup_policy_name: Name of the policy
|
|
29
|
+
:param pulumi.Input['BackupPolicyArgs'] properties: BaseBackupPolicyResource properties
|
|
30
|
+
"""
|
|
31
|
+
pulumi.set(__self__, "resource_group_name", resource_group_name)
|
|
32
|
+
pulumi.set(__self__, "vault_name", vault_name)
|
|
33
|
+
if backup_policy_name is not None:
|
|
34
|
+
pulumi.set(__self__, "backup_policy_name", backup_policy_name)
|
|
35
|
+
if properties is not None:
|
|
36
|
+
pulumi.set(__self__, "properties", properties)
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
@pulumi.getter(name="resourceGroupName")
|
|
40
|
+
def resource_group_name(self) -> pulumi.Input[str]:
|
|
41
|
+
"""
|
|
42
|
+
The name of the resource group. The name is case insensitive.
|
|
43
|
+
"""
|
|
44
|
+
return pulumi.get(self, "resource_group_name")
|
|
45
|
+
|
|
46
|
+
@resource_group_name.setter
|
|
47
|
+
def resource_group_name(self, value: pulumi.Input[str]):
|
|
48
|
+
pulumi.set(self, "resource_group_name", value)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
@pulumi.getter(name="vaultName")
|
|
52
|
+
def vault_name(self) -> pulumi.Input[str]:
|
|
53
|
+
"""
|
|
54
|
+
The name of the backup vault.
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "vault_name")
|
|
57
|
+
|
|
58
|
+
@vault_name.setter
|
|
59
|
+
def vault_name(self, value: pulumi.Input[str]):
|
|
60
|
+
pulumi.set(self, "vault_name", value)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="backupPolicyName")
|
|
64
|
+
def backup_policy_name(self) -> Optional[pulumi.Input[str]]:
|
|
65
|
+
"""
|
|
66
|
+
Name of the policy
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "backup_policy_name")
|
|
69
|
+
|
|
70
|
+
@backup_policy_name.setter
|
|
71
|
+
def backup_policy_name(self, value: Optional[pulumi.Input[str]]):
|
|
72
|
+
pulumi.set(self, "backup_policy_name", value)
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def properties(self) -> Optional[pulumi.Input['BackupPolicyArgs']]:
|
|
77
|
+
"""
|
|
78
|
+
BaseBackupPolicyResource properties
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "properties")
|
|
81
|
+
|
|
82
|
+
@properties.setter
|
|
83
|
+
def properties(self, value: Optional[pulumi.Input['BackupPolicyArgs']]):
|
|
84
|
+
pulumi.set(self, "properties", value)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class BackupPolicy(pulumi.CustomResource):
|
|
88
|
+
@overload
|
|
89
|
+
def __init__(__self__,
|
|
90
|
+
resource_name: str,
|
|
91
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
92
|
+
backup_policy_name: Optional[pulumi.Input[str]] = None,
|
|
93
|
+
properties: Optional[pulumi.Input[pulumi.InputType['BackupPolicyArgs']]] = None,
|
|
94
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
95
|
+
vault_name: Optional[pulumi.Input[str]] = None,
|
|
96
|
+
__props__=None):
|
|
97
|
+
"""
|
|
98
|
+
BaseBackupPolicy resource
|
|
99
|
+
|
|
100
|
+
:param str resource_name: The name of the resource.
|
|
101
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
102
|
+
:param pulumi.Input[str] backup_policy_name: Name of the policy
|
|
103
|
+
:param pulumi.Input[pulumi.InputType['BackupPolicyArgs']] properties: BaseBackupPolicyResource properties
|
|
104
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
105
|
+
:param pulumi.Input[str] vault_name: The name of the backup vault.
|
|
106
|
+
"""
|
|
107
|
+
...
|
|
108
|
+
@overload
|
|
109
|
+
def __init__(__self__,
|
|
110
|
+
resource_name: str,
|
|
111
|
+
args: BackupPolicyInitArgs,
|
|
112
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
113
|
+
"""
|
|
114
|
+
BaseBackupPolicy resource
|
|
115
|
+
|
|
116
|
+
:param str resource_name: The name of the resource.
|
|
117
|
+
:param BackupPolicyInitArgs args: The arguments to use to populate this resource's properties.
|
|
118
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
119
|
+
"""
|
|
120
|
+
...
|
|
121
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
122
|
+
resource_args, opts = _utilities.get_resource_args_opts(BackupPolicyInitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
123
|
+
if resource_args is not None:
|
|
124
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
125
|
+
else:
|
|
126
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
127
|
+
|
|
128
|
+
def _internal_init(__self__,
|
|
129
|
+
resource_name: str,
|
|
130
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
131
|
+
backup_policy_name: Optional[pulumi.Input[str]] = None,
|
|
132
|
+
properties: Optional[pulumi.Input[pulumi.InputType['BackupPolicyArgs']]] = None,
|
|
133
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
134
|
+
vault_name: Optional[pulumi.Input[str]] = None,
|
|
135
|
+
__props__=None):
|
|
136
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
137
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
138
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
139
|
+
if opts.id is None:
|
|
140
|
+
if __props__ is not None:
|
|
141
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
142
|
+
__props__ = BackupPolicyInitArgs.__new__(BackupPolicyInitArgs)
|
|
143
|
+
|
|
144
|
+
__props__.__dict__["backup_policy_name"] = backup_policy_name
|
|
145
|
+
__props__.__dict__["properties"] = properties
|
|
146
|
+
if resource_group_name is None and not opts.urn:
|
|
147
|
+
raise TypeError("Missing required property 'resource_group_name'")
|
|
148
|
+
__props__.__dict__["resource_group_name"] = resource_group_name
|
|
149
|
+
if vault_name is None and not opts.urn:
|
|
150
|
+
raise TypeError("Missing required property 'vault_name'")
|
|
151
|
+
__props__.__dict__["vault_name"] = vault_name
|
|
152
|
+
__props__.__dict__["name"] = None
|
|
153
|
+
__props__.__dict__["system_data"] = None
|
|
154
|
+
__props__.__dict__["type"] = None
|
|
155
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dataprotection:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20210101:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20210201preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20210601preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20210701:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20211001preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20211201preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220101:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220201preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220301:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220331preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220401:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220501:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20220901preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20221001preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20221101preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20221201:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20230101:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20230401preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20230501:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20230601preview:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20230801:BackupPolicy"), pulumi.Alias(type_="azure-native:dataprotection/v20230801preview:BackupPolicy")])
|
|
156
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
157
|
+
super(BackupPolicy, __self__).__init__(
|
|
158
|
+
'azure-native:dataprotection/v20231101:BackupPolicy',
|
|
159
|
+
resource_name,
|
|
160
|
+
__props__,
|
|
161
|
+
opts)
|
|
162
|
+
|
|
163
|
+
@staticmethod
|
|
164
|
+
def get(resource_name: str,
|
|
165
|
+
id: pulumi.Input[str],
|
|
166
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'BackupPolicy':
|
|
167
|
+
"""
|
|
168
|
+
Get an existing BackupPolicy resource's state with the given name, id, and optional extra
|
|
169
|
+
properties used to qualify the lookup.
|
|
170
|
+
|
|
171
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
172
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
173
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
174
|
+
"""
|
|
175
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
176
|
+
|
|
177
|
+
__props__ = BackupPolicyInitArgs.__new__(BackupPolicyInitArgs)
|
|
178
|
+
|
|
179
|
+
__props__.__dict__["name"] = None
|
|
180
|
+
__props__.__dict__["properties"] = None
|
|
181
|
+
__props__.__dict__["system_data"] = None
|
|
182
|
+
__props__.__dict__["type"] = None
|
|
183
|
+
return BackupPolicy(resource_name, opts=opts, __props__=__props__)
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter
|
|
187
|
+
def name(self) -> pulumi.Output[str]:
|
|
188
|
+
"""
|
|
189
|
+
Resource name associated with the resource.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "name")
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter
|
|
195
|
+
def properties(self) -> pulumi.Output['outputs.BackupPolicyResponse']:
|
|
196
|
+
"""
|
|
197
|
+
BaseBackupPolicyResource properties
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "properties")
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter(name="systemData")
|
|
203
|
+
def system_data(self) -> pulumi.Output['outputs.SystemDataResponse']:
|
|
204
|
+
"""
|
|
205
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "system_data")
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
@pulumi.getter
|
|
211
|
+
def type(self) -> pulumi.Output[str]:
|
|
212
|
+
"""
|
|
213
|
+
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "type")
|
|
216
|
+
|