-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 7d58dd0e73fb2740d7ebe8e534a973e959395d68 (#3477)
allow specifying credentials for source registry on import image
- Loading branch information
1 parent
366c1a1
commit e1e5857
Showing
15 changed files
with
288 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...inerregistry/azure/mgmt/containerregistry/v2017_10_01/models/import_source_credentials.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class ImportSourceCredentials(Model): | ||
"""ImportSourceCredentials. | ||
All required parameters must be populated in order to send to Azure. | ||
:param username: The username to authenticate with the source registry. | ||
:type username: str | ||
:param password: Required. The password used to authenticate with the | ||
source registry. | ||
:type password: str | ||
""" | ||
|
||
_validation = { | ||
'password': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'username': {'key': 'username', 'type': 'str'}, | ||
'password': {'key': 'password', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ImportSourceCredentials, self).__init__(**kwargs) | ||
self.username = kwargs.get('username', None) | ||
self.password = kwargs.get('password', None) |
39 changes: 39 additions & 0 deletions
39
...registry/azure/mgmt/containerregistry/v2017_10_01/models/import_source_credentials_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class ImportSourceCredentials(Model): | ||
"""ImportSourceCredentials. | ||
All required parameters must be populated in order to send to Azure. | ||
:param username: The username to authenticate with the source registry. | ||
:type username: str | ||
:param password: Required. The password used to authenticate with the | ||
source registry. | ||
:type password: str | ||
""" | ||
|
||
_validation = { | ||
'password': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'username': {'key': 'username', 'type': 'str'}, | ||
'password': {'key': 'password', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, password: str, username: str=None, **kwargs) -> None: | ||
super(ImportSourceCredentials, self).__init__(**kwargs) | ||
self.username = username | ||
self.password = password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...stry/azure/mgmt/containerregistry/v2018_02_01_preview/models/import_source_credentials.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class ImportSourceCredentials(Model): | ||
"""ImportSourceCredentials. | ||
All required parameters must be populated in order to send to Azure. | ||
:param username: The username to authenticate with the source registry. | ||
:type username: str | ||
:param password: Required. The password used to authenticate with the | ||
source registry. | ||
:type password: str | ||
""" | ||
|
||
_validation = { | ||
'password': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'username': {'key': 'username', 'type': 'str'}, | ||
'password': {'key': 'password', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ImportSourceCredentials, self).__init__(**kwargs) | ||
self.username = kwargs.get('username', None) | ||
self.password = kwargs.get('password', None) |
39 changes: 39 additions & 0 deletions
39
.../azure/mgmt/containerregistry/v2018_02_01_preview/models/import_source_credentials_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class ImportSourceCredentials(Model): | ||
"""ImportSourceCredentials. | ||
All required parameters must be populated in order to send to Azure. | ||
:param username: The username to authenticate with the source registry. | ||
:type username: str | ||
:param password: Required. The password used to authenticate with the | ||
source registry. | ||
:type password: str | ||
""" | ||
|
||
_validation = { | ||
'password': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'username': {'key': 'username', 'type': 'str'}, | ||
'password': {'key': 'password', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, password: str, username: str=None, **kwargs) -> None: | ||
super(ImportSourceCredentials, self).__init__(**kwargs) | ||
self.username = username | ||
self.password = password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.