Skip to content

Commit

Permalink
.NET SDK Resource Provider:'ContainerRegistry' (Azure#6416)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#6111'
REST Spec PR Author 'lmazuel'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and mentat9 committed Jun 10, 2019
1 parent 04026ef commit afbdcb7
Show file tree
Hide file tree
Showing 96 changed files with 6,215 additions and 2,292 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/ContainerRegistry/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>ContainerRegistry_2017-10-01;ContainerRegistry_2019-05-01-preview;</AzureApiTag>
<AzureApiTag>ContainerRegistry_2019-05-01;ContainerRegistry_2019-04-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ public partial class ContainerRegistryManagementClient : ServiceClient<Container
public virtual IWebhooksOperations Webhooks { get; private set; }

/// <summary>
/// Gets the IScopeMapsOperations.
/// Gets the IRunsOperations.
/// </summary>
public virtual IScopeMapsOperations ScopeMaps { get; private set; }
public virtual IRunsOperations Runs { get; private set; }

/// <summary>
/// Gets the ITokensOperations.
/// Gets the ITasksOperations.
/// </summary>
public virtual ITokensOperations Tokens { get; private set; }
public virtual ITasksOperations Tasks { get; private set; }

/// <summary>
/// Initializes a new instance of the ContainerRegistryManagementClient class.
Expand Down Expand Up @@ -341,8 +341,8 @@ private void Initialize()
Operations = new Operations(this);
Replications = new ReplicationsOperations(this);
Webhooks = new WebhooksOperations(this);
ScopeMaps = new ScopeMapsOperations(this);
Tokens = new TokensOperations(this);
Runs = new RunsOperations(this);
Tasks = new TasksOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
Expand Down Expand Up @@ -373,6 +373,12 @@ private void Initialize()
new Iso8601TimeSpanConverter()
}
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<RunRequest>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<RunRequest>("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<TaskStepProperties>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<TaskStepProperties>("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<TaskStepUpdateParameters>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<TaskStepUpdateParameters>("type"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public partial interface IContainerRegistryManagementClient : System.IDisposable
IWebhooksOperations Webhooks { get; }

/// <summary>
/// Gets the IScopeMapsOperations.
/// Gets the IRunsOperations.
/// </summary>
IScopeMapsOperations ScopeMaps { get; }
IRunsOperations Runs { get; }

/// <summary>
/// Gets the ITokensOperations.
/// Gets the ITasksOperations.
/// </summary>
ITokensOperations Tokens { get; }
ITasksOperations Tasks { get; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public partial interface IRegistriesOperations
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<RegistryUsageListResult>> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists the policies for the specified container registry.
/// Schedules a new run based on the request parameters and add it to
/// the run queue.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group to which the container registry
Expand All @@ -319,39 +320,8 @@ public partial interface IRegistriesOperations
/// <param name='registryName'>
/// The name of the container registry.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<RegistryPolicies>> ListPoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates the policies for the specified container registry.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group to which the container registry
/// belongs.
/// </param>
/// <param name='registryName'>
/// The name of the container registry.
/// </param>
/// <param name='quarantinePolicy'>
/// An object that represents quarantine policy for a container
/// registry.
/// </param>
/// <param name='trustPolicy'>
/// An object that represents content trust policy for a container
/// registry.
/// <param name='runRequest'>
/// The parameters of a run that needs to scheduled.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -368,9 +338,10 @@ public partial interface IRegistriesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<RegistryPolicies>> UpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<AzureOperationResponse<Run>> ScheduleRunWithHttpMessagesAsync(string resourceGroupName, string registryName, RunRequest runRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Generate keys for a token of a specified container registry.
/// Get the upload location for the user to be able to upload the
/// source.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group to which the container registry
Expand All @@ -379,9 +350,6 @@ public partial interface IRegistriesOperations
/// <param name='registryName'>
/// The name of the container registry.
/// </param>
/// <param name='generateCredentialsParameters'>
/// The parameters for generating credentials.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -397,7 +365,7 @@ public partial interface IRegistriesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<GenerateCredentialsResult>> GenerateCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, GenerateCredentialsParameters generateCredentialsParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<AzureOperationResponse<SourceUploadDefinition>> GetBuildSourceUploadUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Copies an image to this container registry from the specified
/// container registry.
Expand Down Expand Up @@ -508,41 +476,8 @@ public partial interface IRegistriesOperations
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<Registry>> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates the policies for the specified container registry.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group to which the container registry
/// belongs.
/// </param>
/// <param name='registryName'>
/// The name of the container registry.
/// </param>
/// <param name='quarantinePolicy'>
/// An object that represents quarantine policy for a container
/// registry.
/// </param>
/// <param name='trustPolicy'>
/// An object that represents content trust policy for a container
/// registry.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<RegistryPolicies>> BeginUpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Generate keys for a token of a specified container registry.
/// Schedules a new run based on the request parameters and add it to
/// the run queue.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group to which the container registry
Expand All @@ -551,8 +486,8 @@ public partial interface IRegistriesOperations
/// <param name='registryName'>
/// The name of the container registry.
/// </param>
/// <param name='generateCredentialsParameters'>
/// The parameters for generating credentials.
/// <param name='runRequest'>
/// The parameters of a run that needs to scheduled.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -569,7 +504,7 @@ public partial interface IRegistriesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<AzureOperationResponse<GenerateCredentialsResult>> BeginGenerateCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, GenerateCredentialsParameters generateCredentialsParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<AzureOperationResponse<Run>> BeginScheduleRunWithHttpMessagesAsync(string resourceGroupName, string registryName, RunRequest runRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all the container registries under the specified resource
/// group.
Expand Down
Loading

0 comments on commit afbdcb7

Please sign in to comment.