Skip to content
Closed
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
1,585 changes: 1,095 additions & 490 deletions packages/@azure/arm-containerregistry/lib/models/index.ts

Large diffs are not rendered by default.

182 changes: 172 additions & 10 deletions packages/@azure/arm-containerregistry/lib/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
Expand Down Expand Up @@ -1708,13 +1710,6 @@ export const Run: msRest.CompositeMapper = {
className: "SourceTriggerDescriptor"
}
},
isArchiveEnabled: {
serializedName: "properties.isArchiveEnabled",
defaultValue: false,
type: {
name: "Boolean"
}
},
platform: {
serializedName: "properties.platform",
type: {
Expand All @@ -1729,11 +1724,35 @@ export const Run: msRest.CompositeMapper = {
className: "AgentProperties"
}
},
sourceRegistryAuth: {
serializedName: "properties.sourceRegistryAuth",
type: {
name: "String"
}
},
customRegistries: {
serializedName: "properties.customRegistries",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
provisioningState: {
serializedName: "properties.provisioningState",
type: {
name: "String"
}
},
isArchiveEnabled: {
serializedName: "properties.isArchiveEnabled",
defaultValue: false,
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -2119,6 +2138,97 @@ export const TriggerProperties: msRest.CompositeMapper = {
}
};

export const SourceRegistryCredentials: msRest.CompositeMapper = {
serializedName: "SourceRegistryCredentials",
type: {
name: "Composite",
className: "SourceRegistryCredentials",
modelProperties: {
loginMode: {
serializedName: "loginMode",
type: {
name: "String"
}
}
}
}
};

export const SecretObject: msRest.CompositeMapper = {
serializedName: "SecretObject",
type: {
name: "Composite",
className: "SecretObject",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "String"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
}
}
}
};

export const CustomRegistryCredentials: msRest.CompositeMapper = {
serializedName: "CustomRegistryCredentials",
type: {
name: "Composite",
className: "CustomRegistryCredentials",
modelProperties: {
userName: {
serializedName: "userName",
type: {
name: "Composite",
className: "SecretObject"
}
},
password: {
serializedName: "password",
type: {
name: "Composite",
className: "SecretObject"
}
}
}
}
};

export const Credentials: msRest.CompositeMapper = {
serializedName: "Credentials",
type: {
name: "Composite",
className: "Credentials",
modelProperties: {
sourceRegistry: {
serializedName: "sourceRegistry",
type: {
name: "Composite",
className: "SourceRegistryCredentials"
}
},
customRegistries: {
serializedName: "customRegistries",
type: {
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "CustomRegistryCredentials"
}
}
}
}
}
}
};

export const Task: msRest.CompositeMapper = {
serializedName: "Task",
type: {
Expand Down Expand Up @@ -2186,6 +2296,13 @@ export const Task: msRest.CompositeMapper = {
name: "Composite",
className: "TriggerProperties"
}
},
credentials: {
serializedName: "properties.credentials",
type: {
name: "Composite",
className: "Credentials"
}
}
}
}
Expand Down Expand Up @@ -2473,6 +2590,13 @@ export const TaskUpdateParameters: msRest.CompositeMapper = {
className: "TriggerUpdateParameters"
}
},
credentials: {
serializedName: "properties.credentials",
type: {
name: "Composite",
className: "Credentials"
}
},
tags: {
serializedName: "tags",
type: {
Expand Down Expand Up @@ -2560,6 +2684,12 @@ export const DockerBuildRequest: msRest.CompositeMapper = {
name: "String"
}
},
target: {
serializedName: "target",
type: {
name: "String"
}
},
argumentsProperty: {
serializedName: "arguments",
type: {
Expand Down Expand Up @@ -2603,6 +2733,13 @@ export const DockerBuildRequest: msRest.CompositeMapper = {
type: {
name: "String"
}
},
credentials: {
serializedName: "credentials",
type: {
name: "Composite",
className: "Credentials"
}
}
}
}
Expand Down Expand Up @@ -2704,6 +2841,13 @@ export const FileTaskRunRequest: msRest.CompositeMapper = {
type: {
name: "String"
}
},
credentials: {
serializedName: "credentials",
type: {
name: "Composite",
className: "Credentials"
}
}
}
}
Expand Down Expand Up @@ -2806,6 +2950,13 @@ export const EncodedTaskRunRequest: msRest.CompositeMapper = {
type: {
name: "String"
}
},
credentials: {
serializedName: "credentials",
type: {
name: "Composite",
className: "Credentials"
}
}
}
}
Expand Down Expand Up @@ -2852,6 +3003,12 @@ export const DockerBuildStep: msRest.CompositeMapper = {
name: "String"
}
},
target: {
serializedName: "target",
type: {
name: "String"
}
},
argumentsProperty: {
serializedName: "arguments",
type: {
Expand Down Expand Up @@ -2993,6 +3150,12 @@ export const DockerBuildStepUpdateParameters: msRest.CompositeMapper = {
}
}
}
},
target: {
serializedName: "target",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -3282,5 +3445,4 @@ export const discriminators = {
'TaskStepUpdateParameters.Docker' : DockerBuildStepUpdateParameters,
'TaskStepUpdateParameters.FileTask' : FileTaskStepUpdateParameters,
'TaskStepUpdateParameters.EncodedTask' : EncodedTaskStepUpdateParameters

};
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
discriminators,
CloudError,
OperationListResult,
OperationDefinition,
OperationDisplayDefinition,
OperationListResult,
OperationServiceSpecificationDefinition,
OperationMetricSpecificationDefinition,
OperationServiceSpecificationDefinition
CloudError
} from "../models/mappers";

Loading