-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathsas_authentication.py
More file actions
42 lines (34 loc) · 1.41 KB
/
sas_authentication.py
File metadata and controls
42 lines (34 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .authentication import Authentication
class SasAuthentication(Authentication):
"""Defines the properties to access the artifacts using an Azure Storage SAS
URI.
All required parameters must be populated in order to send to Azure.
:param type: Required. Constant filled by server.
:type type: str
:param sas_uri: Required. The SAS URI to the Azure Storage blob container.
Any offset from the root of the container to where the artifacts are
located can be defined in the artifactRoot.
:type sas_uri: str
"""
_validation = {
'type': {'required': True},
'sas_uri': {'required': True},
}
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'sas_uri': {'key': 'properties.sasUri', 'type': 'str'},
}
def __init__(self, **kwargs):
super(SasAuthentication, self).__init__(**kwargs)
self.sas_uri = kwargs.get('sas_uri', None)
self.type = 'Sas'