Skip to content

Commit

Permalink
fixing generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
achauhan-scc committed Aug 21, 2024
1 parent a5366e4 commit b54bbbe
Show file tree
Hide file tree
Showing 12 changed files with 2,262 additions and 1,539 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public partial class MockableMachineLearningSubscriptionResource : ArmResource
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncPageable<MachineLearningWorkspaceResource> GetMachineLearningWorkspacesAsync(string skip = null, CancellationToken cancellationToken = default)
{
return GetMachineLearningWorkspacesAsync(skip, null, cancellationToken);
return GetMachineLearningWorkspacesAsync(null, skip, null, cancellationToken);
}

/// <summary>
Expand All @@ -52,7 +52,7 @@ public virtual AsyncPageable<MachineLearningWorkspaceResource> GetMachineLearnin
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Pageable<MachineLearningWorkspaceResource> GetMachineLearningWorkspaces(string skip = null, CancellationToken cancellationToken = default)
{
return GetMachineLearningWorkspaces(skip, null, cancellationToken);
return GetMachineLearningWorkspaces(null, skip, null, cancellationToken);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ public partial class MachineLearningComponentVersionCollection : ArmCollection,
/// </list>
/// </summary>
/// <param name="orderBy"> Ordering of list. </param>
/// <param name="top"> Maximum number of records to return. </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="listViewType"> View type for including/excluding (for example) archived entities. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> An async collection of <see cref="MachineLearningComponentVersionResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncPageable<MachineLearningComponentVersionResource> GetAllAsync(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(orderBy, top, skip, listViewType, null, cancellationToken);
public virtual AsyncPageable<MachineLearningComponentVersionResource> GetAllAsync(string orderBy, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(orderBy, null, skip, listViewType, cancellationToken);

/// <summary>
/// List component versions.
Expand All @@ -54,13 +53,12 @@ public virtual AsyncPageable<MachineLearningComponentVersionResource> GetAllAsyn
/// </list>
/// </summary>
/// <param name="orderBy"> Ordering of list. </param>
/// <param name="top"> Maximum number of records to return. </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="listViewType"> View type for including/excluding (for example) archived entities. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> A collection of <see cref="MachineLearningComponentVersionResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Pageable<MachineLearningComponentVersionResource> GetAll(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(orderBy, top, skip, listViewType, null, cancellationToken);
public virtual Pageable<MachineLearningComponentVersionResource> GetAll(string orderBy, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(orderBy, null, skip, listViewType, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ public partial class MachineLearningDataVersionCollection : ArmCollection, IEnum
/// </list>
/// </summary>
/// <param name="orderBy"> Please choose OrderBy value from ['createdtime', 'modifiedtime']. </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="top">
/// Top count of results, top count cannot be greater than the page size.
/// If topCount &gt; page size, results with be default page size count will be returned
/// </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="tags"> Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. </param>
/// <param name="listViewType"> [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> An async collection of <see cref="MachineLearningDataVersionResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncPageable<MachineLearningDataVersionResource> GetAllAsync(string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(new MachineLearningDataVersionCollectionGetAllOptions() { OrderBy = orderBy, Top = top, Skip = skip, Tags = tags, ListViewType = listViewType, Stage = null}, cancellationToken);
public virtual AsyncPageable<MachineLearningDataVersionResource> GetAllAsync(string orderBy, string skip, int? top, string tags, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(orderBy, top, skip, tags, listViewType, cancellationToken);

/// <summary>
/// List data versions in the data container
Expand All @@ -58,17 +58,17 @@ public virtual AsyncPageable<MachineLearningDataVersionResource> GetAllAsync(str
/// </list>
/// </summary>
/// <param name="orderBy"> Please choose OrderBy value from ['createdtime', 'modifiedtime']. </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="top">
/// Top count of results, top count cannot be greater than the page size.
/// If topCount &gt; page size, results with be default page size count will be returned
/// </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="tags"> Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. </param>
/// <param name="listViewType"> [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> A collection of <see cref="MachineLearningDataVersionResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Pageable<MachineLearningDataVersionResource> GetAll(string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(new MachineLearningDataVersionCollectionGetAllOptions() { OrderBy = orderBy, Top = top, Skip = skip, Tags = tags, ListViewType = listViewType, Stage = null}, cancellationToken);
public virtual Pageable<MachineLearningDataVersionResource> GetAll(string orderBy, string skip, int? top, string tags, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(orderBy, top, skip, tags, listViewType, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public partial class MachineLearningEnvironmentVersionCollection : ArmCollection
/// </list>
/// </summary>
/// <param name="orderBy"> Ordering of list. </param>
/// <param name="top"> Maximum number of records to return. </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="top"> Maximum number of records to return. </param>
/// <param name="listViewType"> View type for including/excluding (for example) archived entities. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> An async collection of <see cref="MachineLearningEnvironmentVersionResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncPageable<MachineLearningEnvironmentVersionResource> GetAllAsync(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(orderBy, top, skip, listViewType, null, cancellationToken);
public virtual AsyncPageable<MachineLearningEnvironmentVersionResource> GetAllAsync(string orderBy, string skip, int? top, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(orderBy, top, skip, listViewType, cancellationToken);

/// <summary>
/// List versions.
Expand All @@ -54,13 +54,13 @@ public virtual AsyncPageable<MachineLearningEnvironmentVersionResource> GetAllAs
/// </list>
/// </summary>
/// <param name="orderBy"> Ordering of list. </param>
/// <param name="top"> Maximum number of records to return. </param>
/// <param name="skip"> Continuation token for pagination. </param>
/// <param name="top"> Maximum number of records to return. </param>
/// <param name="listViewType"> View type for including/excluding (for example) archived entities. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> A collection of <see cref="MachineLearningEnvironmentVersionResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Pageable<MachineLearningEnvironmentVersionResource> GetAll(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(orderBy, top, skip, listViewType, null, cancellationToken);
public virtual Pageable<MachineLearningEnvironmentVersionResource> GetAll(string orderBy, string skip, int? top, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(orderBy, top, skip, listViewType, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial class MachineLearningJobCollection : ArmCollection, IEnumerable<M
/// <returns> An async collection of <see cref="MachineLearningJobResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncPageable<MachineLearningJobResource> GetAllAsync(string skip, string jobType, string tag, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(new MachineLearningJobCollectionGetAllOptions() { Skip = skip, JobType = jobType, Tag = tag, ListViewType = listViewType, AssetName = null, Scheduled = null, ScheduleId = null }, cancellationToken);
=> GetAllAsync(skip, jobType, tag, listViewType, null, cancellationToken);

/// <summary>
/// Lists Jobs in the workspace.
Expand All @@ -61,6 +61,6 @@ public virtual AsyncPageable<MachineLearningJobResource> GetAllAsync(string skip
/// <returns> A collection of <see cref="MachineLearningJobResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Pageable<MachineLearningJobResource> GetAll(string skip, string jobType, string tag, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(new MachineLearningJobCollectionGetAllOptions() { Skip = skip, JobType = jobType, Tag = tag, ListViewType = listViewType, AssetName = null, Scheduled = null, ScheduleId = null }, cancellationToken);
=> GetAll(skip, jobType, tag, listViewType, null, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public partial class MachineLearningModelVersionCollection : ArmCollection, IEnu
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> An async collection of <see cref="MachineLearningModelVersionResource" /> that may take multiple service requests to iterate over. </returns>
public virtual AsyncPageable<MachineLearningModelVersionResource> GetAllAsync(string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAllAsync(new MachineLearningModelVersionCollectionGetAllOptions() { Skip = skip, OrderBy = orderBy, Top = top, Version = version, Description = description, Offset = offset, Tags = tags, Properties = properties, Feed = feed, ListViewType = listViewType, Stage = null }, cancellationToken);
=> GetAllAsync(new MachineLearningModelVersionCollectionGetAllOptions() { Skip = skip, OrderBy = orderBy, Top = top, Version = version, Description = description, Offset = offset, Tags = tags, Properties = properties, Feed = feed, ListViewType = listViewType }, cancellationToken);

/// <summary>
/// List model versions.
Expand Down Expand Up @@ -70,6 +70,6 @@ public virtual AsyncPageable<MachineLearningModelVersionResource> GetAllAsync(st
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <returns> A collection of <see cref="MachineLearningModelVersionResource" /> that may take multiple service requests to iterate over. </returns>
public virtual Pageable<MachineLearningModelVersionResource> GetAll(string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, CancellationToken cancellationToken)
=> GetAll(new MachineLearningModelVersionCollectionGetAllOptions() { Skip = skip, OrderBy = orderBy, Top = top, Version = version, Description = description, Offset = offset, Tags = tags, Properties = properties, Feed = feed, ListViewType = listViewType, Stage = null }, cancellationToken);
=> GetAll(new MachineLearningModelVersionCollectionGetAllOptions() { Skip = skip, OrderBy = orderBy, Top = top, Version = version, Description = description, Offset = offset, Tags = tags, Properties = properties, Feed = feed, ListViewType = listViewType }, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class MachineLearningWorkspaceCollection : ArmCollection, IEnumer
/// <returns> An async collection of <see cref="MachineLearningWorkspaceResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncPageable<MachineLearningWorkspaceResource> GetAllAsync(string skip, CancellationToken cancellationToken)
=> GetAllAsync(skip, null, cancellationToken);
=> GetAllAsync(skip, null,null, cancellationToken);

/// <summary>
/// Lists all the available machine learning workspaces under the specified resource group.
Expand All @@ -55,6 +55,6 @@ public virtual AsyncPageable<MachineLearningWorkspaceResource> GetAllAsync(strin
/// <returns> A collection of <see cref="MachineLearningWorkspaceResource" /> that may take multiple service requests to iterate over. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Pageable<MachineLearningWorkspaceResource> GetAll(string skip, CancellationToken cancellationToken)
=> GetAll(skip, null, cancellationToken);
=> GetAll(skip, null, null, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ public partial class MachineLearningComputeStartStopSchedule
{
/// <summary> Required if triggerType is Recurrence. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public MachineLearningRecurrenceTrigger Recurrence
public ComputeRecurrenceFrequency Recurrence
{
get
{
return new MachineLearningRecurrenceTrigger(RecurrenceSchedule.Frequency.Value, RecurrenceSchedule.Interval.Value);
return new ComputeRecurrenceFrequency(RecurrenceSchedule.Frequency.Value.ToString());
}
}
/// <summary> Required if triggerType is Cron. </summary>
Expand Down
Loading

0 comments on commit b54bbbe

Please sign in to comment.