@@ -33,81 +33,65 @@ class StorageAccount(object):
33
33
and the value is json key in definition.
34
34
"""
35
35
swagger_types = {
36
- 'azure_key_vault_secret_id' : 'str' ,
37
36
'id' : 'int' ,
38
37
'is_sas' : 'bool' ,
38
+ 'key_vault_secret_id' : 'str' ,
39
39
'private_url' : 'str' ,
40
40
'provider' : 'StorageProvider' ,
41
+ 'secret_in_key_vault' : 'bool' ,
41
42
'settings' : 'StorageAccountSettingsRes' ,
42
43
'stat' : 'StorageAccountStat' ,
43
44
'url' : 'str'
44
45
}
45
46
46
47
attribute_map = {
47
- 'azure_key_vault_secret_id' : 'azureKeyVaultSecretId' ,
48
48
'id' : 'id' ,
49
49
'is_sas' : 'isSas' ,
50
+ 'key_vault_secret_id' : 'keyVaultSecretId' ,
50
51
'private_url' : 'privateUrl' ,
51
52
'provider' : 'provider' ,
53
+ 'secret_in_key_vault' : 'secretInKeyVault' ,
52
54
'settings' : 'settings' ,
53
55
'stat' : 'stat' ,
54
56
'url' : 'url'
55
57
}
56
58
57
- def __init__ (self , azure_key_vault_secret_id = None , id = None , is_sas = None , private_url = None , provider = None , settings = None , stat = None , url = None , _configuration = None ): # noqa: E501
59
+ def __init__ (self , id = None , is_sas = None , key_vault_secret_id = None , private_url = None , provider = None , secret_in_key_vault = None , settings = None , stat = None , url = None , _configuration = None ): # noqa: E501
58
60
"""StorageAccount - a model defined in Swagger""" # noqa: E501
59
61
if _configuration is None :
60
62
_configuration = Configuration ()
61
63
self ._configuration = _configuration
62
64
63
- self ._azure_key_vault_secret_id = None
64
65
self ._id = None
65
66
self ._is_sas = None
67
+ self ._key_vault_secret_id = None
66
68
self ._private_url = None
67
69
self ._provider = None
70
+ self ._secret_in_key_vault = None
68
71
self ._settings = None
69
72
self ._stat = None
70
73
self ._url = None
71
74
self .discriminator = None
72
75
73
- if azure_key_vault_secret_id is not None :
74
- self .azure_key_vault_secret_id = azure_key_vault_secret_id
75
76
if id is not None :
76
77
self .id = id
77
78
if is_sas is not None :
78
79
self .is_sas = is_sas
80
+ if key_vault_secret_id is not None :
81
+ self .key_vault_secret_id = key_vault_secret_id
79
82
if private_url is not None :
80
83
self .private_url = private_url
81
84
if provider is not None :
82
85
self .provider = provider
86
+ if secret_in_key_vault is not None :
87
+ self .secret_in_key_vault = secret_in_key_vault
83
88
if settings is not None :
84
89
self .settings = settings
85
90
if stat is not None :
86
91
self .stat = stat
87
92
if url is not None :
88
93
self .url = url
89
94
90
- @property
91
- def azure_key_vault_secret_id (self ):
92
- """Gets the azure_key_vault_secret_id of this StorageAccount. # noqa: E501
93
-
94
-
95
- :return: The azure_key_vault_secret_id of this StorageAccount. # noqa: E501
96
- :rtype: str
97
- """
98
- return self ._azure_key_vault_secret_id
99
-
100
- @azure_key_vault_secret_id .setter
101
- def azure_key_vault_secret_id (self , azure_key_vault_secret_id ):
102
- """Sets the azure_key_vault_secret_id of this StorageAccount.
103
-
104
-
105
- :param azure_key_vault_secret_id: The azure_key_vault_secret_id of this StorageAccount. # noqa: E501
106
- :type: str
107
- """
108
-
109
- self ._azure_key_vault_secret_id = azure_key_vault_secret_id
110
-
111
95
@property
112
96
def id (self ):
113
97
"""Gets the id of this StorageAccount. # noqa: E501
@@ -135,6 +119,7 @@ def id(self, id):
135
119
def is_sas (self ):
136
120
"""Gets the is_sas of this StorageAccount. # noqa: E501
137
121
122
+ For Azure - if credential is SAS signature (not included if storing in key vault) # noqa: E501
138
123
139
124
:return: The is_sas of this StorageAccount. # noqa: E501
140
125
:rtype: bool
@@ -145,13 +130,37 @@ def is_sas(self):
145
130
def is_sas (self , is_sas ):
146
131
"""Sets the is_sas of this StorageAccount.
147
132
133
+ For Azure - if credential is SAS signature (not included if storing in key vault) # noqa: E501
148
134
149
135
:param is_sas: The is_sas of this StorageAccount. # noqa: E501
150
136
:type: bool
151
137
"""
152
138
153
139
self ._is_sas = is_sas
154
140
141
+ @property
142
+ def key_vault_secret_id (self ):
143
+ """Gets the key_vault_secret_id of this StorageAccount. # noqa: E501
144
+
145
+ Key Vault secret ID where this credential secret is stored (only for admins) # noqa: E501
146
+
147
+ :return: The key_vault_secret_id of this StorageAccount. # noqa: E501
148
+ :rtype: str
149
+ """
150
+ return self ._key_vault_secret_id
151
+
152
+ @key_vault_secret_id .setter
153
+ def key_vault_secret_id (self , key_vault_secret_id ):
154
+ """Sets the key_vault_secret_id of this StorageAccount.
155
+
156
+ Key Vault secret ID where this credential secret is stored (only for admins) # noqa: E501
157
+
158
+ :param key_vault_secret_id: The key_vault_secret_id of this StorageAccount. # noqa: E501
159
+ :type: str
160
+ """
161
+
162
+ self ._key_vault_secret_id = key_vault_secret_id
163
+
155
164
@property
156
165
def private_url (self ):
157
166
"""Gets the private_url of this StorageAccount. # noqa: E501
@@ -198,6 +207,29 @@ def provider(self, provider):
198
207
199
208
self ._provider = provider
200
209
210
+ @property
211
+ def secret_in_key_vault (self ):
212
+ """Gets the secret_in_key_vault of this StorageAccount. # noqa: E501
213
+
214
+ If secret credential is stored in Key Vault # noqa: E501
215
+
216
+ :return: The secret_in_key_vault of this StorageAccount. # noqa: E501
217
+ :rtype: bool
218
+ """
219
+ return self ._secret_in_key_vault
220
+
221
+ @secret_in_key_vault .setter
222
+ def secret_in_key_vault (self , secret_in_key_vault ):
223
+ """Sets the secret_in_key_vault of this StorageAccount.
224
+
225
+ If secret credential is stored in Key Vault # noqa: E501
226
+
227
+ :param secret_in_key_vault: The secret_in_key_vault of this StorageAccount. # noqa: E501
228
+ :type: bool
229
+ """
230
+
231
+ self ._secret_in_key_vault = secret_in_key_vault
232
+
201
233
@property
202
234
def settings (self ):
203
235
"""Gets the settings of this StorageAccount. # noqa: E501
0 commit comments