diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index 070505c65a924..b4401ce529b93 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -3488,24 +3488,6 @@ public ComputeStartStopRecurrenceSchedule() { } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ComputeTriggerType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ComputeTriggerType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType Cron { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType Recurrence { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType left, Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType left, Azure.ResourceManager.MachineLearning.Models.ComputeTriggerType right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ComputeWeekDay : System.IEquatable { private readonly object _dummy; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs index d8617e654394b..56970054f07e0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs @@ -42,7 +42,7 @@ public async Task GetAll_ListWorkspaceConnections() // invoke the operation and iterate over the result string target = "www.facebook.com"; string category = "ContainerRegistry"; - await foreach (MachineLearningWorkspaceConnectionResource item in collection.GetAllAsync(target: target, category: category, true)) + await foreach (MachineLearningWorkspaceConnectionResource item in collection.GetAllAsync(target: target, category: category)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs index 0e7d795162e0f..41970373e5072 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs @@ -257,7 +257,7 @@ public virtual Response Get(string vers /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-07-01-preview /// /// /// Resource @@ -291,7 +291,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-07-01-preview /// /// /// Resource diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs index f23a84e05871c..daa944305d6eb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs @@ -257,7 +257,7 @@ public virtual Response Get(string version, /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-07-01-preview /// /// /// Resource @@ -265,14 +265,17 @@ public virtual Response Get(string version, /// /// /// - /// Ordering of list. - /// Maximum number of records to return. + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// Top count of results, top count cannot be greater than the page size. + /// If topCount > page size, results with be default page size count will be returned + /// /// Continuation token for pagination. - /// tags - /// View type for including/excluding (for example) archived entities. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); @@ -292,7 +295,7 @@ public virtual AsyncPageable GetAllAsync(str /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-07-01-preview /// /// /// Resource @@ -300,11 +303,14 @@ public virtual AsyncPageable GetAllAsync(str /// /// /// - /// Ordering of list. - /// Maximum number of records to return. + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// Top count of results, top count cannot be greater than the page size. + /// If topCount > page size, results with be default page size count will be returned + /// /// Continuation token for pagination. - /// tags - /// View type for including/excluding (for example) archived entities. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs index 46e489562523e..041f0e5e29d83 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs @@ -244,7 +244,6 @@ public virtual Response Get(string ve } } - /// /// List versions. /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeTriggerType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeTriggerType.cs deleted file mode 100644 index a90880e17a1bb..0000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeTriggerType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The ComputeTriggerType. - public readonly partial struct ComputeTriggerType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ComputeTriggerType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string RecurrenceValue = "Recurrence"; - private const string CronValue = "Cron"; - - /// Recurrence. - public static ComputeTriggerType Recurrence { get; } = new ComputeTriggerType(RecurrenceValue); - /// Cron. - public static ComputeTriggerType Cron { get; } = new ComputeTriggerType(CronValue); - /// Determines if two values are the same. - public static bool operator ==(ComputeTriggerType left, ComputeTriggerType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ComputeTriggerType left, ComputeTriggerType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ComputeTriggerType(string value) => new ComputeTriggerType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ComputeTriggerType other && Equals(other); - /// - public bool Equals(ComputeTriggerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.Serialization.cs index 742ff3365a7e2..055fe46969383 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.Serialization.cs @@ -101,7 +101,7 @@ internal static CronTrigger DeserializeCronTrigger(JsonElement element, ModelRea string endTime = default; string startTime = default; string timeZone = default; - MachineLearningTriggerType triggerType = default; + TriggerType triggerType = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -138,7 +138,7 @@ internal static CronTrigger DeserializeCronTrigger(JsonElement element, ModelRea } if (property.NameEquals("triggerType"u8)) { - triggerType = new MachineLearningTriggerType(property.Value.GetString()); + triggerType = new TriggerType(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.cs index b03714d0e7ddc..e564f8c07ede5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CronTrigger.cs @@ -24,7 +24,7 @@ public CronTrigger(string expression) Argument.AssertNotNull(expression, nameof(expression)); Expression = expression; - TriggerType = MachineLearningTriggerType.Cron; + TriggerType = TriggerType.Cron; } /// Initializes a new instance of . @@ -44,7 +44,7 @@ public CronTrigger(string expression) /// [Required] Specifies cron expression of schedule. /// The expression should follow NCronTab format. /// - internal CronTrigger(string endTime, string startTime, string timeZone, MachineLearningTriggerType triggerType, IDictionary serializedAdditionalRawData, string expression) : base(endTime, startTime, timeZone, triggerType, serializedAdditionalRawData) + internal CronTrigger(string endTime, string startTime, string timeZone, TriggerType triggerType, IDictionary serializedAdditionalRawData, string expression) : base(endTime, startTime, timeZone, triggerType, serializedAdditionalRawData) { Expression = expression; TriggerType = triggerType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.Serialization.cs index 248ca99a46115..0f4918e05be2c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.Serialization.cs @@ -117,7 +117,7 @@ internal static MachineLearningRecurrenceTrigger DeserializeMachineLearningRecur string endTime = default; string startTime = default; string timeZone = default; - MachineLearningTriggerType triggerType = default; + TriggerType triggerType = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -169,7 +169,7 @@ internal static MachineLearningRecurrenceTrigger DeserializeMachineLearningRecur } if (property.NameEquals("triggerType"u8)) { - triggerType = new MachineLearningTriggerType(property.Value.GetString()); + triggerType = new TriggerType(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.cs index 167510b44d780..3e93f5e51107e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceTrigger.cs @@ -20,7 +20,7 @@ public MachineLearningRecurrenceTrigger(MachineLearningRecurrenceFrequency frequ { Frequency = frequency; Interval = interval; - TriggerType = MachineLearningTriggerType.Recurrence; + TriggerType = TriggerType.Recurrence; } /// Initializes a new instance of . @@ -39,7 +39,7 @@ public MachineLearningRecurrenceTrigger(MachineLearningRecurrenceFrequency frequ /// [Required] The frequency to trigger schedule. /// [Required] Specifies schedule interval in conjunction with frequency. /// The recurrence schedule. - internal MachineLearningRecurrenceTrigger(string endTime, string startTime, string timeZone, MachineLearningTriggerType triggerType, IDictionary serializedAdditionalRawData, MachineLearningRecurrenceFrequency frequency, int interval, MachineLearningRecurrenceSchedule schedule) : base(endTime, startTime, timeZone, triggerType, serializedAdditionalRawData) + internal MachineLearningRecurrenceTrigger(string endTime, string startTime, string timeZone, TriggerType triggerType, IDictionary serializedAdditionalRawData, MachineLearningRecurrenceFrequency frequency, int interval, MachineLearningRecurrenceSchedule schedule) : base(endTime, startTime, timeZone, triggerType, serializedAdditionalRawData) { Frequency = frequency; Interval = interval; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTriggerBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTriggerBase.cs index 44d23e21c7583..8e6b48c59b659 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTriggerBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTriggerBase.cs @@ -66,7 +66,7 @@ protected MachineLearningTriggerBase() /// /// [Required]. /// Keeps track of any properties unknown to the library. - internal MachineLearningTriggerBase(string endTime, string startTime, string timeZone, MachineLearningTriggerType triggerType, IDictionary serializedAdditionalRawData) + internal MachineLearningTriggerBase(string endTime, string startTime, string timeZone, TriggerType triggerType, IDictionary serializedAdditionalRawData) { EndTime = endTime; StartTime = startTime; @@ -89,6 +89,6 @@ internal MachineLearningTriggerBase(string endTime, string startTime, string tim /// public string TimeZone { get; set; } /// [Required]. - internal MachineLearningTriggerType TriggerType { get; set; } + internal TriggerType TriggerType { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TriggerType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TriggerType.cs new file mode 100644 index 0000000000000..be06dc86f6a3f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TriggerType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The TriggerType. + internal readonly partial struct TriggerType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TriggerType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RecurrenceValue = "Recurrence"; + private const string CronValue = "Cron"; + + /// Recurrence. + public static TriggerType Recurrence { get; } = new TriggerType(RecurrenceValue); + /// Cron. + public static TriggerType Cron { get; } = new TriggerType(CronValue); + /// Determines if two values are the same. + public static bool operator ==(TriggerType left, TriggerType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TriggerType left, TriggerType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator TriggerType(string value) => new TriggerType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TriggerType other && Equals(other); + /// + public bool Equals(TriggerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.Serialization.cs index cfaacc62e68e9..8c2686f5181e7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.Serialization.cs @@ -98,7 +98,7 @@ internal static UnknownTriggerBase DeserializeUnknownTriggerBase(JsonElement ele string endTime = default; string startTime = default; string timeZone = default; - MachineLearningTriggerType triggerType = "Unknown"; + TriggerType triggerType = "Unknown"; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -130,7 +130,7 @@ internal static UnknownTriggerBase DeserializeUnknownTriggerBase(JsonElement ele } if (property.NameEquals("triggerType"u8)) { - triggerType = new MachineLearningTriggerType(property.Value.GetString()); + triggerType = new TriggerType(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.cs index a4195c74534d5..68db0c2269c13 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownTriggerBase.cs @@ -26,7 +26,7 @@ internal partial class UnknownTriggerBase : MachineLearningTriggerBase /// /// [Required]. /// Keeps track of any properties unknown to the library. - internal UnknownTriggerBase(string endTime, string startTime, string timeZone, MachineLearningTriggerType triggerType, IDictionary serializedAdditionalRawData) : base(endTime, startTime, timeZone, triggerType, serializedAdditionalRawData) + internal UnknownTriggerBase(string endTime, string startTime, string timeZone, TriggerType triggerType, IDictionary serializedAdditionalRawData) : base(endTime, startTime, timeZone, triggerType, serializedAdditionalRawData) { TriggerType = triggerType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index 0df1ca468255a..04814a0e771eb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -273,7 +273,7 @@ rename-mapping: ProvisioningStatus: MachineLearningComputeProvisioningStatus ScheduleBase: MachineLearningScheduleBase ScheduleStatus: MachineLearningScheduleStatus - TriggerType: MachineLearningTriggerType + ComputeTriggerType: MachineLearningTriggerType RecurrenceTrigger: MachineLearningRecurrenceTrigger ConnectionCategory: MachineLearningConnectionCategory ContainerType: MachineLearningContainerType