Skip to content

Commit

Permalink
[AutoPR] containerregistry/resource-manager (#3739)
Browse files Browse the repository at this point in the history
* Generated from 4036e2295bc961042a96200aeb94746ce9593650 (#3737)

format json

* ACR 2.4.0
  • Loading branch information
AutorestCI authored and lmazuel committed Nov 6, 2018
1 parent 84a7722 commit bb7509f
Show file tree
Hide file tree
Showing 18 changed files with 90 additions and 16 deletions.
7 changes: 7 additions & 0 deletions azure-mgmt-containerregistry/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

2.4.0 (2018-11-05)
++++++++++++++++++

**Features**

- Add context token to task step

2.3.0 (2018-10-17)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class DockerBuildStep(TaskStepProperties):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param image_names: The fully qualified image names including the
Expand Down Expand Up @@ -55,6 +58,7 @@ class DockerBuildStep(TaskStepProperties):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'image_names': {'key': 'imageNames', 'type': '[str]'},
'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class DockerBuildStep(TaskStepProperties):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param image_names: The fully qualified image names including the
Expand Down Expand Up @@ -55,6 +58,7 @@ class DockerBuildStep(TaskStepProperties):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'image_names': {'key': 'imageNames', 'type': '[str]'},
'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'},
Expand All @@ -63,8 +67,8 @@ class DockerBuildStep(TaskStepProperties):
'arguments': {'key': 'arguments', 'type': '[Argument]'},
}

def __init__(self, *, docker_file_path: str, context_path: str=None, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, **kwargs) -> None:
super(DockerBuildStep, self).__init__(context_path=context_path, **kwargs)
def __init__(self, *, docker_file_path: str, context_path: str=None, context_access_token: str=None, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, **kwargs) -> None:
super(DockerBuildStep, self).__init__(context_path=context_path, context_access_token=context_access_token, **kwargs)
self.image_names = image_names
self.is_push_enabled = is_push_enabled
self.no_cache = no_cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param image_names: The fully qualified image names including the
Expand All @@ -46,6 +49,7 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters):

_attribute_map = {
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'image_names': {'key': 'imageNames', 'type': '[str]'},
'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param image_names: The fully qualified image names including the
Expand All @@ -46,6 +49,7 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters):

_attribute_map = {
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'image_names': {'key': 'imageNames', 'type': '[str]'},
'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'},
Expand All @@ -54,8 +58,8 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters):
'arguments': {'key': 'arguments', 'type': '[Argument]'},
}

def __init__(self, *, context_path: str=None, image_names=None, is_push_enabled: bool=None, no_cache: bool=None, docker_file_path: str=None, arguments=None, **kwargs) -> None:
super(DockerBuildStepUpdateParameters, self).__init__(context_path=context_path, **kwargs)
def __init__(self, *, context_path: str=None, context_access_token: str=None, image_names=None, is_push_enabled: bool=None, no_cache: bool=None, docker_file_path: str=None, arguments=None, **kwargs) -> None:
super(DockerBuildStepUpdateParameters, self).__init__(context_path=context_path, context_access_token=context_access_token, **kwargs)
self.image_names = image_names
self.is_push_enabled = is_push_enabled
self.no_cache = no_cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class EncodedTaskStep(TaskStepProperties):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param encoded_task_content: Required. Base64 encoded value of the
Expand All @@ -49,6 +52,7 @@ class EncodedTaskStep(TaskStepProperties):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'},
'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class EncodedTaskStep(TaskStepProperties):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param encoded_task_content: Required. Base64 encoded value of the
Expand All @@ -49,14 +52,15 @@ class EncodedTaskStep(TaskStepProperties):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'},
'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'},
'values': {'key': 'values', 'type': '[SetValue]'},
}

def __init__(self, *, encoded_task_content: str, context_path: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None:
super(EncodedTaskStep, self).__init__(context_path=context_path, **kwargs)
def __init__(self, *, encoded_task_content: str, context_path: str=None, context_access_token: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None:
super(EncodedTaskStep, self).__init__(context_path=context_path, context_access_token=context_access_token, **kwargs)
self.encoded_task_content = encoded_task_content
self.encoded_values_content = encoded_values_content
self.values = values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param encoded_task_content: Base64 encoded value of the
Expand All @@ -40,6 +43,7 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters):

_attribute_map = {
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'},
'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param encoded_task_content: Base64 encoded value of the
Expand All @@ -40,14 +43,15 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters):

_attribute_map = {
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'},
'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'},
'values': {'key': 'values', 'type': '[SetValue]'},
}

def __init__(self, *, context_path: str=None, encoded_task_content: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None:
super(EncodedTaskStepUpdateParameters, self).__init__(context_path=context_path, **kwargs)
def __init__(self, *, context_path: str=None, context_access_token: str=None, encoded_task_content: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None:
super(EncodedTaskStepUpdateParameters, self).__init__(context_path=context_path, context_access_token=context_access_token, **kwargs)
self.encoded_task_content = encoded_task_content
self.encoded_values_content = encoded_values_content
self.values = values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class FileTaskStep(TaskStepProperties):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param task_file_path: Required. The task template/definition file path
Expand All @@ -49,6 +52,7 @@ class FileTaskStep(TaskStepProperties):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'task_file_path': {'key': 'taskFilePath', 'type': 'str'},
'values_file_path': {'key': 'valuesFilePath', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class FileTaskStep(TaskStepProperties):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param task_file_path: Required. The task template/definition file path
Expand All @@ -49,14 +52,15 @@ class FileTaskStep(TaskStepProperties):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'task_file_path': {'key': 'taskFilePath', 'type': 'str'},
'values_file_path': {'key': 'valuesFilePath', 'type': 'str'},
'values': {'key': 'values', 'type': '[SetValue]'},
}

def __init__(self, *, task_file_path: str, context_path: str=None, values_file_path: str=None, values=None, **kwargs) -> None:
super(FileTaskStep, self).__init__(context_path=context_path, **kwargs)
def __init__(self, *, task_file_path: str, context_path: str=None, context_access_token: str=None, values_file_path: str=None, values=None, **kwargs) -> None:
super(FileTaskStep, self).__init__(context_path=context_path, context_access_token=context_access_token, **kwargs)
self.task_file_path = task_file_path
self.values_file_path = values_file_path
self.values = values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param task_file_path: The task template/definition file path relative to
Expand All @@ -40,6 +43,7 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters):

_attribute_map = {
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'task_file_path': {'key': 'taskFilePath', 'type': 'str'},
'values_file_path': {'key': 'valuesFilePath', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
:param task_file_path: The task template/definition file path relative to
Expand All @@ -40,14 +43,15 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters):

_attribute_map = {
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'task_file_path': {'key': 'taskFilePath', 'type': 'str'},
'values_file_path': {'key': 'valuesFilePath', 'type': 'str'},
'values': {'key': 'values', 'type': '[SetValue]'},
}

def __init__(self, *, context_path: str=None, task_file_path: str=None, values_file_path: str=None, values=None, **kwargs) -> None:
super(FileTaskStepUpdateParameters, self).__init__(context_path=context_path, **kwargs)
def __init__(self, *, context_path: str=None, context_access_token: str=None, task_file_path: str=None, values_file_path: str=None, values=None, **kwargs) -> None:
super(FileTaskStepUpdateParameters, self).__init__(context_path=context_path, context_access_token=context_access_token, **kwargs)
self.task_file_path = task_file_path
self.values_file_path = values_file_path
self.values = values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class TaskStepProperties(Model):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
"""
Expand All @@ -41,6 +44,7 @@ class TaskStepProperties(Model):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

Expand All @@ -52,4 +56,5 @@ def __init__(self, **kwargs):
super(TaskStepProperties, self).__init__(**kwargs)
self.base_image_dependencies = None
self.context_path = kwargs.get('context_path', None)
self.context_access_token = kwargs.get('context_access_token', None)
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class TaskStepProperties(Model):
:param context_path: The URL(absolute or relative) of the source context
for the task step.
:type context_path: str
:param context_access_token: The token (git PAT or SAS token of storage
account blob) associated with the context for a step.
:type context_access_token: str
:param type: Required. Constant filled by server.
:type type: str
"""
Expand All @@ -41,15 +44,17 @@ class TaskStepProperties(Model):
_attribute_map = {
'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'},
'context_path': {'key': 'contextPath', 'type': 'str'},
'context_access_token': {'key': 'contextAccessToken', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

_subtype_map = {
'type': {'Docker': 'DockerBuildStep', 'FileTask': 'FileTaskStep', 'EncodedTask': 'EncodedTaskStep'}
}

def __init__(self, *, context_path: str=None, **kwargs) -> None:
def __init__(self, *, context_path: str=None, context_access_token: str=None, **kwargs) -> None:
super(TaskStepProperties, self).__init__(**kwargs)
self.base_image_dependencies = None
self.context_path = context_path
self.context_access_token = context_access_token
self.type = None
Loading

0 comments on commit bb7509f

Please sign in to comment.