Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/servicelinker/azure-mgmt-servicelinker/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "5dbc2b65a3329f246971fa72c758d19bb72a8e83",
"commit": "40b136cac6742fa7ca16ff00e146c7c58c90b400",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/servicelinker/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/servicelinker/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ class ServicePrincipalCertificateAuthInfo(AuthInfoBase):
:type principal_id: str
:param certificate: Required. ServicePrincipal certificate for servicePrincipal auth.
:type certificate: str
:param tenant_id: Tenant Id for servicePrincipal auth. Optional.
:type tenant_id: str
"""

_validation = {
Expand All @@ -514,6 +516,7 @@ class ServicePrincipalCertificateAuthInfo(AuthInfoBase):
'client_id': {'key': 'clientId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'certificate': {'key': 'certificate', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(
Expand All @@ -525,6 +528,7 @@ def __init__(
self.client_id = kwargs['client_id']
self.principal_id = kwargs['principal_id']
self.certificate = kwargs['certificate']
self.tenant_id = kwargs.get('tenant_id', None)


class ServicePrincipalSecretAuthInfo(AuthInfoBase):
Expand All @@ -542,6 +546,8 @@ class ServicePrincipalSecretAuthInfo(AuthInfoBase):
:type principal_id: str
:param secret: Required. Secret for servicePrincipal auth.
:type secret: str
:param tenant_id: Tenant Id for servicePrincipal auth. Optional.
:type tenant_id: str
"""

_validation = {
Expand All @@ -556,6 +562,7 @@ class ServicePrincipalSecretAuthInfo(AuthInfoBase):
'client_id': {'key': 'clientId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'secret': {'key': 'secret', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(
Expand All @@ -567,6 +574,7 @@ def __init__(
self.client_id = kwargs['client_id']
self.principal_id = kwargs['principal_id']
self.secret = kwargs['secret']
self.tenant_id = kwargs.get('tenant_id', None)


class SourceConfiguration(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ class ServicePrincipalCertificateAuthInfo(AuthInfoBase):
:type principal_id: str
:param certificate: Required. ServicePrincipal certificate for servicePrincipal auth.
:type certificate: str
:param tenant_id: Tenant Id for servicePrincipal auth. Optional.
:type tenant_id: str
"""

_validation = {
Expand All @@ -537,6 +539,7 @@ class ServicePrincipalCertificateAuthInfo(AuthInfoBase):
'client_id': {'key': 'clientId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'certificate': {'key': 'certificate', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(
Expand All @@ -545,13 +548,15 @@ def __init__(
client_id: str,
principal_id: str,
certificate: str,
tenant_id: Optional[str] = None,
**kwargs
):
super(ServicePrincipalCertificateAuthInfo, self).__init__(**kwargs)
self.auth_type = 'servicePrincipalCertificate' # type: str
self.client_id = client_id
self.principal_id = principal_id
self.certificate = certificate
self.tenant_id = tenant_id


class ServicePrincipalSecretAuthInfo(AuthInfoBase):
Expand All @@ -569,6 +574,8 @@ class ServicePrincipalSecretAuthInfo(AuthInfoBase):
:type principal_id: str
:param secret: Required. Secret for servicePrincipal auth.
:type secret: str
:param tenant_id: Tenant Id for servicePrincipal auth. Optional.
:type tenant_id: str
"""

_validation = {
Expand All @@ -583,6 +590,7 @@ class ServicePrincipalSecretAuthInfo(AuthInfoBase):
'client_id': {'key': 'clientId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'secret': {'key': 'secret', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(
Expand All @@ -591,13 +599,15 @@ def __init__(
client_id: str,
principal_id: str,
secret: str,
tenant_id: Optional[str] = None,
**kwargs
):
super(ServicePrincipalSecretAuthInfo, self).__init__(**kwargs)
self.auth_type = 'servicePrincipalSecret' # type: str
self.client_id = client_id
self.principal_id = principal_id
self.secret = secret
self.tenant_id = tenant_id


class SourceConfiguration(msrest.serialization.Model):
Expand Down