diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs index a17e4668af40..78a664a8f822 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs @@ -104,7 +104,6 @@ public ResourceRecommendationBaseData() { } public string RecommendationTypeId { get { throw null; } set { } } public System.Collections.Generic.IDictionary Remediation { get { throw null; } } public Azure.ResourceManager.Advisor.Models.ResourceMetadata ResourceMetadata { get { throw null; } set { } } - public Azure.ResourceManager.Advisor.Models.Risk? Risk { get { throw null; } set { } } public Azure.ResourceManager.Advisor.Models.ShortDescription ShortDescription { get { throw null; } set { } } public System.Collections.Generic.IList SuppressionIds { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -226,7 +225,7 @@ public static partial class ArmAdvisorModelFactory public static Azure.ResourceManager.Advisor.Models.ConfigData ConfigData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? exclude = default(bool?), Azure.ResourceManager.Advisor.Models.CpuThreshold? lowCpuThreshold = default(Azure.ResourceManager.Advisor.Models.CpuThreshold?), System.Collections.Generic.IEnumerable digests = null) { throw null; } public static Azure.ResourceManager.Advisor.MetadataEntityData MetadataEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable dependsOn = null, System.Collections.Generic.IEnumerable applicableScenarios = null, System.Collections.Generic.IEnumerable supportedValues = null) { throw null; } public static Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail MetadataSupportedValueDetail(string id = null, string displayName = null) { throw null; } - public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseData ResourceRecommendationBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Advisor.Models.Category? category = default(Azure.ResourceManager.Advisor.Models.Category?), Azure.ResourceManager.Advisor.Models.Impact? impact = default(Azure.ResourceManager.Advisor.Models.Impact?), string impactedField = null, string impactedValue = null, System.DateTimeOffset? lastUpdated = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary metadata = null, string recommendationTypeId = null, Azure.ResourceManager.Advisor.Models.Risk? risk = default(Azure.ResourceManager.Advisor.Models.Risk?), Azure.ResourceManager.Advisor.Models.ShortDescription shortDescription = null, System.Collections.Generic.IEnumerable suppressionIds = null, System.Collections.Generic.IDictionary extendedProperties = null, Azure.ResourceManager.Advisor.Models.ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, System.Collections.Generic.IEnumerable> actions = null, System.Collections.Generic.IDictionary remediation = null, System.Collections.Generic.IDictionary exposedMetadataProperties = null) { throw null; } + public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseData ResourceRecommendationBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Advisor.Models.Category? category = default(Azure.ResourceManager.Advisor.Models.Category?), Azure.ResourceManager.Advisor.Models.Impact? impact = default(Azure.ResourceManager.Advisor.Models.Impact?), string impactedField = null, string impactedValue = null, System.DateTimeOffset? lastUpdated = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary metadata = null, string recommendationTypeId = null, Azure.ResourceManager.Advisor.Models.ShortDescription shortDescription = null, System.Collections.Generic.IEnumerable suppressionIds = null, System.Collections.Generic.IDictionary extendedProperties = null, Azure.ResourceManager.Advisor.Models.ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, System.Collections.Generic.IEnumerable> actions = null, System.Collections.Generic.IDictionary remediation = null, System.Collections.Generic.IDictionary exposedMetadataProperties = null) { throw null; } public static Azure.ResourceManager.Advisor.SuppressionContractData SuppressionContractData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string suppressionId = null, string ttl = null, System.DateTimeOffset? expirationTimeStamp = default(System.DateTimeOffset?)) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -381,25 +380,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer 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 Risk : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Risk(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.Risk Error { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Risk None { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Risk Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.Risk 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.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.Risk (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct Scenario : System.IEquatable { private readonly object _dummy; diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.netstandard2.0.cs b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.netstandard2.0.cs index a17e4668af40..78a664a8f822 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.netstandard2.0.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.netstandard2.0.cs @@ -104,7 +104,6 @@ public ResourceRecommendationBaseData() { } public string RecommendationTypeId { get { throw null; } set { } } public System.Collections.Generic.IDictionary Remediation { get { throw null; } } public Azure.ResourceManager.Advisor.Models.ResourceMetadata ResourceMetadata { get { throw null; } set { } } - public Azure.ResourceManager.Advisor.Models.Risk? Risk { get { throw null; } set { } } public Azure.ResourceManager.Advisor.Models.ShortDescription ShortDescription { get { throw null; } set { } } public System.Collections.Generic.IList SuppressionIds { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -226,7 +225,7 @@ public static partial class ArmAdvisorModelFactory public static Azure.ResourceManager.Advisor.Models.ConfigData ConfigData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? exclude = default(bool?), Azure.ResourceManager.Advisor.Models.CpuThreshold? lowCpuThreshold = default(Azure.ResourceManager.Advisor.Models.CpuThreshold?), System.Collections.Generic.IEnumerable digests = null) { throw null; } public static Azure.ResourceManager.Advisor.MetadataEntityData MetadataEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable dependsOn = null, System.Collections.Generic.IEnumerable applicableScenarios = null, System.Collections.Generic.IEnumerable supportedValues = null) { throw null; } public static Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail MetadataSupportedValueDetail(string id = null, string displayName = null) { throw null; } - public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseData ResourceRecommendationBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Advisor.Models.Category? category = default(Azure.ResourceManager.Advisor.Models.Category?), Azure.ResourceManager.Advisor.Models.Impact? impact = default(Azure.ResourceManager.Advisor.Models.Impact?), string impactedField = null, string impactedValue = null, System.DateTimeOffset? lastUpdated = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary metadata = null, string recommendationTypeId = null, Azure.ResourceManager.Advisor.Models.Risk? risk = default(Azure.ResourceManager.Advisor.Models.Risk?), Azure.ResourceManager.Advisor.Models.ShortDescription shortDescription = null, System.Collections.Generic.IEnumerable suppressionIds = null, System.Collections.Generic.IDictionary extendedProperties = null, Azure.ResourceManager.Advisor.Models.ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, System.Collections.Generic.IEnumerable> actions = null, System.Collections.Generic.IDictionary remediation = null, System.Collections.Generic.IDictionary exposedMetadataProperties = null) { throw null; } + public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseData ResourceRecommendationBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Advisor.Models.Category? category = default(Azure.ResourceManager.Advisor.Models.Category?), Azure.ResourceManager.Advisor.Models.Impact? impact = default(Azure.ResourceManager.Advisor.Models.Impact?), string impactedField = null, string impactedValue = null, System.DateTimeOffset? lastUpdated = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary metadata = null, string recommendationTypeId = null, Azure.ResourceManager.Advisor.Models.ShortDescription shortDescription = null, System.Collections.Generic.IEnumerable suppressionIds = null, System.Collections.Generic.IDictionary extendedProperties = null, Azure.ResourceManager.Advisor.Models.ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, System.Collections.Generic.IEnumerable> actions = null, System.Collections.Generic.IDictionary remediation = null, System.Collections.Generic.IDictionary exposedMetadataProperties = null) { throw null; } public static Azure.ResourceManager.Advisor.SuppressionContractData SuppressionContractData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string suppressionId = null, string ttl = null, System.DateTimeOffset? expirationTimeStamp = default(System.DateTimeOffset?)) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -381,25 +380,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer 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 Risk : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Risk(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.Risk Error { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Risk None { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Risk Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.Risk 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.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.Risk (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct Scenario : System.IEquatable { private readonly object _dummy; diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/advisor/Azure.ResourceManager.Advisor/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index b5a0c01b288b..3cb1c12d57a4 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -121,12 +121,12 @@ public async Task GetGenerateStatusRecommendation_GetGenerateStatus() // this example assumes you already have this SubscriptionResource created on azure // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "subscriptionId"; + string subscriptionId = "00000000-0000-0000-0000-000000000000"; ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation - Guid operationId = Guid.Parse("operationGUID"); + Guid operationId = Guid.Parse("00000000-0000-0000-0000-000000000000"); await subscriptionResource.GetGenerateStatusRecommendationAsync(operationId); Console.WriteLine("Succeeded"); diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ArmAdvisorModelFactory.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ArmAdvisorModelFactory.cs index 5289cf7f2f37..ccf0a3e8e384 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ArmAdvisorModelFactory.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ArmAdvisorModelFactory.cs @@ -89,7 +89,6 @@ public static ConfigData ConfigData(ResourceIdentifier id = null, string name = /// The most recent time that Advisor checked the validity of the recommendation. /// The recommendation metadata. /// The recommendation-type GUID. - /// The potential risk of not implementing the recommendation. /// A summary of the recommendation. /// The list of snoozed and dismissed rules for the recommendation. /// Extended properties. @@ -102,7 +101,7 @@ public static ConfigData ConfigData(ResourceIdentifier id = null, string name = /// The automated way to apply recommendation. /// The recommendation metadata properties exposed to customer to provide additional information. /// A new instance for mocking. - public static ResourceRecommendationBaseData ResourceRecommendationBaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Category? category = null, Impact? impact = null, string impactedField = null, string impactedValue = null, DateTimeOffset? lastUpdated = null, IDictionary metadata = null, string recommendationTypeId = null, Risk? risk = null, ShortDescription shortDescription = null, IEnumerable suppressionIds = null, IDictionary extendedProperties = null, ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, IEnumerable> actions = null, IDictionary remediation = null, IDictionary exposedMetadataProperties = null) + public static ResourceRecommendationBaseData ResourceRecommendationBaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Category? category = null, Impact? impact = null, string impactedField = null, string impactedValue = null, DateTimeOffset? lastUpdated = null, IDictionary metadata = null, string recommendationTypeId = null, ShortDescription shortDescription = null, IEnumerable suppressionIds = null, IDictionary extendedProperties = null, ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, IEnumerable> actions = null, IDictionary remediation = null, IDictionary exposedMetadataProperties = null) { metadata ??= new Dictionary(); suppressionIds ??= new List(); @@ -123,7 +122,6 @@ public static ResourceRecommendationBaseData ResourceRecommendationBaseData(Reso lastUpdated, metadata, recommendationTypeId, - risk, shortDescription, suppressionIds?.ToList(), extendedProperties, diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/Risk.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/Risk.cs deleted file mode 100644 index 0e31a7046481..000000000000 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/Risk.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Advisor.Models -{ - /// The potential risk of not implementing the recommendation. - public readonly partial struct Risk : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public Risk(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ErrorValue = "Error"; - private const string WarningValue = "Warning"; - private const string NoneValue = "None"; - - /// Error. - public static Risk Error { get; } = new Risk(ErrorValue); - /// Warning. - public static Risk Warning { get; } = new Risk(WarningValue); - /// None. - public static Risk None { get; } = new Risk(NoneValue); - /// Determines if two values are the same. - public static bool operator ==(Risk left, Risk right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Risk left, Risk right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator Risk(string value) => new Risk(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Risk other && Equals(other); - /// - public bool Equals(Risk 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/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ShortDescription.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ShortDescription.cs index e3010e7a4c17..8b97b01de299 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ShortDescription.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ShortDescription.cs @@ -51,8 +51,8 @@ public ShortDescription() } /// Initializes a new instance of . - /// The issue or opportunity identified by the recommendation. - /// The remediation action suggested by the recommendation. + /// The issue or opportunity identified by the recommendation and proposed solution. + /// The issue or opportunity identified by the recommendation and proposed solution. /// Keeps track of any properties unknown to the library. internal ShortDescription(string problem, string solution, IDictionary serializedAdditionalRawData) { @@ -61,9 +61,9 @@ internal ShortDescription(string problem, string solution, IDictionary The issue or opportunity identified by the recommendation. + /// The issue or opportunity identified by the recommendation and proposed solution. public string Problem { get; set; } - /// The remediation action suggested by the recommendation. + /// The issue or opportunity identified by the recommendation and proposed solution. public string Solution { get; set; } } } diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.Serialization.cs index f087d3b4e13b..522424ad57b5 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.Serialization.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.Serialization.cs @@ -92,11 +92,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("recommendationTypeId"u8); writer.WriteStringValue(RecommendationTypeId); } - if (Optional.IsDefined(Risk)) - { - writer.WritePropertyName("risk"u8); - writer.WriteStringValue(Risk.Value.ToString()); - } if (Optional.IsDefined(ShortDescription)) { writer.WritePropertyName("shortDescription"u8); @@ -261,7 +256,6 @@ internal static ResourceRecommendationBaseData DeserializeResourceRecommendation DateTimeOffset? lastUpdated = default; IDictionary metadata = default; string recommendationTypeId = default; - Risk? risk = default; ShortDescription shortDescription = default; IList suppressionIds = default; IDictionary extendedProperties = default; @@ -373,15 +367,6 @@ internal static ResourceRecommendationBaseData DeserializeResourceRecommendation recommendationTypeId = property0.Value.GetString(); continue; } - if (property0.NameEquals("risk"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - risk = new Risk(property0.Value.GetString()); - continue; - } if (property0.NameEquals("shortDescription"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -544,7 +529,6 @@ internal static ResourceRecommendationBaseData DeserializeResourceRecommendation lastUpdated, metadata ?? new ChangeTrackingDictionary(), recommendationTypeId, - risk, shortDescription, suppressionIds ?? new ChangeTrackingList(), extendedProperties ?? new ChangeTrackingDictionary(), diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs index 6f972e501ff9..fba25edb10ee 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs @@ -74,7 +74,6 @@ public ResourceRecommendationBaseData() /// The most recent time that Advisor checked the validity of the recommendation. /// The recommendation metadata. /// The recommendation-type GUID. - /// The potential risk of not implementing the recommendation. /// A summary of the recommendation. /// The list of snoozed and dismissed rules for the recommendation. /// Extended properties. @@ -87,7 +86,7 @@ public ResourceRecommendationBaseData() /// The automated way to apply recommendation. /// The recommendation metadata properties exposed to customer to provide additional information. /// Keeps track of any properties unknown to the library. - internal ResourceRecommendationBaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Category? category, Impact? impact, string impactedField, string impactedValue, DateTimeOffset? lastUpdated, IDictionary metadata, string recommendationTypeId, Risk? risk, ShortDescription shortDescription, IList suppressionIds, IDictionary extendedProperties, ResourceMetadata resourceMetadata, string description, string label, string learnMoreLink, string potentialBenefits, IList> actions, IDictionary remediation, IDictionary exposedMetadataProperties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ResourceRecommendationBaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Category? category, Impact? impact, string impactedField, string impactedValue, DateTimeOffset? lastUpdated, IDictionary metadata, string recommendationTypeId, ShortDescription shortDescription, IList suppressionIds, IDictionary extendedProperties, ResourceMetadata resourceMetadata, string description, string label, string learnMoreLink, string potentialBenefits, IList> actions, IDictionary remediation, IDictionary exposedMetadataProperties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Category = category; Impact = impact; @@ -96,7 +95,6 @@ internal ResourceRecommendationBaseData(ResourceIdentifier id, string name, Reso LastUpdated = lastUpdated; Metadata = metadata; RecommendationTypeId = recommendationTypeId; - Risk = risk; ShortDescription = shortDescription; SuppressionIds = suppressionIds; ExtendedProperties = extendedProperties; @@ -154,8 +152,6 @@ internal ResourceRecommendationBaseData(ResourceIdentifier id, string name, Reso public IDictionary Metadata { get; } /// The recommendation-type GUID. public string RecommendationTypeId { get; set; } - /// The potential risk of not implementing the recommendation. - public Risk? Risk { get; set; } /// A summary of the recommendation. public ShortDescription ShortDescription { get; set; } /// The list of snoozed and dismissed rules for the recommendation. diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/autorest.md b/sdk/advisor/Azure.ResourceManager.Advisor/src/autorest.md index f3119fbf7ace..ce7a62c0e433 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/autorest.md +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Advisor namespace: Azure.ResourceManager.Advisor -require: https://github.com/Azure/azure-rest-api-specs/blob/db6d33733cd1eb939b863a6cdbcb9de12ac002e1/specification/advisor/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/advisor/resource-manager/readme.md tag: package-2020-01 output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/autorest.md b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/autorest.md index 46a76f50159b..4971013cadb0 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/autorest.md +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: AlertsManagement namespace: Azure.ResourceManager.AlertsManagement -require: https://github.com/Azure/azure-rest-api-specs/blob/0077b4a8c5071d3ab33fd9f9ba013581c9a66b8f/specification/alertsmanagement/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/autorest.md b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/autorest.md index b236d0585451..5642d8b5ad6b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/autorest.md +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: ApiManagement namespace: Azure.ResourceManager.ApiManagement -require: https://github.com/Azure/azure-rest-api-specs/blob/2d973fccf9f28681a481e9760fa12b2334216e21/specification/apimanagement/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md tag: package-preview-2023-03 output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index 934e5376a8ec..0c683f4a6489 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: AppConfiguration namespace: Azure.ResourceManager.AppConfiguration -require: https://github.com/Azure/azure-rest-api-specs/blob/b72e0199fa3242d64b0b49f38e71586066a8c048/specification/appconfiguration/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md # tag: package-2024-05-01 output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs index 1ea6f161ecbc..69089be51c5b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs @@ -742,8 +742,8 @@ public partial class ApplicationInsightsComponentProactiveDetectionConfiguration { public ApplicationInsightsComponentProactiveDetectionConfiguration() { } public System.Collections.Generic.IList CustomEmails { get { throw null; } } - public bool? IsEnabled { get { throw null; } set { } } - public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } + public bool? Enabled { get { throw null; } set { } } + public string LastUpdatedTime { get { throw null; } set { } } public string Name { get { throw null; } set { } } public Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions RuleDefinitions { get { throw null; } set { } } public bool? SendEmailsToSubscriptionOwners { get { throw null; } set { } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs index 1ea6f161ecbc..69089be51c5b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs @@ -742,8 +742,8 @@ public partial class ApplicationInsightsComponentProactiveDetectionConfiguration { public ApplicationInsightsComponentProactiveDetectionConfiguration() { } public System.Collections.Generic.IList CustomEmails { get { throw null; } } - public bool? IsEnabled { get { throw null; } set { } } - public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } + public bool? Enabled { get { throw null; } set { } } + public string LastUpdatedTime { get { throw null; } set { } } public string Name { get { throw null; } set { } } public Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions RuleDefinitions { get { throw null; } set { } } public bool? SendEmailsToSubscriptionOwners { get { throw null; } set { } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs index 910433cf1a19..e8fea53100c6 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs @@ -798,10 +798,10 @@ public async Task UpdateProactiveDetectionConfiguration_ProactiveDetectionConfig ApplicationInsightsComponentProactiveDetectionConfiguration proactiveDetectionProperties = new ApplicationInsightsComponentProactiveDetectionConfiguration { Name = "slowpageloadtime", - IsEnabled = true, + Enabled = true, SendEmailsToSubscriptionOwners = true, CustomEmails = { "foo@microsoft.com", "foo2@microsoft.com" }, - LastUpdatedOn = default, + LastUpdatedTime = null, RuleDefinitions = new ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions { Name = "slowpageloadtime", diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs index 5e93836fdd00..82ea361aa7af 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs @@ -38,22 +38,22 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (Optional.IsDefined(Name)) { - writer.WritePropertyName("Name"u8); + writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } - if (Optional.IsDefined(IsEnabled)) + if (Optional.IsDefined(Enabled)) { - writer.WritePropertyName("Enabled"u8); - writer.WriteBooleanValue(IsEnabled.Value); + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(Enabled.Value); } if (Optional.IsDefined(SendEmailsToSubscriptionOwners)) { - writer.WritePropertyName("SendEmailsToSubscriptionOwners"u8); + writer.WritePropertyName("sendEmailsToSubscriptionOwners"u8); writer.WriteBooleanValue(SendEmailsToSubscriptionOwners.Value); } if (Optional.IsCollectionDefined(CustomEmails)) { - writer.WritePropertyName("CustomEmails"u8); + writer.WritePropertyName("customEmails"u8); writer.WriteStartArray(); foreach (var item in CustomEmails) { @@ -61,14 +61,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (Optional.IsDefined(LastUpdatedOn)) + if (Optional.IsDefined(LastUpdatedTime)) { - writer.WritePropertyName("LastUpdatedTime"u8); - writer.WriteStringValue(LastUpdatedOn.Value, "O"); + writer.WritePropertyName("lastUpdatedTime"u8); + writer.WriteStringValue(LastUpdatedTime); } if (Optional.IsDefined(RuleDefinitions)) { - writer.WritePropertyName("RuleDefinitions"u8); + writer.WritePropertyName("ruleDefinitions"u8); writer.WriteObjectValue(RuleDefinitions, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -112,18 +112,18 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese bool? enabled = default; bool? sendEmailsToSubscriptionOwners = default; IList customEmails = default; - DateTimeOffset? lastUpdatedTime = default; + string lastUpdatedTime = default; ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("Name"u8)) + if (property.NameEquals("name"u8)) { name = property.Value.GetString(); continue; } - if (property.NameEquals("Enabled"u8)) + if (property.NameEquals("enabled"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -132,7 +132,7 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese enabled = property.Value.GetBoolean(); continue; } - if (property.NameEquals("SendEmailsToSubscriptionOwners"u8)) + if (property.NameEquals("sendEmailsToSubscriptionOwners"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -141,7 +141,7 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese sendEmailsToSubscriptionOwners = property.Value.GetBoolean(); continue; } - if (property.NameEquals("CustomEmails"u8)) + if (property.NameEquals("customEmails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -155,16 +155,12 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese customEmails = array; continue; } - if (property.NameEquals("LastUpdatedTime"u8)) + if (property.NameEquals("lastUpdatedTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastUpdatedTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedTime = property.Value.GetString(); continue; } - if (property.NameEquals("RuleDefinitions"u8)) + if (property.NameEquals("ruleDefinitions"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -203,14 +199,14 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" Name: "); + builder.Append(" name: "); builder.AppendLine(propertyOverride); } else { if (Optional.IsDefined(Name)) { - builder.Append(" Name: "); + builder.Append(" name: "); if (Name.Contains(Environment.NewLine)) { builder.AppendLine("'''"); @@ -223,18 +219,18 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsEnabled), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Enabled), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" Enabled: "); + builder.Append(" enabled: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(IsEnabled)) + if (Optional.IsDefined(Enabled)) { - builder.Append(" Enabled: "); - var boolValue = IsEnabled.Value == true ? "true" : "false"; + builder.Append(" enabled: "); + var boolValue = Enabled.Value == true ? "true" : "false"; builder.AppendLine($"{boolValue}"); } } @@ -242,14 +238,14 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SendEmailsToSubscriptionOwners), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" SendEmailsToSubscriptionOwners: "); + builder.Append(" sendEmailsToSubscriptionOwners: "); builder.AppendLine(propertyOverride); } else { if (Optional.IsDefined(SendEmailsToSubscriptionOwners)) { - builder.Append(" SendEmailsToSubscriptionOwners: "); + builder.Append(" sendEmailsToSubscriptionOwners: "); var boolValue = SendEmailsToSubscriptionOwners.Value == true ? "true" : "false"; builder.AppendLine($"{boolValue}"); } @@ -258,7 +254,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomEmails), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" CustomEmails: "); + builder.Append(" customEmails: "); builder.AppendLine(propertyOverride); } else @@ -267,7 +263,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) { if (CustomEmails.Any()) { - builder.Append(" CustomEmails: "); + builder.Append(" customEmails: "); builder.AppendLine("["); foreach (var item in CustomEmails) { @@ -291,34 +287,41 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastUpdatedOn), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastUpdatedTime), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" LastUpdatedTime: "); + builder.Append(" lastUpdatedTime: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(LastUpdatedOn)) + if (Optional.IsDefined(LastUpdatedTime)) { - builder.Append(" LastUpdatedTime: "); - var formattedDateTimeString = TypeFormatters.ToString(LastUpdatedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); + builder.Append(" lastUpdatedTime: "); + if (LastUpdatedTime.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{LastUpdatedTime}'''"); + } + else + { + builder.AppendLine($"'{LastUpdatedTime}'"); + } } } hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RuleDefinitions), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" RuleDefinitions: "); + builder.Append(" ruleDefinitions: "); builder.AppendLine(propertyOverride); } else { if (Optional.IsDefined(RuleDefinitions)) { - builder.Append(" RuleDefinitions: "); - BicepSerializationHelpers.AppendChildObject(builder, RuleDefinitions, options, 2, false, " RuleDefinitions: "); + builder.Append(" ruleDefinitions: "); + BicepSerializationHelpers.AppendChildObject(builder, RuleDefinitions, options, 2, false, " ruleDefinitions: "); } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs index 2800ddc09508..3a04b773300b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs @@ -53,40 +53,40 @@ public ApplicationInsightsComponentProactiveDetectionConfiguration() /// Initializes a new instance of . /// The rule name. - /// A flag that indicates whether this rule is enabled by the user. + /// A flag that indicates whether this rule is enabled by the user. /// A flag that indicated whether notifications on this rule should be sent to subscription owners. /// Custom email addresses for this rule notifications. - /// The last time this rule was updated. + /// The last time this rule was updated. /// Static definitions of the ProactiveDetection configuration rule (same values for all components). /// Keeps track of any properties unknown to the library. - internal ApplicationInsightsComponentProactiveDetectionConfiguration(string name, bool? isEnabled, bool? sendEmailsToSubscriptionOwners, IList customEmails, DateTimeOffset? lastUpdatedOn, ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions, IDictionary serializedAdditionalRawData) + internal ApplicationInsightsComponentProactiveDetectionConfiguration(string name, bool? enabled, bool? sendEmailsToSubscriptionOwners, IList customEmails, string lastUpdatedTime, ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions, IDictionary serializedAdditionalRawData) { Name = name; - IsEnabled = isEnabled; + Enabled = enabled; SendEmailsToSubscriptionOwners = sendEmailsToSubscriptionOwners; CustomEmails = customEmails; - LastUpdatedOn = lastUpdatedOn; + LastUpdatedTime = lastUpdatedTime; RuleDefinitions = ruleDefinitions; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The rule name. - [WirePath("Name")] + [WirePath("name")] public string Name { get; set; } /// A flag that indicates whether this rule is enabled by the user. - [WirePath("Enabled")] - public bool? IsEnabled { get; set; } + [WirePath("enabled")] + public bool? Enabled { get; set; } /// A flag that indicated whether notifications on this rule should be sent to subscription owners. - [WirePath("SendEmailsToSubscriptionOwners")] + [WirePath("sendEmailsToSubscriptionOwners")] public bool? SendEmailsToSubscriptionOwners { get; set; } /// Custom email addresses for this rule notifications. - [WirePath("CustomEmails")] + [WirePath("customEmails")] public IList CustomEmails { get; } /// The last time this rule was updated. - [WirePath("LastUpdatedTime")] - public DateTimeOffset? LastUpdatedOn { get; set; } + [WirePath("lastUpdatedTime")] + public string LastUpdatedTime { get; set; } /// Static definitions of the ProactiveDetection configuration rule (same values for all components). - [WirePath("RuleDefinitions")] + [WirePath("ruleDefinitions")] public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions RuleDefinitions { get; set; } } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md index 1b012731d871..d50679f37290 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: ApplicationInsights namespace: Azure.ResourceManager.ApplicationInsights -require: https://github.com/Azure/azure-rest-api-specs/blob/d4f3374fc56a25acc5442a7efe5aee11413fdfe2/specification/applicationinsights/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md tag: package-2024-04-25-only output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md index fed92d5d76a6..9ffd46cfec6f 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: AppPlatform namespace: Azure.ResourceManager.AppPlatform -require: https://github.com/Azure/azure-rest-api-specs/blob/e99a45d498a1c7fadc18229ecba5d84a471a8771/specification/appplatform/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs index 2636b94c1687..1520d6cd6f8b 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs @@ -87,6 +87,7 @@ public AttestationProviderData(Azure.Core.AzureLocation location) { } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } public string TrustModel { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.AttestationProviderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -159,7 +160,7 @@ public static partial class ArmAttestationModelFactory public static Azure.ResourceManager.Attestation.AttestationPrivateEndpointConnectionData AttestationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string privateEndpointStringId = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkResource AttestationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationProviderCreateOrUpdateContent AttestationProviderCreateOrUpdateContent(Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams properties = null) { throw null; } - public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? tpmAttestationAuthentication = default(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.JsonWebKey JsonWebKey(string alg = null, string crv = null, string d = null, string dp = null, string dq = null, string e = null, string k = null, string kid = null, string kty = null, string n = null, string p = null, string q = null, string qi = null, string use = null, string x = null, System.Collections.Generic.IEnumerable x5C = null, string y = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -243,7 +244,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AttestationProviderPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AttestationProviderPatch() { } - public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? AttestationServicePatchSpecificParamsPublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationProviderPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -257,6 +258,7 @@ public partial class AttestationServiceCreationSpecificParams : System.ClientMod public AttestationServiceCreationSpecificParams() { } public System.Collections.Generic.IList PolicySigningCertificatesKeys { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -264,6 +266,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AttestationServicePatchSpecificParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AttestationServicePatchSpecificParams() { } + public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + 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 AttestationServiceStatus : System.IEquatable { @@ -328,4 +342,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType left, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TpmAttestationAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TpmAttestationAuthenticationType(string value) { throw null; } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Disabled { get { throw null; } } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType 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.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public static implicit operator Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs index 2636b94c1687..1520d6cd6f8b 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs @@ -87,6 +87,7 @@ public AttestationProviderData(Azure.Core.AzureLocation location) { } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } public string TrustModel { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.AttestationProviderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -159,7 +160,7 @@ public static partial class ArmAttestationModelFactory public static Azure.ResourceManager.Attestation.AttestationPrivateEndpointConnectionData AttestationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string privateEndpointStringId = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkResource AttestationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationProviderCreateOrUpdateContent AttestationProviderCreateOrUpdateContent(Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams properties = null) { throw null; } - public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? tpmAttestationAuthentication = default(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.JsonWebKey JsonWebKey(string alg = null, string crv = null, string d = null, string dp = null, string dq = null, string e = null, string k = null, string kid = null, string kty = null, string n = null, string p = null, string q = null, string qi = null, string use = null, string x = null, System.Collections.Generic.IEnumerable x5C = null, string y = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -243,7 +244,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AttestationProviderPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AttestationProviderPatch() { } - public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? AttestationServicePatchSpecificParamsPublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationProviderPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -257,6 +258,7 @@ public partial class AttestationServiceCreationSpecificParams : System.ClientMod public AttestationServiceCreationSpecificParams() { } public System.Collections.Generic.IList PolicySigningCertificatesKeys { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -264,6 +266,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AttestationServicePatchSpecificParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AttestationServicePatchSpecificParams() { } + public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + 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 AttestationServiceStatus : System.IEquatable { @@ -328,4 +342,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType left, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TpmAttestationAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TpmAttestationAuthenticationType(string value) { throw null; } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Disabled { get { throw null; } } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType 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.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public static implicit operator Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs index 92764ecd40a0..bbc78f2910ea 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AttestationPrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AttestationProviderPutPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderPutPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderPutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_AttestationProviderPutPrivateEndpointConnection [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_AttestationProviderGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_AttestationProviderListPrivateEndpointConnections() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderListPrivateEndpointConnections.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderListPrivateEndpointConnections.json // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetAll_AttestationProviderListPrivateEndpointConnections() [Ignore("Only validating compilation of examples")] public async Task Exists_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_AttestationProviderGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs index b936ba53f910..953ca6c73df5 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AttestationPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_AttestationProviderGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_AttestationProviderDeletePrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderDeletePrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_AttestationProviderDeletePrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_AttestationProviderPutPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderPutPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderPutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs index ff7c0818083a..8f98a14dd20a 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AttestationProviderCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AttestationProvidersCreate() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Create_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Create_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -44,6 +44,7 @@ public async Task CreateOrUpdate_AttestationProvidersCreate() AttestationProviderCreateOrUpdateContent content = new AttestationProviderCreateOrUpdateContent(new AzureLocation("East US"), new AttestationServiceCreationSpecificParams { PublicNetworkAccess = PublicNetworkAccessType.Enabled, + TpmAttestationAuthentication = TpmAttestationAuthenticationType.Enabled, }) { Tags = @@ -67,7 +68,7 @@ public async Task CreateOrUpdate_AttestationProvidersCreate() [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +101,7 @@ public async Task Get_AttestationProvidersGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_AttestationProvidersListByResourceGroup() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvidersListByResourceGroup.json // this example is just showing the usage of "AttestationProviders_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +136,7 @@ public async Task GetAll_AttestationProvidersListByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +165,7 @@ public async Task Exists_AttestationProvidersGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs index 3bf46d9e0f3c..53304acc0ff2 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AttestationProviderResource [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_AttestationProvidersGet() [Ignore("Only validating compilation of examples")] public async Task Delete_AttestationProvidersDelete() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Delete_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Delete_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_AttestationProvidersDelete() [Ignore("Only validating compilation of examples")] public async Task Update_AttestationProvidersUpdate() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Update_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Update_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,11 @@ public async Task Update_AttestationProvidersUpdate() ["Property2"] = "Value2", ["Property3"] = "Value3" }, - AttestationServicePatchSpecificParamsPublicNetworkAccess = PublicNetworkAccessType.Disabled, + Properties = new AttestationServicePatchSpecificParams + { + PublicNetworkAccess = PublicNetworkAccessType.Disabled, + TpmAttestationAuthentication = TpmAttestationAuthenticationType.Disabled, + }, }; AttestationProviderResource result = await attestationProvider.UpdateAsync(patch); @@ -116,7 +120,7 @@ public async Task Update_AttestationProvidersUpdate() [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResourcesByProvider_AttestationProviderListPrivateLinkResources() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderListPrivateLinkResources.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderListPrivateLinkResources.json // this example is just showing the usage of "PrivateLinkResources_ListByProvider" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 038759246606..5e6c8dd9b43e 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -20,7 +20,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetAttestationProviders_AttestationProvidersList() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvidersList.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvidersList.json // this example is just showing the usage of "AttestationProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task GetAttestationProviders_AttestationProvidersList() [Ignore("Only validating compilation of examples")] public async Task GetAttestationProvidersByDefaultProvider_AttestationProvidersGetDefault() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_DefaultProviders.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_DefaultProviders.json // this example is just showing the usage of "AttestationProviders_ListDefault" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task GetAttestationProvidersByDefaultProvider_AttestationProvidersG [Ignore("Only validating compilation of examples")] public async Task GetDefaultByLocationAttestationProvider_AttestationProvidersGetDefaultWithLocation() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_DefaultProviderByLocation.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_DefaultProviderByLocation.json // this example is just showing the usage of "AttestationProviders_GetDefaultByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs index eb7b662d223e..2fac01eef316 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs @@ -28,8 +28,9 @@ public static partial class ArmAttestationModelFactory /// Gets the uri of attestation service. /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. /// List of private endpoint connections associated with the attestation provider. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// A new instance for mocking. - public static AttestationProviderData AttestationProviderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string trustModel = null, AttestationServiceStatus? status = null, Uri attestUri = null, PublicNetworkAccessType? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null) + public static AttestationProviderData AttestationProviderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string trustModel = null, AttestationServiceStatus? status = null, Uri attestUri = null, PublicNetworkAccessType? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, TpmAttestationAuthenticationType? tpmAttestationAuthentication = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); @@ -46,6 +47,7 @@ public static AttestationProviderData AttestationProviderData(ResourceIdentifier attestUri, publicNetworkAccess, privateEndpointConnections?.ToList(), + tpmAttestationAuthentication, serializedAdditionalRawData: null); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs index fc0e3c4afe3d..e9d27431e0ab 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation Create /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(Can /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs index 9b0fe9a725e8..69beb28135c1 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs index 14a9c223a49a..c005808b254d 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs @@ -54,7 +54,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// /// /// Request Path @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -105,7 +105,7 @@ public virtual async Task> CreateOrUpd } /// - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// /// /// Request Path @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string providerName, Ca /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string providerName, Cance /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string providerName, CancellationToken canc /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs index ab950e1d1743..a03b6c21182d 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs @@ -69,6 +69,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(TpmAttestationAuthentication)) + { + writer.WritePropertyName("tpmAttestationAuthentication"u8); + writer.WriteStringValue(TpmAttestationAuthentication.Value.ToString()); + } writer.WriteEndObject(); } @@ -103,6 +108,7 @@ internal static AttestationProviderData DeserializeAttestationProviderData(JsonE Uri attestUri = default; PublicNetworkAccessType? publicNetworkAccess = default; IReadOnlyList privateEndpointConnections = default; + TpmAttestationAuthenticationType? tpmAttestationAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -205,6 +211,15 @@ internal static AttestationProviderData DeserializeAttestationProviderData(JsonE privateEndpointConnections = array; continue; } + if (property0.NameEquals("tpmAttestationAuthentication"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tpmAttestationAuthentication = new TpmAttestationAuthenticationType(property0.Value.GetString()); + continue; + } } continue; } @@ -226,6 +241,7 @@ internal static AttestationProviderData DeserializeAttestationProviderData(JsonE attestUri, publicNetworkAccess, privateEndpointConnections ?? new ChangeTrackingList(), + tpmAttestationAuthentication, serializedAdditionalRawData); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs index 095695205626..07efe0a49414 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs @@ -70,14 +70,16 @@ public AttestationProviderData(AzureLocation location) : base(location) /// Gets the uri of attestation service. /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. /// List of private endpoint connections associated with the attestation provider. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// Keeps track of any properties unknown to the library. - internal AttestationProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string trustModel, AttestationServiceStatus? status, Uri attestUri, PublicNetworkAccessType? publicNetworkAccess, IReadOnlyList privateEndpointConnections, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal AttestationProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string trustModel, AttestationServiceStatus? status, Uri attestUri, PublicNetworkAccessType? publicNetworkAccess, IReadOnlyList privateEndpointConnections, TpmAttestationAuthenticationType? tpmAttestationAuthentication, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { TrustModel = trustModel; Status = status; AttestUri = attestUri; PublicNetworkAccess = publicNetworkAccess; PrivateEndpointConnections = privateEndpointConnections; + TpmAttestationAuthentication = tpmAttestationAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -96,5 +98,7 @@ internal AttestationProviderData() public PublicNetworkAccessType? PublicNetworkAccess { get; set; } /// List of private endpoint connections associated with the attestation provider. public IReadOnlyList PrivateEndpointConnections { get; } + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. + public TpmAttestationAuthenticationType? TpmAttestationAuthentication { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs index 0b32392e72c9..110c1f488d90 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs @@ -115,7 +115,7 @@ public virtual AttestationPrivateEndpointConnectionCollection GetAttestationPriv /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response GetAttesta /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -387,7 +387,7 @@ public virtual async Task> UpdateAsync(Att /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual Response Update(AttestationProviderP /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// @@ -454,7 +454,7 @@ public virtual AsyncPageable GetPrivateLinkResou /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// @@ -479,7 +479,7 @@ public virtual Pageable GetPrivateLinkResourcesB /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -541,7 +541,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -717,7 +717,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -777,7 +777,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs index c8e35f06d1cf..ae012ccb37f0 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs @@ -100,7 +100,7 @@ public static AttestationProviderCollection GetAttestationProviders(this Resourc /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -138,7 +138,7 @@ public static async Task> GetAttestationPr /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -176,7 +176,7 @@ public static Response GetAttestationProvider(this /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -212,7 +212,7 @@ public static AsyncPageable GetAttestationProviders /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -248,7 +248,7 @@ public static Pageable GetAttestationProviders(this /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -284,7 +284,7 @@ public static AsyncPageable GetAttestationProviders /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -320,7 +320,7 @@ public static Pageable GetAttestationProvidersByDef /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -356,7 +356,7 @@ public static async Task> GetDefaultByLoca /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs index 73a9a51e458c..b376ed2882e8 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual AttestationProviderCollection GetAttestationProviders() /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetAttestationP /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs index ba946f6e6456..d2016c7f28d6 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs @@ -54,7 +54,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -83,7 +83,7 @@ public virtual AsyncPageable GetAttestationProvider /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual Pageable GetAttestationProviders(Can /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual AsyncPageable GetAttestationProvider /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Pageable GetAttestationProvidersByDe /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetDefaultByLoc /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs index 2d0eff7aa080..1bdb66a070e1 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs @@ -65,17 +65,6 @@ internal AttestationProviderPatch(IDictionary tags, AttestationS /// The tags that will be assigned to the attestation provider. public IDictionary Tags { get; } /// Properties of the attestation provider. - internal AttestationServicePatchSpecificParams Properties { get; set; } - /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. - public PublicNetworkAccessType? AttestationServicePatchSpecificParamsPublicNetworkAccess - { - get => Properties is null ? default : Properties.PublicNetworkAccess; - set - { - if (Properties is null) - Properties = new AttestationServicePatchSpecificParams(); - Properties.PublicNetworkAccess = value; - } - } + public AttestationServicePatchSpecificParams Properties { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs index 6c4657ae9d52..7e145ebec7b4 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs @@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("policySigningCertificates"u8); writer.WriteObjectValue(PolicySigningCertificates, options); } + if (Optional.IsDefined(TpmAttestationAuthentication)) + { + writer.WritePropertyName("tpmAttestationAuthentication"u8); + writer.WriteStringValue(TpmAttestationAuthentication.Value.ToString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +88,7 @@ internal static AttestationServiceCreationSpecificParams DeserializeAttestationS } PublicNetworkAccessType? publicNetworkAccess = default; JsonWebKeySet policySigningCertificates = default; + TpmAttestationAuthenticationType? tpmAttestationAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -105,13 +111,22 @@ internal static AttestationServiceCreationSpecificParams DeserializeAttestationS policySigningCertificates = JsonWebKeySet.DeserializeJsonWebKeySet(property.Value, options); continue; } + if (property.NameEquals("tpmAttestationAuthentication"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tpmAttestationAuthentication = new TpmAttestationAuthenticationType(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AttestationServiceCreationSpecificParams(publicNetworkAccess, policySigningCertificates, serializedAdditionalRawData); + return new AttestationServiceCreationSpecificParams(publicNetworkAccess, policySigningCertificates, tpmAttestationAuthentication, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs index b940cfbe0c7e..838877a73691 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs @@ -53,11 +53,13 @@ public AttestationServiceCreationSpecificParams() /// Initializes a new instance of . /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. /// JSON Web Key Set defining a set of X.509 Certificates that will represent the parent certificate for the signing certificate used for policy operations. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// Keeps track of any properties unknown to the library. - internal AttestationServiceCreationSpecificParams(PublicNetworkAccessType? publicNetworkAccess, JsonWebKeySet policySigningCertificates, IDictionary serializedAdditionalRawData) + internal AttestationServiceCreationSpecificParams(PublicNetworkAccessType? publicNetworkAccess, JsonWebKeySet policySigningCertificates, TpmAttestationAuthenticationType? tpmAttestationAuthentication, IDictionary serializedAdditionalRawData) { PublicNetworkAccess = publicNetworkAccess; PolicySigningCertificates = policySigningCertificates; + TpmAttestationAuthentication = tpmAttestationAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -81,5 +83,8 @@ public IList PolicySigningCertificatesKeys return PolicySigningCertificates.Keys; } } + + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. + public TpmAttestationAuthenticationType? TpmAttestationAuthentication { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs index 0bc20351dcc2..74560b29e53a 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Attestation.Models { - internal partial class AttestationServicePatchSpecificParams : IUtf8JsonSerializable, IJsonModel + public partial class AttestationServicePatchSpecificParams : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); @@ -39,6 +39,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("publicNetworkAccess"u8); writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); } + if (Optional.IsDefined(TpmAttestationAuthentication)) + { + writer.WritePropertyName("tpmAttestationAuthentication"u8); + writer.WriteStringValue(TpmAttestationAuthentication.Value.ToString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -77,6 +82,7 @@ internal static AttestationServicePatchSpecificParams DeserializeAttestationServ return null; } PublicNetworkAccessType? publicNetworkAccess = default; + TpmAttestationAuthenticationType? tpmAttestationAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -90,13 +96,22 @@ internal static AttestationServicePatchSpecificParams DeserializeAttestationServ publicNetworkAccess = new PublicNetworkAccessType(property.Value.GetString()); continue; } + if (property.NameEquals("tpmAttestationAuthentication"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tpmAttestationAuthentication = new TpmAttestationAuthenticationType(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AttestationServicePatchSpecificParams(publicNetworkAccess, serializedAdditionalRawData); + return new AttestationServicePatchSpecificParams(publicNetworkAccess, tpmAttestationAuthentication, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs index 48397d01b653..8ff40450d93c 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Attestation.Models { /// Client supplied parameters used to patch an existing attestation provider. - internal partial class AttestationServicePatchSpecificParams + public partial class AttestationServicePatchSpecificParams { /// /// Keeps track of any properties unknown to the library. @@ -52,14 +52,18 @@ public AttestationServicePatchSpecificParams() /// Initializes a new instance of . /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// Keeps track of any properties unknown to the library. - internal AttestationServicePatchSpecificParams(PublicNetworkAccessType? publicNetworkAccess, IDictionary serializedAdditionalRawData) + internal AttestationServicePatchSpecificParams(PublicNetworkAccessType? publicNetworkAccess, TpmAttestationAuthenticationType? tpmAttestationAuthentication, IDictionary serializedAdditionalRawData) { PublicNetworkAccess = publicNetworkAccess; + TpmAttestationAuthentication = tpmAttestationAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. public PublicNetworkAccessType? PublicNetworkAccess { get; set; } + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. + public TpmAttestationAuthenticationType? TpmAttestationAuthentication { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/TpmAttestationAuthenticationType.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/TpmAttestationAuthenticationType.cs new file mode 100644 index 000000000000..b5ae932f573c --- /dev/null +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/TpmAttestationAuthenticationType.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.Attestation.Models +{ + /// The type for specifying the requirement of authentication for TPM Attestation REST APIs. + public readonly partial struct TpmAttestationAuthenticationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TpmAttestationAuthenticationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enables the requirement of authentication for TPM Attestation REST APIs. + public static TpmAttestationAuthenticationType Enabled { get; } = new TpmAttestationAuthenticationType(EnabledValue); + /// Disables the requirement of authentication for TPM Attestation REST APIs. + public static TpmAttestationAuthenticationType Disabled { get; } = new TpmAttestationAuthenticationType(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(TpmAttestationAuthenticationType left, TpmAttestationAuthenticationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TpmAttestationAuthenticationType left, TpmAttestationAuthenticationType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator TpmAttestationAuthenticationType(string value) => new TpmAttestationAuthenticationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TpmAttestationAuthenticationType other && Equals(other); + /// + public bool Equals(TpmAttestationAuthenticationType 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/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs index e513ededbb0f..e0ad32e7615b 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs @@ -32,7 +32,7 @@ public AttestationProvidersRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01-preview"; + _apiVersion = apiVersion ?? "2021-06-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -170,7 +170,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG return message; } - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the attestation provider. @@ -202,7 +202,7 @@ public async Task> CreateAsync(string subscrip } } - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the attestation provider. diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 2931ca442104..d80097446dbd 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01-preview"; + _apiVersion = apiVersion ?? "2021-06-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 00b4b8366619..46a8e46f9da7 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01-preview"; + _apiVersion = apiVersion ?? "2021-06-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md index 01e49a1f6602..f82c8687edf0 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Attestation namespace: Azure.ResourceManager.Attestation -require: https://github.com/Azure/azure-rest-api-specs/blob/4270cc435fd2496bdb2a5f056dbddb463e52c7c2/specification/attestation/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/attestation/resource-manager/readme.md # This tag is for preview tag: package-2021-06-01 output-folder: $(this-folder)/Generated diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.net8.0.cs b/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.net8.0.cs index e16fd7cdf207..f2a740ae3046 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.net8.0.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.net8.0.cs @@ -158,10 +158,14 @@ public partial class AuthorizationRoleDefinitionData : Azure.ResourceManager.Mod { public AuthorizationRoleDefinitionData() { } public System.Collections.Generic.IList AssignableScopes { get { throw null; } } + public string CreatedBy { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList Permissions { get { throw null; } } public string RoleName { get { throw null; } set { } } public Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? RoleType { get { throw null; } set { } } + public string UpdatedBy { get { throw null; } } + public System.DateTimeOffset? UpdatedOn { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -206,6 +210,10 @@ protected DenyAssignmentCollection() { } public partial class DenyAssignmentData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal DenyAssignmentData() { } + public string Condition { get { throw null; } } + public string ConditionVersion { get { throw null; } } + public string CreatedBy { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } public string DenyAssignmentName { get { throw null; } } public string Description { get { throw null; } } public System.Collections.Generic.IReadOnlyList ExcludePrincipals { get { throw null; } } @@ -214,6 +222,8 @@ internal DenyAssignmentData() { } public System.Collections.Generic.IReadOnlyList Permissions { get { throw null; } } public System.Collections.Generic.IReadOnlyList Principals { get { throw null; } } public string Scope { get { throw null; } } + public string UpdatedBy { get { throw null; } } + public System.DateTimeOffset? UpdatedOn { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Authorization.DenyAssignmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -874,8 +884,12 @@ public static partial class ArmAuthorizationModelFactory public static Azure.ResourceManager.Authorization.Models.AuthorizationProviderOperationInfo AuthorizationProviderOperationInfo(string name = null, string displayName = null, string description = null, string origin = null, System.BinaryData properties = null, bool? isDataAction = default(bool?)) { throw null; } public static Azure.ResourceManager.Authorization.AuthorizationProviderOperationsMetadataData AuthorizationProviderOperationsMetadataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable operations = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.AuthorizationProviderResourceType AuthorizationProviderResourceType(string name = null, string displayName = null, System.Collections.Generic.IEnumerable operations = null) { throw null; } - public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string roleName = null, string description = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), System.Collections.Generic.IEnumerable permissions = null, System.Collections.Generic.IEnumerable assignableScopes = null) { throw null; } - public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string denyAssignmentName = null, string description = null, System.Collections.Generic.IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = default(bool?), System.Collections.Generic.IEnumerable principals = null, System.Collections.Generic.IEnumerable excludePrincipals = null, bool? isSystemProtected = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string roleName, string description, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType, System.Collections.Generic.IEnumerable permissions, System.Collections.Generic.IEnumerable assignableScopes) { throw null; } + public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string roleName = null, string description = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), System.Collections.Generic.IEnumerable permissions = null, System.Collections.Generic.IEnumerable assignableScopes = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string createdBy = null, string updatedBy = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string denyAssignmentName, string description, System.Collections.Generic.IEnumerable permissions, string scope, bool? isAppliedToChildScopes, System.Collections.Generic.IEnumerable principals, System.Collections.Generic.IEnumerable excludePrincipals, bool? isSystemProtected) { throw null; } + public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string denyAssignmentName = null, string description = null, System.Collections.Generic.IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = default(bool?), System.Collections.Generic.IEnumerable principals = null, System.Collections.Generic.IEnumerable excludePrincipals = null, bool? isSystemProtected = default(bool?), string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string createdBy = null, string updatedBy = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.DenyAssignmentPermission DenyAssignmentPermission(System.Collections.Generic.IEnumerable actions = null, System.Collections.Generic.IEnumerable notActions = null, System.Collections.Generic.IEnumerable dataActions = null, System.Collections.Generic.IEnumerable notDataActions = null, string condition = null, string conditionVersion = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.EligibleChildResource EligibleChildResource(string id = null, string name = null, string resourceType = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties PolicyAssignmentProperties(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier policyId = null, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal lastModifiedBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier roleDefinitionId = null, string roleDefinitionDisplayName = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), Azure.Core.ResourceIdentifier scopeId = null, string scopeDisplayName = null, Azure.ResourceManager.Authorization.Models.RoleManagementScopeType? scopeType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScopeType?)) { throw null; } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs b/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs index e16fd7cdf207..f2a740ae3046 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs @@ -158,10 +158,14 @@ public partial class AuthorizationRoleDefinitionData : Azure.ResourceManager.Mod { public AuthorizationRoleDefinitionData() { } public System.Collections.Generic.IList AssignableScopes { get { throw null; } } + public string CreatedBy { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList Permissions { get { throw null; } } public string RoleName { get { throw null; } set { } } public Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? RoleType { get { throw null; } set { } } + public string UpdatedBy { get { throw null; } } + public System.DateTimeOffset? UpdatedOn { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -206,6 +210,10 @@ protected DenyAssignmentCollection() { } public partial class DenyAssignmentData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal DenyAssignmentData() { } + public string Condition { get { throw null; } } + public string ConditionVersion { get { throw null; } } + public string CreatedBy { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } public string DenyAssignmentName { get { throw null; } } public string Description { get { throw null; } } public System.Collections.Generic.IReadOnlyList ExcludePrincipals { get { throw null; } } @@ -214,6 +222,8 @@ internal DenyAssignmentData() { } public System.Collections.Generic.IReadOnlyList Permissions { get { throw null; } } public System.Collections.Generic.IReadOnlyList Principals { get { throw null; } } public string Scope { get { throw null; } } + public string UpdatedBy { get { throw null; } } + public System.DateTimeOffset? UpdatedOn { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Authorization.DenyAssignmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -874,8 +884,12 @@ public static partial class ArmAuthorizationModelFactory public static Azure.ResourceManager.Authorization.Models.AuthorizationProviderOperationInfo AuthorizationProviderOperationInfo(string name = null, string displayName = null, string description = null, string origin = null, System.BinaryData properties = null, bool? isDataAction = default(bool?)) { throw null; } public static Azure.ResourceManager.Authorization.AuthorizationProviderOperationsMetadataData AuthorizationProviderOperationsMetadataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable operations = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.AuthorizationProviderResourceType AuthorizationProviderResourceType(string name = null, string displayName = null, System.Collections.Generic.IEnumerable operations = null) { throw null; } - public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string roleName = null, string description = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), System.Collections.Generic.IEnumerable permissions = null, System.Collections.Generic.IEnumerable assignableScopes = null) { throw null; } - public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string denyAssignmentName = null, string description = null, System.Collections.Generic.IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = default(bool?), System.Collections.Generic.IEnumerable principals = null, System.Collections.Generic.IEnumerable excludePrincipals = null, bool? isSystemProtected = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string roleName, string description, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType, System.Collections.Generic.IEnumerable permissions, System.Collections.Generic.IEnumerable assignableScopes) { throw null; } + public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string roleName = null, string description = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), System.Collections.Generic.IEnumerable permissions = null, System.Collections.Generic.IEnumerable assignableScopes = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string createdBy = null, string updatedBy = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string denyAssignmentName, string description, System.Collections.Generic.IEnumerable permissions, string scope, bool? isAppliedToChildScopes, System.Collections.Generic.IEnumerable principals, System.Collections.Generic.IEnumerable excludePrincipals, bool? isSystemProtected) { throw null; } + public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string denyAssignmentName = null, string description = null, System.Collections.Generic.IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = default(bool?), System.Collections.Generic.IEnumerable principals = null, System.Collections.Generic.IEnumerable excludePrincipals = null, bool? isSystemProtected = default(bool?), string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string createdBy = null, string updatedBy = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.DenyAssignmentPermission DenyAssignmentPermission(System.Collections.Generic.IEnumerable actions = null, System.Collections.Generic.IEnumerable notActions = null, System.Collections.Generic.IEnumerable dataActions = null, System.Collections.Generic.IEnumerable notDataActions = null, string condition = null, string conditionVersion = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.EligibleChildResource EligibleChildResource(string id = null, string name = null, string resourceType = null) { throw null; } public static Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties PolicyAssignmentProperties(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier policyId = null, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal lastModifiedBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier roleDefinitionId = null, string roleDefinitionDisplayName = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), Azure.Core.ResourceIdentifier scopeId = null, string scopeDisplayName = null, Azure.ResourceManager.Authorization.Models.RoleManagementScopeType? scopeType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScopeType?)) { throw null; } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs index 7314569da556..c57bdcf8dbef 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -49,8 +50,14 @@ public static AuthorizationClassicAdministrator AuthorizationClassicAdministrato /// Array of principals to which the deny assignment applies. /// Array of principals to which the deny assignment does not apply. /// Specifies whether this deny assignment was created by Azure and cannot be edited or deleted. + /// The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. + /// Time it was created. + /// Time it was updated. + /// Id of the user who created the assignment. + /// Id of the user who updated the assignment. /// A new instance for mocking. - public static DenyAssignmentData DenyAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string denyAssignmentName = null, string description = null, IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = null, IEnumerable principals = null, IEnumerable excludePrincipals = null, bool? isSystemProtected = null) + public static DenyAssignmentData DenyAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string denyAssignmentName = null, string description = null, IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = null, IEnumerable principals = null, IEnumerable excludePrincipals = null, bool? isSystemProtected = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, string createdBy = null, string updatedBy = null) { permissions ??= new List(); principals ??= new List(); @@ -69,6 +76,12 @@ public static DenyAssignmentData DenyAssignmentData(ResourceIdentifier id = null principals?.ToList(), excludePrincipals?.ToList(), isSystemProtected, + condition, + conditionVersion, + createdOn, + updatedOn, + createdBy, + updatedBy, serializedAdditionalRawData: null); } @@ -247,8 +260,12 @@ public static RoleAssignmentCreateOrUpdateContent RoleAssignmentCreateOrUpdateCo /// The role type. /// Role definition permissions. /// Role definition assignable scopes. + /// Time it was created. + /// Time it was updated. + /// Id of the user who created the assignment. + /// Id of the user who updated the assignment. /// A new instance for mocking. - public static AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string roleName = null, string description = null, AuthorizationRoleType? roleType = null, IEnumerable permissions = null, IEnumerable assignableScopes = null) + public static AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string roleName = null, string description = null, AuthorizationRoleType? roleType = null, IEnumerable permissions = null, IEnumerable assignableScopes = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, string createdBy = null, string updatedBy = null) { permissions ??= new List(); assignableScopes ??= new List(); @@ -263,6 +280,10 @@ public static AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Re roleType, permissions?.ToList(), assignableScopes?.ToList(), + createdOn, + updatedOn, + createdBy, + updatedBy, serializedAdditionalRawData: null); } @@ -722,5 +743,42 @@ public static PolicyAssignmentProperties PolicyAssignmentProperties(ResourceIden scopeType, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The display name of the deny assignment. + /// The description of the deny assignment. + /// An array of permissions that are denied by the deny assignment. + /// The deny assignment scope. + /// Determines if the deny assignment applies to child scopes. Default value is false. + /// Array of principals to which the deny assignment applies. + /// Array of principals to which the deny assignment does not apply. + /// Specifies whether this deny assignment was created by Azure and cannot be edited or deleted. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static DenyAssignmentData DenyAssignmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string denyAssignmentName, string description, IEnumerable permissions, string scope, bool? isAppliedToChildScopes, IEnumerable principals, IEnumerable excludePrincipals, bool? isSystemProtected) + { + return DenyAssignmentData(id: id, name: name, resourceType: resourceType, systemData: systemData, denyAssignmentName: denyAssignmentName, description: description, permissions: permissions, scope: scope, isAppliedToChildScopes: isAppliedToChildScopes, principals: principals, excludePrincipals: excludePrincipals, isSystemProtected: isSystemProtected, condition: default, conditionVersion: default, createdOn: default, updatedOn: default, createdBy: default, updatedBy: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role name. + /// The role definition description. + /// The role type. + /// Role definition permissions. + /// Role definition assignable scopes. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string roleName, string description, AuthorizationRoleType? roleType, IEnumerable permissions, IEnumerable assignableScopes) + { + return AuthorizationRoleDefinitionData(id: id, name: name, resourceType: resourceType, systemData: systemData, roleName: roleName, description: description, roleType: roleType, permissions: permissions, assignableScopes: assignableScopes, createdOn: default, updatedOn: default, createdBy: default, updatedBy: default); + } } } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.Serialization.cs index 54cecc1f7151..fb787c4550b7 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.Serialization.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.Serialization.cs @@ -76,6 +76,26 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (options.Format != "W" && Optional.IsDefined(CreatedOn)) + { + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(UpdatedOn)) + { + writer.WritePropertyName("updatedOn"u8); + writer.WriteStringValue(UpdatedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(CreatedBy)) + { + writer.WritePropertyName("createdBy"u8); + writer.WriteStringValue(CreatedBy); + } + if (options.Format != "W" && Optional.IsDefined(UpdatedBy)) + { + writer.WritePropertyName("updatedBy"u8); + writer.WriteStringValue(UpdatedBy); + } writer.WriteEndObject(); } @@ -108,6 +128,10 @@ internal static AuthorizationRoleDefinitionData DeserializeAuthorizationRoleDefi AuthorizationRoleType? type0 = default; IList permissions = default; IList assignableScopes = default; + DateTimeOffset? createdOn = default; + DateTimeOffset? updatedOn = default; + string createdBy = default; + string updatedBy = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -192,6 +216,34 @@ internal static AuthorizationRoleDefinitionData DeserializeAuthorizationRoleDefi assignableScopes = array; continue; } + if (property0.NameEquals("createdOn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createdOn = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("updatedOn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + updatedOn = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("createdBy"u8)) + { + createdBy = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("updatedBy"u8)) + { + updatedBy = property0.Value.GetString(); + continue; + } } continue; } @@ -211,6 +263,10 @@ internal static AuthorizationRoleDefinitionData DeserializeAuthorizationRoleDefi type0, permissions ?? new ChangeTrackingList(), assignableScopes ?? new ChangeTrackingList(), + createdOn, + updatedOn, + createdBy, + updatedBy, serializedAdditionalRawData); } @@ -400,6 +456,84 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedOn), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" createdOn: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(CreatedOn)) + { + builder.Append(" createdOn: "); + var formattedDateTimeString = TypeFormatters.ToString(CreatedOn.Value, "o"); + builder.AppendLine($"'{formattedDateTimeString}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(UpdatedOn), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" updatedOn: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(UpdatedOn)) + { + builder.Append(" updatedOn: "); + var formattedDateTimeString = TypeFormatters.ToString(UpdatedOn.Value, "o"); + builder.AppendLine($"'{formattedDateTimeString}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedBy), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" createdBy: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(CreatedBy)) + { + builder.Append(" createdBy: "); + if (CreatedBy.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{CreatedBy}'''"); + } + else + { + builder.AppendLine($"'{CreatedBy}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(UpdatedBy), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" updatedBy: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(UpdatedBy)) + { + builder.Append(" updatedBy: "); + if (UpdatedBy.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{UpdatedBy}'''"); + } + else + { + builder.AppendLine($"'{UpdatedBy}'"); + } + } + } + builder.AppendLine(" }"); builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.cs index 81876f19e5b3..0e848ccaa5b6 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionData.cs @@ -68,14 +68,22 @@ public AuthorizationRoleDefinitionData() /// The role type. /// Role definition permissions. /// Role definition assignable scopes. + /// Time it was created. + /// Time it was updated. + /// Id of the user who created the assignment. + /// Id of the user who updated the assignment. /// Keeps track of any properties unknown to the library. - internal AuthorizationRoleDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string roleName, string description, AuthorizationRoleType? roleType, IList permissions, IList assignableScopes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AuthorizationRoleDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string roleName, string description, AuthorizationRoleType? roleType, IList permissions, IList assignableScopes, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, string createdBy, string updatedBy, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { RoleName = roleName; Description = description; RoleType = roleType; Permissions = permissions; AssignableScopes = assignableScopes; + CreatedOn = createdOn; + UpdatedOn = updatedOn; + CreatedBy = createdBy; + UpdatedBy = updatedBy; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -94,5 +102,17 @@ internal AuthorizationRoleDefinitionData(ResourceIdentifier id, string name, Res /// Role definition assignable scopes. [WirePath("properties.assignableScopes")] public IList AssignableScopes { get; } + /// Time it was created. + [WirePath("properties.createdOn")] + public DateTimeOffset? CreatedOn { get; } + /// Time it was updated. + [WirePath("properties.updatedOn")] + public DateTimeOffset? UpdatedOn { get; } + /// Id of the user who created the assignment. + [WirePath("properties.createdBy")] + public string CreatedBy { get; } + /// Id of the user who updated the assignment. + [WirePath("properties.updatedBy")] + public string UpdatedBy { get; } } } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.Serialization.cs index e2d0c9ed59b6..504acd90eaa7 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.Serialization.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.Serialization.cs @@ -96,6 +96,36 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("isSystemProtected"u8); writer.WriteBooleanValue(IsSystemProtected.Value); } + if (Optional.IsDefined(Condition)) + { + writer.WritePropertyName("condition"u8); + writer.WriteStringValue(Condition); + } + if (Optional.IsDefined(ConditionVersion)) + { + writer.WritePropertyName("conditionVersion"u8); + writer.WriteStringValue(ConditionVersion); + } + if (options.Format != "W" && Optional.IsDefined(CreatedOn)) + { + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(UpdatedOn)) + { + writer.WritePropertyName("updatedOn"u8); + writer.WriteStringValue(UpdatedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(CreatedBy)) + { + writer.WritePropertyName("createdBy"u8); + writer.WriteStringValue(CreatedBy); + } + if (options.Format != "W" && Optional.IsDefined(UpdatedBy)) + { + writer.WritePropertyName("updatedBy"u8); + writer.WriteStringValue(UpdatedBy); + } writer.WriteEndObject(); } @@ -131,6 +161,12 @@ internal static DenyAssignmentData DeserializeDenyAssignmentData(JsonElement ele IReadOnlyList principals = default; IReadOnlyList excludePrincipals = default; bool? isSystemProtected = default; + string condition = default; + string conditionVersion = default; + DateTimeOffset? createdOn = default; + DateTimeOffset? updatedOn = default; + string createdBy = default; + string updatedBy = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -243,6 +279,44 @@ internal static DenyAssignmentData DeserializeDenyAssignmentData(JsonElement ele isSystemProtected = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("condition"u8)) + { + condition = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("conditionVersion"u8)) + { + conditionVersion = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("createdOn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createdOn = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("updatedOn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + updatedOn = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("createdBy"u8)) + { + createdBy = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("updatedBy"u8)) + { + updatedBy = property0.Value.GetString(); + continue; + } } continue; } @@ -265,6 +339,12 @@ internal static DenyAssignmentData DeserializeDenyAssignmentData(JsonElement ele principals ?? new ChangeTrackingList(), excludePrincipals ?? new ChangeTrackingList(), isSystemProtected, + condition, + conditionVersion, + createdOn, + updatedOn, + createdBy, + updatedBy, serializedAdditionalRawData); } @@ -504,6 +584,130 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Condition), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" condition: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Condition)) + { + builder.Append(" condition: "); + if (Condition.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Condition}'''"); + } + else + { + builder.AppendLine($"'{Condition}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ConditionVersion), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" conditionVersion: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ConditionVersion)) + { + builder.Append(" conditionVersion: "); + if (ConditionVersion.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{ConditionVersion}'''"); + } + else + { + builder.AppendLine($"'{ConditionVersion}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedOn), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" createdOn: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(CreatedOn)) + { + builder.Append(" createdOn: "); + var formattedDateTimeString = TypeFormatters.ToString(CreatedOn.Value, "o"); + builder.AppendLine($"'{formattedDateTimeString}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(UpdatedOn), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" updatedOn: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(UpdatedOn)) + { + builder.Append(" updatedOn: "); + var formattedDateTimeString = TypeFormatters.ToString(UpdatedOn.Value, "o"); + builder.AppendLine($"'{formattedDateTimeString}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedBy), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" createdBy: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(CreatedBy)) + { + builder.Append(" createdBy: "); + if (CreatedBy.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{CreatedBy}'''"); + } + else + { + builder.AppendLine($"'{CreatedBy}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(UpdatedBy), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" updatedBy: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(UpdatedBy)) + { + builder.Append(" updatedBy: "); + if (UpdatedBy.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{UpdatedBy}'''"); + } + else + { + builder.AppendLine($"'{UpdatedBy}'"); + } + } + } + builder.AppendLine(" }"); builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.cs index ca139f54c98b..e5737874d5c1 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/DenyAssignmentData.cs @@ -72,8 +72,14 @@ internal DenyAssignmentData() /// Array of principals to which the deny assignment applies. /// Array of principals to which the deny assignment does not apply. /// Specifies whether this deny assignment was created by Azure and cannot be edited or deleted. + /// The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. + /// Time it was created. + /// Time it was updated. + /// Id of the user who created the assignment. + /// Id of the user who updated the assignment. /// Keeps track of any properties unknown to the library. - internal DenyAssignmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string denyAssignmentName, string description, IReadOnlyList permissions, string scope, bool? isAppliedToChildScopes, IReadOnlyList principals, IReadOnlyList excludePrincipals, bool? isSystemProtected, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal DenyAssignmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string denyAssignmentName, string description, IReadOnlyList permissions, string scope, bool? isAppliedToChildScopes, IReadOnlyList principals, IReadOnlyList excludePrincipals, bool? isSystemProtected, string condition, string conditionVersion, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, string createdBy, string updatedBy, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { DenyAssignmentName = denyAssignmentName; Description = description; @@ -83,6 +89,12 @@ internal DenyAssignmentData(ResourceIdentifier id, string name, ResourceType res Principals = principals; ExcludePrincipals = excludePrincipals; IsSystemProtected = isSystemProtected; + Condition = condition; + ConditionVersion = conditionVersion; + CreatedOn = createdOn; + UpdatedOn = updatedOn; + CreatedBy = createdBy; + UpdatedBy = updatedBy; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -110,5 +122,23 @@ internal DenyAssignmentData(ResourceIdentifier id, string name, ResourceType res /// Specifies whether this deny assignment was created by Azure and cannot be edited or deleted. [WirePath("properties.isSystemProtected")] public bool? IsSystemProtected { get; } + /// The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + [WirePath("properties.condition")] + public string Condition { get; } + /// Version of the condition. + [WirePath("properties.conditionVersion")] + public string ConditionVersion { get; } + /// Time it was created. + [WirePath("properties.createdOn")] + public DateTimeOffset? CreatedOn { get; } + /// Time it was updated. + [WirePath("properties.updatedOn")] + public DateTimeOffset? UpdatedOn { get; } + /// Id of the user who created the assignment. + [WirePath("properties.createdBy")] + public string CreatedBy { get; } + /// Id of the user who updated the assignment. + [WirePath("properties.updatedBy")] + public string UpdatedBy { get; } } } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md b/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md index 607a19ee6f70..cb8a45590c55 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Authorization namespace: Azure.ResourceManager.Authorization -require: https://github.com/Azure/azure-rest-api-specs/blob/a436672b07fb1fe276c203b086b3f0e0d0c4aa24/specification/authorization/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/authorization/resource-manager/readme.md tag: package-2022-04-01 output-folder: Generated/ clear-output-folder: true diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.net8.0.cs b/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.net8.0.cs index 0bb258cb4028..f4a68c02483a 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.net8.0.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.net8.0.cs @@ -56,16 +56,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class AutomanageConfigurationProfileAssignmentReportData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AutomanageConfigurationProfileAssignmentReportData() { } - public string ConfigurationProfile { get { throw null; } } - public string ConfigurationProfileAssignmentProcessingType { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public Azure.ResponseError Error { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public string ReportFormatVersion { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public string Status { get { throw null; } } + public Azure.ResourceManager.Automanage.Models.AssignmentReportProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentReportData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -465,13 +456,35 @@ namespace Azure.ResourceManager.Automanage.Models { public static partial class ArmAutomanageModelFactory { + public static Azure.ResourceManager.Automanage.Models.AssignmentReportProperties AssignmentReportProperties(string startTime = null, string endTime = null, string lastModifiedTime = null, System.TimeSpan? duration = default(System.TimeSpan?), string assignmentReportPropertiesType = null, string status = null, string configurationProfile = null, System.Collections.Generic.IEnumerable resources = null, Azure.ResponseError error = null, string reportFormatVersion = null) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageBestPracticeData AutomanageBestPracticeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.BinaryData configuration = null) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentData AutomanageConfigurationProfileAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfileAssignmentProperties properties = null, string managedBy = null) { throw null; } public static Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfileAssignmentProperties AutomanageConfigurationProfileAssignmentProperties(Azure.Core.ResourceIdentifier configurationProfile = null, Azure.Core.ResourceIdentifier targetId = null, string status = null) { throw null; } - public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentReportData AutomanageConfigurationProfileAssignmentReportData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?), string configurationProfileAssignmentProcessingType = null, string status = null, string configurationProfile = null, System.Collections.Generic.IEnumerable resources = null, Azure.ResponseError error = null, string reportFormatVersion = null) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentReportData AutomanageConfigurationProfileAssignmentReportData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automanage.Models.AssignmentReportProperties properties = null) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData AutomanageConfigurationProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.BinaryData configuration = null) { throw null; } - public static Azure.ResourceManager.Automanage.Models.AutomanageServicePrincipalData AutomanageServicePrincipalData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string servicePrincipalId = null, bool? isAuthorizationSet = default(bool?)) { throw null; } + public static Azure.ResourceManager.Automanage.Models.AutomanageServicePrincipalData AutomanageServicePrincipalData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties properties = null) { throw null; } public static Azure.ResourceManager.Automanage.Models.ConfigurationProfileAssignmentReportResourceDetails ConfigurationProfileAssignmentReportResourceDetails(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string status = null, Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties ServicePrincipalProperties(string servicePrincipalId = null, bool? authorizationSet = default(bool?)) { throw null; } + } + public partial class AssignmentReportProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AssignmentReportProperties() { } + public string AssignmentReportPropertiesType { get { throw null; } } + public string ConfigurationProfile { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } } + public string EndTime { get { throw null; } set { } } + public Azure.ResponseError Error { get { throw null; } } + public string LastModifiedTime { get { throw null; } } + public string ReportFormatVersion { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } + public string StartTime { get { throw null; } set { } } + public string Status { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.AssignmentReportProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.AssignmentReportProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class AutomanageConfigurationProfileAssignmentProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -511,8 +524,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AutomanageServicePrincipalData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AutomanageServicePrincipalData() { } - public bool? IsAuthorizationSet { get { throw null; } } - public string ServicePrincipalId { get { throw null; } } + public Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automanage.Models.AutomanageServicePrincipalData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -532,4 +544,16 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ServicePrincipalProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ServicePrincipalProperties() { } + public bool? AuthorizationSet { get { throw null; } } + public string ServicePrincipalId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs b/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs index 0bb258cb4028..f4a68c02483a 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs @@ -56,16 +56,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class AutomanageConfigurationProfileAssignmentReportData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AutomanageConfigurationProfileAssignmentReportData() { } - public string ConfigurationProfile { get { throw null; } } - public string ConfigurationProfileAssignmentProcessingType { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public Azure.ResponseError Error { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public string ReportFormatVersion { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public string Status { get { throw null; } } + public Azure.ResourceManager.Automanage.Models.AssignmentReportProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentReportData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -465,13 +456,35 @@ namespace Azure.ResourceManager.Automanage.Models { public static partial class ArmAutomanageModelFactory { + public static Azure.ResourceManager.Automanage.Models.AssignmentReportProperties AssignmentReportProperties(string startTime = null, string endTime = null, string lastModifiedTime = null, System.TimeSpan? duration = default(System.TimeSpan?), string assignmentReportPropertiesType = null, string status = null, string configurationProfile = null, System.Collections.Generic.IEnumerable resources = null, Azure.ResponseError error = null, string reportFormatVersion = null) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageBestPracticeData AutomanageBestPracticeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.BinaryData configuration = null) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentData AutomanageConfigurationProfileAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfileAssignmentProperties properties = null, string managedBy = null) { throw null; } public static Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfileAssignmentProperties AutomanageConfigurationProfileAssignmentProperties(Azure.Core.ResourceIdentifier configurationProfile = null, Azure.Core.ResourceIdentifier targetId = null, string status = null) { throw null; } - public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentReportData AutomanageConfigurationProfileAssignmentReportData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?), string configurationProfileAssignmentProcessingType = null, string status = null, string configurationProfile = null, System.Collections.Generic.IEnumerable resources = null, Azure.ResponseError error = null, string reportFormatVersion = null) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentReportData AutomanageConfigurationProfileAssignmentReportData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automanage.Models.AssignmentReportProperties properties = null) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData AutomanageConfigurationProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.BinaryData configuration = null) { throw null; } - public static Azure.ResourceManager.Automanage.Models.AutomanageServicePrincipalData AutomanageServicePrincipalData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string servicePrincipalId = null, bool? isAuthorizationSet = default(bool?)) { throw null; } + public static Azure.ResourceManager.Automanage.Models.AutomanageServicePrincipalData AutomanageServicePrincipalData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties properties = null) { throw null; } public static Azure.ResourceManager.Automanage.Models.ConfigurationProfileAssignmentReportResourceDetails ConfigurationProfileAssignmentReportResourceDetails(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string status = null, Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties ServicePrincipalProperties(string servicePrincipalId = null, bool? authorizationSet = default(bool?)) { throw null; } + } + public partial class AssignmentReportProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AssignmentReportProperties() { } + public string AssignmentReportPropertiesType { get { throw null; } } + public string ConfigurationProfile { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } } + public string EndTime { get { throw null; } set { } } + public Azure.ResponseError Error { get { throw null; } } + public string LastModifiedTime { get { throw null; } } + public string ReportFormatVersion { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } + public string StartTime { get { throw null; } set { } } + public string Status { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.AssignmentReportProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.AssignmentReportProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class AutomanageConfigurationProfileAssignmentProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -511,8 +524,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AutomanageServicePrincipalData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AutomanageServicePrincipalData() { } - public bool? IsAuthorizationSet { get { throw null; } } - public string ServicePrincipalId { get { throw null; } } + public Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automanage.Models.AutomanageServicePrincipalData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -532,4 +544,16 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ServicePrincipalProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ServicePrincipalProperties() { } + public bool? AuthorizationSet { get { throw null; } } + public string ServicePrincipalId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automanage.Models.ServicePrincipalProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs index 2597ea89d6ce..8d9dca59b438 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs @@ -21,7 +21,7 @@ public static partial class ArmAutomanageModelFactory /// The name. /// The resourceType. /// The systemData. - /// configuration dictionary of the configuration profile. + /// Properties of the best practice. /// A new instance for mocking. public static AutomanageBestPracticeData AutomanageBestPracticeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BinaryData configuration = null) { @@ -30,7 +30,7 @@ public static AutomanageBestPracticeData AutomanageBestPracticeData(ResourceIden name, resourceType, systemData, - configuration, + configuration != null ? new ConfigurationProfileProperties(configuration, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); } @@ -93,31 +93,41 @@ public static AutomanageConfigurationProfileAssignmentProperties AutomanageConfi /// The name. /// The resourceType. /// The systemData. - /// Start time of the configuration profile assignment processing. - /// End time of the configuration profile assignment processing. - /// Last modified time of the configuration profile assignment processing. + /// The properties for the report. + /// A new instance for mocking. + public static AutomanageConfigurationProfileAssignmentReportData AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AssignmentReportProperties properties = null) + { + return new AutomanageConfigurationProfileAssignmentReportData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Start time of the configuration profile assignment processing. + /// End time of the configuration profile assignment processing. + /// Last modified time of the configuration profile assignment processing. /// Duration of the configuration profile assignment processing. - /// Type of the configuration profile assignment processing (Initial/Consistency). + /// Type of the configuration profile assignment processing (Initial/Consistency). /// The status of the configuration profile assignment. /// The configurationProfile linked to the assignment. /// List of resources processed by the configuration profile assignment. /// Error message, if any, returned by the configuration profile assignment processing. /// Version of the report format. - /// A new instance for mocking. - public static AutomanageConfigurationProfileAssignmentReportData AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, DateTimeOffset? lastModifiedOn = null, TimeSpan? duration = null, string configurationProfileAssignmentProcessingType = null, string status = null, string configurationProfile = null, IEnumerable resources = null, ResponseError error = null, string reportFormatVersion = null) + /// A new instance for mocking. + public static AssignmentReportProperties AssignmentReportProperties(string startTime = null, string endTime = null, string lastModifiedTime = null, TimeSpan? duration = null, string assignmentReportPropertiesType = null, string status = null, string configurationProfile = null, IEnumerable resources = null, ResponseError error = null, string reportFormatVersion = null) { resources ??= new List(); - return new AutomanageConfigurationProfileAssignmentReportData( - id, - name, - resourceType, - systemData, - startOn, - endOn, - lastModifiedOn, + return new AssignmentReportProperties( + startTime, + endTime, + lastModifiedTime, duration, - configurationProfileAssignmentProcessingType, + assignmentReportPropertiesType, status, configurationProfile, resources?.ToList(), @@ -151,19 +161,26 @@ public static ConfigurationProfileAssignmentReportResourceDetails ConfigurationP /// The name. /// The resourceType. /// The systemData. - /// The Service Principal Id for the subscription. - /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + /// The Service Principal properties for the subscription. /// A new instance for mocking. - public static AutomanageServicePrincipalData AutomanageServicePrincipalData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string servicePrincipalId = null, bool? isAuthorizationSet = null) + public static AutomanageServicePrincipalData AutomanageServicePrincipalData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ServicePrincipalProperties properties = null) { return new AutomanageServicePrincipalData( id, name, resourceType, systemData, - servicePrincipalId, - isAuthorizationSet, + properties, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// The Service Principal Id for the subscription. + /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + /// A new instance for mocking. + public static ServicePrincipalProperties ServicePrincipalProperties(string servicePrincipalId = null, bool? authorizationSet = null) + { + return new ServicePrincipalProperties(servicePrincipalId, authorizationSet, serializedAdditionalRawData: null); + } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.Serialization.cs index 526a676d5614..da09bb1018b6 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.Serialization.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Automanage.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Automanage @@ -36,21 +37,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(Configuration)) + if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("configuration"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(Configuration); -#else - using (JsonDocument document = JsonDocument.Parse(Configuration, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); } - writer.WriteEndObject(); } AutomanageBestPracticeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -73,15 +64,24 @@ internal static AutomanageBestPracticeData DeserializeAutomanageBestPracticeData { return null; } + ConfigurationProfileProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; SystemData systemData = default; - BinaryData configuration = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = ConfigurationProfileProperties.DeserializeConfigurationProfileProperties(property.Value, options); + continue; + } if (property.NameEquals("id"u8)) { id = new ResourceIdentifier(property.Value.GetString()); @@ -106,27 +106,6 @@ internal static AutomanageBestPracticeData DeserializeAutomanageBestPracticeData systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("configuration"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - configuration = BinaryData.FromString(property0.Value.GetRawText()); - continue; - } - } - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -138,7 +117,7 @@ internal static AutomanageBestPracticeData DeserializeAutomanageBestPracticeData name, type, systemData, - configuration, + properties, serializedAdditionalRawData); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs index c97600a3772e..30f02398e3ee 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Automanage.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Automanage @@ -60,14 +61,16 @@ internal AutomanageBestPracticeData() /// The name. /// The resourceType. /// The systemData. - /// configuration dictionary of the configuration profile. + /// Properties of the best practice. /// Keeps track of any properties unknown to the library. - internal AutomanageBestPracticeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BinaryData configuration, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AutomanageBestPracticeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConfigurationProfileProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { - Configuration = configuration; + Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Properties of the best practice. + internal ConfigurationProfileProperties Properties { get; } /// /// configuration dictionary of the configuration profile. /// @@ -98,6 +101,9 @@ internal AutomanageBestPracticeData(ResourceIdentifier id, string name, Resource /// /// /// - public BinaryData Configuration { get; } + public BinaryData Configuration + { + get => Properties?.Configuration; + } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs index 493716eea35f..23462d767d26 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs @@ -37,64 +37,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(StartOn)) - { - writer.WritePropertyName("startTime"u8); - writer.WriteStringValue(StartOn.Value, "O"); - } - if (Optional.IsDefined(EndOn)) - { - writer.WritePropertyName("endTime"u8); - writer.WriteStringValue(EndOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(LastModifiedOn)) - { - writer.WritePropertyName("lastModifiedTime"u8); - writer.WriteStringValue(LastModifiedOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(Duration)) - { - writer.WritePropertyName("duration"u8); - writer.WriteStringValue(Duration.Value, "P"); - } - if (options.Format != "W" && Optional.IsDefined(ConfigurationProfileAssignmentProcessingType)) - { - writer.WritePropertyName("type"u8); - writer.WriteStringValue(ConfigurationProfileAssignmentProcessingType); - } - if (options.Format != "W" && Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status); - } - if (options.Format != "W" && Optional.IsDefined(ConfigurationProfile)) - { - writer.WritePropertyName("configurationProfile"u8); - writer.WriteStringValue(ConfigurationProfile); - } - if (options.Format != "W" && Optional.IsCollectionDefined(Resources)) - { - writer.WritePropertyName("resources"u8); - writer.WriteStartArray(); - foreach (var item in Resources) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && Optional.IsDefined(Error)) - { - writer.WritePropertyName("error"u8); - JsonSerializer.Serialize(writer, Error); - } - if (options.Format != "W" && Optional.IsDefined(ReportFormatVersion)) + if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("reportFormatVersion"u8); - writer.WriteStringValue(ReportFormatVersion); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); } - writer.WriteEndObject(); } AutomanageConfigurationProfileAssignmentReportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -117,24 +64,24 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu { return null; } + AssignmentReportProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; SystemData systemData = default; - DateTimeOffset? startTime = default; - DateTimeOffset? endTime = default; - DateTimeOffset? lastModifiedTime = default; - TimeSpan? duration = default; - string type0 = default; - string status = default; - string configurationProfile = default; - IReadOnlyList resources = default; - ResponseError error = default; - string reportFormatVersion = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = AssignmentReportProperties.DeserializeAssignmentReportProperties(property.Value, options); + continue; + } if (property.NameEquals("id"u8)) { id = new ResourceIdentifier(property.Value.GetString()); @@ -159,97 +106,6 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("startTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - startTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("endTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - endTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("lastModifiedTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastModifiedTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("duration"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - duration = property0.Value.GetTimeSpan("P"); - continue; - } - if (property0.NameEquals("type"u8)) - { - type0 = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("status"u8)) - { - status = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("configurationProfile"u8)) - { - configurationProfile = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("resources"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(ConfigurationProfileAssignmentReportResourceDetails.DeserializeConfigurationProfileAssignmentReportResourceDetails(item, options)); - } - resources = array; - continue; - } - if (property0.NameEquals("error"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - error = JsonSerializer.Deserialize(property0.Value.GetRawText()); - continue; - } - if (property0.NameEquals("reportFormatVersion"u8)) - { - reportFormatVersion = property0.Value.GetString(); - continue; - } - } - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -261,16 +117,7 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu name, type, systemData, - startTime, - endTime, - lastModifiedTime, - duration, - type0, - status, - configurationProfile, - resources ?? new ChangeTrackingList(), - error, - reportFormatVersion, + properties, serializedAdditionalRawData); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs index 81096cdf4491..5c6b2f86a230 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs @@ -54,7 +54,6 @@ public partial class AutomanageConfigurationProfileAssignmentReportData : Resour /// Initializes a new instance of . public AutomanageConfigurationProfileAssignmentReportData() { - Resources = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -62,51 +61,15 @@ public AutomanageConfigurationProfileAssignmentReportData() /// The name. /// The resourceType. /// The systemData. - /// Start time of the configuration profile assignment processing. - /// End time of the configuration profile assignment processing. - /// Last modified time of the configuration profile assignment processing. - /// Duration of the configuration profile assignment processing. - /// Type of the configuration profile assignment processing (Initial/Consistency). - /// The status of the configuration profile assignment. - /// The configurationProfile linked to the assignment. - /// List of resources processed by the configuration profile assignment. - /// Error message, if any, returned by the configuration profile assignment processing. - /// Version of the report format. + /// The properties for the report. /// Keeps track of any properties unknown to the library. - internal AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, TimeSpan? duration, string configurationProfileAssignmentProcessingType, string status, string configurationProfile, IReadOnlyList resources, ResponseError error, string reportFormatVersion, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AssignmentReportProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { - StartOn = startOn; - EndOn = endOn; - LastModifiedOn = lastModifiedOn; - Duration = duration; - ConfigurationProfileAssignmentProcessingType = configurationProfileAssignmentProcessingType; - Status = status; - ConfigurationProfile = configurationProfile; - Resources = resources; - Error = error; - ReportFormatVersion = reportFormatVersion; + Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Start time of the configuration profile assignment processing. - public DateTimeOffset? StartOn { get; set; } - /// End time of the configuration profile assignment processing. - public DateTimeOffset? EndOn { get; set; } - /// Last modified time of the configuration profile assignment processing. - public DateTimeOffset? LastModifiedOn { get; } - /// Duration of the configuration profile assignment processing. - public TimeSpan? Duration { get; } - /// Type of the configuration profile assignment processing (Initial/Consistency). - public string ConfigurationProfileAssignmentProcessingType { get; } - /// The status of the configuration profile assignment. - public string Status { get; } - /// The configurationProfile linked to the assignment. - public string ConfigurationProfile { get; } - /// List of resources processed by the configuration profile assignment. - public IReadOnlyList Resources { get; } - /// Error message, if any, returned by the configuration profile assignment processing. - public ResponseError Error { get; } - /// Version of the report format. - public string ReportFormatVersion { get; } + /// The properties for the report. + public AssignmentReportProperties Properties { get; set; } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AssignmentReportProperties.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AssignmentReportProperties.Serialization.cs new file mode 100644 index 000000000000..69a203f78379 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AssignmentReportProperties.Serialization.cs @@ -0,0 +1,261 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automanage.Models +{ + public partial class AssignmentReportProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AssignmentReportProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(StartTime)) + { + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime); + } + if (Optional.IsDefined(EndTime)) + { + writer.WritePropertyName("endTime"u8); + writer.WriteStringValue(EndTime); + } + if (options.Format != "W" && Optional.IsDefined(LastModifiedTime)) + { + writer.WritePropertyName("lastModifiedTime"u8); + writer.WriteStringValue(LastModifiedTime); + } + if (options.Format != "W" && Optional.IsDefined(Duration)) + { + writer.WritePropertyName("duration"u8); + writer.WriteStringValue(Duration.Value, "P"); + } + if (options.Format != "W" && Optional.IsDefined(AssignmentReportPropertiesType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(AssignmentReportPropertiesType); + } + if (options.Format != "W" && Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status); + } + if (options.Format != "W" && Optional.IsDefined(ConfigurationProfile)) + { + writer.WritePropertyName("configurationProfile"u8); + writer.WriteStringValue(ConfigurationProfile); + } + if (options.Format != "W" && Optional.IsCollectionDefined(Resources)) + { + writer.WritePropertyName("resources"u8); + writer.WriteStartArray(); + foreach (var item in Resources) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsDefined(Error)) + { + writer.WritePropertyName("error"u8); + JsonSerializer.Serialize(writer, Error); + } + if (options.Format != "W" && Optional.IsDefined(ReportFormatVersion)) + { + writer.WritePropertyName("reportFormatVersion"u8); + writer.WriteStringValue(ReportFormatVersion); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AssignmentReportProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AssignmentReportProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAssignmentReportProperties(document.RootElement, options); + } + + internal static AssignmentReportProperties DeserializeAssignmentReportProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string startTime = default; + string endTime = default; + string lastModifiedTime = default; + TimeSpan? duration = default; + string type = default; + string status = default; + string configurationProfile = default; + IReadOnlyList resources = default; + ResponseError error = default; + string reportFormatVersion = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startTime"u8)) + { + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("endTime"u8)) + { + endTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("lastModifiedTime"u8)) + { + lastModifiedTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("duration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + duration = property.Value.GetTimeSpan("P"); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + status = property.Value.GetString(); + continue; + } + if (property.NameEquals("configurationProfile"u8)) + { + configurationProfile = property.Value.GetString(); + continue; + } + if (property.NameEquals("resources"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ConfigurationProfileAssignmentReportResourceDetails.DeserializeConfigurationProfileAssignmentReportResourceDetails(item, options)); + } + resources = array; + continue; + } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("reportFormatVersion"u8)) + { + reportFormatVersion = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AssignmentReportProperties( + startTime, + endTime, + lastModifiedTime, + duration, + type, + status, + configurationProfile, + resources ?? new ChangeTrackingList(), + error, + reportFormatVersion, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AssignmentReportProperties)} does not support writing '{options.Format}' format."); + } + } + + AssignmentReportProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAssignmentReportProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AssignmentReportProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AssignmentReportProperties.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AssignmentReportProperties.cs new file mode 100644 index 000000000000..8a18d9eb507e --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AssignmentReportProperties.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automanage.Models +{ + /// Data related to the report detail. + public partial class AssignmentReportProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AssignmentReportProperties() + { + Resources = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Start time of the configuration profile assignment processing. + /// End time of the configuration profile assignment processing. + /// Last modified time of the configuration profile assignment processing. + /// Duration of the configuration profile assignment processing. + /// Type of the configuration profile assignment processing (Initial/Consistency). + /// The status of the configuration profile assignment. + /// The configurationProfile linked to the assignment. + /// List of resources processed by the configuration profile assignment. + /// Error message, if any, returned by the configuration profile assignment processing. + /// Version of the report format. + /// Keeps track of any properties unknown to the library. + internal AssignmentReportProperties(string startTime, string endTime, string lastModifiedTime, TimeSpan? duration, string assignmentReportPropertiesType, string status, string configurationProfile, IReadOnlyList resources, ResponseError error, string reportFormatVersion, IDictionary serializedAdditionalRawData) + { + StartTime = startTime; + EndTime = endTime; + LastModifiedTime = lastModifiedTime; + Duration = duration; + AssignmentReportPropertiesType = assignmentReportPropertiesType; + Status = status; + ConfigurationProfile = configurationProfile; + Resources = resources; + Error = error; + ReportFormatVersion = reportFormatVersion; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Start time of the configuration profile assignment processing. + public string StartTime { get; set; } + /// End time of the configuration profile assignment processing. + public string EndTime { get; set; } + /// Last modified time of the configuration profile assignment processing. + public string LastModifiedTime { get; } + /// Duration of the configuration profile assignment processing. + public TimeSpan? Duration { get; } + /// Type of the configuration profile assignment processing (Initial/Consistency). + public string AssignmentReportPropertiesType { get; } + /// The status of the configuration profile assignment. + public string Status { get; } + /// The configurationProfile linked to the assignment. + public string ConfigurationProfile { get; } + /// List of resources processed by the configuration profile assignment. + public IReadOnlyList Resources { get; } + /// Error message, if any, returned by the configuration profile assignment processing. + public ResponseError Error { get; } + /// Version of the report format. + public string ReportFormatVersion { get; } + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs index 6a1d2860e85b..de262d5fb80a 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs @@ -36,19 +36,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (options.Format != "W" && Optional.IsDefined(ServicePrincipalId)) - { - writer.WritePropertyName("servicePrincipalId"u8); - writer.WriteStringValue(ServicePrincipalId); - } - if (options.Format != "W" && Optional.IsDefined(IsAuthorizationSet)) + if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("authorizationSet"u8); - writer.WriteBooleanValue(IsAuthorizationSet.Value); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); } - writer.WriteEndObject(); } AutomanageServicePrincipalData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -71,16 +63,24 @@ internal static AutomanageServicePrincipalData DeserializeAutomanageServicePrinc { return null; } + ServicePrincipalProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; SystemData systemData = default; - string servicePrincipalId = default; - bool? authorizationSet = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = ServicePrincipalProperties.DeserializeServicePrincipalProperties(property.Value, options); + continue; + } if (property.NameEquals("id"u8)) { id = new ResourceIdentifier(property.Value.GetString()); @@ -105,32 +105,6 @@ internal static AutomanageServicePrincipalData DeserializeAutomanageServicePrinc systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("servicePrincipalId"u8)) - { - servicePrincipalId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("authorizationSet"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - authorizationSet = property0.Value.GetBoolean(); - continue; - } - } - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -142,8 +116,7 @@ internal static AutomanageServicePrincipalData DeserializeAutomanageServicePrinc name, type, systemData, - servicePrincipalId, - authorizationSet, + properties, serializedAdditionalRawData); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs index c8c0b6e09566..3fd0417b224c 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs @@ -57,19 +57,15 @@ public AutomanageServicePrincipalData() /// The name. /// The resourceType. /// The systemData. - /// The Service Principal Id for the subscription. - /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + /// The Service Principal properties for the subscription. /// Keeps track of any properties unknown to the library. - internal AutomanageServicePrincipalData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string servicePrincipalId, bool? isAuthorizationSet, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AutomanageServicePrincipalData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ServicePrincipalProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { - ServicePrincipalId = servicePrincipalId; - IsAuthorizationSet = isAuthorizationSet; + Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The Service Principal Id for the subscription. - public string ServicePrincipalId { get; } - /// Returns the contributor RBAC Role exist or not for the Service Principal Id. - public bool? IsAuthorizationSet { get; } + /// The Service Principal properties for the subscription. + public ServicePrincipalProperties Properties { get; set; } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalProperties.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalProperties.Serialization.cs new file mode 100644 index 000000000000..f8553296f23a --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalProperties.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automanage.Models +{ + public partial class ServicePrincipalProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ServicePrincipalProperties)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(ServicePrincipalId)) + { + writer.WritePropertyName("servicePrincipalId"u8); + writer.WriteStringValue(ServicePrincipalId); + } + if (options.Format != "W" && Optional.IsDefined(AuthorizationSet)) + { + writer.WritePropertyName("authorizationSet"u8); + writer.WriteBooleanValue(AuthorizationSet.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ServicePrincipalProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ServicePrincipalProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeServicePrincipalProperties(document.RootElement, options); + } + + internal static ServicePrincipalProperties DeserializeServicePrincipalProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string servicePrincipalId = default; + bool? authorizationSet = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("servicePrincipalId"u8)) + { + servicePrincipalId = property.Value.GetString(); + continue; + } + if (property.NameEquals("authorizationSet"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + authorizationSet = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ServicePrincipalProperties(servicePrincipalId, authorizationSet, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ServicePrincipalProperties)} does not support writing '{options.Format}' format."); + } + } + + ServicePrincipalProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeServicePrincipalProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ServicePrincipalProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalProperties.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalProperties.cs new file mode 100644 index 000000000000..66e4e67ed408 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalProperties.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automanage.Models +{ + /// The Service Principal properties for the subscription. + public partial class ServicePrincipalProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public ServicePrincipalProperties() + { + } + + /// Initializes a new instance of . + /// The Service Principal Id for the subscription. + /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + /// Keeps track of any properties unknown to the library. + internal ServicePrincipalProperties(string servicePrincipalId, bool? authorizationSet, IDictionary serializedAdditionalRawData) + { + ServicePrincipalId = servicePrincipalId; + AuthorizationSet = authorizationSet; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The Service Principal Id for the subscription. + public string ServicePrincipalId { get; } + /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + public bool? AuthorizationSet { get; } + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md b/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md index 89c9cff83d16..171c8a923d14 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md @@ -5,7 +5,7 @@ azure-arm: true csharp: true library-name: Automanage namespace: Azure.ResourceManager.Automanage -require: https://github.com/Azure/azure-rest-api-specs/blob/4b5fe2fb0a5066c4ff2bd429dbd5e1afda6afab3/specification/automanage/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/automanage/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.net8.0.cs b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.net8.0.cs index cbd8993425a1..a4c8fd03abf5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.net8.0.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.net8.0.cs @@ -93,8 +93,8 @@ protected AutomationAccountModuleResource() { } public partial class AutomationAccountPython2PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected AutomationAccountPython2PackageCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -129,8 +129,50 @@ protected AutomationAccountPython2PackageResource() { } Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AutomationAccountPython3PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomationAccountPython3PackageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AutomationAccountPython3PackageResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomationAccountPython3PackageResource() { } + public virtual Azure.ResourceManager.Automation.AutomationModuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AutomationAccountResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -163,6 +205,9 @@ protected AutomationAccountResource() { } public virtual Azure.Response GetAutomationAccountPython2Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationAccountPython2PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() { throw null; } + public virtual Azure.Response GetAutomationAccountPython3Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationAccountPython3PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPython3PackageCollection GetAutomationAccountPython3Packages() { throw null; } public virtual Azure.Response GetAutomationCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationCertificateCollection GetAutomationCertificates() { throw null; } @@ -202,11 +247,8 @@ protected AutomationAccountResource() { } public virtual Azure.Response GetAutomationWebhook(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationWebhookAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationWebhookCollection GetAutomationWebhooks() { throw null; } - public virtual Azure.Response GetDscCompilationJob(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDscCompilationJobAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.DscCompilationJobCollection GetDscCompilationJobs() { throw null; } - public virtual Azure.Pageable GetDscCompilationJobStreams(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetDscCompilationJobStreamsAsync(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetDeletedRunbooks(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetDeletedRunbooksAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDscConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDscConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.DscConfigurationCollection GetDscConfigurations() { throw null; } @@ -223,6 +265,9 @@ protected AutomationAccountResource() { } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() { throw null; } public virtual Azure.Response GetLinkedWorkspace(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetLinkedWorkspaceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRuntimeEnvironment(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRuntimeEnvironmentAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.RuntimeEnvironmentCollection GetRuntimeEnvironments() { throw null; } public virtual Azure.Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetSoftwareUpdateConfigurationMachineRun(System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -236,8 +281,6 @@ protected AutomationAccountResource() { } public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() { throw null; } public virtual Azure.Pageable GetStatistics(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetStatisticsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetStreamDscCompilationJob(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetStreamDscCompilationJobAsync(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetUsages(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetUsagesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RegenerateKeyAgentRegistrationInformation(Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -467,6 +510,7 @@ public static partial class AutomationExtensions public static System.Threading.Tasks.Task> GetAutomationAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetAutomationAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -486,12 +530,13 @@ public static partial class AutomationExtensions public static Azure.ResourceManager.Automation.AutomationWebhookResource GetAutomationWebhookResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetDeletedAutomationAccountsBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automation.DscCompilationJobResource GetDscCompilationJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.DscConfigurationResource GetDscConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.DscNodeConfigurationResource GetDscNodeConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.DscNodeResource GetDscNodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.PackageResource GetPackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.RuntimeEnvironmentResource GetRuntimeEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } } public partial class AutomationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -521,9 +566,10 @@ public AutomationJobData() { } public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } set { } } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } } public string RunbookName { get { throw null; } set { } } public string RunOn { get { throw null; } set { } } + public string RuntimeEnvironmentName { get { throw null; } set { } } public string StartedBy { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } set { } } @@ -723,6 +769,7 @@ public AutomationRunbookData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.Automation.Models.RunbookProvisioningState? ProvisioningState { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationContentLink PublishContentLink { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationRunbookType? RunbookType { get { throw null; } set { } } + public string RuntimeEnvironment { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.RunbookState? State { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.AutomationRunbookData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1075,64 +1122,6 @@ protected AutomationWebhookResource() { } public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationWebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationWebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class DscCompilationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected DscCompilationJobCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class DscCompilationJobData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DscCompilationJobData() { } - public string ConfigurationName { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string Exception { get { throw null; } } - public System.Guid? JobId { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } - public string RunOn { get { throw null; } set { } } - public string StartedBy { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } set { } } - public string StatusDetails { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DscCompilationJobResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected DscCompilationJobResource() { } - public virtual Azure.ResourceManager.Automation.DscCompilationJobData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class DscConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected DscConfigurationCollection() { } @@ -1313,8 +1302,8 @@ protected DscNodeResource() { } public partial class HybridRunbookWorkerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HybridRunbookWorkerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1327,9 +1316,9 @@ protected HybridRunbookWorkerCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HybridRunbookWorkerData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridRunbookWorkerData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridRunbookWorkerData() { } + public HybridRunbookWorkerData(Azure.Core.AzureLocation location) { } public string IP { get { throw null; } set { } } public System.DateTimeOffset? LastSeenOn { get { throw null; } set { } } public System.DateTimeOffset? RegisteredOn { get { throw null; } set { } } @@ -1360,9 +1349,9 @@ protected HybridRunbookWorkerGroupCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HybridRunbookWorkerGroupData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridRunbookWorkerGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridRunbookWorkerGroupData() { } + public HybridRunbookWorkerGroupData(Azure.Core.AzureLocation location) { } public string CredentialName { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.HybridWorkerGroup? GroupType { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1412,8 +1401,114 @@ protected HybridRunbookWorkerResource() { } Azure.ResourceManager.Automation.HybridRunbookWorkerData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected PackageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class PackageData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackageData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Models.SystemData AllOf { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } + public bool? Default { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.PackageErrorInfo Error { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.PackageProvisioningState? ProvisioningState { get { throw null; } } + public long? SizeInBytes { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PackageResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected PackageResource() { } + public virtual Azure.ResourceManager.Automation.PackageData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RuntimeEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RuntimeEnvironmentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string runtimeEnvironmentName, Azure.ResourceManager.Automation.RuntimeEnvironmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string runtimeEnvironmentName, Azure.ResourceManager.Automation.RuntimeEnvironmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RuntimeEnvironmentData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RuntimeEnvironmentData(Azure.Core.AzureLocation location) { } + public System.Collections.Generic.IDictionary DefaultPackages { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RuntimeEnvironmentResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RuntimeEnvironmentResource() { } + public virtual Azure.ResourceManager.Automation.RuntimeEnvironmentData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetPackage(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.PackageCollection GetPackages() { throw null; } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class SoftwareUpdateConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -1478,6 +1573,7 @@ public partial class MockableAutomationArmClient : Azure.ResourceManager.ArmReso protected MockableAutomationArmClient() { } public virtual Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationCertificateResource GetAutomationCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationConnectionResource GetAutomationConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -1492,12 +1588,13 @@ protected MockableAutomationArmClient() { } public virtual Azure.ResourceManager.Automation.AutomationVariableResource GetAutomationVariableResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationWatcherResource GetAutomationWatcherResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationWebhookResource GetAutomationWebhookResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.Automation.DscCompilationJobResource GetDscCompilationJobResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.DscConfigurationResource GetDscConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.DscNodeConfigurationResource GetDscNodeConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.DscNodeResource GetDscNodeResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerResource GetHybridRunbookWorkerResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.PackageResource GetPackageResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.RuntimeEnvironmentResource GetRuntimeEnvironmentResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableAutomationResourceGroupResource : Azure.ResourceManager.ArmResource @@ -1579,7 +1676,7 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.AgentRegistrationKeys AgentRegistrationKeys(string primary = null, string secondary = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountData AutomationAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Automation.Models.AutomationSku sku = null, string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.AutomationAccountState? state = default(Azure.ResourceManager.Automation.Models.AutomationAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null, Azure.ResourceManager.Automation.Models.AutomationEncryptionProperties encryption = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, bool? isPublicNetworkAccessAllowed = default(bool?), bool? isLocalAuthDisabled = default(bool?), System.Uri automationHybridServiceUri = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent AutomationAccountModuleCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent AutomationAccountPython2PackageCreateOrUpdateContent(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch AutomationAccountModulePatch(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationAccountStatistics AutomationAccountStatistics(string counterProperty = null, long? counterValue = default(long?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string id = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationActivity AutomationActivity(Azure.Core.ResourceIdentifier id = null, string name = null, string definition = null, System.Collections.Generic.IEnumerable parameterSets = null, System.Collections.Generic.IEnumerable outputTypes = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationActivityOutputType AutomationActivityOutputType(string name = null, string activityOutputType = null) { throw null; } @@ -1594,8 +1691,12 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.AutomationConnectionTypeData AutomationConnectionTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isGlobal = default(bool?), System.Collections.Generic.IReadOnlyDictionary fieldDefinitions = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationCredentialCreateOrUpdateContent AutomationCredentialCreateOrUpdateContent(string name = null, string userName = null, string password = null, string description = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationCredentialData AutomationCredentialData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string userName = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData AutomationJobCollectionItemData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, string runOn = null) { throw null; } - public static Azure.ResourceManager.Automation.AutomationJobData AutomationJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), string statusDetails = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.JobProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData AutomationJobCollectionItemData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string runbookName, System.Guid? jobId, System.DateTimeOffset? createdOn, Azure.ResourceManager.Automation.Models.AutomationJobStatus? status, System.DateTimeOffset? startOn, System.DateTimeOffset? endOn, System.DateTimeOffset? lastModifiedOn, string provisioningState, string runOn) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData AutomationJobCollectionItemData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, System.Guid? jobId = default(System.Guid?), string startedBy = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, string runtimeEnvironmentName = null, string runOn = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.AutomationJobData AutomationJobData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string runbookName, string startedBy, string runOn, System.Guid? jobId, System.DateTimeOffset? createdOn, Azure.ResourceManager.Automation.Models.AutomationJobStatus? status, string statusDetails, System.DateTimeOffset? startOn, System.DateTimeOffset? endOn, string exception, System.DateTimeOffset? lastModifiedOn, System.DateTimeOffset? lastStatusModifiedOn, System.Collections.Generic.IDictionary parameters, Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.Automation.AutomationJobData AutomationJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, string runtimeEnvironmentName = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), string statusDetails = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.JobProvisioningState?)) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationJobScheduleCreateOrUpdateContent AutomationJobScheduleCreateOrUpdateContent(string scheduleName = null, string runbookName = null, string runOn = null, System.Collections.Generic.IDictionary parameters = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationJobScheduleData AutomationJobScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? jobScheduleId = default(System.Guid?), string scheduleName = null, string runbookName = null, string runOn = null, System.Collections.Generic.IReadOnlyDictionary parameters = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationJobStream AutomationJobStream(Azure.Core.ResourceIdentifier id = null, string jobStreamId = null, System.DateTimeOffset? time = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStreamType? streamType = default(Azure.ResourceManager.Automation.Models.AutomationJobStreamType?), string streamText = null, string summary = null, System.Collections.Generic.IReadOnlyDictionary value = null) { throw null; } @@ -1606,8 +1707,12 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData AutomationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, System.Collections.Generic.IEnumerable groupIds = null, Azure.ResourceManager.Automation.Models.AutomationPrivateLinkServiceConnectionStateProperty connectionState = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationPrivateLinkResource AutomationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationPrivateLinkServiceConnectionStateProperty AutomationPrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType), Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = default(int?)) { throw null; } - public static Azure.ResourceManager.Automation.AutomationRunbookData AutomationRunbookData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Automation.Models.AutomationRunbookType? runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType?), Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, Azure.ResourceManager.Automation.Models.RunbookState? state = default(Azure.ResourceManager.Automation.Models.RunbookState?), bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), int? logActivityTrace = default(int?), int? jobCount = default(int?), System.Collections.Generic.IDictionary parameters = null, System.Collections.Generic.IEnumerable outputTypes = null, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.RunbookProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.RunbookProvisioningState?), string lastModifiedBy = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name, Azure.Core.AzureLocation? location, System.Collections.Generic.IDictionary tags, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink, string description, int? logActivityTrace) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), string runtimeEnvironment = null, Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType), Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = default(int?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.AutomationRunbookData AutomationRunbookData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, Azure.ResourceManager.Automation.Models.AutomationRunbookType? runbookType, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink, Azure.ResourceManager.Automation.Models.RunbookState? state, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, int? logActivityTrace, int? jobCount, System.Collections.Generic.IDictionary parameters, System.Collections.Generic.IEnumerable outputTypes, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft, Azure.ResourceManager.Automation.Models.RunbookProvisioningState? provisioningState, string lastModifiedBy, System.DateTimeOffset? createdOn, System.DateTimeOffset? lastModifiedOn, string description) { throw null; } + public static Azure.ResourceManager.Automation.AutomationRunbookData AutomationRunbookData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), string runtimeEnvironment = null, Azure.ResourceManager.Automation.Models.AutomationRunbookType? runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType?), Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, Azure.ResourceManager.Automation.Models.RunbookState? state = default(Azure.ResourceManager.Automation.Models.RunbookState?), bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), int? logActivityTrace = default(int?), int? jobCount = default(int?), System.Collections.Generic.IDictionary parameters = null, System.Collections.Generic.IEnumerable outputTypes = null, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.RunbookProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.RunbookProvisioningState?), string lastModifiedBy = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent AutomationScheduleCreateOrUpdateContent(string name = null, string description = null, System.DateTimeOffset startOn = default(System.DateTimeOffset), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.BinaryData interval = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency), string timeZone = null, Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule advancedSchedule = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationScheduleData AutomationScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), double? startInMinutes = default(double?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), double? expireInMinutes = default(double?), bool? isEnabled = default(bool?), System.DateTimeOffset? nextRunOn = default(System.DateTimeOffset?), double? nextRunInMinutes = default(double?), System.BinaryData interval = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency?), string timeZone = null, Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule advancedSchedule = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationSourceControlData AutomationSourceControlData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri repoUri = null, string branch = null, string folderPath = null, bool? isAutoSyncEnabled = default(bool?), bool? isAutoPublishRunbookEnabled = default(bool?), Azure.ResourceManager.Automation.Models.SourceControlSourceType? sourceType = default(Azure.ResourceManager.Automation.Models.SourceControlSourceType?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } @@ -1619,8 +1724,7 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.AutomationWebhookCreateOrUpdateContent AutomationWebhookCreateOrUpdateContent(string name = null, bool? isEnabled = default(bool?), System.Uri uri = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, string runbookName = null, string runOn = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationWebhookData AutomationWebhookData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isEnabled = default(bool?), System.Uri uri = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastInvokedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, string runbookName = null, string runOn = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.DeletedAutomationAccount DeletedAutomationAccount(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceIdentifier automationAccountResourceId = null, string automationAccountId = null, string locationPropertiesLocation = null, System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent DscCompilationJobCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, string configurationName = null, System.Collections.Generic.IDictionary parameters = null, bool? isIncrementNodeConfigurationBuildRequired = default(bool?)) { throw null; } - public static Azure.ResourceManager.Automation.DscCompilationJobData DscCompilationJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string configurationName = null, string startedBy = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.JobProvisioningState?), string runOn = null, Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), string statusDetails = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.DeletedRunbook DeletedRunbook(string id = null, string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string runbookId = null, string runbookType = null, string runtime = null, string runtimeEnvironment = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent DscConfigurationCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), Azure.ResourceManager.Automation.Models.AutomationContentSource source = null, System.Collections.Generic.IDictionary parameters = null, string description = null) { throw null; } public static Azure.ResourceManager.Automation.DscConfigurationData DscConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Automation.Models.DscConfigurationProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.DscConfigurationProvisioningState?), int? jobCount = default(int?), System.Collections.Generic.IDictionary parameters = null, Azure.ResourceManager.Automation.Models.AutomationContentSource source = null, Azure.ResourceManager.Automation.Models.DscConfigurationState? state = default(Azure.ResourceManager.Automation.Models.DscConfigurationState?), bool? isLogVerboseEnabled = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), int? nodeConfigurationCount = default(int?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.DscMetaConfiguration DscMetaConfiguration(int? configurationModeFrequencyMins = default(int?), bool? rebootNodeIfNeeded = default(bool?), string configurationMode = null, string actionAfterReboot = null, string certificateId = null, int? refreshFrequencyMins = default(int?), bool? allowModuleOverwrite = default(bool?)) { throw null; } @@ -1631,10 +1735,20 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.DscReportError DscReportError(string errorSource = null, string resourceId = null, string errorCode = null, string errorMessage = null, string locale = null, string errorDetails = null) { throw null; } public static Azure.ResourceManager.Automation.Models.DscReportResource DscReportResource(string resourceId = null, string sourceInfo = null, System.Collections.Generic.IEnumerable dependsOn = null, string moduleName = null, string moduleVersion = null, string resourceName = null, string error = null, string status = null, double? durationInSeconds = default(double?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Automation.Models.DscReportResourceNavigation DscReportResourceNavigation(string resourceId = null) { throw null; } - public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string ip = null, System.DateTimeOffset? registeredOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastSeenOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier vmResourceId = null, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType = default(Azure.ResourceManager.Automation.Models.HybridWorkerType?), string workerName = null) { throw null; } - public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType = default(Azure.ResourceManager.Automation.Models.HybridWorkerGroup?), string credentialName = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters HybridRunbookWorkerCreateParameters(string name = null, Azure.Core.ResourceIdentifier vmResourceId = null) { throw null; } + public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string ip = null, System.DateTimeOffset? registeredOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastSeenOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier vmResourceId = null, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType = default(Azure.ResourceManager.Automation.Models.HybridWorkerType?), string workerName = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string ip, System.DateTimeOffset? registeredOn, System.DateTimeOffset? lastSeenOn, Azure.Core.ResourceIdentifier vmResourceId, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType, string workerName) { throw null; } + public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType = default(Azure.ResourceManager.Automation.Models.HybridWorkerGroup?), string credentialName = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType, string credentialName) { throw null; } + public static Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.TrackedResource allOf = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } + public static Azure.ResourceManager.Automation.PackageData PackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), bool? @default = default(bool?), string version = null, long? sizeInBytes = default(long?), Azure.ResourceManager.Automation.Models.PackageProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.PackageProvisioningState?), Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null, Azure.ResourceManager.Automation.Models.PackageErrorInfo error = null, Azure.ResourceManager.Models.SystemData allOf = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters PythonPackageCreateParameters(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } public static Azure.ResourceManager.Automation.Models.RunbookDraftUndoEditResult RunbookDraftUndoEditResult(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode? statusCode = default(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode?), string requestId = null) { throw null; } public static Azure.ResourceManager.Automation.Models.RunbookTestJob RunbookTestJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string status = null, string statusDetails = null, string runOn = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary parameters = null, int? logActivityTrace = default(int?)) { throw null; } + public static Azure.ResourceManager.Automation.RuntimeEnvironmentData RuntimeEnvironmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary defaultPackages = null, string description = null, string language = null, string version = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch RuntimeEnvironmentPatch(Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary defaultPackages = null) { throw null; } public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks tasks = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, System.DateTimeOffset? nextRunOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationScheduleProperties scheduleInfo = null, string provisioningState = null, Azure.ResourceManager.Automation.Models.AutomationResponseError error = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string createdBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks tasks = null) { throw null; } public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationMachineRun SoftwareUpdateConfigurationMachineRun(string name = null, Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier targetComputerId = null, string targetComputerType = null, string softwareUpdateName = null, string status = null, string osType = null, System.Guid? correlationId = default(System.Guid?), System.Guid? sourceComputerId = default(System.Guid?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.TimeSpan? configuredDuration = default(System.TimeSpan?), System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string createdBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.AutomationResponseError error = null) { throw null; } @@ -1646,6 +1760,7 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.SourceControlSyncJobResult SourceControlSyncJobResult(Azure.Core.ResourceIdentifier id = null, string sourceControlSyncJobId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.SourceControlProvisioningState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlSyncType? syncType = default(Azure.ResourceManager.Automation.Models.SourceControlSyncType?), string exception = null) { throw null; } public static Azure.ResourceManager.Automation.Models.SourceControlSyncJobStream SourceControlSyncJobStream(Azure.Core.ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, System.DateTimeOffset? time = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlStreamType? streamType = default(Azure.ResourceManager.Automation.Models.SourceControlStreamType?)) { throw null; } public static Azure.ResourceManager.Automation.Models.SourceControlSyncJobStreamResult SourceControlSyncJobStreamResult(Azure.Core.ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, System.DateTimeOffset? time = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlStreamType? streamType = default(Azure.ResourceManager.Automation.Models.SourceControlStreamType?), string streamText = null, System.Collections.Generic.IReadOnlyDictionary value = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.TrackedResource TrackedResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation)) { throw null; } } public partial class AutomationAccountCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -1683,8 +1798,8 @@ public partial class AutomationAccountModulePatch : System.ClientModel.Primitive { public AutomationAccountModulePatch() { } public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public string Name { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public string Name { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1711,29 +1826,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AutomationAccountPython2PackageCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountPython2PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } - public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AutomationAccountPython2PackagePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountPython2PackagePatch() { } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - 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 AutomationAccountState : System.IEquatable { @@ -2161,6 +2253,8 @@ public AutomationJobCollectionItemData() { } public string ProvisioningState { get { throw null; } } public string RunbookName { get { throw null; } } public string RunOn { get { throw null; } set { } } + public string RuntimeEnvironmentName { get { throw null; } set { } } + public string StartedBy { get { throw null; } } public System.DateTimeOffset? StartOn { get { throw null; } } public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2412,6 +2506,7 @@ public AutomationRunbookCreateOrUpdateContent(Azure.ResourceManager.Automation.M public string Name { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationContentLink PublishContentLink { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationRunbookType RunbookType { get { throw null; } } + public string RuntimeEnvironment { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2463,7 +2558,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShell { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShellWorkflow { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell72 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShellWorkflow { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python2 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python3 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Script { get { throw null; } } @@ -2733,32 +2830,24 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class DscCompilationJobCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DscCompilationJobCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty configuration) { } - public string ConfigurationName { get { throw null; } } - public bool? IsIncrementNodeConfigurationBuildRequired { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DscConfigurationAssociationProperty : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class DeletedRunbook : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public DscConfigurationAssociationProperty() { } - public string ConfigurationName { get { throw null; } set { } } + internal DeletedRunbook() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public string Id { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public string Name { get { throw null; } } + public string RunbookId { get { throw null; } } + public string RunbookType { get { throw null; } } + public string Runtime { get { throw null; } } + public string RuntimeEnvironment { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Automation.Models.DeletedRunbook System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.DeletedRunbook System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class DscConfigurationCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3024,17 +3113,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Automation.Models.GraphRunbookType left, Azure.ResourceManager.Automation.Models.GraphRunbookType right) { throw null; } public override string ToString() { throw null; } } - public partial class HybridRunbookWorkerCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridRunbookWorkerCreateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridRunbookWorkerCreateOrUpdateContent() { } - public string Name { get { throw null; } set { } } + public HybridRunbookWorkerCreateParameters() { } + public string Name { get { throw null; } } public Azure.Core.ResourceIdentifier VmResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class HybridRunbookWorkerGroupCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3149,24 +3238,37 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public enum ModuleProvisioningState - { - Created = 0, - Creating = 1, - StartingImportModuleRunbook = 2, - RunningImportModuleRunbook = 3, - ContentRetrieved = 4, - ContentDownloaded = 5, - ContentValidated = 6, - ConnectionTypeImported = 7, - ContentStored = 8, - ModuleDataStored = 9, - ActivitiesStored = 10, - ModuleImportRunbookComplete = 11, - Succeeded = 12, - Failed = 13, - Cancelled = 14, - Updating = 15, + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ModuleProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ModuleProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ActivitiesStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ConnectionTypeImported { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentDownloaded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentRetrieved { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentValidated { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Created { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ModuleDataStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ModuleImportRunbookComplete { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState RunningImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState StartingImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.ModuleProvisioningState 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.Automation.Models.ModuleProvisioningState left, Azure.ResourceManager.Automation.Models.ModuleProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.ModuleProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.ModuleProvisioningState left, Azure.ResourceManager.Automation.Models.ModuleProvisioningState right) { throw null; } + public override string ToString() { throw null; } } public partial class NonAzureQueryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3180,6 +3282,97 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class PackageCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.TrackedResource AllOf { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PackageErrorInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackageErrorInfo() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageErrorInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageErrorInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PackagePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackagePatch() { } + public Azure.ResourceManager.Automation.Models.TrackedResource AllOf { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackagePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackagePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + 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 PackageProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PackageProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ActivitiesStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ConnectionTypeImported { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentDownloaded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentRetrieved { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentValidated { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Created { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ModuleDataStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ModuleImportRunbookComplete { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState RunningImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState StartingImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.PackageProvisioningState 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.Automation.Models.PackageProvisioningState left, Azure.ResourceManager.Automation.Models.PackageProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.PackageProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.PackageProvisioningState left, Azure.ResourceManager.Automation.Models.PackageProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class PythonPackageCreateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PythonPackageCreateParameters(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PythonPackageUpdateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PythonPackageUpdateParameters() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public enum QueryTagOperator { All = 0, @@ -3309,6 +3502,7 @@ public partial class RunbookTestJobCreateContent : System.ClientModel.Primitives public RunbookTestJobCreateContent() { } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } public string RunOn { get { throw null; } set { } } + public string RuntimeEnvironment { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3316,6 +3510,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class RuntimeEnvironmentPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RuntimeEnvironmentPatch() { } + public System.Collections.Generic.IDictionary DefaultPackages { get { throw null; } } + public Azure.ResourceManager.Models.SystemData SystemData { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ScheduleAssociationProperty : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ScheduleAssociationProperty() { } @@ -3689,6 +3895,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlTokenType left, Azure.ResourceManager.Automation.Models.SourceControlTokenType right) { throw null; } public override string ToString() { throw null; } } + public partial class TrackedResource : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public TrackedResource(Azure.Core.AzureLocation location) { } + public Azure.Core.AzureLocation Location { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.TrackedResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.TrackedResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + 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 WindowsUpdateClassification : System.IEquatable { diff --git a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs index cbd8993425a1..a4c8fd03abf5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs @@ -93,8 +93,8 @@ protected AutomationAccountModuleResource() { } public partial class AutomationAccountPython2PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected AutomationAccountPython2PackageCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -129,8 +129,50 @@ protected AutomationAccountPython2PackageResource() { } Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AutomationAccountPython3PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomationAccountPython3PackageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AutomationAccountPython3PackageResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomationAccountPython3PackageResource() { } + public virtual Azure.ResourceManager.Automation.AutomationModuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AutomationAccountResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -163,6 +205,9 @@ protected AutomationAccountResource() { } public virtual Azure.Response GetAutomationAccountPython2Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationAccountPython2PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() { throw null; } + public virtual Azure.Response GetAutomationAccountPython3Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationAccountPython3PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPython3PackageCollection GetAutomationAccountPython3Packages() { throw null; } public virtual Azure.Response GetAutomationCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationCertificateCollection GetAutomationCertificates() { throw null; } @@ -202,11 +247,8 @@ protected AutomationAccountResource() { } public virtual Azure.Response GetAutomationWebhook(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationWebhookAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationWebhookCollection GetAutomationWebhooks() { throw null; } - public virtual Azure.Response GetDscCompilationJob(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDscCompilationJobAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.DscCompilationJobCollection GetDscCompilationJobs() { throw null; } - public virtual Azure.Pageable GetDscCompilationJobStreams(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetDscCompilationJobStreamsAsync(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetDeletedRunbooks(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetDeletedRunbooksAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDscConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDscConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.DscConfigurationCollection GetDscConfigurations() { throw null; } @@ -223,6 +265,9 @@ protected AutomationAccountResource() { } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() { throw null; } public virtual Azure.Response GetLinkedWorkspace(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetLinkedWorkspaceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRuntimeEnvironment(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRuntimeEnvironmentAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.RuntimeEnvironmentCollection GetRuntimeEnvironments() { throw null; } public virtual Azure.Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetSoftwareUpdateConfigurationMachineRun(System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -236,8 +281,6 @@ protected AutomationAccountResource() { } public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() { throw null; } public virtual Azure.Pageable GetStatistics(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetStatisticsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetStreamDscCompilationJob(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetStreamDscCompilationJobAsync(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetUsages(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetUsagesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RegenerateKeyAgentRegistrationInformation(Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -467,6 +510,7 @@ public static partial class AutomationExtensions public static System.Threading.Tasks.Task> GetAutomationAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetAutomationAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -486,12 +530,13 @@ public static partial class AutomationExtensions public static Azure.ResourceManager.Automation.AutomationWebhookResource GetAutomationWebhookResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetDeletedAutomationAccountsBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automation.DscCompilationJobResource GetDscCompilationJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.DscConfigurationResource GetDscConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.DscNodeConfigurationResource GetDscNodeConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.DscNodeResource GetDscNodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.PackageResource GetPackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.RuntimeEnvironmentResource GetRuntimeEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } } public partial class AutomationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -521,9 +566,10 @@ public AutomationJobData() { } public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } set { } } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } } public string RunbookName { get { throw null; } set { } } public string RunOn { get { throw null; } set { } } + public string RuntimeEnvironmentName { get { throw null; } set { } } public string StartedBy { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } set { } } @@ -723,6 +769,7 @@ public AutomationRunbookData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.Automation.Models.RunbookProvisioningState? ProvisioningState { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationContentLink PublishContentLink { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationRunbookType? RunbookType { get { throw null; } set { } } + public string RuntimeEnvironment { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.RunbookState? State { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.AutomationRunbookData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1075,64 +1122,6 @@ protected AutomationWebhookResource() { } public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationWebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationWebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class DscCompilationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected DscCompilationJobCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class DscCompilationJobData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DscCompilationJobData() { } - public string ConfigurationName { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string Exception { get { throw null; } } - public System.Guid? JobId { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } - public string RunOn { get { throw null; } set { } } - public string StartedBy { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } set { } } - public string StatusDetails { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DscCompilationJobResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected DscCompilationJobResource() { } - public virtual Azure.ResourceManager.Automation.DscCompilationJobData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.DscCompilationJobData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class DscConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected DscConfigurationCollection() { } @@ -1313,8 +1302,8 @@ protected DscNodeResource() { } public partial class HybridRunbookWorkerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HybridRunbookWorkerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1327,9 +1316,9 @@ protected HybridRunbookWorkerCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HybridRunbookWorkerData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridRunbookWorkerData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridRunbookWorkerData() { } + public HybridRunbookWorkerData(Azure.Core.AzureLocation location) { } public string IP { get { throw null; } set { } } public System.DateTimeOffset? LastSeenOn { get { throw null; } set { } } public System.DateTimeOffset? RegisteredOn { get { throw null; } set { } } @@ -1360,9 +1349,9 @@ protected HybridRunbookWorkerGroupCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HybridRunbookWorkerGroupData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridRunbookWorkerGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridRunbookWorkerGroupData() { } + public HybridRunbookWorkerGroupData(Azure.Core.AzureLocation location) { } public string CredentialName { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.HybridWorkerGroup? GroupType { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1412,8 +1401,114 @@ protected HybridRunbookWorkerResource() { } Azure.ResourceManager.Automation.HybridRunbookWorkerData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected PackageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class PackageData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackageData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Models.SystemData AllOf { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } + public bool? Default { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.PackageErrorInfo Error { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.PackageProvisioningState? ProvisioningState { get { throw null; } } + public long? SizeInBytes { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PackageResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected PackageResource() { } + public virtual Azure.ResourceManager.Automation.PackageData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.PackageData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RuntimeEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RuntimeEnvironmentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string runtimeEnvironmentName, Azure.ResourceManager.Automation.RuntimeEnvironmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string runtimeEnvironmentName, Azure.ResourceManager.Automation.RuntimeEnvironmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string runtimeEnvironmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RuntimeEnvironmentData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RuntimeEnvironmentData(Azure.Core.AzureLocation location) { } + public System.Collections.Generic.IDictionary DefaultPackages { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RuntimeEnvironmentResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RuntimeEnvironmentResource() { } + public virtual Azure.ResourceManager.Automation.RuntimeEnvironmentData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetPackage(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.PackageCollection GetPackages() { throw null; } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.RuntimeEnvironmentData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class SoftwareUpdateConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -1478,6 +1573,7 @@ public partial class MockableAutomationArmClient : Azure.ResourceManager.ArmReso protected MockableAutomationArmClient() { } public virtual Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationCertificateResource GetAutomationCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationConnectionResource GetAutomationConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -1492,12 +1588,13 @@ protected MockableAutomationArmClient() { } public virtual Azure.ResourceManager.Automation.AutomationVariableResource GetAutomationVariableResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationWatcherResource GetAutomationWatcherResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationWebhookResource GetAutomationWebhookResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.Automation.DscCompilationJobResource GetDscCompilationJobResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.DscConfigurationResource GetDscConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.DscNodeConfigurationResource GetDscNodeConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.DscNodeResource GetDscNodeResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerResource GetHybridRunbookWorkerResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.PackageResource GetPackageResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.RuntimeEnvironmentResource GetRuntimeEnvironmentResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableAutomationResourceGroupResource : Azure.ResourceManager.ArmResource @@ -1579,7 +1676,7 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.AgentRegistrationKeys AgentRegistrationKeys(string primary = null, string secondary = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountData AutomationAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Automation.Models.AutomationSku sku = null, string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.AutomationAccountState? state = default(Azure.ResourceManager.Automation.Models.AutomationAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null, Azure.ResourceManager.Automation.Models.AutomationEncryptionProperties encryption = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, bool? isPublicNetworkAccessAllowed = default(bool?), bool? isLocalAuthDisabled = default(bool?), System.Uri automationHybridServiceUri = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent AutomationAccountModuleCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent AutomationAccountPython2PackageCreateOrUpdateContent(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch AutomationAccountModulePatch(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationAccountStatistics AutomationAccountStatistics(string counterProperty = null, long? counterValue = default(long?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string id = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationActivity AutomationActivity(Azure.Core.ResourceIdentifier id = null, string name = null, string definition = null, System.Collections.Generic.IEnumerable parameterSets = null, System.Collections.Generic.IEnumerable outputTypes = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationActivityOutputType AutomationActivityOutputType(string name = null, string activityOutputType = null) { throw null; } @@ -1594,8 +1691,12 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.AutomationConnectionTypeData AutomationConnectionTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isGlobal = default(bool?), System.Collections.Generic.IReadOnlyDictionary fieldDefinitions = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationCredentialCreateOrUpdateContent AutomationCredentialCreateOrUpdateContent(string name = null, string userName = null, string password = null, string description = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationCredentialData AutomationCredentialData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string userName = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData AutomationJobCollectionItemData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, string runOn = null) { throw null; } - public static Azure.ResourceManager.Automation.AutomationJobData AutomationJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), string statusDetails = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.JobProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData AutomationJobCollectionItemData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string runbookName, System.Guid? jobId, System.DateTimeOffset? createdOn, Azure.ResourceManager.Automation.Models.AutomationJobStatus? status, System.DateTimeOffset? startOn, System.DateTimeOffset? endOn, System.DateTimeOffset? lastModifiedOn, string provisioningState, string runOn) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData AutomationJobCollectionItemData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, System.Guid? jobId = default(System.Guid?), string startedBy = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, string runtimeEnvironmentName = null, string runOn = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.AutomationJobData AutomationJobData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string runbookName, string startedBy, string runOn, System.Guid? jobId, System.DateTimeOffset? createdOn, Azure.ResourceManager.Automation.Models.AutomationJobStatus? status, string statusDetails, System.DateTimeOffset? startOn, System.DateTimeOffset? endOn, string exception, System.DateTimeOffset? lastModifiedOn, System.DateTimeOffset? lastStatusModifiedOn, System.Collections.Generic.IDictionary parameters, Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.Automation.AutomationJobData AutomationJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, string runtimeEnvironmentName = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), string statusDetails = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.JobProvisioningState?)) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationJobScheduleCreateOrUpdateContent AutomationJobScheduleCreateOrUpdateContent(string scheduleName = null, string runbookName = null, string runOn = null, System.Collections.Generic.IDictionary parameters = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationJobScheduleData AutomationJobScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? jobScheduleId = default(System.Guid?), string scheduleName = null, string runbookName = null, string runOn = null, System.Collections.Generic.IReadOnlyDictionary parameters = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationJobStream AutomationJobStream(Azure.Core.ResourceIdentifier id = null, string jobStreamId = null, System.DateTimeOffset? time = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.AutomationJobStreamType? streamType = default(Azure.ResourceManager.Automation.Models.AutomationJobStreamType?), string streamText = null, string summary = null, System.Collections.Generic.IReadOnlyDictionary value = null) { throw null; } @@ -1606,8 +1707,12 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData AutomationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, System.Collections.Generic.IEnumerable groupIds = null, Azure.ResourceManager.Automation.Models.AutomationPrivateLinkServiceConnectionStateProperty connectionState = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationPrivateLinkResource AutomationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationPrivateLinkServiceConnectionStateProperty AutomationPrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType), Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = default(int?)) { throw null; } - public static Azure.ResourceManager.Automation.AutomationRunbookData AutomationRunbookData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Automation.Models.AutomationRunbookType? runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType?), Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, Azure.ResourceManager.Automation.Models.RunbookState? state = default(Azure.ResourceManager.Automation.Models.RunbookState?), bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), int? logActivityTrace = default(int?), int? jobCount = default(int?), System.Collections.Generic.IDictionary parameters = null, System.Collections.Generic.IEnumerable outputTypes = null, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.RunbookProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.RunbookProvisioningState?), string lastModifiedBy = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name, Azure.Core.AzureLocation? location, System.Collections.Generic.IDictionary tags, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink, string description, int? logActivityTrace) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), string runtimeEnvironment = null, Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType), Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = default(int?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.AutomationRunbookData AutomationRunbookData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, Azure.ResourceManager.Automation.Models.AutomationRunbookType? runbookType, Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink, Azure.ResourceManager.Automation.Models.RunbookState? state, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, int? logActivityTrace, int? jobCount, System.Collections.Generic.IDictionary parameters, System.Collections.Generic.IEnumerable outputTypes, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft, Azure.ResourceManager.Automation.Models.RunbookProvisioningState? provisioningState, string lastModifiedBy, System.DateTimeOffset? createdOn, System.DateTimeOffset? lastModifiedOn, string description) { throw null; } + public static Azure.ResourceManager.Automation.AutomationRunbookData AutomationRunbookData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), string runtimeEnvironment = null, Azure.ResourceManager.Automation.Models.AutomationRunbookType? runbookType = default(Azure.ResourceManager.Automation.Models.AutomationRunbookType?), Azure.ResourceManager.Automation.Models.AutomationContentLink publishContentLink = null, Azure.ResourceManager.Automation.Models.RunbookState? state = default(Azure.ResourceManager.Automation.Models.RunbookState?), bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), int? logActivityTrace = default(int?), int? jobCount = default(int?), System.Collections.Generic.IDictionary parameters = null, System.Collections.Generic.IEnumerable outputTypes = null, Azure.ResourceManager.Automation.Models.AutomationRunbookDraft draft = null, Azure.ResourceManager.Automation.Models.RunbookProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.RunbookProvisioningState?), string lastModifiedBy = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent AutomationScheduleCreateOrUpdateContent(string name = null, string description = null, System.DateTimeOffset startOn = default(System.DateTimeOffset), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.BinaryData interval = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency), string timeZone = null, Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule advancedSchedule = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationScheduleData AutomationScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), double? startInMinutes = default(double?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), double? expireInMinutes = default(double?), bool? isEnabled = default(bool?), System.DateTimeOffset? nextRunOn = default(System.DateTimeOffset?), double? nextRunInMinutes = default(double?), System.BinaryData interval = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency?), string timeZone = null, Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule advancedSchedule = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationSourceControlData AutomationSourceControlData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri repoUri = null, string branch = null, string folderPath = null, bool? isAutoSyncEnabled = default(bool?), bool? isAutoPublishRunbookEnabled = default(bool?), Azure.ResourceManager.Automation.Models.SourceControlSourceType? sourceType = default(Azure.ResourceManager.Automation.Models.SourceControlSourceType?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } @@ -1619,8 +1724,7 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.AutomationWebhookCreateOrUpdateContent AutomationWebhookCreateOrUpdateContent(string name = null, bool? isEnabled = default(bool?), System.Uri uri = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, string runbookName = null, string runOn = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationWebhookData AutomationWebhookData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isEnabled = default(bool?), System.Uri uri = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastInvokedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null, string runbookName = null, string runOn = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.DeletedAutomationAccount DeletedAutomationAccount(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceIdentifier automationAccountResourceId = null, string automationAccountId = null, string locationPropertiesLocation = null, System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent DscCompilationJobCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, string configurationName = null, System.Collections.Generic.IDictionary parameters = null, bool? isIncrementNodeConfigurationBuildRequired = default(bool?)) { throw null; } - public static Azure.ResourceManager.Automation.DscCompilationJobData DscCompilationJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string configurationName = null, string startedBy = null, System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.JobProvisioningState?), string runOn = null, Azure.ResourceManager.Automation.Models.AutomationJobStatus? status = default(Azure.ResourceManager.Automation.Models.AutomationJobStatus?), string statusDetails = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary parameters = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.DeletedRunbook DeletedRunbook(string id = null, string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string runbookId = null, string runbookType = null, string runtime = null, string runtimeEnvironment = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent DscConfigurationCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, bool? isLogVerboseEnabled = default(bool?), bool? isLogProgressEnabled = default(bool?), Azure.ResourceManager.Automation.Models.AutomationContentSource source = null, System.Collections.Generic.IDictionary parameters = null, string description = null) { throw null; } public static Azure.ResourceManager.Automation.DscConfigurationData DscConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Automation.Models.DscConfigurationProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.DscConfigurationProvisioningState?), int? jobCount = default(int?), System.Collections.Generic.IDictionary parameters = null, Azure.ResourceManager.Automation.Models.AutomationContentSource source = null, Azure.ResourceManager.Automation.Models.DscConfigurationState? state = default(Azure.ResourceManager.Automation.Models.DscConfigurationState?), bool? isLogVerboseEnabled = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), int? nodeConfigurationCount = default(int?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.DscMetaConfiguration DscMetaConfiguration(int? configurationModeFrequencyMins = default(int?), bool? rebootNodeIfNeeded = default(bool?), string configurationMode = null, string actionAfterReboot = null, string certificateId = null, int? refreshFrequencyMins = default(int?), bool? allowModuleOverwrite = default(bool?)) { throw null; } @@ -1631,10 +1735,20 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.DscReportError DscReportError(string errorSource = null, string resourceId = null, string errorCode = null, string errorMessage = null, string locale = null, string errorDetails = null) { throw null; } public static Azure.ResourceManager.Automation.Models.DscReportResource DscReportResource(string resourceId = null, string sourceInfo = null, System.Collections.Generic.IEnumerable dependsOn = null, string moduleName = null, string moduleVersion = null, string resourceName = null, string error = null, string status = null, double? durationInSeconds = default(double?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Automation.Models.DscReportResourceNavigation DscReportResourceNavigation(string resourceId = null) { throw null; } - public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string ip = null, System.DateTimeOffset? registeredOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastSeenOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier vmResourceId = null, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType = default(Azure.ResourceManager.Automation.Models.HybridWorkerType?), string workerName = null) { throw null; } - public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType = default(Azure.ResourceManager.Automation.Models.HybridWorkerGroup?), string credentialName = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters HybridRunbookWorkerCreateParameters(string name = null, Azure.Core.ResourceIdentifier vmResourceId = null) { throw null; } + public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string ip = null, System.DateTimeOffset? registeredOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastSeenOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier vmResourceId = null, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType = default(Azure.ResourceManager.Automation.Models.HybridWorkerType?), string workerName = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string ip, System.DateTimeOffset? registeredOn, System.DateTimeOffset? lastSeenOn, Azure.Core.ResourceIdentifier vmResourceId, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType, string workerName) { throw null; } + public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType = default(Azure.ResourceManager.Automation.Models.HybridWorkerGroup?), string credentialName = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType, string credentialName) { throw null; } + public static Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.TrackedResource allOf = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } + public static Azure.ResourceManager.Automation.PackageData PackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), bool? @default = default(bool?), string version = null, long? sizeInBytes = default(long?), Azure.ResourceManager.Automation.Models.PackageProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.PackageProvisioningState?), Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null, Azure.ResourceManager.Automation.Models.PackageErrorInfo error = null, Azure.ResourceManager.Models.SystemData allOf = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters PythonPackageCreateParameters(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } public static Azure.ResourceManager.Automation.Models.RunbookDraftUndoEditResult RunbookDraftUndoEditResult(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode? statusCode = default(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode?), string requestId = null) { throw null; } public static Azure.ResourceManager.Automation.Models.RunbookTestJob RunbookTestJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string status = null, string statusDetails = null, string runOn = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary parameters = null, int? logActivityTrace = default(int?)) { throw null; } + public static Azure.ResourceManager.Automation.RuntimeEnvironmentData RuntimeEnvironmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary defaultPackages = null, string description = null, string language = null, string version = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch RuntimeEnvironmentPatch(Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary defaultPackages = null) { throw null; } public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks tasks = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, System.DateTimeOffset? nextRunOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationScheduleProperties scheduleInfo = null, string provisioningState = null, Azure.ResourceManager.Automation.Models.AutomationResponseError error = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string createdBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks tasks = null) { throw null; } public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationMachineRun SoftwareUpdateConfigurationMachineRun(string name = null, Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier targetComputerId = null, string targetComputerType = null, string softwareUpdateName = null, string status = null, string osType = null, System.Guid? correlationId = default(System.Guid?), System.Guid? sourceComputerId = default(System.Guid?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.TimeSpan? configuredDuration = default(System.TimeSpan?), System.Guid? jobId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string createdBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.AutomationResponseError error = null) { throw null; } @@ -1646,6 +1760,7 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.SourceControlSyncJobResult SourceControlSyncJobResult(Azure.Core.ResourceIdentifier id = null, string sourceControlSyncJobId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.SourceControlProvisioningState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlSyncType? syncType = default(Azure.ResourceManager.Automation.Models.SourceControlSyncType?), string exception = null) { throw null; } public static Azure.ResourceManager.Automation.Models.SourceControlSyncJobStream SourceControlSyncJobStream(Azure.Core.ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, System.DateTimeOffset? time = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlStreamType? streamType = default(Azure.ResourceManager.Automation.Models.SourceControlStreamType?)) { throw null; } public static Azure.ResourceManager.Automation.Models.SourceControlSyncJobStreamResult SourceControlSyncJobStreamResult(Azure.Core.ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, System.DateTimeOffset? time = default(System.DateTimeOffset?), Azure.ResourceManager.Automation.Models.SourceControlStreamType? streamType = default(Azure.ResourceManager.Automation.Models.SourceControlStreamType?), string streamText = null, System.Collections.Generic.IReadOnlyDictionary value = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.TrackedResource TrackedResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation)) { throw null; } } public partial class AutomationAccountCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -1683,8 +1798,8 @@ public partial class AutomationAccountModulePatch : System.ClientModel.Primitive { public AutomationAccountModulePatch() { } public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public string Name { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public string Name { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1711,29 +1826,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AutomationAccountPython2PackageCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountPython2PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } - public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AutomationAccountPython2PackagePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountPython2PackagePatch() { } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - 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 AutomationAccountState : System.IEquatable { @@ -2161,6 +2253,8 @@ public AutomationJobCollectionItemData() { } public string ProvisioningState { get { throw null; } } public string RunbookName { get { throw null; } } public string RunOn { get { throw null; } set { } } + public string RuntimeEnvironmentName { get { throw null; } set { } } + public string StartedBy { get { throw null; } } public System.DateTimeOffset? StartOn { get { throw null; } } public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2412,6 +2506,7 @@ public AutomationRunbookCreateOrUpdateContent(Azure.ResourceManager.Automation.M public string Name { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationContentLink PublishContentLink { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationRunbookType RunbookType { get { throw null; } } + public string RuntimeEnvironment { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2463,7 +2558,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShell { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShellWorkflow { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell72 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShellWorkflow { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python2 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python3 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Script { get { throw null; } } @@ -2733,32 +2830,24 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class DscCompilationJobCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DscCompilationJobCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty configuration) { } - public string ConfigurationName { get { throw null; } } - public bool? IsIncrementNodeConfigurationBuildRequired { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DscConfigurationAssociationProperty : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class DeletedRunbook : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public DscConfigurationAssociationProperty() { } - public string ConfigurationName { get { throw null; } set { } } + internal DeletedRunbook() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public string Id { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public string Name { get { throw null; } } + public string RunbookId { get { throw null; } } + public string RunbookType { get { throw null; } } + public string Runtime { get { throw null; } } + public string RuntimeEnvironment { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Automation.Models.DeletedRunbook System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.DeletedRunbook System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class DscConfigurationCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3024,17 +3113,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Automation.Models.GraphRunbookType left, Azure.ResourceManager.Automation.Models.GraphRunbookType right) { throw null; } public override string ToString() { throw null; } } - public partial class HybridRunbookWorkerCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridRunbookWorkerCreateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridRunbookWorkerCreateOrUpdateContent() { } - public string Name { get { throw null; } set { } } + public HybridRunbookWorkerCreateParameters() { } + public string Name { get { throw null; } } public Azure.Core.ResourceIdentifier VmResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class HybridRunbookWorkerGroupCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3149,24 +3238,37 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public enum ModuleProvisioningState - { - Created = 0, - Creating = 1, - StartingImportModuleRunbook = 2, - RunningImportModuleRunbook = 3, - ContentRetrieved = 4, - ContentDownloaded = 5, - ContentValidated = 6, - ConnectionTypeImported = 7, - ContentStored = 8, - ModuleDataStored = 9, - ActivitiesStored = 10, - ModuleImportRunbookComplete = 11, - Succeeded = 12, - Failed = 13, - Cancelled = 14, - Updating = 15, + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ModuleProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ModuleProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ActivitiesStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ConnectionTypeImported { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentDownloaded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentRetrieved { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentValidated { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Created { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ModuleDataStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ModuleImportRunbookComplete { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState RunningImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState StartingImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.ModuleProvisioningState 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.Automation.Models.ModuleProvisioningState left, Azure.ResourceManager.Automation.Models.ModuleProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.ModuleProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.ModuleProvisioningState left, Azure.ResourceManager.Automation.Models.ModuleProvisioningState right) { throw null; } + public override string ToString() { throw null; } } public partial class NonAzureQueryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3180,6 +3282,97 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class PackageCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.TrackedResource AllOf { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PackageErrorInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackageErrorInfo() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageErrorInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackageErrorInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PackagePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PackagePatch() { } + public Azure.ResourceManager.Automation.Models.TrackedResource AllOf { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackagePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PackagePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + 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 PackageProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PackageProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ActivitiesStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ConnectionTypeImported { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentDownloaded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentRetrieved { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ContentValidated { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Created { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ModuleDataStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState ModuleImportRunbookComplete { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState RunningImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState StartingImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.PackageProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.PackageProvisioningState 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.Automation.Models.PackageProvisioningState left, Azure.ResourceManager.Automation.Models.PackageProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.PackageProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.PackageProvisioningState left, Azure.ResourceManager.Automation.Models.PackageProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class PythonPackageCreateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PythonPackageCreateParameters(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PythonPackageUpdateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PythonPackageUpdateParameters() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public enum QueryTagOperator { All = 0, @@ -3309,6 +3502,7 @@ public partial class RunbookTestJobCreateContent : System.ClientModel.Primitives public RunbookTestJobCreateContent() { } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } public string RunOn { get { throw null; } set { } } + public string RuntimeEnvironment { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3316,6 +3510,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class RuntimeEnvironmentPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RuntimeEnvironmentPatch() { } + public System.Collections.Generic.IDictionary DefaultPackages { get { throw null; } } + public Azure.ResourceManager.Models.SystemData SystemData { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.RuntimeEnvironmentPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ScheduleAssociationProperty : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ScheduleAssociationProperty() { } @@ -3689,6 +3895,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlTokenType left, Azure.ResourceManager.Automation.Models.SourceControlTokenType right) { throw null; } public override string ToString() { throw null; } } + public partial class TrackedResource : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public TrackedResource(Azure.Core.AzureLocation location) { } + public Azure.Core.AzureLocation Location { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.TrackedResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.TrackedResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + 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 WindowsUpdateClassification : System.IEquatable { diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs index 8f1f52018dfb..b505d00f865a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AutomationAccountCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateAutomationAccount.json // this example is just showing the usage of "AutomationAccount_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Get_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAutomationAccountsByResourceGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listAutomationAccountsByResourceGroup.json // this example is just showing the usage of "AutomationAccount_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListAutomationAccountsByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +158,7 @@ public async Task Exists_GetAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs index 0176de735272..8b9c7e4a64ae 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountModuleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateModule.json // this example is just showing the usage of "Module_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAModule() [Ignore("Only validating compilation of examples")] public async Task Get_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getModule.json // this example is just showing the usage of "Module_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAModule() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListModulesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listModulesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listModulesByAutomationAccount.json // this example is just showing the usage of "Module_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetAll_ListModulesByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getModule.json // this example is just showing the usage of "Module_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Exists_GetAModule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getModule.json // this example is just showing the usage of "Module_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs index 705303f65975..6fc3be1f0da9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountModuleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getModule.json // this example is just showing the usage of "Module_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAModule() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteModule.json // this example is just showing the usage of "Module_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAModule() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateModule.json // this example is just showing the usage of "Module_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateAModule() [Ignore("Only validating compilation of examples")] public async Task GetActivity_GetActivityInAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getActivityInAModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getActivityInAModule.json // this example is just showing the usage of "Activity_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task GetActivity_GetActivityInAModule() [Ignore("Only validating compilation of examples")] public async Task GetActivities_ListActivitiesByAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listActivitiesByModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listActivitiesByModule.json // this example is just showing the usage of "Activity_ListByModule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task GetActivities_ListActivitiesByAModule() [Ignore("Only validating compilation of examples")] public async Task GetFieldsByModuleAndType_GetAListOfFieldsOfAGivenType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByModuleAndType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listFieldsByModuleAndType.json // this example is just showing the usage of "ObjectDataTypes_ListFieldsByModuleAndType" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -207,7 +207,7 @@ public async Task GetFieldsByModuleAndType_GetAListOfFieldsOfAGivenType() [Ignore("Only validating compilation of examples")] public async Task GetFieldsByType_GetAListOfFieldsOfAGivenType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByModuleAndType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listFieldsByModuleAndType.json // this example is just showing the usage of "Fields_ListByType" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs index 0bc60a8150c3..0d643f499393 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountPython2PackageCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdatePython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdatePython2Package.json // this example is just showing the usage of "Python2Package_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -41,7 +41,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() // invoke the operation string packageName = "OmsCompositeResources"; - AutomationAccountPython2PackageCreateOrUpdateContent content = new AutomationAccountPython2PackageCreateOrUpdateContent(new AutomationContentLink + PythonPackageCreateParameters pythonPackageCreateParameters = new PythonPackageCreateParameters(new AutomationContentLink { Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), @@ -50,7 +50,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() { Tags = { }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, content); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, pythonPackageCreateParameters); AutomationAccountPython2PackageResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() [Ignore("Only validating compilation of examples")] public async Task Get_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetAPython2Package() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPython2PackagesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPython2PackagesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPython2PackagesByAutomationAccount.json // this example is just showing the usage of "Python2Package_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_ListPython2PackagesByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Exists_GetAPython2Package() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs index 34ba6e4bc43f..3a201c6328d6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountPython2PackageResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAPython2Package() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deletePython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deletePython2Package.json // this example is just showing the usage of "Python2Package_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAPython2Package() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updatePython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updatePython2Package.json // this example is just showing the usage of "Python2Package_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,11 +96,11 @@ public async Task Update_UpdateAModule() AutomationAccountPython2PackageResource automationAccountPython2Package = client.GetAutomationAccountPython2PackageResource(automationAccountPython2PackageResourceId); // invoke the operation - AutomationAccountPython2PackagePatch patch = new AutomationAccountPython2PackagePatch + PythonPackageUpdateParameters pythonPackageUpdateParameters = new PythonPackageUpdateParameters { Tags = { }, }; - AutomationAccountPython2PackageResource result = await automationAccountPython2Package.UpdateAsync(patch); + AutomationAccountPython2PackageResource result = await automationAccountPython2Package.UpdateAsync(pythonPackageUpdateParameters); // the variable result 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/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageCollection.cs new file mode 100644 index 000000000000..3f78510e8582 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageCollection.cs @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Automation.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_AutomationAccountPython3PackageCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdatePython3Package.json + // this example is just showing the usage of "Python3Package_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + PythonPackageCreateParameters pythonPackageCreateParameters = new PythonPackageCreateParameters(new AutomationContentLink + { + Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), + ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), + Version = "1.0.0.0", + }) + { + Tags = { }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, pythonPackageCreateParameters); + AutomationAccountPython3PackageResource result = lro.Value; + + // the variable result 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + AutomationAccountPython3PackageResource result = await collection.GetAsync(packageName); + + // the variable result 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_ListPython3PackagesByAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPython3PackagesByAutomationAccount.json + // this example is just showing the usage of "Python3Package_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation and iterate over the result + await foreach (AutomationAccountPython3PackageResource item in collection.GetAllAsync()) + { + // 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 + AutomationModuleData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + bool result = await collection.ExistsAsync(packageName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + NullableResponse response = await collection.GetIfExistsAsync(packageName); + AutomationAccountPython3PackageResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine("Succeeded with null as result"); + } + else + { + // the variable result 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageResource.cs new file mode 100644 index 000000000000..cdc0a5c076ae --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageResource.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Automation.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_AutomationAccountPython3PackageResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountPython3PackageResource created on azure + // for more information of creating AutomationAccountPython3PackageResource, please refer to the document of AutomationAccountPython3PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier automationAccountPython3PackageResourceId = AutomationAccountPython3PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, packageName); + AutomationAccountPython3PackageResource automationAccountPython3Package = client.GetAutomationAccountPython3PackageResource(automationAccountPython3PackageResourceId); + + // invoke the operation + AutomationAccountPython3PackageResource result = await automationAccountPython3Package.GetAsync(); + + // the variable result 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_DeleteAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deletePython3Package.json + // this example is just showing the usage of "Python3Package_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountPython3PackageResource created on azure + // for more information of creating AutomationAccountPython3PackageResource, please refer to the document of AutomationAccountPython3PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier automationAccountPython3PackageResourceId = AutomationAccountPython3PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, packageName); + AutomationAccountPython3PackageResource automationAccountPython3Package = client.GetAutomationAccountPython3PackageResource(automationAccountPython3PackageResourceId); + + // invoke the operation + await automationAccountPython3Package.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_UpdateAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updatePython3Package.json + // this example is just showing the usage of "Python3Package_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountPython3PackageResource created on azure + // for more information of creating AutomationAccountPython3PackageResource, please refer to the document of AutomationAccountPython3PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "MyAutomationAccount"; + string packageName = "MyPython3Package"; + ResourceIdentifier automationAccountPython3PackageResourceId = AutomationAccountPython3PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, packageName); + AutomationAccountPython3PackageResource automationAccountPython3Package = client.GetAutomationAccountPython3PackageResource(automationAccountPython3PackageResourceId); + + // invoke the operation + PythonPackageUpdateParameters pythonPackageUpdateParameters = new PythonPackageUpdateParameters + { + Tags = { }, + }; + AutomationAccountPython3PackageResource result = await automationAccountPython3Package.UpdateAsync(pythonPackageUpdateParameters); + + // the variable result 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs index f599eaab8a49..55b74788cbac 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteAutomationAccount.json // this example is just showing the usage of "AutomationAccount_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateAutomationAccount.json // this example is just showing the usage of "AutomationAccount_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,10 +110,10 @@ public async Task Update_UpdateAnAutomationAccount() [Test] [Ignore("Only validating compilation of examples")] - public async Task AutomationPrivateLinkResources_GetsPrivateEndpointConnection() + public async Task GetAllNodeCountInformation_GetNodeSNodeConfigurationCounts() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateLinkResourceListGet.json - // this example is just showing the usage of "PrivateLinkResources_Automation" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodeConfigurationCounts.json + // this example is just showing the usage of "NodeCountInformation_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -122,14 +122,15 @@ public async Task AutomationPrivateLinkResources_GetsPrivateEndpointConnection() // this example assumes you already have this AutomationAccountResource created on azure // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - await foreach (AutomationPrivateLinkResource item in automationAccount.AutomationPrivateLinkResourcesAsync()) + AutomationCountType countType = AutomationCountType.NodeConfiguration; + await foreach (DscNodeCount item in automationAccount.GetAllNodeCountInformationAsync(countType)) { Console.WriteLine($"Succeeded: {item}"); } @@ -139,10 +140,10 @@ public async Task AutomationPrivateLinkResources_GetsPrivateEndpointConnection() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetAgentRegistrationInformation_GetTheAgentRegistrationInformation() + public async Task GetAllNodeCountInformation_GetNodeSStatusCounts() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAgentRegistration.json - // this example is just showing the usage of "AgentRegistrationInformation_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodeStatusCounts.json + // this example is just showing the usage of "NodeCountInformation_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -153,22 +154,26 @@ public async Task GetAgentRegistrationInformation_GetTheAgentRegistrationInforma // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "subid"; string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount18"; + string automationAccountName = "myAutomationAccount33"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); - // invoke the operation - AgentRegistration result = await automationAccount.GetAgentRegistrationInformationAsync(); + // invoke the operation and iterate over the result + AutomationCountType countType = AutomationCountType.Status; + await foreach (DscNodeCount item in automationAccount.GetAllNodeCountInformationAsync(countType)) + { + Console.WriteLine($"Succeeded: {item}"); + } - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task RegenerateKeyAgentRegistrationInformation_RegenerateRegistrationKey() + public async Task AutomationPrivateLinkResources_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/regenerateAgentRegistrationKey.json - // this example is just showing the usage of "AgentRegistrationInformation_RegenerateKey" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/PrivateLinkResourceListGet.json + // this example is just showing the usage of "PrivateLinkResources_Automation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -178,24 +183,26 @@ public async Task RegenerateKeyAgentRegistrationInformation_RegenerateRegistrati // this example assumes you already have this AutomationAccountResource created on azure // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "subid"; - string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount18"; + string resourceGroupName = "rg1"; + string automationAccountName = "testaccount"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); - // invoke the operation - AgentRegistrationRegenerateKeyContent content = new AgentRegistrationRegenerateKeyContent(AgentRegistrationKeyName.Primary); - AgentRegistration result = await automationAccount.RegenerateKeyAgentRegistrationInformationAsync(content); + // invoke the operation and iterate over the result + await foreach (AutomationPrivateLinkResource item in automationAccount.AutomationPrivateLinkResourcesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetStreamDscCompilationJob_GetADSCCompilationJobStreamByJobStreamId() + public async Task GetAgentRegistrationInformation_GetTheAgentRegistrationInformation() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/compilationJobStreamByJobStreamId.json - // this example is just showing the usage of "DscCompilationJob_GetStream" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAgentRegistration.json + // this example is just showing the usage of "AgentRegistrationInformation_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -206,54 +213,22 @@ public async Task GetStreamDscCompilationJob_GetADSCCompilationJobStreamByJobStr // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "subid"; string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount33"; + string automationAccountName = "myAutomationAccount18"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation - Guid jobId = Guid.Parse("836d4e06-2d88-46b4-8500-7febd4906838"); - string jobStreamId = "836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008"; - AutomationJobStream result = await automationAccount.GetStreamDscCompilationJobAsync(jobId, jobStreamId); + AgentRegistration result = await automationAccount.GetAgentRegistrationInformationAsync(); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetDscCompilationJobStreams_ListDSCCompilationJobStreams() - { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/compilationJobStreamList.json - // this example is just showing the usage of "DscCompilationJobStream_ListByJob" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AutomationAccountResource created on azure - // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource - string subscriptionId = "subid"; - string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount33"; - ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); - AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); - - // invoke the operation and iterate over the result - Guid jobId = Guid.Parse("836d4e06-2d88-46b4-8500-7febd4906838"); - await foreach (AutomationJobStream item in automationAccount.GetDscCompilationJobStreamsAsync(jobId)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAllNodeCountInformation_GetNodeSNodeConfigurationCounts() + public async Task RegenerateKeyAgentRegistrationInformation_RegenerateRegistrationKey() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationCounts.json - // this example is just showing the usage of "NodeCountInformation_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/regenerateAgentRegistrationKey.json + // this example is just showing the usage of "AgentRegistrationInformation_RegenerateKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -264,26 +239,23 @@ public async Task GetAllNodeCountInformation_GetNodeSNodeConfigurationCounts() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "subid"; string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount33"; + string automationAccountName = "myAutomationAccount18"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); - // invoke the operation and iterate over the result - AutomationCountType countType = AutomationCountType.NodeConfiguration; - await foreach (DscNodeCount item in automationAccount.GetAllNodeCountInformationAsync(countType)) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + AgentRegistrationRegenerateKeyContent content = new AgentRegistrationRegenerateKeyContent(AgentRegistrationKeyName.Primary); + AgentRegistration result = await automationAccount.RegenerateKeyAgentRegistrationInformationAsync(content); - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetAllNodeCountInformation_GetNodeSStatusCounts() + public async Task GetDeletedRunbooks_GetListsOfDeletedRunbooksInAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeStatusCounts.json - // this example is just showing the usage of "NodeCountInformation_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listAutomationAccountDeletedRunbooks.json + // this example is just showing the usage of "AutomationAccount_ListDeletedRunbooks" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -294,13 +266,12 @@ public async Task GetAllNodeCountInformation_GetNodeSStatusCounts() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "subid"; string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount33"; + string automationAccountName = "MyAutomationAccount"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - AutomationCountType countType = AutomationCountType.Status; - await foreach (DscNodeCount item in automationAccount.GetAllNodeCountInformationAsync(countType)) + await foreach (DeletedRunbook item in automationAccount.GetDeletedRunbooksAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -312,7 +283,7 @@ public async Task GetAllNodeCountInformation_GetNodeSStatusCounts() [Ignore("Only validating compilation of examples")] public async Task GetStatistics_GetStatisticsOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getStatisticsOfAutomationAccount.json // this example is just showing the usage of "Statistics_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -341,7 +312,7 @@ public async Task GetStatistics_GetStatisticsOfAnAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetUsages_GetUsagesOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getUsagesOfAutomationAccount.json // this example is just showing the usage of "Usages_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -370,7 +341,7 @@ public async Task GetUsages_GetUsagesOfAnAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetAutomationAccountKeys_GetListsOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listAutomationAccountKeys.json // this example is just showing the usage of "Keys_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -399,7 +370,7 @@ public async Task GetAutomationAccountKeys_GetListsOfAnAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetLinkedWorkspace_GetTheLinkedWorkspaceOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getLinkedWorkspace.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getLinkedWorkspace.json // this example is just showing the usage of "LinkedWorkspace_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -425,7 +396,7 @@ public async Task GetLinkedWorkspace_GetTheLinkedWorkspaceOfAnAutomationAccount( [Ignore("Only validating compilation of examples")] public async Task GetFieldsByType_GetAListOfFieldsOfAGivenTypeAcrossAllAccessibleModules() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listFieldsByType.json // this example is just showing the usage of "ObjectDataTypes_ListFieldsByType" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -455,7 +426,7 @@ public async Task GetFieldsByType_GetAListOfFieldsOfAGivenTypeAcrossAllAccessibl [Ignore("Only validating compilation of examples")] public async Task ConvertGraphRunbookContent_GetGraphicalRawRunbookContentFromGraphicalRunbookJSONObject() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/serializeGraphRunbookContent.json // this example is just showing the usage of "ConvertGraphRunbookContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -485,7 +456,7 @@ public async Task ConvertGraphRunbookContent_GetGraphicalRawRunbookContentFromGr [Ignore("Only validating compilation of examples")] public async Task ConvertGraphRunbookContent_GetGraphicalRunbookContentFromRawContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deserializeGraphRunbookContent.json // this example is just showing the usage of "ConvertGraphRunbookContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -518,10 +489,10 @@ public async Task ConvertGraphRunbookContent_GetGraphicalRunbookContentFromRawCo [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSoftwareUpdateConfigurationRun_GetSoftwareUpdateConfigurationRunsById() + public async Task GetSoftwareUpdateConfigurationMachineRun_GetSoftwareUpdateConfigurationMachineRun() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json - // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_GetById" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json + // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_GetById" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -537,18 +508,18 @@ public async Task GetSoftwareUpdateConfigurationRun_GetSoftwareUpdateConfigurati AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation - Guid softwareUpdateConfigurationRunId = Guid.Parse("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"); - SoftwareUpdateConfigurationRun result = await automationAccount.GetSoftwareUpdateConfigurationRunAsync(softwareUpdateConfigurationRunId); + Guid softwareUpdateConfigurationMachineRunId = Guid.Parse("ca440719-34a4-4234-a1a9-3f84faf7788f"); + SoftwareUpdateConfigurationMachineRun result = await automationAccount.GetSoftwareUpdateConfigurationMachineRunAsync(softwareUpdateConfigurationMachineRunId); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRunWithStatusEqualToFailed() + public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRuns() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json - // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json + // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -564,8 +535,7 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - string filter = "properties/status%20eq%20'Failed'"; - await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync(filter: filter)) + await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -575,10 +545,10 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRuns() + public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRunsForASpecificSoftwareUpdateConfigurationRun() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json - // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json + // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -594,7 +564,8 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync()) + string filter = "$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59"; + await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync(filter: filter)) { Console.WriteLine($"Succeeded: {item}"); } @@ -604,10 +575,10 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSoftwareUpdateConfigurationMachineRun_GetSoftwareUpdateConfigurationMachineRun() + public async Task GetSoftwareUpdateConfigurationRun_GetSoftwareUpdateConfigurationRunsById() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json - // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_GetById" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json + // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_GetById" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -623,18 +594,18 @@ public async Task GetSoftwareUpdateConfigurationMachineRun_GetSoftwareUpdateConf AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation - Guid softwareUpdateConfigurationMachineRunId = Guid.Parse("ca440719-34a4-4234-a1a9-3f84faf7788f"); - SoftwareUpdateConfigurationMachineRun result = await automationAccount.GetSoftwareUpdateConfigurationMachineRunAsync(softwareUpdateConfigurationMachineRunId); + Guid softwareUpdateConfigurationRunId = Guid.Parse("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"); + SoftwareUpdateConfigurationRun result = await automationAccount.GetSoftwareUpdateConfigurationRunAsync(softwareUpdateConfigurationRunId); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRuns() + public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRunWithStatusEqualToFailed() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json - // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json + // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -650,7 +621,8 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync()) + string filter = "properties/status%20eq%20'Failed'"; + await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync(filter: filter)) { Console.WriteLine($"Succeeded: {item}"); } @@ -660,10 +632,10 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRunsForASpecificSoftwareUpdateConfigurationRun() + public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRuns() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json - // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json + // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -679,8 +651,7 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - string filter = "$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59"; - await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync(filter: filter)) + await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -692,7 +663,7 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo [Ignore("Only validating compilation of examples")] public async Task GenerateUriWebhook_GenerateWebhookUri() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/webhookGenerateUri.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/webhookGenerateUri.json // this example is just showing the usage of "Webhook_GenerateUri" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs index 0a281894f774..57b64838cf3f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCertificateCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateCertificate.json // this example is just showing the usage of "Certificate_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateACertificate() [Ignore("Only validating compilation of examples")] public async Task Get_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCertificate.json // this example is just showing the usage of "Certificate_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetACertificate() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCertificates() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCertificatesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listCertificatesByAutomationAccount.json // this example is just showing the usage of "Certificate_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetAll_ListCertificates() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCertificate.json // this example is just showing the usage of "Certificate_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Exists_GetACertificate() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCertificate.json // this example is just showing the usage of "Certificate_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs index ded292887489..cc04779a0746 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCertificateResource [Ignore("Only validating compilation of examples")] public async Task Get_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCertificate.json // this example is just showing the usage of "Certificate_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetACertificate() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteCertificate.json // this example is just showing the usage of "Certificate_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteACertificate() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateCertificate.json // this example is just showing the usage of "Certificate_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs index f7eb8b4ff62b..08ed651352c1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateConnection.json // this example is just showing the usage of "Connection_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateOrUpdateConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnection.json // this example is just showing the usage of "Connection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Get_GetAConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListConnectionsByAutomationAccountFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listConnectionsByAutomationAccount_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listConnectionsByAutomationAccount_First100.json // this example is just showing the usage of "Connection_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task GetAll_ListConnectionsByAutomationAccountFirst100() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListConnectionsByAutomationAccountNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listConnectionsByAutomationAccount_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listConnectionsByAutomationAccount_Next100.json // this example is just showing the usage of "Connection_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task GetAll_ListConnectionsByAutomationAccountNext100() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnection.json // this example is just showing the usage of "Connection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,7 +203,7 @@ public async Task Exists_GetAConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnection.json // this example is just showing the usage of "Connection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs index 45db8c4a278b..e7849c775949 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnection.json // this example is just showing the usage of "Connection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAnExistingConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteConnection.json // this example is just showing the usage of "Connection_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAnExistingConnection() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateConnection.json // this example is just showing the usage of "Connection_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs index ebe51494d27d..dbdf59a1e389 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AutomationConnectionTypeCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateConnectionType.json // this example is just showing the usage of "ConnectionType_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,7 +77,7 @@ public async Task CreateOrUpdate_CreateOrUpdateConnectionType() [Ignore("Only validating compilation of examples")] public async Task Get_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Get_GetConnectionType() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetConnectionTypesFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAllConnectionTypes_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAllConnectionTypes_First100.json // this example is just showing the usage of "ConnectionType_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task GetAll_GetConnectionTypesFirst100() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetConnectionTypesNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAllConnectionTypes_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAllConnectionTypes_Next100.json // this example is just showing the usage of "ConnectionType_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task GetAll_GetConnectionTypesNext100() [Ignore("Only validating compilation of examples")] public async Task Exists_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task Exists_GetConnectionType() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs index 2cfde41beb53..9a77fa3ca87d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs @@ -21,7 +21,7 @@ public partial class Sample_AutomationConnectionTypeResource [Ignore("Only validating compilation of examples")] public async Task Get_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetConnectionType() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAnExistingConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteConnectionType.json // this example is just showing the usage of "ConnectionType_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeleteAnExistingConnectionType() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateConnectionType.json // this example is just showing the usage of "ConnectionType_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs index fd58a153baaa..1c80399d8310 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCredentialCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateCredential.json // this example is just showing the usage of "Credential_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateACredential() [Ignore("Only validating compilation of examples")] public async Task Get_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCredential.json // this example is just showing the usage of "Credential_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetACredential() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCredentialsByAutomationAccountFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCredentialsByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listCredentialsByAutomationAccount.json // this example is just showing the usage of "Credential_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListCredentialsByAutomationAccountFirst100() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCredentialsByAutomationAccountNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCredentialsByAutomationAccount_next100_using_nextLink.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listCredentialsByAutomationAccount_next100_using_nextLink.json // this example is just showing the usage of "Credential_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetAll_ListCredentialsByAutomationAccountNext100() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCredential.json // this example is just showing the usage of "Credential_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task Exists_GetACredential() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCredential.json // this example is just showing the usage of "Credential_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs index ac94273e261d..17945a165339 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCredentialResource [Ignore("Only validating compilation of examples")] public async Task Get_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getCredential.json // this example is just showing the usage of "Credential_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetACredential() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteCredentialExisting.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteCredentialExisting.json // this example is just showing the usage of "Credential_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteACredential() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateCredential_patch.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateCredential_patch.json // this example is just showing the usage of "Credential_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs index 7418227e11b7..54464c13267a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/createJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/createJob.json // this example is just showing the usage of "Job_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task CreateOrUpdate_CreateJob() [Ignore("Only validating compilation of examples")] public async Task Get_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJob.json // this example is just showing the usage of "Job_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_GetJob() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListJobsByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/listJobsByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/listJobsByAutomationAccount.json // this example is just showing the usage of "Job_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task GetAll_ListJobsByAutomationAccount() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "51766542-3ed7-4a72-a187-0c8ab644ddab"; string resourceGroupName = "mygroup"; - string automationAccountName = "ContoseAutomationAccount"; + string automationAccountName = "ContosoAutomationAccount"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); @@ -131,7 +131,7 @@ public async Task GetAll_ListJobsByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJob.json // this example is just showing the usage of "Job_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Exists_GetJob() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJob.json // this example is just showing the usage of "Job_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs index 9e4ab5311fba..cbaee1e86f0d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobResource [Ignore("Only validating compilation of examples")] public async Task Get_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJob.json // this example is just showing the usage of "Job_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetJob() [Ignore("Only validating compilation of examples")] public async Task Update_CreateJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/createJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/createJob.json // this example is just showing the usage of "Job_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_CreateJob() [Ignore("Only validating compilation of examples")] public async Task GetOutput_GetJobOutput() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobOutput.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJobOutput.json // this example is just showing the usage of "Job_GetOutput" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task GetOutput_GetJobOutput() [Ignore("Only validating compilation of examples")] public async Task GetRunbookContent_GetJobRunbookContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJobRunbookContent.json // this example is just showing the usage of "Job_GetRunbookContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task GetRunbookContent_GetJobRunbookContent() [Ignore("Only validating compilation of examples")] public async Task Suspend_SuspendJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/suspendJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/suspendJob.json // this example is just showing the usage of "Job_Suspend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task Suspend_SuspendJob() [Ignore("Only validating compilation of examples")] public async Task Stop_StopJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/stopJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/stopJob.json // this example is just showing the usage of "Job_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task Stop_StopJob() [Ignore("Only validating compilation of examples")] public async Task Resume_ResumeJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/resumeJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/resumeJob.json // this example is just showing the usage of "Job_Resume" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -228,7 +228,7 @@ public async Task Resume_ResumeJob() [Ignore("Only validating compilation of examples")] public async Task GetJobStream_GetJobStream() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobStream.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/getJobStream.json // this example is just showing the usage of "JobStream_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task GetJobStream_GetJobStream() [Ignore("Only validating compilation of examples")] public async Task GetJobStreams_ListJobStreamsByJobName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/listJobStreamsByJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/job/listJobStreamsByJob.json // this example is just showing the usage of "JobStream_ListByJob" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs index e064cdd5c8b4..41a3aefe5611 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobScheduleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createJobSchedule.json // this example is just showing the usage of "JobSchedule_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -69,7 +69,7 @@ public async Task CreateOrUpdate_CreateAJobSchedule() [Ignore("Only validating compilation of examples")] public async Task Get_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Get_GetAJobSchedule() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllJobSchedulesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listAllJobSchedulesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listAllJobSchedulesByAutomationAccount.json // this example is just showing the usage of "JobSchedule_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task GetAll_ListAllJobSchedulesByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task Exists_GetAJobSchedule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs index 3ee83fa861df..9da9336f6339 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobScheduleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAJobSchedule() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteJobSchedule.json // this example is just showing the usage of "JobSchedule_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAJobSchedule() [Ignore("Only validating compilation of examples")] public async Task Update_CreateAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createJobSchedule.json // this example is just showing the usage of "JobSchedule_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionCollection.cs index 600abe719878..f4763f40471c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationPrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ApproveOrRejectAPrivateEndpointConnectionWithAGivenName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionUpdate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -32,7 +32,7 @@ public async Task CreateOrUpdate_ApproveOrRejectAPrivateEndpointConnectionWithAG // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_ApproveOrRejectAPrivateEndpointConnectionWithAG [Ignore("Only validating compilation of examples")] public async Task Get_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -75,7 +75,7 @@ public async Task Get_GetsPrivateEndpointConnection() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); @@ -97,7 +97,7 @@ public async Task Get_GetsPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionListGet.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionListGet.json // this example is just showing the usage of "PrivateEndpointConnections_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task GetAll_GetsPrivateEndpointConnection() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); @@ -133,7 +133,7 @@ public async Task GetAll_GetsPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Exists_GetsPrivateEndpointConnection() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); @@ -163,7 +163,7 @@ public async Task Exists_GetsPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task GetIfExists_GetsPrivateEndpointConnection() // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionResource.cs index 130aa793f71e..fe728479f721 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -32,7 +32,7 @@ public async Task Get_GetsPrivateEndpointConnection() // for more information of creating AutomationPrivateEndpointConnectionResource, please refer to the document of AutomationPrivateEndpointConnectionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; string privateEndpointConnectionName = "privateEndpointConnectionName"; ResourceIdentifier automationPrivateEndpointConnectionResourceId = AutomationPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, privateEndpointConnectionName); AutomationPrivateEndpointConnectionResource automationPrivateEndpointConnection = client.GetAutomationPrivateEndpointConnectionResource(automationPrivateEndpointConnectionResourceId); @@ -51,7 +51,7 @@ public async Task Get_GetsPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesAPrivateEndpointConnectionWithAGivenName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionDelete.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionDelete.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task Delete_DeletesAPrivateEndpointConnectionWithAGivenName() // for more information of creating AutomationPrivateEndpointConnectionResource, please refer to the document of AutomationPrivateEndpointConnectionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; string privateEndpointConnectionName = "privateEndpointConnectionName"; ResourceIdentifier automationPrivateEndpointConnectionResourceId = AutomationPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, privateEndpointConnectionName); AutomationPrivateEndpointConnectionResource automationPrivateEndpointConnection = client.GetAutomationPrivateEndpointConnectionResource(automationPrivateEndpointConnectionResourceId); @@ -78,7 +78,7 @@ public async Task Delete_DeletesAPrivateEndpointConnectionWithAGivenName() [Ignore("Only validating compilation of examples")] public async Task Update_ApproveOrRejectAPrivateEndpointConnectionWithAGivenName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/privateEndpointConnection/PrivateEndpointConnectionUpdate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Update_ApproveOrRejectAPrivateEndpointConnectionWithAGivenName // for more information of creating AutomationPrivateEndpointConnectionResource, please refer to the document of AutomationPrivateEndpointConnectionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "rg1"; - string automationAccountName = "ddb1"; + string automationAccountName = "automationAccountName"; string privateEndpointConnectionName = "privateEndpointConnectionName"; ResourceIdentifier automationPrivateEndpointConnectionResourceId = AutomationPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, privateEndpointConnectionName); AutomationPrivateEndpointConnectionResource automationPrivateEndpointConnection = client.GetAutomationPrivateEndpointConnectionResource(automationPrivateEndpointConnectionResourceId); diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs index a1418cdef89e..f80d69c146d6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationRunbookCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateRunbookAndPublishIt() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/createOrUpdateRunbook.json // this example is just showing the usage of "Runbook_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -41,7 +41,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRunbookAndPublishIt() // invoke the operation string runbookName = "Get-AzureVMTutorial"; - AutomationRunbookCreateOrUpdateContent content = new AutomationRunbookCreateOrUpdateContent(AutomationRunbookType.PowerShellWorkflow) + AutomationRunbookCreateOrUpdateContent content = new AutomationRunbookCreateOrUpdateContent(AutomationRunbookType.PowerShell) { Name = "Get-AzureVMTutorial", Location = new AzureLocation("East US 2"), @@ -52,6 +52,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRunbookAndPublishIt() }, IsLogVerboseEnabled = false, IsLogProgressEnabled = true, + RuntimeEnvironment = "environmentName", PublishContentLink = new AutomationContentLink { Uri = new Uri("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1"), @@ -74,7 +75,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRunbookAndPublishIt() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateRunbookAsDraft() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/createRunbookAsDraft.json // this example is just showing the usage of "Runbook_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +96,7 @@ public async Task CreateOrUpdate_CreateRunbookAsDraft() // invoke the operation string runbookName = "Get-AzureVMTutorial"; - AutomationRunbookCreateOrUpdateContent content = new AutomationRunbookCreateOrUpdateContent(AutomationRunbookType.PowerShellWorkflow) + AutomationRunbookCreateOrUpdateContent content = new AutomationRunbookCreateOrUpdateContent(AutomationRunbookType.PowerShell) { Name = "Get-AzureVMTutorial", Location = new AzureLocation("East US 2"), @@ -106,6 +107,7 @@ public async Task CreateOrUpdate_CreateRunbookAsDraft() }, IsLogVerboseEnabled = false, IsLogProgressEnabled = false, + RuntimeEnvironment = "environmentName", Draft = new AutomationRunbookDraft(), Description = "Description of the Runbook", }; @@ -123,7 +125,7 @@ public async Task CreateOrUpdate_CreateRunbookAsDraft() [Ignore("Only validating compilation of examples")] public async Task Get_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbook.json // this example is just showing the usage of "Runbook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +159,7 @@ public async Task Get_GetRunbook() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRunbooksByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listRunbooksByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/listRunbooksByAutomationAccount.json // this example is just showing the usage of "Runbook_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +195,7 @@ public async Task GetAll_ListRunbooksByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbook.json // this example is just showing the usage of "Runbook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -223,7 +225,7 @@ public async Task Exists_GetRunbook() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbook.json // this example is just showing the usage of "Runbook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs index 90cea5497f7f..29ebd6f605a3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationRunbookResource [Ignore("Only validating compilation of examples")] public async Task Get_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbook.json // this example is just showing the usage of "Runbook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetRunbook() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteARunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deleteRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/deleteRunbook.json // this example is just showing the usage of "Runbook_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteARunbook() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/updateRunbook.json // this example is just showing the usage of "Runbook_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Update_UpdateRunbook() [Ignore("Only validating compilation of examples")] public async Task GetContentRunbookDraft_GetRunbookDraftContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraftContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbookDraftContent.json // this example is just showing the usage of "RunbookDraft_GetContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task GetContentRunbookDraft_GetRunbookDraftContent() [Ignore("Only validating compilation of examples")] public async Task GetRunbookDraft_GetRunbookDraft() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraft.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbookDraft.json // this example is just showing the usage of "RunbookDraft_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task GetRunbookDraft_GetRunbookDraft() [Ignore("Only validating compilation of examples")] public async Task UndoEditRunbookDraft_UndoDraftEditToLastKnownPublishedState() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/undoDraftEditToLastKnownPublishedState.json // this example is just showing the usage of "RunbookDraft_UndoEdit" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task UndoEditRunbookDraft_UndoDraftEditToLastKnownPublishedState() [Ignore("Only validating compilation of examples")] public async Task Publish_PublishRunbookDraft() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/publishRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/publishRunbook.json // this example is just showing the usage of "Runbook_Publish" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,7 +224,7 @@ public async Task Publish_PublishRunbookDraft() [Ignore("Only validating compilation of examples")] public async Task GetContent_GetRunbookContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getRunbookContent.json // this example is just showing the usage of "Runbook_GetContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -251,7 +251,7 @@ public async Task GetContent_GetRunbookContent() [Ignore("Only validating compilation of examples")] public async Task GetTestJobStream_GetTestJobStream() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJobStream.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getTestJobStream.json // this example is just showing the usage of "TestJobStreams_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -279,7 +279,7 @@ public async Task GetTestJobStream_GetTestJobStream() [Ignore("Only validating compilation of examples")] public async Task GetTestJobStreams_ListJobStreamsByJobName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/listTestJobStreamsByJob.json // this example is just showing the usage of "TestJobStreams_ListByTestJob" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -309,7 +309,7 @@ public async Task GetTestJobStreams_ListJobStreamsByJobName() [Ignore("Only validating compilation of examples")] public async Task CreateTestJob_CreateTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/createTestJob.json // this example is just showing the usage of "TestJob_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -335,6 +335,7 @@ public async Task CreateTestJob_CreateTestJob() ["key02"] = "value02" }, RunOn = "", + RuntimeEnvironment = "runtimeEnvironmentName", }; RunbookTestJob result = await automationRunbook.CreateTestJobAsync(content); @@ -345,7 +346,7 @@ public async Task CreateTestJob_CreateTestJob() [Ignore("Only validating compilation of examples")] public async Task GetTestJob_GetTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/getTestJob.json // this example is just showing the usage of "TestJob_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -372,7 +373,7 @@ public async Task GetTestJob_GetTestJob() [Ignore("Only validating compilation of examples")] public async Task ResumeTestJob_ResumeTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/resumeTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/resumeTestJob.json // this example is just showing the usage of "TestJob_Resume" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -399,7 +400,7 @@ public async Task ResumeTestJob_ResumeTestJob() [Ignore("Only validating compilation of examples")] public async Task StopTestJob_StopTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/stopTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/stopTestJob.json // this example is just showing the usage of "TestJob_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -426,7 +427,7 @@ public async Task StopTestJob_StopTestJob() [Ignore("Only validating compilation of examples")] public async Task SuspendTestJob_SuspendTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/suspendTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runbook/suspendTestJob.json // this example is just showing the usage of "TestJob_Suspend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs index 5f2cd3678f49..a52f42b738c8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationScheduleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateSchedule.json // this example is just showing the usage of "Schedule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASchedule() [Ignore("Only validating compilation of examples")] public async Task Get_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getSchedule.json // this example is just showing the usage of "Schedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetASchedule() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSchedulesByAutomationAccountFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listSchedulesByAutomationAccount_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listSchedulesByAutomationAccount_First100.json // this example is just showing the usage of "Schedule_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_ListSchedulesByAutomationAccountFirst100() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSchedulesByAutomationAccountNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listSchedulesByAutomationAccount_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listSchedulesByAutomationAccount_Next100.json // this example is just showing the usage of "Schedule_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task GetAll_ListSchedulesByAutomationAccountNext100() [Ignore("Only validating compilation of examples")] public async Task Exists_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getSchedule.json // this example is just showing the usage of "Schedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Exists_GetASchedule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getSchedule.json // this example is just showing the usage of "Schedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs index 417ae440e1a8..24cd1cbc8d63 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationScheduleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getSchedule.json // this example is just showing the usage of "Schedule_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetASchedule() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteSchedule.json // this example is just showing the usage of "Schedule_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteSchedule() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateSchedule.json // this example is just showing the usage of "Schedule_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs index 832f31695d4b..f97e6412588f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationSourceControlCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/createOrUpdateSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/createOrUpdateSourceControl.json // this example is just showing the usage of "SourceControl_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASourceControl() SourceType = SourceControlSourceType.VsoGit, SecurityToken = new SourceControlSecurityTokenProperties { - AccessToken = "3a326f7a0dcd343ea58fee21f2fd5fb4c1234567", + AccessToken = "******", TokenType = SourceControlTokenType.PersonalAccessToken, }, Description = "my description", @@ -70,7 +70,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASourceControl() [Ignore("Only validating compilation of examples")] public async Task Get_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +104,7 @@ public async Task Get_GetASourceControl() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSourceControls() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getAllSourceControls.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/getAllSourceControls.json // this example is just showing the usage of "SourceControl_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task GetAll_ListSourceControls() [Ignore("Only validating compilation of examples")] public async Task Exists_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Exists_GetASourceControl() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs index 0f226117b5a3..ee75e71ecc06 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationSourceControlResource [Ignore("Only validating compilation of examples")] public async Task Get_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetASourceControl() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/deleteSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/deleteSourceControl.json // this example is just showing the usage of "SourceControl_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteASourceControl() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/updateSourceControl_patch.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControl/updateSourceControl_patch.json // this example is just showing the usage of "SourceControl_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +104,7 @@ public async Task Update_UpdateASourceControl() IsAutoPublishRunbookEnabled = true, SecurityToken = new SourceControlSecurityTokenProperties { - AccessToken = "3a326f7a0dcd343ea58fee21f2fd5fb4c1234567", + AccessToken = "******", TokenType = SourceControlTokenType.PersonalAccessToken, }, Description = "my description", @@ -122,7 +122,7 @@ public async Task Update_UpdateASourceControl() [Ignore("Only validating compilation of examples")] public async Task CreateSourceControlSyncJob_CreateOrUpdateASourceControlSyncJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControlSyncJob/createSourceControlSyncJob.json // this example is just showing the usage of "SourceControlSyncJob_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task CreateSourceControlSyncJob_CreateOrUpdateASourceControlSyncJob [Ignore("Only validating compilation of examples")] public async Task GetSourceControlSyncJob_GetASourceControlSyncJobByJobId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControlSyncJob/getSourceControlSyncJob.json // this example is just showing the usage of "SourceControlSyncJob_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task GetSourceControlSyncJob_GetASourceControlSyncJobByJobId() [Ignore("Only validating compilation of examples")] public async Task GetSourceControlSyncJobs_GetAListOfSourceControlSyncJobs() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json // this example is just showing the usage of "SourceControlSyncJob_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task GetSourceControlSyncJobs_GetAListOfSourceControlSyncJobs() [Ignore("Only validating compilation of examples")] public async Task GetSourceControlSyncJobStreams_GetAListOfSyncJobStreamsIdentifiedBySyncJobId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json // this example is just showing the usage of "SourceControlSyncJobStreams_ListBySyncJob" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -240,7 +240,7 @@ public async Task GetSourceControlSyncJobStreams_GetAListOfSyncJobStreamsIdentif [Ignore("Only validating compilation of examples")] public async Task GetSourceControlSyncJobStream_GetASyncJobStreamIdentifiedBySyncJobStreamId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreamsByStreamId.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreamsByStreamId.json // this example is just showing the usage of "SourceControlSyncJobStreams_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs index ad229cf085e0..bcdf6a88f2a4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationVariableCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateVariable.json // this example is just showing the usage of "Variable_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAVariable() [Ignore("Only validating compilation of examples")] public async Task Get_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getVariable.json // this example is just showing the usage of "Variable_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAVariable() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVariablesFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listVariables_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listVariables_First100.json // this example is just showing the usage of "Variable_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetAll_ListVariablesFirst100() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVariablesNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listVariables_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listVariables_Next100.json // this example is just showing the usage of "Variable_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task GetAll_ListVariablesNext100() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getVariable.json // this example is just showing the usage of "Variable_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task Exists_GetAVariable() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getVariable.json // this example is just showing the usage of "Variable_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs index 2e10369f9efb..41d23b4413fd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationVariableResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getVariable.json // this example is just showing the usage of "Variable_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAVariable() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteVariable.json // this example is just showing the usage of "Variable_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAVariable() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateVariable_patch.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateVariable_patch.json // this example is just showing the usage of "Variable_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs index dcaa00b5c2f3..387b40495995 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_AutomationWatcherCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateWatcher.json // this example is just showing the usage of "Watcher_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWatcher() [Ignore("Only validating compilation of examples")] public async Task Get_GetWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWatcher.json // this example is just showing the usage of "Watcher_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetWatcher() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWatchersByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listWatchersByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listWatchersByAutomationAccount.json // this example is just showing the usage of "Watcher_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_ListWatchersByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWatcher.json // this example is just showing the usage of "Watcher_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Exists_GetWatcher() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWatcher.json // this example is just showing the usage of "Watcher_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs index 86ac023196ea..bfdd991b6fe2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationWatcherResource [Ignore("Only validating compilation of examples")] public async Task Get_GetWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWatcher.json // this example is just showing the usage of "Watcher_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetWatcher() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteWatcher.json // this example is just showing the usage of "Watcher_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteWatcher() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateWatcher.json // this example is just showing the usage of "Watcher_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Update_UpdateWatcher() [Ignore("Only validating compilation of examples")] public async Task Start_StartWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/startWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/startWatcher.json // this example is just showing the usage of "Watcher_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task Start_StartWatcher() [Ignore("Only validating compilation of examples")] public async Task Stop_StartWatcher() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/stopWatcher.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/stopWatcher.json // this example is just showing the usage of "Watcher_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookCollection.cs index 20e00ab222c0..d1cab69611c1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationWebhookCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateWebhook.json // this example is just showing the usage of "Webhook_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWebhook() [Ignore("Only validating compilation of examples")] public async Task Get_GetWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWebhook.json // this example is just showing the usage of "Webhook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetWebhook() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWebhooksByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listWebhooksByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listWebhooksByAutomationAccount.json // this example is just showing the usage of "Webhook_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_ListWebhooksByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWebhook.json // this example is just showing the usage of "Webhook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Exists_GetWebhook() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWebhook.json // this example is just showing the usage of "Webhook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookResource.cs index 73eafa77392c..01ad00125d76 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWebhookResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationWebhookResource [Ignore("Only validating compilation of examples")] public async Task Get_GetWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getWebhook.json // this example is just showing the usage of "Webhook_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetWebhook() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteWebhook.json // this example is just showing the usage of "Webhook_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteWebhook() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateWebhook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateWebhook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateWebhook.json // this example is just showing the usage of "Webhook_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs index 25f0c06408fe..ada55e493b82 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DscConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/createOrUpdateDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateDscConfiguration.json // this example is just showing the usage of "DscConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -66,7 +66,7 @@ public async Task CreateOrUpdate_CreateOrUpdateConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Get_GetADSCConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetDSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getAllDscConfigurations.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getAllDscConfigurations.json // this example is just showing the usage of "DscConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task GetAll_GetDSCConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCConfigurationsWithNameFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getPagedlDscConfigurationsWithNameFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPagedlDscConfigurationsWithNameFilter.json // this example is just showing the usage of "DscConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task GetAll_ListPagedDSCConfigurationsWithNameFilter() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCConfigurationsWithNoFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getPagedDscConfigurationsWithNoFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getPagedDscConfigurationsWithNoFilter.json // this example is just showing the usage of "DscConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -215,7 +215,7 @@ public async Task GetAll_ListPagedDSCConfigurationsWithNoFilter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task Exists_GetADSCConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs index a87b93b012ca..d7b7c30736de 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DscConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetADSCConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteDSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/deleteDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteDscConfiguration.json // this example is just showing the usage of "DscConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteDSCConfiguration() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/updateDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateDscConfiguration.json // this example is just showing the usage of "DscConfiguration_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Update_CreateOrUpdateConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetContent_GetDSCConfigurationContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfigurationContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscConfigurationContent.json // this example is just showing the usage of "DscConfiguration_GetContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeCollection.cs index 9ebde512c9b6..5c034f85219a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_DscNodeCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetANode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNode.json // this example is just showing the usage of "DscNode_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetANode() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListDSCNodesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listAllDscNodesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listAllDscNodesByAutomationAccount.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_ListDSCNodesByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesByAutomationAccountWhereNodeConfigurationsAreNotAssignedFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListPagedDSCNodesByAutomationAccountWhereNodeConfigurat [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNodeConfigurationCustomFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNodeConfigurati [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNameFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNameFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithNameFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNameFilter() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNoFilters() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNoFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithNoFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -248,7 +248,7 @@ public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNoFilters() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNodeStatusFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -288,7 +288,7 @@ public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithNodeStatusFilte [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithVersionFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -328,7 +328,7 @@ public async Task GetAll_ListPagedDSCNodesByAutomationAccountWithVersionFilter() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodesWithFiltersSeparatedByAnd() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json // this example is just showing the usage of "DscNode_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -368,7 +368,7 @@ public async Task GetAll_ListPagedDSCNodesWithFiltersSeparatedByAnd() [Ignore("Only validating compilation of examples")] public async Task Exists_GetANode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNode.json // this example is just showing the usage of "DscNode_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -398,7 +398,7 @@ public async Task Exists_GetANode() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetANode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNode.json // this example is just showing the usage of "DscNode_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs index 9986bf8a9906..e32eab4da157 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DscNodeConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_CreateNodeConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_GetADSCNodeConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListDSCNodeConfigurationsByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listDscNodeConfigurations.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listDscNodeConfigurations.json // this example is just showing the usage of "DscNodeConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetAll_ListDSCNodeConfigurationsByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNameFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationsWithNameFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodeConfigurationsWithNameFilter.json // this example is just showing the usage of "DscNodeConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNa [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNoFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationsWithNoFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodeConfigurationsWithNoFilter.json // this example is just showing the usage of "DscNodeConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -212,7 +212,7 @@ public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNo [Ignore("Only validating compilation of examples")] public async Task Exists_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -242,7 +242,7 @@ public async Task Exists_GetADSCNodeConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs index a4e1c3fe934e..fd61aaddc317 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DscNodeConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetADSCNodeConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteADSCNodeConfiguration() [Ignore("Only validating compilation of examples")] public async Task Update_CreateNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/createOrUpdateDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeResource.cs index cb0d2a62b15d..4fd5e8332ca4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DscNodeResource [Ignore("Only validating compilation of examples")] public async Task Get_GetANode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNode.json // this example is just showing the usage of "DscNode_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetANode() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteADSCNode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteDscNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteDscNode.json // this example is just showing the usage of "DscNode_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteADSCNode() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateANode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateDscNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateDscNode.json // this example is just showing the usage of "DscNode_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Update_UpdateANode() [Ignore("Only validating compilation of examples")] public async Task GetNodeReportsByNode_ListDSCReportsByNodeId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listDscNodeReportsByNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listDscNodeReportsByNode.json // this example is just showing the usage of "NodeReports_ListByNode" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task GetNodeReportsByNode_ListDSCReportsByNodeId() [Ignore("Only validating compilation of examples")] public async Task GetNodeReportsByNode_ListPagedDSCReportsByNodeId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeReportsByNode.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listPagedDscNodeReportsByNode.json // this example is just showing the usage of "NodeReports_ListByNode" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task GetNodeReportsByNode_ListPagedDSCReportsByNodeId() [Ignore("Only validating compilation of examples")] public async Task GetNodeReport_GetDscNodeReportDataByNodeIdAndReportId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeReport.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNodeReport.json // this example is just showing the usage of "NodeReports_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -202,7 +202,7 @@ public async Task GetNodeReport_GetDscNodeReportDataByNodeIdAndReportId() [Ignore("Only validating compilation of examples")] public async Task GetContentNodeReport_GetContentOfNode() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeReportContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDscNodeReportContent.json // this example is just showing the usage of "NodeReports_GetContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs index 2f081053d6d8..57208ed35f71 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/putHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -42,11 +42,11 @@ public async Task CreateOrUpdate_CreateAV2HybridRunbookWorker() // invoke the operation string hybridRunbookWorkerId = "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"; - HybridRunbookWorkerCreateOrUpdateContent content = new HybridRunbookWorkerCreateOrUpdateContent + HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters = new HybridRunbookWorkerCreateParameters { VmResourceId = new ResourceIdentifier("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"), }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, hybridRunbookWorkerId, content); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); HybridRunbookWorkerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_CreateAV2HybridRunbookWorker() [Ignore("Only validating compilation of examples")] public async Task Get_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAV2HybridRunbookWorker() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListHybridWorkersByHybridRunbookWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_ListByHybridRunbookWorkerGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_ListHybridWorkersByHybridRunbookWorkerGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_GetAV2HybridRunbookWorker() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs index deef419ba044..d1aab7375094 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerGroupCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/putHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/putHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateAHybridWorkerGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetAHybridWorkerGroup() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListHybridWorkerGroupsByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/listHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListHybridWorkerGroupsByAutomationAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task Exists_GetAHybridWorkerGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs index dd52d3d30f17..53d83e990b81 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerGroupResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAHybridWorkerGroup() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/deleteHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAHybridWorkerGroup() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/updateHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/updateHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs index 04fb1a1d965c..4728e73fa660 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAV2HybridRunbookWorker() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/deleteHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,8 +80,8 @@ public async Task Delete_DeleteAV2HybridRunbookWorker() [Ignore("Only validating compilation of examples")] public async Task Update_CreateAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json - // this example is just showing the usage of "HybridRunbookWorkers_Create" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/patchHybridRunbookWorker.json + // this example is just showing the usage of "HybridRunbookWorkers_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -99,12 +99,11 @@ public async Task Update_CreateAV2HybridRunbookWorker() HybridRunbookWorkerResource hybridRunbookWorker = client.GetHybridRunbookWorkerResource(hybridRunbookWorkerResourceId); // invoke the operation - HybridRunbookWorkerCreateOrUpdateContent content = new HybridRunbookWorkerCreateOrUpdateContent + HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters = new HybridRunbookWorkerCreateParameters { VmResourceId = new ResourceIdentifier("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"), }; - ArmOperation lro = await hybridRunbookWorker.UpdateAsync(WaitUntil.Completed, content); - HybridRunbookWorkerResource result = lro.Value; + HybridRunbookWorkerResource result = await hybridRunbookWorker.UpdateAsync(hybridRunbookWorkerCreationParameters); // the variable result 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 @@ -117,7 +116,7 @@ public async Task Update_CreateAV2HybridRunbookWorker() [Ignore("Only validating compilation of examples")] public async Task Move_MoveAV2HybridWorkerToADifferentGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/moveHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Move" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_PackageCollection.cs new file mode 100644 index 000000000000..dd28a7708fa4 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_PackageCollection.cs @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Automation.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_PackageCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/createOrUpdatePackage.json + // this example is just showing the usage of "Package_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // get the collection of this PackageResource + PackageCollection collection = runtimeEnvironment.GetPackages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + PackageCreateOrUpdateContent content = new PackageCreateOrUpdateContent(new AutomationContentLink + { + Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), + ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, content); + PackageResource result = lro.Value; + + // the variable result 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 + PackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/getPackage.json + // this example is just showing the usage of "Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // get the collection of this PackageResource + PackageCollection collection = runtimeEnvironment.GetPackages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + PackageResource result = await collection.GetAsync(packageName); + + // the variable result 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 + PackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_GetAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/listPackagesByRuntimeEnvironment.json + // this example is just showing the usage of "Package_ListByRuntimeEnvironment" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // get the collection of this PackageResource + PackageCollection collection = runtimeEnvironment.GetPackages(); + + // invoke the operation and iterate over the result + await foreach (PackageResource item in collection.GetAllAsync()) + { + // 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 + PackageData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/getPackage.json + // this example is just showing the usage of "Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // get the collection of this PackageResource + PackageCollection collection = runtimeEnvironment.GetPackages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + bool result = await collection.ExistsAsync(packageName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/getPackage.json + // this example is just showing the usage of "Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // get the collection of this PackageResource + PackageCollection collection = runtimeEnvironment.GetPackages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + NullableResponse response = await collection.GetIfExistsAsync(packageName); + PackageResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine("Succeeded with null as result"); + } + else + { + // the variable result 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 + PackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_PackageResource.cs new file mode 100644 index 000000000000..00429150c856 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_PackageResource.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Automation.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_PackageResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/getPackage.json + // this example is just showing the usage of "Package_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this PackageResource created on azure + // for more information of creating PackageResource, please refer to the document of PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier packageResourceId = PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + PackageResource package = client.GetPackageResource(packageResourceId); + + // invoke the operation + PackageResource result = await package.GetAsync(); + + // the variable result 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 + PackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_DeleteAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/deletePackage.json + // this example is just showing the usage of "Package_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this PackageResource created on azure + // for more information of creating PackageResource, please refer to the document of PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier packageResourceId = PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + PackageResource package = client.GetPackageResource(packageResourceId); + + // invoke the operation + await package.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_UpdateAPackage() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/package/updatePackage.json + // this example is just showing the usage of "Package_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this PackageResource created on azure + // for more information of creating PackageResource, please refer to the document of PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "MyAutomationAccount"; + string runtimeEnvironmentName = "runtimeEnvironmentName"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier packageResourceId = PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + PackageResource package = client.GetPackageResource(packageResourceId); + + // invoke the operation + PackagePatch patch = new PackagePatch + { + ContentLink = new AutomationContentLink + { + Uri = new Uri("https://teststorage.blob.core.windows.net/mycontainer/MyModule.zip"), + ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), + }, + }; + PackageResource result = await package.UpdateAsync(patch); + + // the variable result 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 + PackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_RuntimeEnvironmentCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_RuntimeEnvironmentCollection.cs new file mode 100644 index 000000000000..6db015a3c1de --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_RuntimeEnvironmentCollection.cs @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using NUnit.Framework; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_RuntimeEnvironmentCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/createRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Create" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this RuntimeEnvironmentResource + RuntimeEnvironmentCollection collection = automationAccount.GetRuntimeEnvironments(); + + // invoke the operation + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + RuntimeEnvironmentData data = new RuntimeEnvironmentData(new AzureLocation("East US 2")) + { + DefaultPackages = +{ +["Az"] = "8.3.0" +}, + Language = "PowerShell", + Version = "7.1", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, runtimeEnvironmentName, data); + RuntimeEnvironmentResource result = lro.Value; + + // the variable result 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 + RuntimeEnvironmentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/getRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this RuntimeEnvironmentResource + RuntimeEnvironmentCollection collection = automationAccount.GetRuntimeEnvironments(); + + // invoke the operation + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + RuntimeEnvironmentResource result = await collection.GetAsync(runtimeEnvironmentName); + + // the variable result 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 + RuntimeEnvironmentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_ListRunbooksByAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/listRuntimeEnvironmentsByAutomationAccount.json + // this example is just showing the usage of "RuntimeEnvironments_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "ContoseAutomationAccount"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this RuntimeEnvironmentResource + RuntimeEnvironmentCollection collection = automationAccount.GetRuntimeEnvironments(); + + // invoke the operation and iterate over the result + await foreach (RuntimeEnvironmentResource item in collection.GetAllAsync()) + { + // 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 + RuntimeEnvironmentData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/getRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this RuntimeEnvironmentResource + RuntimeEnvironmentCollection collection = automationAccount.GetRuntimeEnvironments(); + + // invoke the operation + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + bool result = await collection.ExistsAsync(runtimeEnvironmentName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/getRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this RuntimeEnvironmentResource + RuntimeEnvironmentCollection collection = automationAccount.GetRuntimeEnvironments(); + + // invoke the operation + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + NullableResponse response = await collection.GetIfExistsAsync(runtimeEnvironmentName); + RuntimeEnvironmentResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine("Succeeded with null as result"); + } + else + { + // the variable result 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 + RuntimeEnvironmentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_RuntimeEnvironmentResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_RuntimeEnvironmentResource.cs new file mode 100644 index 000000000000..0924dd1e51d9 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_RuntimeEnvironmentResource.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Automation.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_RuntimeEnvironmentResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/getRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // invoke the operation + RuntimeEnvironmentResource result = await runtimeEnvironment.GetAsync(); + + // the variable result 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 + RuntimeEnvironmentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_DeleteRuntimeEnvironment() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/deleteRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // invoke the operation + await runtimeEnvironment.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_UpdateAnAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/runtimeEnvironment/updateRuntimeEnvironment.json + // this example is just showing the usage of "RuntimeEnvironments_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RuntimeEnvironmentResource created on azure + // for more information of creating RuntimeEnvironmentResource, please refer to the document of RuntimeEnvironmentResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount9"; + string runtimeEnvironmentName = "myRuntimeEnvironmentName"; + ResourceIdentifier runtimeEnvironmentResourceId = RuntimeEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + RuntimeEnvironmentResource runtimeEnvironment = client.GetRuntimeEnvironmentResource(runtimeEnvironmentResourceId); + + // invoke the operation + RuntimeEnvironmentPatch patch = new RuntimeEnvironmentPatch + { + DefaultPackages = +{ +["Az"] = "8.3.0" +}, + }; + RuntimeEnvironmentResource result = await runtimeEnvironment.UpdateAsync(patch); + + // the variable result 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 + RuntimeEnvironmentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs index 905b00059f76..3d9d54252475 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_SoftwareUpdateConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSoftwareUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json // this example is just showing the usage of "SoftwareUpdateConfigurations_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task CreateOrUpdate_CreateSoftwareUpdateConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetSoftwareUpdateConfigurationByName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json // this example is just showing the usage of "SoftwareUpdateConfigurations_GetByName" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +157,7 @@ public async Task Get_GetSoftwareUpdateConfigurationByName() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSoftwareUpdateConfigurations() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json // this example is just showing the usage of "SoftwareUpdateConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task GetAll_ListSoftwareUpdateConfigurations() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSoftwareUpdateConfigurationsTargetingASpecificAzureVirtualMachine() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json // this example is just showing the usage of "SoftwareUpdateConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +222,7 @@ public async Task GetAll_ListSoftwareUpdateConfigurationsTargetingASpecificAzure [Ignore("Only validating compilation of examples")] public async Task Exists_GetSoftwareUpdateConfigurationByName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json // this example is just showing the usage of "SoftwareUpdateConfigurations_GetByName" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -252,7 +252,7 @@ public async Task Exists_GetSoftwareUpdateConfigurationByName() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSoftwareUpdateConfigurationByName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json // this example is just showing the usage of "SoftwareUpdateConfigurations_GetByName" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs index 97ff0e618fd8..e3f9fd48ad52 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_SoftwareUpdateConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSoftwareUpdateConfigurationByName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json // this example is just showing the usage of "SoftwareUpdateConfigurations_GetByName" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetSoftwareUpdateConfigurationByName() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteSoftwareUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json // this example is just showing the usage of "SoftwareUpdateConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeleteSoftwareUpdateConfiguration() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSoftwareUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json // this example is just showing the usage of "SoftwareUpdateConfigurations_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index d722708986d1..a0b227547c1d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -19,10 +19,10 @@ public partial class Sample_SubscriptionResourceExtensions { [Test] [Ignore("Only validating compilation of examples")] - public async Task GetAutomationAccounts_ListAutomationAccountsByResourceGroup() + public async Task GetDeletedAutomationAccountsBySubscription_GetDeletedAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json - // this example is just showing the usage of "AutomationAccount_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/getDeletedAutomationAccount.json + // this example is just showing the usage of "deletedAutomationAccounts_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -36,13 +36,9 @@ public async Task GetAutomationAccounts_ListAutomationAccountsByResourceGroup() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (AutomationAccountResource item in subscriptionResource.GetAutomationAccountsAsync()) + await foreach (DeletedAutomationAccount item in subscriptionResource.GetDeletedAutomationAccountsBySubscriptionAsync()) { - // 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 - AutomationAccountData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine($"Succeeded: {item}"); } Console.WriteLine("Succeeded"); @@ -50,10 +46,10 @@ public async Task GetAutomationAccounts_ListAutomationAccountsByResourceGroup() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetDeletedAutomationAccountsBySubscription_GetDeletedAutomationAccount() + public async Task GetAutomationAccounts_ListAutomationAccountsByResourceGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-01-31/examples/getDeletedAutomationAccount.json - // this example is just showing the usage of "deletedAutomationAccounts_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2024-10-23/examples/listAutomationAccountsBySubscription.json + // this example is just showing the usage of "AutomationAccount_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -67,9 +63,13 @@ public async Task GetDeletedAutomationAccountsBySubscription_GetDeletedAutomatio SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (DeletedAutomationAccount item in subscriptionResource.GetDeletedAutomationAccountsBySubscriptionAsync()) + await foreach (AutomationAccountResource item in subscriptionResource.GetAutomationAccountsAsync()) { - Console.WriteLine($"Succeeded: {item}"); + // 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 + AutomationAccountData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } Console.WriteLine("Succeeded"); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs index e362cf74efb8..75675a5c506a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -16,119 +17,161 @@ namespace Azure.ResourceManager.Automation.Models /// Model factory for models. public static partial class ArmAutomationModelFactory { - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Gets the name of a count type. + /// + /// A new instance for mocking. + public static DscNodeCount DscNodeCount(string name = null, int? nameCount = null) + { + return new DscNodeCount(name, nameCount != null ? new DscNodeCountProperties(nameCount, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Private endpoint which the connection belongs to. - /// Gets the groupIds. - /// Connection State of the Private Endpoint Connection. - /// A new instance for mocking. - public static AutomationPrivateEndpointConnectionData AutomationPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, IEnumerable groupIds = null, AutomationPrivateLinkServiceConnectionStateProperty connectionState = null) + /// update specific properties for the Software update configuration. + /// Schedule information for the Software update configuration. + /// Provisioning state for the software update configuration, which only appears in the response. + /// Details of provisioning error. + /// Creation time of the resource, which only appears in the response. + /// CreatedBy property, which only appears in the response. + /// Last time resource was modified, which only appears in the response. + /// LastModifiedBy property, which only appears in the response. + /// Tasks information for the Software update configuration. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationScheduleProperties scheduleInfo = null, string provisioningState = null, AutomationResponseError error = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, SoftwareUpdateConfigurationTasks tasks = null) { - groupIds ??= new List(); - - return new AutomationPrivateEndpointConnectionData( + return new SoftwareUpdateConfigurationData( id, name, resourceType, systemData, - privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, - groupIds?.ToList(), - connectionState, + updateConfiguration, + scheduleInfo, + provisioningState, + error, + createdOn, + createdBy, + lastModifiedOn, + lastModifiedBy, + tasks, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The private link service connection status. - /// The private link service connection description. - /// Any action that is required beyond basic workflow (approve/ reject/ disconnect). - /// A new instance for mocking. - public static AutomationPrivateLinkServiceConnectionStateProperty AutomationPrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) + /// Initializes a new instance of . + /// Gets or sets the start time of the schedule. + /// Gets the start time's offset in minutes. + /// Gets or sets the end time of the schedule. + /// Gets or sets the expiry time's offset in minutes. + /// Gets or sets a value indicating whether this schedule is enabled. + /// Gets or sets the next run time of the schedule. + /// Gets or sets the next run time's offset in minutes. + /// Gets or sets the interval of the schedule. + /// Gets or sets the frequency of the schedule. + /// Gets or sets the time zone of the schedule. + /// Gets or sets the advanced schedule. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfigurationScheduleProperties(DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, long? interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { - return new AutomationPrivateLinkServiceConnectionStateProperty(status, description, actionsRequired, serializedAdditionalRawData: null); + return new SoftwareUpdateConfigurationScheduleProperties( + startOn, + startInMinutes, + expireOn, + expireInMinutes, + isEnabled, + nextRunOn, + nextRunInMinutes, + interval, + frequency, + timeZone, + advancedSchedule, + createdOn, + lastModifiedOn, + description, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Name of the software update configuration. + /// Resource Id of the software update configuration. + /// Update specific properties of the software update configuration. + /// Pre and Post Tasks defined. + /// execution frequency of the schedule associated with the software update configuration. + /// the start time of the update. + /// Creation time of the software update configuration, which only appears in the response. + /// Last time software update configuration was modified, which only appears in the response. + /// Provisioning state for the software update configuration, which only appears in the response. + /// ext run time of the update. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, ResourceIdentifier id = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationTasks tasks = null, AutomationScheduleFrequency? frequency = null, DateTimeOffset? startOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, DateTimeOffset? nextRunOn = null) + { + return new SoftwareUpdateConfigurationCollectionItem( + name, + id, + updateConfiguration, + tasks, + frequency, + startOn, + createdOn, + lastModifiedOn, + provisioningState, + nextRunOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The private link resource group id. - /// The private link resource required member names. - /// A new instance for mocking. - public static AutomationPrivateLinkResource AutomationPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null) + /// Gets or sets the location of the resource. + /// Gets or sets the Automation Account Resource Id. + /// Gets or sets the Automation Account Id. + /// Gets or sets the location of the resource. + /// Gets the deletion time. + /// A new instance for mocking. + public static DeletedAutomationAccount DeletedAutomationAccount(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, ResourceIdentifier automationAccountResourceId = null, string automationAccountId = null, string locationPropertiesLocation = null, DateTimeOffset? deletedOn = null) { - requiredMembers ??= new List(); - - return new AutomationPrivateLinkResource( + return new DeletedAutomationAccount( id, name, resourceType, systemData, - groupId, - requiredMembers?.ToList(), + location, + automationAccountResourceId, + automationAccountId, + locationPropertiesLocation, + deletedOn, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the isGlobal flag of the module. - /// Gets or sets the version of the module. - /// Gets or sets the size in bytes of the module. - /// Gets or sets the activity count of the module. - /// Gets or sets the provisioning state of the module. - /// Gets or sets the contentLink of the module. - /// Gets or sets the error info of the module. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Gets or sets the description. - /// Gets or sets type of module, if its composite or not. - /// A new instance for mocking. - public static AutomationModuleData AutomationModuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, bool? isGlobal = null, string version = null, long? sizeInBytes = null, int? activityCount = null, ModuleProvisioningState? provisioningState = null, AutomationContentLink contentLink = null, AutomationModuleErrorInfo error = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, bool? isComposite = null) + /// The private link resource group id. + /// The private link resource required member names. + /// A new instance for mocking. + public static AutomationPrivateLinkResource AutomationPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null) { - tags ??= new Dictionary(); + requiredMembers ??= new List(); - return new AutomationModuleData( + return new AutomationPrivateLinkResource( id, name, resourceType, systemData, - tags, - location, - etag, - isGlobal, - version, - sizeInBytes, - activityCount, - provisioningState, - contentLink, - error, - createdOn, - lastModifiedOn, - description, - isComposite, + groupId, + requiredMembers?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the tags attached to the resource. - /// Gets or sets the module content link. - /// A new instance for mocking. - public static AutomationAccountPython2PackageCreateOrUpdateContent AutomationAccountPython2PackageCreateOrUpdateContent(IDictionary tags = null, AutomationContentLink contentLink = null) - { - tags ??= new Dictionary(); - - return new AutomationAccountPython2PackageCreateOrUpdateContent(tags, contentLink, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Gets or sets the dsc meta configuration. /// Gets or sets the dsc server endpoint. @@ -318,310 +361,108 @@ public static DscMetaConfiguration DscMetaConfiguration(int? configurationModeFr serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the last modified time. - /// Gets or sets creation time. - /// Gets or sets the configuration of the node. - /// Source of node configuration. - /// Number of nodes with this node configuration assigned. - /// If a new build version of NodeConfiguration is required. - /// A new instance for mocking. - public static DscNodeConfigurationData DscNodeConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, string configurationName = null, string source = null, long? nodeCount = null, bool? isIncrementNodeConfigurationBuildRequired = null) + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Identity for the resource. + /// Gets or sets the SKU of account. + /// Gets or sets the last modified by. + /// Gets status of account. + /// Gets the creation time. + /// Gets the last modified time. + /// Gets or sets the description. + /// Encryption properties for the automation account. + /// List of Automation operations supported by the Automation resource provider. + /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. + /// Indicates whether requests using non-AAD authentication are blocked. + /// URL of automation hybrid service which is used for hybrid worker on-boarding. + /// A new instance for mocking. + public static AutomationAccountData AutomationAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, AutomationSku sku = null, string lastModifiedBy = null, AutomationAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, AutomationEncryptionProperties encryption = null, IEnumerable privateEndpointConnections = null, bool? isPublicNetworkAccessAllowed = null, bool? isLocalAuthDisabled = null, Uri automationHybridServiceUri = null) { - return new DscNodeConfigurationData( + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new AutomationAccountData( id, name, resourceType, systemData, - lastModifiedOn, - createdOn, - configurationName != null ? new DscConfigurationAssociationProperty(configurationName, serializedAdditionalRawData: null) : null, - source, - nodeCount, - isIncrementNodeConfigurationBuildRequired, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets the configuration. - /// Gets or sets the parameters of the job. - /// If a new build version of NodeConfiguration is required. - /// A new instance for mocking. - public static DscCompilationJobCreateOrUpdateContent DscCompilationJobCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, string configurationName = null, IDictionary parameters = null, bool? isIncrementNodeConfigurationBuildRequired = null) - { - tags ??= new Dictionary(); - parameters ??= new Dictionary(); - - return new DscCompilationJobCreateOrUpdateContent( - name, - location, tags, - configurationName != null ? new DscConfigurationAssociationProperty(configurationName, serializedAdditionalRawData: null) : null, - parameters, - isIncrementNodeConfigurationBuildRequired, + location, + etag, + identity, + sku, + lastModifiedBy, + state, + createdOn, + lastModifiedOn, + description, + encryption, + privateEndpointConnections?.ToList(), + isPublicNetworkAccessAllowed, + isLocalAuthDisabled, + automationHybridServiceUri, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the configuration. - /// Gets the compilation job started by. - /// Gets the id of the job. - /// Gets the creation time of the job. - /// The current provisioning state of the job. - /// Gets or sets the runOn which specifies the group name where the job is to be executed. - /// Gets or sets the status of the job. - /// Gets or sets the status details of the job. - /// Gets the start time of the job. - /// Gets the end time of the job. - /// Gets the exception of the job. - /// Gets the last modified time of the job. - /// Gets the last status modified time of the job. - /// Gets or sets the parameters of the job. - /// A new instance for mocking. - public static DscCompilationJobData DscCompilationJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string configurationName = null, string startedBy = null, Guid? jobId = null, DateTimeOffset? createdOn = null, JobProvisioningState? provisioningState = null, string runOn = null, AutomationJobStatus? status = null, string statusDetails = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IDictionary parameters = null) - { - parameters ??= new Dictionary(); - - return new DscCompilationJobData( - id, - name, - resourceType, - systemData, - configurationName != null ? new DscConfigurationAssociationProperty(configurationName, serializedAdditionalRawData: null) : null, - startedBy, - jobId, - createdOn, - provisioningState, - runOn, - status, - statusDetails, - startOn, - endOn, - exception, - lastModifiedOn, - lastStatusModifiedOn, - parameters, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the id of the resource. - /// Gets or sets the id of the job stream. - /// Gets or sets the creation time of the job. - /// Gets or sets the stream type. - /// Gets or sets the stream text. - /// Gets or sets the summary. - /// Gets or sets the values of the job stream. - /// A new instance for mocking. - public static AutomationJobStream AutomationJobStream(ResourceIdentifier id = null, string jobStreamId = null, DateTimeOffset? time = null, AutomationJobStreamType? streamType = null, string streamText = null, string summary = null, IReadOnlyDictionary value = null) - { - value ??= new Dictionary(); - - return new AutomationJobStream( - id, - jobStreamId, - time, - streamType, - streamText, - summary, - value, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the name of a count type. - /// - /// A new instance for mocking. - public static DscNodeCount DscNodeCount(string name = null, int? nameCount = null) - { - return new DscNodeCount(name, nameCount != null ? new DscNodeCountProperties(nameCount, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The repo url of the source control. - /// The repo branch of the source control. Include branch as empty string for VsoTfvc. - /// The folder path of the source control. - /// The auto sync of the source control. Default is false. - /// The auto publish of the source control. Default is true. - /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. - /// The description. - /// The creation time. - /// The last modified time. - /// A new instance for mocking. - public static AutomationSourceControlData AutomationSourceControlData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri repoUri = null, string branch = null, string folderPath = null, bool? isAutoSyncEnabled = null, bool? isAutoPublishRunbookEnabled = null, SourceControlSourceType? sourceType = null, string description = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null) + /// Private endpoint which the connection belongs to. + /// Gets the groupIds. + /// Connection State of the Private Endpoint Connection. + /// A new instance for mocking. + public static AutomationPrivateEndpointConnectionData AutomationPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, IEnumerable groupIds = null, AutomationPrivateLinkServiceConnectionStateProperty connectionState = null) { - return new AutomationSourceControlData( - id, - name, - resourceType, - systemData, - repoUri, - branch, - folderPath, - isAutoSyncEnabled, - isAutoPublishRunbookEnabled, - sourceType, - description, - createdOn, - lastModifiedOn, - serializedAdditionalRawData: null); - } + groupIds ??= new List(); - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The source control sync job id. - /// The creation time of the job. - /// The provisioning state of the job. - /// The start time of the job. - /// The end time of the job. - /// The sync type. - /// A new instance for mocking. - public static SourceControlSyncJob SourceControlSyncJob(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null) - { - return new SourceControlSyncJob( + return new AutomationPrivateEndpointConnectionData( id, name, resourceType, systemData, - sourceControlSyncJobId, - createdOn, - provisioningState, - startOn, - endOn, - syncType, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id of the job. - /// The source control sync job id. - /// The creation time of the job. - /// The provisioning state of the job. - /// The start time of the job. - /// The end time of the job. - /// The sync type. - /// The exceptions that occurred while running the sync job. - /// A new instance for mocking. - public static SourceControlSyncJobResult SourceControlSyncJobResult(ResourceIdentifier id = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null, string exception = null) - { - return new SourceControlSyncJobResult( - id, - sourceControlSyncJobId, - createdOn, - provisioningState, - startOn, - endOn, - syncType, - exception, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Resource id. - /// The sync job stream id. - /// The summary of the sync job stream. - /// The time of the sync job stream. - /// The type of the sync job stream. - /// A new instance for mocking. - public static SourceControlSyncJobStream SourceControlSyncJobStream(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null) - { - return new SourceControlSyncJobStream( - id, - sourceControlSyncJobStreamId, - summary, - time, - streamType, + privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, + groupIds?.ToList(), + connectionState, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Resource id. - /// The sync job stream id. - /// The summary of the sync job stream. - /// The time of the sync job stream. - /// The type of the sync job stream. - /// The text of the sync job stream. - /// The values of the job stream. - /// A new instance for mocking. - public static SourceControlSyncJobStreamResult SourceControlSyncJobStreamResult(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null, string streamText = null, IReadOnlyDictionary value = null) + /// Initializes a new instance of . + /// The private link service connection status. + /// The private link service connection description. + /// Any action that is required beyond basic workflow (approve/ reject/ disconnect). + /// A new instance for mocking. + public static AutomationPrivateLinkServiceConnectionStateProperty AutomationPrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) { - value ??= new Dictionary(); - - return new SourceControlSyncJobStreamResult( - id, - sourceControlSyncJobStreamId, - summary, - time, - streamType, - streamText, - value, - serializedAdditionalRawData: null); + return new AutomationPrivateLinkServiceConnectionStateProperty(status, description, actionsRequired, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// Gets or sets the etag of the resource. - /// Identity for the resource. - /// Gets or sets the SKU of account. - /// Gets or sets the last modified by. - /// Gets status of account. - /// Gets the creation time. - /// Gets the last modified time. - /// Gets or sets the description. - /// Encryption properties for the automation account. - /// List of Automation operations supported by the Automation resource provider. - /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. - /// Indicates whether requests using non-AAD authentication are blocked. - /// URL of automation hybrid service which is used for hybrid worker on-boarding. - /// A new instance for mocking. - public static AutomationAccountData AutomationAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, AutomationSku sku = null, string lastModifiedBy = null, AutomationAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, AutomationEncryptionProperties encryption = null, IEnumerable privateEndpointConnections = null, bool? isPublicNetworkAccessAllowed = null, bool? isLocalAuthDisabled = null, Uri automationHybridServiceUri = null) + /// Resource tags. + /// The geo-location where the resource lives. + /// A new instance for mocking. + public static TrackedResource TrackedResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default) { tags ??= new Dictionary(); - privateEndpointConnections ??= new List(); - return new AutomationAccountData( + return new TrackedResource( id, name, resourceType, systemData, tags, location, - etag, - identity, - sku, - lastModifiedBy, - state, - createdOn, - lastModifiedOn, - description, - encryption, - privateEndpointConnections?.ToList(), - isPublicNetworkAccessAllowed, - isLocalAuthDisabled, - automationHybridServiceUri, serializedAdditionalRawData: null); } @@ -682,6 +523,32 @@ public static AutomationKey AutomationKey(AutomationKeyName? keyName = null, Aut return new AutomationKey(keyName, permissions, value, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The resource id. + /// Gets or sets name of the resource. + /// Gets or sets the location of the resource. + /// Gets or sets the Runbook Id. + /// Type of the runbook. + /// Gets or sets runtime of the runbook. + /// Environment of the runbook. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// A new instance for mocking. + public static DeletedRunbook DeletedRunbook(string id = null, string name = null, AzureLocation? location = null, string runbookId = null, string runbookType = null, string runtime = null, string runtimeEnvironment = null, DateTimeOffset? createdOn = null, DateTimeOffset? deletedOn = null) + { + return new DeletedRunbook( + id, + name, + location, + runbookId, + runbookType, + runtime, + runtimeEnvironment, + createdOn, + deletedOn, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -844,26 +711,305 @@ public static AutomationCredentialCreateOrUpdateContent AutomationCredentialCrea return new AutomationCredentialCreateOrUpdateContent(name, userName, password, description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the id of job schedule. - /// Gets or sets the schedule. - /// Gets or sets the runbook. - /// Gets or sets the hybrid worker group that the scheduled job should run on. - /// Gets or sets the parameters of the job schedule. - /// A new instance for mocking. - public static AutomationJobScheduleData AutomationJobScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? jobScheduleId = null, string scheduleName = null, string runbookName = null, string runOn = null, IReadOnlyDictionary parameters = null) - { - parameters ??= new Dictionary(); - - return new AutomationJobScheduleData( - id, - name, - resourceType, - systemData, + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Gets or sets the provisioning state of the configuration. + /// Gets or sets the job count of the configuration. + /// Gets or sets the configuration parameters. + /// Gets or sets the source. + /// Gets or sets the state of the configuration. + /// Gets or sets verbose log option. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets the number of compiled node configurations. + /// Gets or sets the description. + /// A new instance for mocking. + public static DscConfigurationData DscConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, DscConfigurationProvisioningState? provisioningState = null, int? jobCount = null, IDictionary parameters = null, AutomationContentSource source = null, DscConfigurationState? state = null, bool? isLogVerboseEnabled = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, int? nodeConfigurationCount = null, string description = null) + { + tags ??= new Dictionary(); + parameters ??= new Dictionary(); + + return new DscConfigurationData( + id, + name, + resourceType, + systemData, + tags, + location, + etag, + provisioningState, + jobCount, + parameters, + source, + state, + isLogVerboseEnabled, + createdOn, + lastModifiedOn, + nodeConfigurationCount, + description, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets name of the resource. + /// Gets or sets the location of the resource. + /// Gets or sets the tags attached to the resource. + /// Gets or sets verbose log option. + /// Gets or sets progress log option. + /// Gets or sets the source. + /// Gets or sets the configuration parameters. + /// Gets or sets the description of the configuration. + /// A new instance for mocking. + public static DscConfigurationCreateOrUpdateContent DscConfigurationCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationContentSource source = null, IDictionary parameters = null, string description = null) + { + tags ??= new Dictionary(); + parameters ??= new Dictionary(); + + return new DscConfigurationCreateOrUpdateContent( + name, + location, + tags, + isLogVerboseEnabled, + isLogProgressEnabled, + source, + parameters, + description, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the last modified time. + /// Gets or sets creation time. + /// Gets or sets the configuration of the node. + /// Source of node configuration. + /// Number of nodes with this node configuration assigned. + /// If a new build version of NodeConfiguration is required. + /// A new instance for mocking. + public static DscNodeConfigurationData DscNodeConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, string configurationName = null, string source = null, long? nodeCount = null, bool? isIncrementNodeConfigurationBuildRequired = null) + { + return new DscNodeConfigurationData( + id, + name, + resourceType, + systemData, + lastModifiedOn, + createdOn, + configurationName != null ? new DscConfigurationAssociationProperty(configurationName, serializedAdditionalRawData: null) : null, + source, + nodeCount, + isIncrementNodeConfigurationBuildRequired, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Gets or sets the assigned machine IP address. + /// Gets or sets the registration time of the worker machine. + /// Last Heartbeat from the Worker. + /// Azure Resource Manager Id for a virtual machine. + /// Type of the HybridWorker. + /// Name of the HybridWorker. + /// A new instance for mocking. + public static HybridRunbookWorkerData HybridRunbookWorkerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string ip = null, DateTimeOffset? registeredOn = null, DateTimeOffset? lastSeenOn = null, ResourceIdentifier vmResourceId = null, HybridWorkerType? workerType = null, string workerName = null) + { + tags ??= new Dictionary(); + + return new HybridRunbookWorkerData( + id, + name, + resourceType, + systemData, + tags, + location, + ip, + registeredOn, + lastSeenOn, + vmResourceId, + workerType, + workerName, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the resource. + /// Azure Resource Manager Id for a virtual machine. + /// A new instance for mocking. + public static HybridRunbookWorkerCreateParameters HybridRunbookWorkerCreateParameters(string name = null, ResourceIdentifier vmResourceId = null) + { + return new HybridRunbookWorkerCreateParameters(name, vmResourceId, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Type of the HybridWorkerGroup. + /// Sets the credential of a worker group. + /// A new instance for mocking. + public static HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HybridWorkerGroup? groupType = null, string credentialName = null) + { + tags ??= new Dictionary(); + + return new HybridRunbookWorkerGroupData( + id, + name, + resourceType, + systemData, + tags, + location, + groupType, + credentialName != null ? new RunAsCredentialAssociationProperty(credentialName, serializedAdditionalRawData: null) : null, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the runbook. + /// Gets or sets the job started by. + /// Gets or sets the runOn which specifies the group name where the job is to be executed. + /// Runtime Environment Property. + /// Gets or sets the id of the job. + /// Gets or sets the creation time of the job. + /// Gets or sets the status of the job. + /// Gets or sets the status details of the job. + /// Gets or sets the start time of the job. + /// Gets or sets the end time of the job. + /// Gets or sets the exception of the job. + /// Gets or sets the last modified time of the job. + /// Gets or sets the last status modified time of the job. + /// Gets or sets the parameters of the job. + /// The current provisioning state of the job. + /// A new instance for mocking. + public static AutomationJobData AutomationJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, string runtimeEnvironmentName = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, string statusDetails = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IDictionary parameters = null, JobProvisioningState? provisioningState = null) + { + parameters ??= new Dictionary(); + + return new AutomationJobData( + id, + name, + resourceType, + systemData, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + startedBy, + runOn, + runtimeEnvironmentName != null ? new JobRuntimeEnvironment(runtimeEnvironmentName, serializedAdditionalRawData: null) : null, + jobId, + createdOn, + status, + statusDetails, + startOn, + endOn, + exception, + lastModifiedOn, + lastStatusModifiedOn, + parameters, + provisioningState, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The runbook association. + /// The id of the job. + /// Gets or sets the job started by. + /// The creation time of the job. + /// The status of the job. + /// The start time of the job. + /// The end time of the job. + /// The last modified time of the job. + /// The provisioning state of a resource. + /// Runtime Environment Property. + /// Specifies the runOn group name where the job was executed. + /// A new instance for mocking. + public static AutomationJobCollectionItemData AutomationJobCollectionItemData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, Guid? jobId = null, string startedBy = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, string runtimeEnvironmentName = null, string runOn = null) + { + return new AutomationJobCollectionItemData( + id, + name, + resourceType, + systemData, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + jobId, + startedBy, + createdOn, + status, + startOn, + endOn, + lastModifiedOn, + provisioningState, + runtimeEnvironmentName != null ? new JobRuntimeEnvironment(runtimeEnvironmentName, serializedAdditionalRawData: null) : null, + runOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the id of the resource. + /// Gets or sets the id of the job stream. + /// Gets or sets the creation time of the job. + /// Gets or sets the stream type. + /// Gets or sets the stream text. + /// Gets or sets the summary. + /// Gets or sets the values of the job stream. + /// A new instance for mocking. + public static AutomationJobStream AutomationJobStream(ResourceIdentifier id = null, string jobStreamId = null, DateTimeOffset? time = null, AutomationJobStreamType? streamType = null, string streamText = null, string summary = null, IReadOnlyDictionary value = null) + { + value ??= new Dictionary(); + + return new AutomationJobStream( + id, + jobStreamId, + time, + streamType, + streamText, + summary, + value, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the id of job schedule. + /// Gets or sets the schedule. + /// Gets or sets the runbook. + /// Gets or sets the hybrid worker group that the scheduled job should run on. + /// Gets or sets the parameters of the job schedule. + /// A new instance for mocking. + public static AutomationJobScheduleData AutomationJobScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? jobScheduleId = null, string scheduleName = null, string runbookName = null, string runOn = null, IReadOnlyDictionary parameters = null) + { + parameters ??= new Dictionary(); + + return new AutomationJobScheduleData( + id, + name, + resourceType, + systemData, jobScheduleId, scheduleName != null ? new ScheduleAssociationProperty(scheduleName, serializedAdditionalRawData: null) : null, runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, @@ -978,177 +1124,153 @@ public static AutomationActivityOutputType AutomationActivityOutputType(string n return new AutomationActivityOutputType(name, activityOutputType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets the module content link. - /// A new instance for mocking. - public static AutomationAccountModuleCreateOrUpdateContent AutomationAccountModuleCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, AutomationContentLink contentLink = null) - { - tags ??= new Dictionary(); - - return new AutomationAccountModuleCreateOrUpdateContent(name, location, tags, contentLink, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the name of the field. - /// Gets or sets the type of the field. - /// A new instance for mocking. - public static AutomationModuleField AutomationModuleField(string name = null, string fieldType = null) - { - return new AutomationModuleField(name, fieldType, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the name of the Schedule. - /// Gets or sets the description of the schedule. - /// Gets or sets the start time of the schedule. - /// Gets or sets the end time of the schedule. - /// Gets or sets the interval of the schedule. - /// Gets or sets the frequency of the schedule. - /// Gets or sets the time zone of the schedule. - /// Gets or sets the AdvancedSchedule. - /// A new instance for mocking. - public static AutomationScheduleCreateOrUpdateContent AutomationScheduleCreateOrUpdateContent(string name = null, string description = null, DateTimeOffset startOn = default, DateTimeOffset? expireOn = null, BinaryData interval = null, AutomationScheduleFrequency frequency = default, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null) - { - return new AutomationScheduleCreateOrUpdateContent( - name, - description, - startOn, - expireOn, - interval, - frequency, - timeZone, - advancedSchedule, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the start time of the schedule. - /// Gets the start time's offset in minutes. - /// Gets or sets the end time of the schedule. - /// Gets or sets the expiry time's offset in minutes. - /// Gets or sets a value indicating whether this schedule is enabled. - /// Gets or sets the next run time of the schedule. - /// Gets or sets the next run time's offset in minutes. - /// Gets or sets the interval of the schedule. - /// Gets or sets the frequency of the schedule. - /// Gets or sets the time zone of the schedule. - /// Gets or sets the advanced schedule. + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Gets or sets the isGlobal flag of the module. + /// Gets or sets the version of the module. + /// Gets or sets the size in bytes of the module. + /// Gets or sets the activity count of the module. + /// Gets or sets the provisioning state of the module. + /// Gets or sets the contentLink of the module. + /// Gets or sets the error info of the module. /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationScheduleData AutomationScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, BinaryData interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) - { - return new AutomationScheduleData( - id, - name, - resourceType, - systemData, - startOn, - startInMinutes, - expireOn, - expireInMinutes, - isEnabled, - nextRunOn, - nextRunInMinutes, - interval, - frequency, - timeZone, - advancedSchedule, - createdOn, - lastModifiedOn, - description, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the name of the variable. - /// Gets or sets the value of the variable. - /// Gets or sets the description of the variable. - /// Gets or sets the encrypted flag of the variable. - /// A new instance for mocking. - public static AutomationVariableCreateOrUpdateContent AutomationVariableCreateOrUpdateContent(string name = null, string value = null, string description = null, bool? isEncrypted = null) + /// Gets or sets type of module, if its composite or not. + /// A new instance for mocking. + public static AutomationModuleData AutomationModuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, bool? isGlobal = null, string version = null, long? sizeInBytes = null, int? activityCount = null, ModuleProvisioningState? provisioningState = null, AutomationContentLink contentLink = null, AutomationModuleErrorInfo error = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, bool? isComposite = null) { - return new AutomationVariableCreateOrUpdateContent(name, value, description, isEncrypted, serializedAdditionalRawData: null); - } + tags ??= new Dictionary(); - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the value of the variable. - /// Gets or sets the encrypted flag of the variable. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationVariableData AutomationVariableData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, bool? isEncrypted = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) - { - return new AutomationVariableData( + return new AutomationModuleData( id, name, resourceType, systemData, - value, - isEncrypted, + tags, + location, + etag, + isGlobal, + version, + sizeInBytes, + activityCount, + provisioningState, + contentLink, + error, createdOn, lastModifiedOn, description, + isComposite, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Gets or sets name of the resource. + /// Gets or sets the location of the resource. + /// Gets or sets the tags attached to the resource. + /// Gets or sets the module content link. + /// A new instance for mocking. + public static AutomationAccountModuleCreateOrUpdateContent AutomationAccountModuleCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, AutomationContentLink contentLink = null) + { + tags ??= new Dictionary(); + + return new AutomationAccountModuleCreateOrUpdateContent(name, location, tags, contentLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets name of the resource. + /// Gets or sets the location of the resource. + /// Gets or sets the tags attached to the resource. + /// Gets or sets the module content link. + /// A new instance for mocking. + public static AutomationAccountModulePatch AutomationAccountModulePatch(string name = null, AzureLocation? location = null, IDictionary tags = null, AutomationContentLink contentLink = null) + { + tags ??= new Dictionary(); + + return new AutomationAccountModulePatch(name, location, tags, contentLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the field. + /// Gets or sets the type of the field. + /// A new instance for mocking. + public static AutomationModuleField AutomationModuleField(string name = null, string fieldType = null) + { + return new AutomationModuleField(name, fieldType, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the frequency at which the watcher is invoked. - /// Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook. - /// Gets or sets the parameters of the script. - /// Gets or sets the name of the hybrid worker group the watcher will run on. - /// Gets the current status of the watcher. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Details of the user who last modified the watcher. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationWatcherData AutomationWatcherData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, long? executionFrequencyInSeconds = null, string scriptName = null, IDictionary scriptParameters = null, string scriptRunOn = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) + /// Gets or sets the isGlobal flag of the package. + /// Gets or sets the version of the Package. + /// Gets or sets the size in bytes of the Package. + /// Gets or sets the provisioning state of the Package. + /// Gets or sets the contentLink of the Package. + /// Gets or sets the error info of the Package. + /// Metadata pertaining to creation and last modification of the resource. + /// A new instance for mocking. + public static PackageData PackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, bool? @default = null, string version = null, long? sizeInBytes = null, PackageProvisioningState? provisioningState = null, AutomationContentLink contentLink = null, PackageErrorInfo error = null, SystemData allOf = null) { tags ??= new Dictionary(); - scriptParameters ??= new Dictionary(); - return new AutomationWatcherData( + return new PackageData( id, name, resourceType, systemData, tags, location, - etag, - executionFrequencyInSeconds, - scriptName, - scriptParameters, - scriptRunOn, - status, - createdOn, - lastModifiedOn, - lastModifiedBy, - description, + @default, + version, + sizeInBytes, + provisioningState, + contentLink, + error, + allOf, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + /// Gets or sets the package content link. + /// A new instance for mocking. + public static PackageCreateOrUpdateContent PackageCreateOrUpdateContent(TrackedResource allOf = null, AutomationContentLink contentLink = null) + { + return new PackageCreateOrUpdateContent(allOf, contentLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the tags attached to the resource. + /// Gets or sets the module content link. + /// A new instance for mocking. + public static PythonPackageCreateParameters PythonPackageCreateParameters(IDictionary tags = null, AutomationContentLink contentLink = null) + { + tags ??= new Dictionary(); + + return new PythonPackageCreateParameters(tags, contentLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static RunbookDraftUndoEditResult RunbookDraftUndoEditResult(AutomationHttpStatusCode? statusCode = null, string requestId = null) + { + return new RunbookDraftUndoEditResult(statusCode, requestId, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -1156,23 +1278,30 @@ public static AutomationWatcherData AutomationWatcherData(ResourceIdentifier id /// The tags. /// The location. /// Gets or sets the etag of the resource. - /// Gets or sets the provisioning state of the configuration. - /// Gets or sets the job count of the configuration. - /// Gets or sets the configuration parameters. - /// Gets or sets the source. - /// Gets or sets the state of the configuration. + /// Runtime Environment of the runbook execution. + /// Gets or sets the type of the runbook. + /// Gets or sets the published runbook content link. + /// Gets or sets the state of the runbook. /// Gets or sets verbose log option. + /// Gets or sets progress log option. + /// Gets or sets the option to log activity trace of the runbook. + /// Gets or sets the job count of the runbook. + /// Gets or sets the runbook parameters. + /// Gets or sets the runbook output types. + /// Gets or sets the draft runbook properties. + /// Gets or sets the provisioning state of the runbook. + /// Gets or sets the last modified by. /// Gets or sets the creation time. /// Gets or sets the last modified time. - /// Gets the number of compiled node configurations. /// Gets or sets the description. - /// A new instance for mocking. - public static DscConfigurationData DscConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, DscConfigurationProvisioningState? provisioningState = null, int? jobCount = null, IDictionary parameters = null, AutomationContentSource source = null, DscConfigurationState? state = null, bool? isLogVerboseEnabled = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, int? nodeConfigurationCount = null, string description = null) + /// A new instance for mocking. + public static AutomationRunbookData AutomationRunbookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, string runtimeEnvironment = null, AutomationRunbookType? runbookType = null, AutomationContentLink publishContentLink = null, RunbookState? state = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, int? logActivityTrace = null, int? jobCount = null, IDictionary parameters = null, IEnumerable outputTypes = null, AutomationRunbookDraft draft = null, RunbookProvisioningState? provisioningState = null, string lastModifiedBy = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { tags ??= new Dictionary(); - parameters ??= new Dictionary(); + parameters ??= new Dictionary(); + outputTypes ??= new List(); - return new DscConfigurationData( + return new AutomationRunbookData( id, name, resourceType, @@ -1180,161 +1309,160 @@ public static DscConfigurationData DscConfigurationData(ResourceIdentifier id = tags, location, etag, - provisioningState, - jobCount, - parameters, - source, + runtimeEnvironment, + runbookType, + publishContentLink, state, isLogVerboseEnabled, + isLogProgressEnabled, + logActivityTrace, + jobCount, + parameters, + outputTypes?.ToList(), + draft, + provisioningState, + lastModifiedBy, createdOn, lastModifiedOn, - nodeConfigurationCount, description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets name of the resource. + /// Initializes a new instance of . + /// Gets or sets the name of the resource. /// Gets or sets the location of the resource. /// Gets or sets the tags attached to the resource. /// Gets or sets verbose log option. /// Gets or sets progress log option. - /// Gets or sets the source. - /// Gets or sets the configuration parameters. - /// Gets or sets the description of the configuration. - /// A new instance for mocking. - public static DscConfigurationCreateOrUpdateContent DscConfigurationCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationContentSource source = null, IDictionary parameters = null, string description = null) + /// Environment of the runbook. + /// Gets or sets the type of the runbook. + /// Gets or sets the draft runbook properties. + /// Gets or sets the published runbook content link. + /// Gets or sets the description of the runbook. + /// Gets or sets the activity-level tracing options of the runbook. + /// A new instance for mocking. + public static AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, string runtimeEnvironment = null, AutomationRunbookType runbookType = default, AutomationRunbookDraft draft = null, AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = null) { tags ??= new Dictionary(); - parameters ??= new Dictionary(); - return new DscConfigurationCreateOrUpdateContent( + return new AutomationRunbookCreateOrUpdateContent( name, location, tags, isLogVerboseEnabled, isLogProgressEnabled, - source, - parameters, + runtimeEnvironment, + runbookType, + draft, + publishContentLink, description, + logActivityTrace, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the runbook. - /// Gets or sets the job started by. + /// Initializes a new instance of . + /// Gets or sets the creation time of the test job. + /// Gets or sets the status of the test job. + /// Gets or sets the status details of the test job. /// Gets or sets the runOn which specifies the group name where the job is to be executed. - /// Gets or sets the id of the job. - /// Gets or sets the creation time of the job. - /// Gets or sets the status of the job. - /// Gets or sets the status details of the job. - /// Gets or sets the start time of the job. - /// Gets or sets the end time of the job. - /// Gets or sets the exception of the job. - /// Gets or sets the last modified time of the job. - /// Gets or sets the last status modified time of the job. - /// Gets or sets the parameters of the job. - /// The current provisioning state of the job. - /// A new instance for mocking. - public static AutomationJobData AutomationJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, string statusDetails = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IDictionary parameters = null, JobProvisioningState? provisioningState = null) + /// Gets or sets the start time of the test job. + /// Gets or sets the end time of the test job. + /// Gets or sets the exception of the test job. + /// Gets or sets the last modified time of the test job. + /// Gets or sets the last status modified time of the test job. + /// Gets or sets the parameters of the test job. + /// The activity-level tracing options of the runbook. + /// A new instance for mocking. + public static RunbookTestJob RunbookTestJob(DateTimeOffset? createdOn = null, string status = null, string statusDetails = null, string runOn = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IReadOnlyDictionary parameters = null, int? logActivityTrace = null) { parameters ??= new Dictionary(); - return new AutomationJobData( - id, - name, - resourceType, - systemData, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - startedBy, - runOn, - jobId, + return new RunbookTestJob( createdOn, status, statusDetails, + runOn, startOn, endOn, exception, lastModifiedOn, lastStatusModifiedOn, parameters, - provisioningState, + logActivityTrace, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Metadata pertaining to creation and last modification of the resource. + /// List of Default packages for Environment. + /// A new instance for mocking. + public static RuntimeEnvironmentPatch RuntimeEnvironmentPatch(SystemData systemData = null, IDictionary defaultPackages = null) + { + defaultPackages ??= new Dictionary(); + + return new RuntimeEnvironmentPatch(systemData, defaultPackages, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The runbook association. - /// The id of the job. - /// The creation time of the job. - /// The status of the job. - /// The start time of the job. - /// The end time of the job. - /// The last modified time of the job. - /// The provisioning state of a resource. - /// Specifies the runOn group name where the job was executed. - /// A new instance for mocking. - public static AutomationJobCollectionItemData AutomationJobCollectionItemData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, string runOn = null) + /// The tags. + /// The location. + /// List of Default packages for Environment. + /// Gets or sets the description. + /// Language of Runtime Environment. + /// Version of Language. + /// A new instance for mocking. + public static RuntimeEnvironmentData RuntimeEnvironmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IDictionary defaultPackages = null, string description = null, string language = null, string version = null) { - return new AutomationJobCollectionItemData( + tags ??= new Dictionary(); + defaultPackages ??= new Dictionary(); + + return new RuntimeEnvironmentData( id, name, resourceType, systemData, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - jobId, - createdOn, - status, - startOn, - endOn, - lastModifiedOn, - provisioningState, - runOn, + tags, + location, + defaultPackages, + description, + language, + version, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// update specific properties for the Software update configuration. - /// Schedule information for the Software update configuration. - /// Provisioning state for the software update configuration, which only appears in the response. - /// Details of provisioning error. - /// Creation time of the resource, which only appears in the response. - /// CreatedBy property, which only appears in the response. - /// Last time resource was modified, which only appears in the response. - /// LastModifiedBy property, which only appears in the response. - /// Tasks information for the Software update configuration. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationScheduleProperties scheduleInfo = null, string provisioningState = null, AutomationResponseError error = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, SoftwareUpdateConfigurationTasks tasks = null) + /// Initializes a new instance of . + /// Gets or sets the name of the Schedule. + /// Gets or sets the description of the schedule. + /// Gets or sets the start time of the schedule. + /// Gets or sets the end time of the schedule. + /// Gets or sets the interval of the schedule. + /// Gets or sets the frequency of the schedule. + /// Gets or sets the time zone of the schedule. + /// Gets or sets the AdvancedSchedule. + /// A new instance for mocking. + public static AutomationScheduleCreateOrUpdateContent AutomationScheduleCreateOrUpdateContent(string name = null, string description = null, DateTimeOffset startOn = default, DateTimeOffset? expireOn = null, BinaryData interval = null, AutomationScheduleFrequency frequency = default, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null) { - return new SoftwareUpdateConfigurationData( - id, + return new AutomationScheduleCreateOrUpdateContent( name, - resourceType, - systemData, - updateConfiguration, - scheduleInfo, - provisioningState, - error, - createdOn, - createdBy, - lastModifiedOn, - lastModifiedBy, - tasks, + description, + startOn, + expireOn, + interval, + frequency, + timeZone, + advancedSchedule, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. /// Gets or sets the start time of the schedule. /// Gets the start time's offset in minutes. /// Gets or sets the end time of the schedule. @@ -1349,10 +1477,14 @@ public static SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(Re /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfigurationScheduleProperties(DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, long? interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + /// A new instance for mocking. + public static AutomationScheduleData AutomationScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, BinaryData interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { - return new SoftwareUpdateConfigurationScheduleProperties( + return new AutomationScheduleData( + id, + name, + resourceType, + systemData, startOn, startInMinutes, expireOn, @@ -1370,31 +1502,47 @@ public static SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfig serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Name of the software update configuration. - /// Resource Id of the software update configuration. - /// Update specific properties of the software update configuration. - /// Pre and Post Tasks defined. - /// execution frequency of the schedule associated with the software update configuration. - /// the start time of the update. - /// Creation time of the software update configuration, which only appears in the response. - /// Last time software update configuration was modified, which only appears in the response. - /// Provisioning state for the software update configuration, which only appears in the response. - /// ext run time of the update. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, ResourceIdentifier id = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationTasks tasks = null, AutomationScheduleFrequency? frequency = null, DateTimeOffset? startOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, DateTimeOffset? nextRunOn = null) + /// Initializes a new instance of . + /// Name of the software update configuration machine run. + /// Resource Id of the software update configuration machine run. + /// name of the updated computer. + /// type of the updated computer. + /// software update configuration triggered this run. + /// Status of the software update configuration machine run. + /// Operating system target of the software update configuration triggered this run. + /// correlation id of the software update configuration machine run. + /// source computer id of the software update configuration machine run. + /// Start time of the software update configuration machine run. + /// End time of the software update configuration machine run. + /// configured duration for the software update configuration run. + /// Job associated with the software update configuration machine run. + /// Creation time of the resource, which only appears in the response. + /// createdBy property, which only appears in the response. + /// Last time resource was modified, which only appears in the response. + /// lastModifiedBy property, which only appears in the response. + /// Details of provisioning error. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationMachineRun SoftwareUpdateConfigurationMachineRun(string name = null, ResourceIdentifier id = null, ResourceIdentifier targetComputerId = null, string targetComputerType = null, string softwareUpdateName = null, string status = null, string osType = null, Guid? correlationId = null, Guid? sourceComputerId = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, TimeSpan? configuredDuration = null, Guid? jobId = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, AutomationResponseError error = null) { - return new SoftwareUpdateConfigurationCollectionItem( + return new SoftwareUpdateConfigurationMachineRun( name, id, - updateConfiguration, - tasks, - frequency, + targetComputerId, + targetComputerType, + softwareUpdateName != null ? new SoftwareUpdateConfigurationNavigation(softwareUpdateName, serializedAdditionalRawData: null) : null, + status, + osType, + correlationId, + sourceComputerId, startOn, + endOn, + configuredDuration, + jobId != null ? new JobNavigation(jobId, serializedAdditionalRawData: null) : null, createdOn, + createdBy, lastModifiedOn, - provisioningState, - nextRunOn, + lastModifiedBy, + error, serializedAdditionalRawData: null); } @@ -1455,174 +1603,211 @@ public static SoftwareUpdateConfigurationRunTaskProperties SoftwareUpdateConfigu return new SoftwareUpdateConfigurationRunTaskProperties(status, source, jobId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Name of the software update configuration machine run. - /// Resource Id of the software update configuration machine run. - /// name of the updated computer. - /// type of the updated computer. - /// software update configuration triggered this run. - /// Status of the software update configuration machine run. - /// Operating system target of the software update configuration triggered this run. - /// correlation id of the software update configuration machine run. - /// source computer id of the software update configuration machine run. - /// Start time of the software update configuration machine run. - /// End time of the software update configuration machine run. - /// configured duration for the software update configuration run. - /// Job associated with the software update configuration machine run. - /// Creation time of the resource, which only appears in the response. - /// createdBy property, which only appears in the response. - /// Last time resource was modified, which only appears in the response. - /// lastModifiedBy property, which only appears in the response. - /// Details of provisioning error. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationMachineRun SoftwareUpdateConfigurationMachineRun(string name = null, ResourceIdentifier id = null, ResourceIdentifier targetComputerId = null, string targetComputerType = null, string softwareUpdateName = null, string status = null, string osType = null, Guid? correlationId = null, Guid? sourceComputerId = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, TimeSpan? configuredDuration = null, Guid? jobId = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, AutomationResponseError error = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The repo url of the source control. + /// The repo branch of the source control. Include branch as empty string for VsoTfvc. + /// The folder path of the source control. + /// The auto sync of the source control. Default is false. + /// The auto publish of the source control. Default is true. + /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. + /// The description. + /// The creation time. + /// The last modified time. + /// A new instance for mocking. + public static AutomationSourceControlData AutomationSourceControlData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri repoUri = null, string branch = null, string folderPath = null, bool? isAutoSyncEnabled = null, bool? isAutoPublishRunbookEnabled = null, SourceControlSourceType? sourceType = null, string description = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null) { - return new SoftwareUpdateConfigurationMachineRun( + return new AutomationSourceControlData( + id, name, + resourceType, + systemData, + repoUri, + branch, + folderPath, + isAutoSyncEnabled, + isAutoPublishRunbookEnabled, + sourceType, + description, + createdOn, + lastModifiedOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The source control sync job id. + /// The creation time of the job. + /// The provisioning state of the job. + /// The start time of the job. + /// The end time of the job. + /// The sync type. + /// A new instance for mocking. + public static SourceControlSyncJob SourceControlSyncJob(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null) + { + return new SourceControlSyncJob( id, - targetComputerId, - targetComputerType, - softwareUpdateName != null ? new SoftwareUpdateConfigurationNavigation(softwareUpdateName, serializedAdditionalRawData: null) : null, - status, - osType, - correlationId, - sourceComputerId, + name, + resourceType, + systemData, + sourceControlSyncJobId, + createdOn, + provisioningState, startOn, endOn, - configuredDuration, - jobId != null ? new JobNavigation(jobId, serializedAdditionalRawData: null) : null, + syncType, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id of the job. + /// The source control sync job id. + /// The creation time of the job. + /// The provisioning state of the job. + /// The start time of the job. + /// The end time of the job. + /// The sync type. + /// The exceptions that occurred while running the sync job. + /// A new instance for mocking. + public static SourceControlSyncJobResult SourceControlSyncJobResult(ResourceIdentifier id = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null, string exception = null) + { + return new SourceControlSyncJobResult( + id, + sourceControlSyncJobId, createdOn, - createdBy, - lastModifiedOn, - lastModifiedBy, - error, + provisioningState, + startOn, + endOn, + syncType, + exception, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static RunbookDraftUndoEditResult RunbookDraftUndoEditResult(AutomationHttpStatusCode? statusCode = null, string requestId = null) + /// Initializes a new instance of . + /// Resource id. + /// The sync job stream id. + /// The summary of the sync job stream. + /// The time of the sync job stream. + /// The type of the sync job stream. + /// A new instance for mocking. + public static SourceControlSyncJobStream SourceControlSyncJobStream(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null) + { + return new SourceControlSyncJobStream( + id, + sourceControlSyncJobStreamId, + summary, + time, + streamType, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Resource id. + /// The sync job stream id. + /// The summary of the sync job stream. + /// The time of the sync job stream. + /// The type of the sync job stream. + /// The text of the sync job stream. + /// The values of the job stream. + /// A new instance for mocking. + public static SourceControlSyncJobStreamResult SourceControlSyncJobStreamResult(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null, string streamText = null, IReadOnlyDictionary value = null) + { + value ??= new Dictionary(); + + return new SourceControlSyncJobStreamResult( + id, + sourceControlSyncJobStreamId, + summary, + time, + streamType, + streamText, + value, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the variable. + /// Gets or sets the value of the variable. + /// Gets or sets the description of the variable. + /// Gets or sets the encrypted flag of the variable. + /// A new instance for mocking. + public static AutomationVariableCreateOrUpdateContent AutomationVariableCreateOrUpdateContent(string name = null, string value = null, string description = null, bool? isEncrypted = null) { - return new RunbookDraftUndoEditResult(statusCode, requestId, serializedAdditionalRawData: null); + return new AutomationVariableCreateOrUpdateContent(name, value, description, isEncrypted, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the type of the runbook. - /// Gets or sets the published runbook content link. - /// Gets or sets the state of the runbook. - /// Gets or sets verbose log option. - /// Gets or sets progress log option. - /// Gets or sets the option to log activity trace of the runbook. - /// Gets or sets the job count of the runbook. - /// Gets or sets the runbook parameters. - /// Gets or sets the runbook output types. - /// Gets or sets the draft runbook properties. - /// Gets or sets the provisioning state of the runbook. - /// Gets or sets the last modified by. + /// Gets or sets the value of the variable. + /// Gets or sets the encrypted flag of the variable. /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationRunbookData AutomationRunbookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, AutomationRunbookType? runbookType = null, AutomationContentLink publishContentLink = null, RunbookState? state = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, int? logActivityTrace = null, int? jobCount = null, IDictionary parameters = null, IEnumerable outputTypes = null, AutomationRunbookDraft draft = null, RunbookProvisioningState? provisioningState = null, string lastModifiedBy = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + /// A new instance for mocking. + public static AutomationVariableData AutomationVariableData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, bool? isEncrypted = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { - tags ??= new Dictionary(); - parameters ??= new Dictionary(); - outputTypes ??= new List(); - - return new AutomationRunbookData( + return new AutomationVariableData( id, name, resourceType, systemData, - tags, - location, - etag, - runbookType, - publishContentLink, - state, - isLogVerboseEnabled, - isLogProgressEnabled, - logActivityTrace, - jobCount, - parameters, - outputTypes?.ToList(), - draft, - provisioningState, - lastModifiedBy, + value, + isEncrypted, createdOn, lastModifiedOn, description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets verbose log option. - /// Gets or sets progress log option. - /// Gets or sets the type of the runbook. - /// Gets or sets the draft runbook properties. - /// Gets or sets the published runbook content link. - /// Gets or sets the description of the runbook. - /// Gets or sets the activity-level tracing options of the runbook. - /// A new instance for mocking. - public static AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationRunbookType runbookType = default, AutomationRunbookDraft draft = null, AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Gets or sets the frequency at which the watcher is invoked. + /// Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook. + /// Gets or sets the parameters of the script. + /// Gets or sets the name of the hybrid worker group the watcher will run on. + /// Gets the current status of the watcher. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Details of the user who last modified the watcher. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationWatcherData AutomationWatcherData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, long? executionFrequencyInSeconds = null, string scriptName = null, IDictionary scriptParameters = null, string scriptRunOn = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) { tags ??= new Dictionary(); + scriptParameters ??= new Dictionary(); - return new AutomationRunbookCreateOrUpdateContent( + return new AutomationWatcherData( + id, name, - location, + resourceType, + systemData, tags, - isLogVerboseEnabled, - isLogProgressEnabled, - runbookType, - draft, - publishContentLink, - description, - logActivityTrace, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the creation time of the test job. - /// Gets or sets the status of the test job. - /// Gets or sets the status details of the test job. - /// Gets or sets the runOn which specifies the group name where the job is to be executed. - /// Gets or sets the start time of the test job. - /// Gets or sets the end time of the test job. - /// Gets or sets the exception of the test job. - /// Gets or sets the last modified time of the test job. - /// Gets or sets the last status modified time of the test job. - /// Gets or sets the parameters of the test job. - /// The activity-level tracing options of the runbook. - /// A new instance for mocking. - public static RunbookTestJob RunbookTestJob(DateTimeOffset? createdOn = null, string status = null, string statusDetails = null, string runOn = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IReadOnlyDictionary parameters = null, int? logActivityTrace = null) - { - parameters ??= new Dictionary(); - - return new RunbookTestJob( - createdOn, + location, + etag, + executionFrequencyInSeconds, + scriptName, + scriptParameters, + scriptRunOn, status, - statusDetails, - runOn, - startOn, - endOn, - exception, + createdOn, lastModifiedOn, - lastStatusModifiedOn, - parameters, - logActivityTrace, + lastModifiedBy, + description, serializedAdditionalRawData: null); } @@ -1690,78 +1875,131 @@ public static AutomationWebhookCreateOrUpdateContent AutomationWebhookCreateOrUp serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the assigned machine IP address. - /// Gets or sets the registration time of the worker machine. - /// Last Heartbeat from the Worker. - /// Azure Resource Manager Id for a virtual machine. - /// Type of the HybridWorker. - /// Name of the HybridWorker. - /// A new instance for mocking. - public static HybridRunbookWorkerData HybridRunbookWorkerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string ip = null, DateTimeOffset? registeredOn = null, DateTimeOffset? lastSeenOn = null, ResourceIdentifier vmResourceId = null, HybridWorkerType? workerType = null, string workerName = null) + /// Gets or sets the runbook. + /// Gets or sets the job started by. + /// Gets or sets the runOn which specifies the group name where the job is to be executed. + /// Gets or sets the id of the job. + /// Gets or sets the creation time of the job. + /// Gets or sets the status of the job. + /// Gets or sets the status details of the job. + /// Gets or sets the start time of the job. + /// Gets or sets the end time of the job. + /// Gets or sets the exception of the job. + /// Gets or sets the last modified time of the job. + /// Gets or sets the last status modified time of the job. + /// Gets or sets the parameters of the job. + /// The current provisioning state of the job. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AutomationJobData AutomationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string runbookName, string startedBy, string runOn, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters, JobProvisioningState? provisioningState) { - return new HybridRunbookWorkerData( - id, - name, - resourceType, - systemData, - ip, - registeredOn, - lastSeenOn, - vmResourceId, - workerType, - workerName, - serializedAdditionalRawData: null); + return AutomationJobData(id: id, name: name, resourceType: resourceType, systemData: systemData, runbookName: runbookName, startedBy: startedBy, runOn: runOn, runtimeEnvironmentName: default, jobId: jobId, createdOn: createdOn, status: status, statusDetails: statusDetails, startOn: startOn, endOn: endOn, exception: exception, lastModifiedOn: lastModifiedOn, lastStatusModifiedOn: lastStatusModifiedOn, parameters: parameters, provisioningState: provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The runbook association. + /// The id of the job. + /// The creation time of the job. + /// The status of the job. + /// The start time of the job. + /// The end time of the job. + /// The last modified time of the job. + /// The provisioning state of a resource. + /// Specifies the runOn group name where the job was executed. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AutomationJobCollectionItemData AutomationJobCollectionItemData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string runbookName, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, string provisioningState, string runOn) + { + return AutomationJobCollectionItemData(id: id, name: name, resourceType: resourceType, systemData: systemData, runbookName: runbookName, jobId: jobId, startedBy: default, createdOn: createdOn, status: status, startOn: startOn, endOn: endOn, lastModifiedOn: lastModifiedOn, provisioningState: provisioningState, runtimeEnvironmentName: default, runOn: runOn); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Gets or sets the type of the runbook. + /// Gets or sets the published runbook content link. + /// Gets or sets the state of the runbook. + /// Gets or sets verbose log option. + /// Gets or sets progress log option. + /// Gets or sets the option to log activity trace of the runbook. + /// Gets or sets the job count of the runbook. + /// Gets or sets the runbook parameters. + /// Gets or sets the runbook output types. + /// Gets or sets the draft runbook properties. + /// Gets or sets the provisioning state of the runbook. + /// Gets or sets the last modified by. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AutomationRunbookData AutomationRunbookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, AutomationRunbookType? runbookType, AutomationContentLink publishContentLink, RunbookState? state, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, int? logActivityTrace, int? jobCount, IDictionary parameters, IEnumerable outputTypes, AutomationRunbookDraft draft, RunbookProvisioningState? provisioningState, string lastModifiedBy, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) + { + return AutomationRunbookData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, runtimeEnvironment: default, runbookType: runbookType, publishContentLink: publishContentLink, state: state, isLogVerboseEnabled: isLogVerboseEnabled, isLogProgressEnabled: isLogProgressEnabled, logActivityTrace: logActivityTrace, jobCount: jobCount, parameters: parameters, outputTypes: outputTypes, draft: draft, provisioningState: provisioningState, lastModifiedBy: lastModifiedBy, createdOn: createdOn, lastModifiedOn: lastModifiedOn, description: description); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the resource. /// Gets or sets the location of the resource. - /// Gets or sets the Automation Account Resource Id. - /// Gets or sets the Automation Account Id. - /// Gets or sets the location of the resource. - /// Gets the deletion time. - /// A new instance for mocking. - public static DeletedAutomationAccount DeletedAutomationAccount(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, ResourceIdentifier automationAccountResourceId = null, string automationAccountId = null, string locationPropertiesLocation = null, DateTimeOffset? deletedOn = null) + /// Gets or sets the tags attached to the resource. + /// Gets or sets verbose log option. + /// Gets or sets progress log option. + /// Gets or sets the type of the runbook. + /// Gets or sets the draft runbook properties. + /// Gets or sets the published runbook content link. + /// Gets or sets the description of the runbook. + /// Gets or sets the activity-level tracing options of the runbook. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name, AzureLocation? location, IDictionary tags, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, AutomationRunbookType runbookType, AutomationRunbookDraft draft, AutomationContentLink publishContentLink, string description, int? logActivityTrace) { - return new DeletedAutomationAccount( - id, - name, - resourceType, - systemData, - location, - automationAccountResourceId, - automationAccountId, - locationPropertiesLocation, - deletedOn, - serializedAdditionalRawData: null); + return AutomationRunbookCreateOrUpdateContent(name: name, location: location, tags: tags, isLogVerboseEnabled: isLogVerboseEnabled, isLogProgressEnabled: isLogProgressEnabled, runtimeEnvironment: default, runbookType: runbookType, draft: draft, publishContentLink: publishContentLink, description: description, logActivityTrace: logActivityTrace); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the assigned machine IP address. + /// Gets or sets the registration time of the worker machine. + /// Last Heartbeat from the Worker. + /// Azure Resource Manager Id for a virtual machine. + /// Type of the HybridWorker. + /// Name of the HybridWorker. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static HybridRunbookWorkerData HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string ip, DateTimeOffset? registeredOn, DateTimeOffset? lastSeenOn, ResourceIdentifier vmResourceId, HybridWorkerType? workerType, string workerName) + { + return HybridRunbookWorkerData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: default, location: default, ip: ip, registeredOn: registeredOn, lastSeenOn: lastSeenOn, vmResourceId: vmResourceId, workerType: workerType, workerName: workerName); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// Type of the HybridWorkerGroup. /// Sets the credential of a worker group. - /// A new instance for mocking. - public static HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridWorkerGroup? groupType = null, string credentialName = null) + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridWorkerGroup? groupType, string credentialName) { - return new HybridRunbookWorkerGroupData( - id, - name, - resourceType, - systemData, - groupType, - credentialName != null ? new RunAsCredentialAssociationProperty(credentialName, serializedAdditionalRawData: null) : null, - serializedAdditionalRawData: null); + return HybridRunbookWorkerGroupData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: default, location: default, groupType: groupType, credentialName: credentialName); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs index 78e584da8a8a..3ccf55090a56 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string a /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string automationAccountN /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -361,7 +361,7 @@ public virtual async Task> ExistsAsync(string automationAccountNa /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual Response Exists(string automationAccountName, CancellationT /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs index e3ed0d303849..c10fc55b3eab 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string moduleName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string moduleName, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string moduleName, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs index 40bf119a3b52..dbc0d8e3eadd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs @@ -116,7 +116,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -196,7 +196,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -240,7 +240,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -326,7 +326,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -368,7 +368,7 @@ public virtual Response Update(AutomationAccoun /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -407,7 +407,7 @@ public virtual async Task> GetActivityAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -446,7 +446,7 @@ public virtual Response GetActivity(string activityName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -472,7 +472,7 @@ public virtual AsyncPageable GetActivitiesAsync(Cancellation /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -498,7 +498,7 @@ public virtual Pageable GetActivities(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -528,7 +528,7 @@ public virtual AsyncPageable GetFieldsByModuleAndTypeAsyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -558,7 +558,7 @@ public virtual Pageable GetFieldsByModuleAndType(string t /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -588,7 +588,7 @@ public virtual AsyncPageable GetFieldsByTypeAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -618,7 +618,7 @@ public virtual Pageable GetFieldsByType(string typeName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -680,7 +680,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -742,7 +742,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -799,7 +799,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -856,7 +856,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -916,7 +916,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs index d06b4e836b74..b0a29eb16c11 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -75,21 +75,21 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content, cancellationToken).ConfigureAwait(false); - var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content); + var response = await _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -116,7 +116,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -126,21 +126,21 @@ public virtual async Task> /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageCollection.CreateOrUpdate"); scope.Start(); try { - var response = _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content, cancellationToken); - var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content); + var response = _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string pack /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string packageName, Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string packageName, CancellationToken cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs index 762ecf713f55..b9614f77f641 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -279,18 +279,18 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageResource.Update"); scope.Start(); try { - var response = await _automationAccountPython2PackagePython2PackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + var response = await _automationAccountPython2PackagePython2PackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken).ConfigureAwait(false); return Response.FromValue(new AutomationAccountPython2PackageResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -313,7 +313,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -321,18 +321,18 @@ public virtual async Task> Upd /// /// /// - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// is null. - public virtual Response Update(AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageResource.Update"); scope.Start(); try { - var response = _automationAccountPython2PackagePython2PackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + var response = _automationAccountPython2PackagePython2PackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken); return Response.FromValue(new AutomationAccountPython2PackageResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual Response Update(Automati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -387,7 +387,7 @@ public virtual async Task> Add else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -417,7 +417,7 @@ public virtual async Task> Add /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual Response AddTag(string k else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -479,7 +479,7 @@ public virtual Response AddTag(string k /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -510,7 +510,7 @@ public virtual async Task> Set else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -536,7 +536,7 @@ public virtual async Task> Set /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -567,7 +567,7 @@ public virtual Response SetTags(IDictio else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); patch.Tags.ReplaceWith(tags); var result = Update(patch, cancellationToken: cancellationToken); return result; @@ -593,7 +593,7 @@ public virtual Response SetTags(IDictio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -623,7 +623,7 @@ public virtual async Task> Rem else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -653,7 +653,7 @@ public virtual async Task> Rem /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -683,7 +683,7 @@ public virtual Response RemoveTag(strin else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageCollection.cs new file mode 100644 index 000000000000..ad85f8d59980 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageCollection.cs @@ -0,0 +1,498 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationAccountPython3Packages method from an instance of . + /// + public partial class AutomationAccountPython3PackageCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _automationAccountPython3PackagePython3PackageClientDiagnostics; + private readonly Python3PackageRestOperations _automationAccountPython3PackagePython3PackageRestClient; + + /// Initializes a new instance of the class for mocking. + protected AutomationAccountPython3PackageCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal AutomationAccountPython3PackageCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _automationAccountPython3PackagePython3PackageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountPython3PackageResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationAccountPython3PackageResource.ResourceType, out string automationAccountPython3PackagePython3PackageApiVersion); + _automationAccountPython3PackagePython3PackageRestClient = new Python3PackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountPython3PackagePython3PackageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != AutomationAccountResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AutomationAccountResource.ResourceType), nameof(id)); + } + + /// + /// Create or Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of python package. + /// The create or update parameters for python package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython3PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of python package. + /// The create or update parameters for python package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython3PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Get"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Get"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve a list of python 3 packages. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages + /// + /// + /// Operation Id + /// Python3Package_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountPython3PackageResource(Client, AutomationModuleData.DeserializeAutomationModuleData(e)), _automationAccountPython3PackagePython3PackageClientDiagnostics, Pipeline, "AutomationAccountPython3PackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Retrieve a list of python 3 packages. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages + /// + /// + /// Operation Id + /// Python3Package_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountPython3PackageResource(Client, AutomationModuleData.DeserializeAutomationModuleData(e)), _automationAccountPython3PackagePython3PackageClientDiagnostics, Pipeline, "AutomationAccountPython3PackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Exists"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Exists"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.Serialization.cs new file mode 100644 index 000000000000..8d11ae74a387 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationAccountPython3PackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + AutomationModuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + AutomationModuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.cs new file mode 100644 index 000000000000..49089e3cb2ef --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.cs @@ -0,0 +1,703 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A Class representing an AutomationAccountPython3Package along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationAccountPython3PackageResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationAccountPython3Package method. + /// + public partial class AutomationAccountPython3PackageResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The automationAccountName. + /// The packageName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _automationAccountPython3PackagePython3PackageClientDiagnostics; + private readonly Python3PackageRestOperations _automationAccountPython3PackagePython3PackageRestClient; + private readonly AutomationModuleData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts/python3Packages"; + + /// Initializes a new instance of the class for mocking. + protected AutomationAccountPython3PackageResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal AutomationAccountPython3PackageResource(ArmClient client, AutomationModuleData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal AutomationAccountPython3PackageResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _automationAccountPython3PackagePython3PackageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationAccountPython3PackagePython3PackageApiVersion); + _automationAccountPython3PackagePython3PackageRestClient = new Python3PackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountPython3PackagePython3PackageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual AutomationModuleData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Get"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Get"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the python 3 package by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Delete + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Delete"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the python 3 package by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Delete + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Delete"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for python package. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Update"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for python package. + /// The cancellation token to use. + /// is null. + public virtual Response Update(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Update"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new PythonPackageUpdateParameters(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new PythonPackageUpdateParameters(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs index d62ba6b6e5b4..c26d238531f4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs @@ -38,16 +38,12 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _automationAccountClientDiagnostics; private readonly AutomationAccountRestOperations _automationAccountRestClient; + private readonly ClientDiagnostics _nodeCountInformationClientDiagnostics; + private readonly NodeCountInformationRestOperations _nodeCountInformationRestClient; private readonly ClientDiagnostics _privateLinkResourcesClientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly ClientDiagnostics _agentRegistrationInformationClientDiagnostics; private readonly AgentRegistrationInformationRestOperations _agentRegistrationInformationRestClient; - private readonly ClientDiagnostics _dscCompilationJobClientDiagnostics; - private readonly DscCompilationJobRestOperations _dscCompilationJobRestClient; - private readonly ClientDiagnostics _dscCompilationJobStreamClientDiagnostics; - private readonly DscCompilationJobStreamRestOperations _dscCompilationJobStreamRestClient; - private readonly ClientDiagnostics _nodeCountInformationClientDiagnostics; - private readonly NodeCountInformationRestOperations _nodeCountInformationRestClient; private readonly ClientDiagnostics _statisticsClientDiagnostics; private readonly StatisticsRestOperations _statisticsRestClient; private readonly ClientDiagnostics _usagesClientDiagnostics; @@ -60,10 +56,10 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ObjectDataTypesRestOperations _objectDataTypesRestClient; private readonly ClientDiagnostics _defaultClientDiagnostics; private readonly AutomationRestOperations _defaultRestClient; - private readonly ClientDiagnostics _softwareUpdateConfigurationRunsClientDiagnostics; - private readonly SoftwareUpdateConfigurationRunsRestOperations _softwareUpdateConfigurationRunsRestClient; private readonly ClientDiagnostics _softwareUpdateConfigurationMachineRunsClientDiagnostics; private readonly SoftwareUpdateConfigurationMachineRunsRestOperations _softwareUpdateConfigurationMachineRunsRestClient; + private readonly ClientDiagnostics _softwareUpdateConfigurationRunsClientDiagnostics; + private readonly SoftwareUpdateConfigurationRunsRestOperations _softwareUpdateConfigurationRunsRestClient; private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics; private readonly WebhookRestOperations _automationWebhookWebhookRestClient; private readonly AutomationAccountData _data; @@ -93,17 +89,12 @@ internal AutomationAccountResource(ArmClient client, ResourceIdentifier id) : ba _automationAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string automationAccountApiVersion); _automationAccountRestClient = new AutomationAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountApiVersion); + _nodeCountInformationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _nodeCountInformationRestClient = new NodeCountInformationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _privateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _agentRegistrationInformationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _agentRegistrationInformationRestClient = new AgentRegistrationInformationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _dscCompilationJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", DscCompilationJobResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(DscCompilationJobResource.ResourceType, out string dscCompilationJobApiVersion); - _dscCompilationJobRestClient = new DscCompilationJobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dscCompilationJobApiVersion); - _dscCompilationJobStreamClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _dscCompilationJobStreamRestClient = new DscCompilationJobStreamRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _nodeCountInformationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _nodeCountInformationRestClient = new NodeCountInformationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _statisticsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _statisticsRestClient = new StatisticsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _usagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -116,10 +107,10 @@ internal AutomationAccountResource(ArmClient client, ResourceIdentifier id) : ba _objectDataTypesRestClient = new ObjectDataTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _defaultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _defaultRestClient = new AutomationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _softwareUpdateConfigurationRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _softwareUpdateConfigurationRunsRestClient = new SoftwareUpdateConfigurationRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _softwareUpdateConfigurationMachineRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _softwareUpdateConfigurationMachineRunsRestClient = new SoftwareUpdateConfigurationMachineRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _softwareUpdateConfigurationRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _softwareUpdateConfigurationRunsRestClient = new SoftwareUpdateConfigurationRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWebhookResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(AutomationWebhookResource.ResourceType, out string automationWebhookWebhookApiVersion); _automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion); @@ -149,1315 +140,1453 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of AutomationPrivateEndpointConnectionResources in the AutomationAccount. - /// An object representing collection of AutomationPrivateEndpointConnectionResources and their operations over a AutomationPrivateEndpointConnectionResource. - public virtual AutomationPrivateEndpointConnectionCollection GetAutomationPrivateEndpointConnections() + /// Gets a collection of SoftwareUpdateConfigurationResources in the AutomationAccount. + /// An object representing collection of SoftwareUpdateConfigurationResources and their operations over a SoftwareUpdateConfigurationResource. + public virtual SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() { - return GetCachedClient(client => new AutomationPrivateEndpointConnectionCollection(client, Id)); + return GetCachedClient(client => new SoftwareUpdateConfigurationCollection(client, Id)); } /// - /// Gets a private endpoint connection. + /// Get a single software update configuration by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} /// /// /// Operation Id - /// PrivateEndpointConnections_Get + /// SoftwareUpdateConfigurations_GetByName /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of the private endpoint connection. + /// The name of the software update configuration to be created. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return await GetAutomationPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + return await GetSoftwareUpdateConfigurations().GetAsync(softwareUpdateConfigurationName, clientRequestId, cancellationToken).ConfigureAwait(false); } /// - /// Gets a private endpoint connection. + /// Get a single software update configuration by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} /// /// /// Operation Id - /// PrivateEndpointConnections_Get + /// SoftwareUpdateConfigurations_GetByName /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of the private endpoint connection. + /// The name of the software update configuration to be created. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return GetAutomationPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); + return GetSoftwareUpdateConfigurations().Get(softwareUpdateConfigurationName, clientRequestId, cancellationToken); } - /// Gets a collection of AutomationAccountPython2PackageResources in the AutomationAccount. - /// An object representing collection of AutomationAccountPython2PackageResources and their operations over a AutomationAccountPython2PackageResource. - public virtual AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() + /// Gets a collection of DscNodeResources in the AutomationAccount. + /// An object representing collection of DscNodeResources and their operations over a DscNodeResource. + public virtual DscNodeCollection GetDscNodes() { - return GetCachedClient(client => new AutomationAccountPython2PackageCollection(client, Id)); + return GetCachedClient(client => new DscNodeCollection(client, Id)); } /// - /// Retrieve the python 2 package identified by package name. + /// Retrieve the dsc node identified by node id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} /// /// /// Operation Id - /// Python2Package_Get + /// DscNode_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The python package name. + /// The node id. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationAccountPython2PackageAsync(string packageName, CancellationToken cancellationToken = default) + public virtual async Task> GetDscNodeAsync(string nodeId, CancellationToken cancellationToken = default) { - return await GetAutomationAccountPython2Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); + return await GetDscNodes().GetAsync(nodeId, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the python 2 package identified by package name. + /// Retrieve the dsc node identified by node id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} /// /// /// Operation Id - /// Python2Package_Get + /// DscNode_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The python package name. + /// The node id. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationAccountPython2Package(string packageName, CancellationToken cancellationToken = default) + public virtual Response GetDscNode(string nodeId, CancellationToken cancellationToken = default) { - return GetAutomationAccountPython2Packages().Get(packageName, cancellationToken); + return GetDscNodes().Get(nodeId, cancellationToken); } - /// Gets a collection of AutomationAccountModuleResources in the AutomationAccount. - /// An object representing collection of AutomationAccountModuleResources and their operations over a AutomationAccountModuleResource. - public virtual AutomationAccountModuleCollection GetAutomationAccountModules() + /// Gets a collection of AutomationCertificateResources in the AutomationAccount. + /// An object representing collection of AutomationCertificateResources and their operations over a AutomationCertificateResource. + public virtual AutomationCertificateCollection GetAutomationCertificates() { - return GetCachedClient(client => new AutomationAccountModuleCollection(client, Id)); + return GetCachedClient(client => new AutomationCertificateCollection(client, Id)); } /// - /// Retrieve the module identified by module name. + /// Retrieve the certificate identified by certificate name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName} /// /// /// Operation Id - /// Module_Get + /// Certificate_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The module name. + /// The name of certificate. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationAccountModuleAsync(string moduleName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationCertificateAsync(string certificateName, CancellationToken cancellationToken = default) { - return await GetAutomationAccountModules().GetAsync(moduleName, cancellationToken).ConfigureAwait(false); + return await GetAutomationCertificates().GetAsync(certificateName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the module identified by module name. + /// Retrieve the certificate identified by certificate name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName} /// /// /// Operation Id - /// Module_Get + /// Certificate_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The module name. + /// The name of certificate. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationAccountModule(string moduleName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationCertificate(string certificateName, CancellationToken cancellationToken = default) { - return GetAutomationAccountModules().Get(moduleName, cancellationToken); + return GetAutomationCertificates().Get(certificateName, cancellationToken); } - /// Gets a collection of DscNodeResources in the AutomationAccount. - /// An object representing collection of DscNodeResources and their operations over a DscNodeResource. - public virtual DscNodeCollection GetDscNodes() + /// Gets a collection of AutomationConnectionResources in the AutomationAccount. + /// An object representing collection of AutomationConnectionResources and their operations over a AutomationConnectionResource. + public virtual AutomationConnectionCollection GetAutomationConnections() { - return GetCachedClient(client => new DscNodeCollection(client, Id)); + return GetCachedClient(client => new AutomationConnectionCollection(client, Id)); } /// - /// Retrieve the dsc node identified by node id. + /// Retrieve the connection identified by connection name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName} /// /// /// Operation Id - /// DscNode_Get + /// Connection_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The node id. + /// The name of connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscNodeAsync(string nodeId, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationConnectionAsync(string connectionName, CancellationToken cancellationToken = default) { - return await GetDscNodes().GetAsync(nodeId, cancellationToken).ConfigureAwait(false); + return await GetAutomationConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the dsc node identified by node id. + /// Retrieve the connection identified by connection name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName} /// /// /// Operation Id - /// DscNode_Get + /// Connection_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The node id. + /// The name of connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscNode(string nodeId, CancellationToken cancellationToken = default) + public virtual Response GetAutomationConnection(string connectionName, CancellationToken cancellationToken = default) { - return GetDscNodes().Get(nodeId, cancellationToken); + return GetAutomationConnections().Get(connectionName, cancellationToken); } - /// Gets a collection of DscNodeConfigurationResources in the AutomationAccount. - /// An object representing collection of DscNodeConfigurationResources and their operations over a DscNodeConfigurationResource. - public virtual DscNodeConfigurationCollection GetDscNodeConfigurations() + /// Gets a collection of AutomationConnectionTypeResources in the AutomationAccount. + /// An object representing collection of AutomationConnectionTypeResources and their operations over a AutomationConnectionTypeResource. + public virtual AutomationConnectionTypeCollection GetAutomationConnectionTypes() { - return GetCachedClient(client => new DscNodeConfigurationCollection(client, Id)); + return GetCachedClient(client => new AutomationConnectionTypeCollection(client, Id)); } /// - /// Retrieve the Dsc node configurations by node configuration. + /// Retrieve the connection type identified by connection type name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName} /// /// /// Operation Id - /// DscNodeConfiguration_Get + /// ConnectionType_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The Dsc node configuration name. + /// The name of connection type. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscNodeConfigurationAsync(string nodeConfigurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationConnectionTypeAsync(string connectionTypeName, CancellationToken cancellationToken = default) { - return await GetDscNodeConfigurations().GetAsync(nodeConfigurationName, cancellationToken).ConfigureAwait(false); + return await GetAutomationConnectionTypes().GetAsync(connectionTypeName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the Dsc node configurations by node configuration. + /// Retrieve the connection type identified by connection type name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName} /// /// /// Operation Id - /// DscNodeConfiguration_Get + /// ConnectionType_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The Dsc node configuration name. + /// The name of connection type. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscNodeConfiguration(string nodeConfigurationName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationConnectionType(string connectionTypeName, CancellationToken cancellationToken = default) { - return GetDscNodeConfigurations().Get(nodeConfigurationName, cancellationToken); + return GetAutomationConnectionTypes().Get(connectionTypeName, cancellationToken); } - /// Gets a collection of DscCompilationJobResources in the AutomationAccount. - /// An object representing collection of DscCompilationJobResources and their operations over a DscCompilationJobResource. - public virtual DscCompilationJobCollection GetDscCompilationJobs() + /// Gets a collection of AutomationCredentialResources in the AutomationAccount. + /// An object representing collection of AutomationCredentialResources and their operations over a AutomationCredentialResource. + public virtual AutomationCredentialCollection GetAutomationCredentials() { - return GetCachedClient(client => new DscCompilationJobCollection(client, Id)); + return GetCachedClient(client => new AutomationCredentialCollection(client, Id)); } /// - /// Retrieve the Dsc configuration compilation job identified by job id. + /// Retrieve the credential identified by credential name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName} /// /// /// Operation Id - /// DscCompilationJob_Get + /// Credential_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The DSC configuration Id. + /// The name of credential. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscCompilationJobAsync(string compilationJobName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationCredentialAsync(string credentialName, CancellationToken cancellationToken = default) { - return await GetDscCompilationJobs().GetAsync(compilationJobName, cancellationToken).ConfigureAwait(false); + return await GetAutomationCredentials().GetAsync(credentialName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the Dsc configuration compilation job identified by job id. + /// Retrieve the credential identified by credential name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName} /// /// /// Operation Id - /// DscCompilationJob_Get + /// Credential_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The DSC configuration Id. + /// The name of credential. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscCompilationJob(string compilationJobName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationCredential(string credentialName, CancellationToken cancellationToken = default) { - return GetDscCompilationJobs().Get(compilationJobName, cancellationToken); + return GetAutomationCredentials().Get(credentialName, cancellationToken); } - /// Gets a collection of AutomationSourceControlResources in the AutomationAccount. - /// An object representing collection of AutomationSourceControlResources and their operations over a AutomationSourceControlResource. - public virtual AutomationSourceControlCollection GetAutomationSourceControls() + /// Gets a collection of DscConfigurationResources in the AutomationAccount. + /// An object representing collection of DscConfigurationResources and their operations over a DscConfigurationResource. + public virtual DscConfigurationCollection GetDscConfigurations() { - return GetCachedClient(client => new AutomationSourceControlCollection(client, Id)); + return GetCachedClient(client => new DscConfigurationCollection(client, Id)); } /// - /// Retrieve the source control identified by source control name. + /// Retrieve the configuration identified by configuration name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} /// /// /// Operation Id - /// SourceControl_Get + /// DscConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of source control. + /// The configuration name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default) + public virtual async Task> GetDscConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) { - return await GetAutomationSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false); + return await GetDscConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the source control identified by source control name. + /// Retrieve the configuration identified by configuration name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} /// /// /// Operation Id - /// SourceControl_Get + /// DscConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of source control. + /// The configuration name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationSourceControl(string sourceControlName, CancellationToken cancellationToken = default) + public virtual Response GetDscConfiguration(string configurationName, CancellationToken cancellationToken = default) { - return GetAutomationSourceControls().Get(sourceControlName, cancellationToken); + return GetDscConfigurations().Get(configurationName, cancellationToken); } - /// Gets a collection of AutomationCertificateResources in the AutomationAccount. - /// An object representing collection of AutomationCertificateResources and their operations over a AutomationCertificateResource. - public virtual AutomationCertificateCollection GetAutomationCertificates() + /// Gets a collection of DscNodeConfigurationResources in the AutomationAccount. + /// An object representing collection of DscNodeConfigurationResources and their operations over a DscNodeConfigurationResource. + public virtual DscNodeConfigurationCollection GetDscNodeConfigurations() { - return GetCachedClient(client => new AutomationCertificateCollection(client, Id)); + return GetCachedClient(client => new DscNodeConfigurationCollection(client, Id)); } /// - /// Retrieve the certificate identified by certificate name. + /// Retrieve the Dsc node configurations by node configuration. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} /// /// /// Operation Id - /// Certificate_Get + /// DscNodeConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of certificate. + /// The Dsc node configuration name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationCertificateAsync(string certificateName, CancellationToken cancellationToken = default) + public virtual async Task> GetDscNodeConfigurationAsync(string nodeConfigurationName, CancellationToken cancellationToken = default) { - return await GetAutomationCertificates().GetAsync(certificateName, cancellationToken).ConfigureAwait(false); + return await GetDscNodeConfigurations().GetAsync(nodeConfigurationName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the certificate identified by certificate name. + /// Retrieve the Dsc node configurations by node configuration. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} /// /// /// Operation Id - /// Certificate_Get + /// DscNodeConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of certificate. + /// The Dsc node configuration name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationCertificate(string certificateName, CancellationToken cancellationToken = default) + public virtual Response GetDscNodeConfiguration(string nodeConfigurationName, CancellationToken cancellationToken = default) { - return GetAutomationCertificates().Get(certificateName, cancellationToken); + return GetDscNodeConfigurations().Get(nodeConfigurationName, cancellationToken); } - /// Gets a collection of AutomationConnectionResources in the AutomationAccount. - /// An object representing collection of AutomationConnectionResources and their operations over a AutomationConnectionResource. - public virtual AutomationConnectionCollection GetAutomationConnections() + /// Gets a collection of HybridRunbookWorkerGroupResources in the AutomationAccount. + /// An object representing collection of HybridRunbookWorkerGroupResources and their operations over a HybridRunbookWorkerGroupResource. + public virtual HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() { - return GetCachedClient(client => new AutomationConnectionCollection(client, Id)); + return GetCachedClient(client => new HybridRunbookWorkerGroupCollection(client, Id)); } /// - /// Retrieve the connection identified by connection name. + /// Retrieve a hybrid runbook worker group. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} /// /// /// Operation Id - /// Connection_Get + /// HybridRunbookWorkerGroup_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of connection. + /// The hybrid runbook worker group name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationConnectionAsync(string connectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridRunbookWorkerGroupAsync(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) { - return await GetAutomationConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); + return await GetHybridRunbookWorkerGroups().GetAsync(hybridRunbookWorkerGroupName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the connection identified by connection name. + /// Retrieve a hybrid runbook worker group. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} /// /// /// Operation Id - /// Connection_Get + /// HybridRunbookWorkerGroup_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of connection. + /// The hybrid runbook worker group name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationConnection(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetHybridRunbookWorkerGroup(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) { - return GetAutomationConnections().Get(connectionName, cancellationToken); + return GetHybridRunbookWorkerGroups().Get(hybridRunbookWorkerGroupName, cancellationToken); } - /// Gets a collection of AutomationConnectionTypeResources in the AutomationAccount. - /// An object representing collection of AutomationConnectionTypeResources and their operations over a AutomationConnectionTypeResource. - public virtual AutomationConnectionTypeCollection GetAutomationConnectionTypes() + /// Gets a collection of AutomationJobResources in the AutomationAccount. + /// An object representing collection of AutomationJobResources and their operations over a AutomationJobResource. + public virtual AutomationJobCollection GetAutomationJobs() { - return GetCachedClient(client => new AutomationConnectionTypeCollection(client, Id)); + return GetCachedClient(client => new AutomationJobCollection(client, Id)); } /// - /// Retrieve the connection type identified by connection type name. + /// Retrieve the job identified by job name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} /// /// /// Operation Id - /// ConnectionType_Get + /// Job_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of connection type. + /// The job name. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationConnectionTypeAsync(string connectionTypeName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationJobAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + { + return await GetAutomationJobs().GetAsync(jobName, clientRequestId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieve the job identified by job name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} + /// + /// + /// Operation Id + /// Job_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The job name. + /// Identifies this specific client request. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetAutomationJob(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + { + return GetAutomationJobs().Get(jobName, clientRequestId, cancellationToken); + } + + /// Gets a collection of AutomationJobScheduleResources in the AutomationAccount. + /// An object representing collection of AutomationJobScheduleResources and their operations over a AutomationJobScheduleResource. + public virtual AutomationJobScheduleCollection GetAutomationJobSchedules() + { + return GetCachedClient(client => new AutomationJobScheduleCollection(client, Id)); + } + + /// + /// Retrieve the job schedule identified by job schedule name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} + /// + /// + /// Operation Id + /// JobSchedule_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The job schedule name. + /// The cancellation token to use. + [ForwardsClientCalls] + public virtual async Task> GetAutomationJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) + { + return await GetAutomationJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieve the job schedule identified by job schedule name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} + /// + /// + /// Operation Id + /// JobSchedule_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The job schedule name. + /// The cancellation token to use. + [ForwardsClientCalls] + public virtual Response GetAutomationJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default) + { + return GetAutomationJobSchedules().Get(jobScheduleId, cancellationToken); + } + + /// Gets a collection of AutomationAccountModuleResources in the AutomationAccount. + /// An object representing collection of AutomationAccountModuleResources and their operations over a AutomationAccountModuleResource. + public virtual AutomationAccountModuleCollection GetAutomationAccountModules() + { + return GetCachedClient(client => new AutomationAccountModuleCollection(client, Id)); + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} + /// + /// + /// Operation Id + /// Module_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The module name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetAutomationAccountModuleAsync(string moduleName, CancellationToken cancellationToken = default) { - return await GetAutomationConnectionTypes().GetAsync(connectionTypeName, cancellationToken).ConfigureAwait(false); + return await GetAutomationAccountModules().GetAsync(moduleName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the connection type identified by connection type name. + /// Retrieve the module identified by module name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} /// /// /// Operation Id - /// ConnectionType_Get + /// Module_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of connection type. + /// The module name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationConnectionType(string connectionTypeName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationAccountModule(string moduleName, CancellationToken cancellationToken = default) { - return GetAutomationConnectionTypes().Get(connectionTypeName, cancellationToken); + return GetAutomationAccountModules().Get(moduleName, cancellationToken); } - /// Gets a collection of AutomationCredentialResources in the AutomationAccount. - /// An object representing collection of AutomationCredentialResources and their operations over a AutomationCredentialResource. - public virtual AutomationCredentialCollection GetAutomationCredentials() + /// Gets a collection of AutomationAccountPython2PackageResources in the AutomationAccount. + /// An object representing collection of AutomationAccountPython2PackageResources and their operations over a AutomationAccountPython2PackageResource. + public virtual AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() { - return GetCachedClient(client => new AutomationCredentialCollection(client, Id)); + return GetCachedClient(client => new AutomationAccountPython2PackageCollection(client, Id)); } /// - /// Retrieve the credential identified by credential name. + /// Retrieve the python 2 package identified by package name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} /// /// /// Operation Id - /// Credential_Get + /// Python2Package_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of credential. + /// The python package name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationCredentialAsync(string credentialName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationAccountPython2PackageAsync(string packageName, CancellationToken cancellationToken = default) { - return await GetAutomationCredentials().GetAsync(credentialName, cancellationToken).ConfigureAwait(false); + return await GetAutomationAccountPython2Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the credential identified by credential name. + /// Retrieve the python 2 package identified by package name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} /// /// /// Operation Id - /// Credential_Get + /// Python2Package_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of credential. + /// The python package name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationCredential(string credentialName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationAccountPython2Package(string packageName, CancellationToken cancellationToken = default) { - return GetAutomationCredentials().Get(credentialName, cancellationToken); + return GetAutomationAccountPython2Packages().Get(packageName, cancellationToken); } - /// Gets a collection of AutomationJobScheduleResources in the AutomationAccount. - /// An object representing collection of AutomationJobScheduleResources and their operations over a AutomationJobScheduleResource. - public virtual AutomationJobScheduleCollection GetAutomationJobSchedules() + /// Gets a collection of AutomationAccountPython3PackageResources in the AutomationAccount. + /// An object representing collection of AutomationAccountPython3PackageResources and their operations over a AutomationAccountPython3PackageResource. + public virtual AutomationAccountPython3PackageCollection GetAutomationAccountPython3Packages() { - return GetCachedClient(client => new AutomationJobScheduleCollection(client, Id)); + return GetCachedClient(client => new AutomationAccountPython3PackageCollection(client, Id)); } /// - /// Retrieve the job schedule identified by job schedule name. + /// Retrieve the python 3 package identified by package name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} /// /// /// Operation Id - /// JobSchedule_Get + /// Python3Package_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The job schedule name. + /// The python package name. /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationAccountPython3PackageAsync(string packageName, CancellationToken cancellationToken = default) { - return await GetAutomationJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false); + return await GetAutomationAccountPython3Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the job schedule identified by job schedule name. + /// Retrieve the python 3 package identified by package name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} /// /// /// Operation Id - /// JobSchedule_Get + /// Python3Package_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The job schedule name. + /// The python package name. /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual Response GetAutomationAccountPython3Package(string packageName, CancellationToken cancellationToken = default) { - return GetAutomationJobSchedules().Get(jobScheduleId, cancellationToken); + return GetAutomationAccountPython3Packages().Get(packageName, cancellationToken); } - /// Gets a collection of AutomationScheduleResources in the AutomationAccount. - /// An object representing collection of AutomationScheduleResources and their operations over a AutomationScheduleResource. - public virtual AutomationScheduleCollection GetAutomationSchedules() + /// Gets a collection of AutomationPrivateEndpointConnectionResources in the AutomationAccount. + /// An object representing collection of AutomationPrivateEndpointConnectionResources and their operations over a AutomationPrivateEndpointConnectionResource. + public virtual AutomationPrivateEndpointConnectionCollection GetAutomationPrivateEndpointConnections() { - return GetCachedClient(client => new AutomationScheduleCollection(client, Id)); + return GetCachedClient(client => new AutomationPrivateEndpointConnectionCollection(client, Id)); } /// - /// Retrieve the schedule identified by schedule name. + /// Gets a private endpoint connection. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName} /// /// /// Operation Id - /// Schedule_Get + /// PrivateEndpointConnections_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The schedule name. + /// The name of the private endpoint connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationScheduleAsync(string scheduleName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { - return await GetAutomationSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false); + return await GetAutomationPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the schedule identified by schedule name. + /// Gets a private endpoint connection. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName} /// /// /// Operation Id - /// Schedule_Get + /// PrivateEndpointConnections_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The schedule name. + /// The name of the private endpoint connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationSchedule(string scheduleName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { - return GetAutomationSchedules().Get(scheduleName, cancellationToken); + return GetAutomationPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } - /// Gets a collection of AutomationVariableResources in the AutomationAccount. - /// An object representing collection of AutomationVariableResources and their operations over a AutomationVariableResource. - public virtual AutomationVariableCollection GetAutomationVariables() + /// Gets a collection of AutomationRunbookResources in the AutomationAccount. + /// An object representing collection of AutomationRunbookResources and their operations over a AutomationRunbookResource. + public virtual AutomationRunbookCollection GetAutomationRunbooks() { - return GetCachedClient(client => new AutomationVariableCollection(client, Id)); + return GetCachedClient(client => new AutomationRunbookCollection(client, Id)); } /// - /// Retrieve the variable identified by variable name. + /// Retrieve the runbook identified by runbook name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName} /// /// /// Operation Id - /// Variable_Get + /// Runbook_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of variable. + /// The runbook name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationVariableAsync(string variableName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationRunbookAsync(string runbookName, CancellationToken cancellationToken = default) { - return await GetAutomationVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false); + return await GetAutomationRunbooks().GetAsync(runbookName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the variable identified by variable name. + /// Retrieve the runbook identified by runbook name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName} /// /// /// Operation Id - /// Variable_Get + /// Runbook_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of variable. + /// The runbook name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationVariable(string variableName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationRunbook(string runbookName, CancellationToken cancellationToken = default) { - return GetAutomationVariables().Get(variableName, cancellationToken); + return GetAutomationRunbooks().Get(runbookName, cancellationToken); } - /// Gets a collection of AutomationWatcherResources in the AutomationAccount. - /// An object representing collection of AutomationWatcherResources and their operations over a AutomationWatcherResource. - public virtual AutomationWatcherCollection GetAutomationWatchers() + /// Gets a collection of RuntimeEnvironmentResources in the AutomationAccount. + /// An object representing collection of RuntimeEnvironmentResources and their operations over a RuntimeEnvironmentResource. + public virtual RuntimeEnvironmentCollection GetRuntimeEnvironments() { - return GetCachedClient(client => new AutomationWatcherCollection(client, Id)); + return GetCachedClient(client => new RuntimeEnvironmentCollection(client, Id)); } /// - /// Retrieve the watcher identified by watcher name. + /// Get information about the Runtime Environment /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} /// /// /// Operation Id - /// Watcher_Get + /// RuntimeEnvironments_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The watcher name. + /// The name of the Runtime Environment. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationWatcherAsync(string watcherName, CancellationToken cancellationToken = default) + public virtual async Task> GetRuntimeEnvironmentAsync(string runtimeEnvironmentName, CancellationToken cancellationToken = default) { - return await GetAutomationWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false); + return await GetRuntimeEnvironments().GetAsync(runtimeEnvironmentName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the watcher identified by watcher name. + /// Get information about the Runtime Environment /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} /// /// /// Operation Id - /// Watcher_Get + /// RuntimeEnvironments_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The watcher name. + /// The name of the Runtime Environment. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationWatcher(string watcherName, CancellationToken cancellationToken = default) + public virtual Response GetRuntimeEnvironment(string runtimeEnvironmentName, CancellationToken cancellationToken = default) { - return GetAutomationWatchers().Get(watcherName, cancellationToken); + return GetRuntimeEnvironments().Get(runtimeEnvironmentName, cancellationToken); } - /// Gets a collection of DscConfigurationResources in the AutomationAccount. - /// An object representing collection of DscConfigurationResources and their operations over a DscConfigurationResource. - public virtual DscConfigurationCollection GetDscConfigurations() + /// Gets a collection of AutomationScheduleResources in the AutomationAccount. + /// An object representing collection of AutomationScheduleResources and their operations over a AutomationScheduleResource. + public virtual AutomationScheduleCollection GetAutomationSchedules() { - return GetCachedClient(client => new DscConfigurationCollection(client, Id)); + return GetCachedClient(client => new AutomationScheduleCollection(client, Id)); } /// - /// Retrieve the configuration identified by configuration name. + /// Retrieve the schedule identified by schedule name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} /// /// /// Operation Id - /// DscConfiguration_Get + /// Schedule_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The configuration name. + /// The schedule name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationScheduleAsync(string scheduleName, CancellationToken cancellationToken = default) { - return await GetDscConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + return await GetAutomationSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the configuration identified by configuration name. + /// Retrieve the schedule identified by schedule name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} /// /// /// Operation Id - /// DscConfiguration_Get + /// Schedule_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The configuration name. + /// The schedule name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscConfiguration(string configurationName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationSchedule(string scheduleName, CancellationToken cancellationToken = default) { - return GetDscConfigurations().Get(configurationName, cancellationToken); + return GetAutomationSchedules().Get(scheduleName, cancellationToken); } - /// Gets a collection of AutomationJobResources in the AutomationAccount. - /// An object representing collection of AutomationJobResources and their operations over a AutomationJobResource. - public virtual AutomationJobCollection GetAutomationJobs() + /// Gets a collection of AutomationSourceControlResources in the AutomationAccount. + /// An object representing collection of AutomationSourceControlResources and their operations over a AutomationSourceControlResource. + public virtual AutomationSourceControlCollection GetAutomationSourceControls() { - return GetCachedClient(client => new AutomationJobCollection(client, Id)); + return GetCachedClient(client => new AutomationSourceControlCollection(client, Id)); } /// - /// Retrieve the job identified by job name. + /// Retrieve the source control identified by source control name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} /// /// /// Operation Id - /// Job_Get + /// SourceControl_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The job name. - /// Identifies this specific client request. + /// The name of source control. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationJobAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default) { - return await GetAutomationJobs().GetAsync(jobName, clientRequestId, cancellationToken).ConfigureAwait(false); + return await GetAutomationSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the job identified by job name. + /// Retrieve the source control identified by source control name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} /// /// /// Operation Id - /// Job_Get + /// SourceControl_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The job name. - /// Identifies this specific client request. + /// The name of source control. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationJob(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetAutomationSourceControl(string sourceControlName, CancellationToken cancellationToken = default) { - return GetAutomationJobs().Get(jobName, clientRequestId, cancellationToken); + return GetAutomationSourceControls().Get(sourceControlName, cancellationToken); } - /// Gets a collection of SoftwareUpdateConfigurationResources in the AutomationAccount. - /// An object representing collection of SoftwareUpdateConfigurationResources and their operations over a SoftwareUpdateConfigurationResource. - public virtual SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() + /// Gets a collection of AutomationVariableResources in the AutomationAccount. + /// An object representing collection of AutomationVariableResources and their operations over a AutomationVariableResource. + public virtual AutomationVariableCollection GetAutomationVariables() { - return GetCachedClient(client => new SoftwareUpdateConfigurationCollection(client, Id)); + return GetCachedClient(client => new AutomationVariableCollection(client, Id)); } /// - /// Get a single software update configuration by name. + /// Retrieve the variable identified by variable name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} /// /// /// Operation Id - /// SoftwareUpdateConfigurations_GetByName + /// Variable_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of the software update configuration to be created. - /// Identifies this specific client request. + /// The name of variable. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationVariableAsync(string variableName, CancellationToken cancellationToken = default) { - return await GetSoftwareUpdateConfigurations().GetAsync(softwareUpdateConfigurationName, clientRequestId, cancellationToken).ConfigureAwait(false); + return await GetAutomationVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false); } /// - /// Get a single software update configuration by name. + /// Retrieve the variable identified by variable name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} /// /// /// Operation Id - /// SoftwareUpdateConfigurations_GetByName + /// Variable_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The name of the software update configuration to be created. - /// Identifies this specific client request. + /// The name of variable. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetAutomationVariable(string variableName, CancellationToken cancellationToken = default) { - return GetSoftwareUpdateConfigurations().Get(softwareUpdateConfigurationName, clientRequestId, cancellationToken); + return GetAutomationVariables().Get(variableName, cancellationToken); } - /// Gets a collection of AutomationRunbookResources in the AutomationAccount. - /// An object representing collection of AutomationRunbookResources and their operations over a AutomationRunbookResource. - public virtual AutomationRunbookCollection GetAutomationRunbooks() + /// Gets a collection of AutomationWatcherResources in the AutomationAccount. + /// An object representing collection of AutomationWatcherResources and their operations over a AutomationWatcherResource. + public virtual AutomationWatcherCollection GetAutomationWatchers() { - return GetCachedClient(client => new AutomationRunbookCollection(client, Id)); + return GetCachedClient(client => new AutomationWatcherCollection(client, Id)); } /// - /// Retrieve the runbook identified by runbook name. + /// Retrieve the watcher identified by watcher name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} /// /// /// Operation Id - /// Runbook_Get + /// Watcher_Get /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The runbook name. + /// The watcher name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationRunbookAsync(string runbookName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationWatcherAsync(string watcherName, CancellationToken cancellationToken = default) { - return await GetAutomationRunbooks().GetAsync(runbookName, cancellationToken).ConfigureAwait(false); + return await GetAutomationWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the runbook identified by runbook name. + /// Retrieve the watcher identified by watcher name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} /// /// /// Operation Id - /// Runbook_Get + /// Watcher_Get /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The runbook name. + /// The watcher name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationRunbook(string runbookName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationWatcher(string watcherName, CancellationToken cancellationToken = default) { - return GetAutomationRunbooks().Get(runbookName, cancellationToken); + return GetAutomationWatchers().Get(watcherName, cancellationToken); } /// Gets a collection of AutomationWebhookResources in the AutomationAccount. @@ -1480,7 +1609,7 @@ public virtual AutomationWebhookCollection GetAutomationWebhooks() /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -1511,7 +1640,7 @@ public virtual async Task> GetAutomationWebh /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -1529,75 +1658,6 @@ public virtual Response GetAutomationWebhook(string w return GetAutomationWebhooks().Get(webhookName, cancellationToken); } - /// Gets a collection of HybridRunbookWorkerGroupResources in the AutomationAccount. - /// An object representing collection of HybridRunbookWorkerGroupResources and their operations over a HybridRunbookWorkerGroupResource. - public virtual HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() - { - return GetCachedClient(client => new HybridRunbookWorkerGroupCollection(client, Id)); - } - - /// - /// Retrieve a hybrid runbook worker group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} - /// - /// - /// Operation Id - /// HybridRunbookWorkerGroup_Get - /// - /// - /// Default Api Version - /// 2022-02-22 - /// - /// - /// Resource - /// - /// - /// - /// - /// The hybrid runbook worker group name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetHybridRunbookWorkerGroupAsync(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) - { - return await GetHybridRunbookWorkerGroups().GetAsync(hybridRunbookWorkerGroupName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Retrieve a hybrid runbook worker group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} - /// - /// - /// Operation Id - /// HybridRunbookWorkerGroup_Get - /// - /// - /// Default Api Version - /// 2022-02-22 - /// - /// - /// Resource - /// - /// - /// - /// - /// The hybrid runbook worker group name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetHybridRunbookWorkerGroup(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) - { - return GetHybridRunbookWorkerGroups().Get(hybridRunbookWorkerGroupName, cancellationToken); - } - /// /// Get information about an Automation Account. /// @@ -1611,7 +1671,7 @@ public virtual Response GetHybridRunbookWorker /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -1651,7 +1711,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -1691,7 +1751,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -1735,7 +1795,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -1779,7 +1839,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -1817,37 +1877,89 @@ public virtual async Task> UpdateAsync(Autom /// /// /// Operation Id - /// AutomationAccount_Update + /// AutomationAccount_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// Parameters supplied to the update automation account. + /// The cancellation token to use. + /// is null. + public virtual Response Update(AutomationAccountPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _automationAccountClientDiagnostics.CreateScope("AutomationAccountResource.Update"); + scope.Start(); + try + { + var response = _automationAccountRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationAccountResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType} + /// + /// + /// Operation Id + /// NodeCountInformation_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// + /// The type of counts to retrieve. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllNodeCountInformationAsync(AutomationCountType countType, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); + } + + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType} + /// + /// + /// Operation Id + /// NodeCountInformation_Get /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2024-10-23 /// /// /// - /// Parameters supplied to the update automation account. + /// The type of counts to retrieve. /// The cancellation token to use. - /// is null. - public virtual Response Update(AutomationAccountPatch patch, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAllNodeCountInformation(AutomationCountType countType, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _automationAccountClientDiagnostics.CreateScope("AutomationAccountResource.Update"); - scope.Start(); - try - { - var response = _automationAccountRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new AutomationAccountResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); } /// @@ -1863,7 +1975,7 @@ public virtual Response Update(AutomationAccountPatch /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -1888,7 +2000,7 @@ public virtual AsyncPageable AutomationPrivateLin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -1913,7 +2025,7 @@ public virtual Pageable AutomationPrivateLinkReso /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -1947,7 +2059,7 @@ public virtual async Task> GetAgentRegistrationInfor /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -1981,7 +2093,7 @@ public virtual Response GetAgentRegistrationInformation(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -2019,7 +2131,7 @@ public virtual async Task> RegenerateKeyAgentRegistr /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -2045,195 +2157,63 @@ public virtual Response RegenerateKeyAgentRegistrationInforma } /// - /// Retrieve the job stream identified by job stream id. + /// Retrieve the deleted runbooks for an automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listDeletedRunbooks /// /// /// Operation Id - /// DscCompilationJob_GetStream + /// AutomationAccount_ListDeletedRunbooks /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// + /// /// /// /// - /// The job id. - /// The job stream id. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetStreamDscCompilationJobAsync(Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetDeletedRunbooksAsync(CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("AutomationAccountResource.GetStreamDscCompilationJob"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.GetStreamAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobId, jobStreamId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountRestClient.CreateListDeletedRunbooksRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountRestClient.CreateListDeletedRunbooksNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => DeletedRunbook.DeserializeDeletedRunbook(e), _automationAccountClientDiagnostics, Pipeline, "AutomationAccountResource.GetDeletedRunbooks", "value", "nextLink", cancellationToken); } /// - /// Retrieve the job stream identified by job stream id. + /// Retrieve the deleted runbooks for an automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listDeletedRunbooks /// /// /// Operation Id - /// DscCompilationJob_GetStream + /// AutomationAccount_ListDeletedRunbooks /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource - /// - /// - /// - /// - /// The job id. - /// The job stream id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetStreamDscCompilationJob(Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("AutomationAccountResource.GetStreamDscCompilationJob"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.GetStream(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobId, jobStreamId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieve all the job streams for the compilation Job. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams - /// - /// - /// Operation Id - /// DscCompilationJobStream_ListByJob - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// - /// The job id. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDscCompilationJobStreamsAsync(Guid jobId, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _dscCompilationJobStreamRestClient.CreateListByJobRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => AutomationJobStream.DeserializeAutomationJobStream(e), _dscCompilationJobStreamClientDiagnostics, Pipeline, "AutomationAccountResource.GetDscCompilationJobStreams", "value", null, cancellationToken); - } - - /// - /// Retrieve all the job streams for the compilation Job. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams - /// - /// - /// Operation Id - /// DscCompilationJobStream_ListByJob - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// - /// The job id. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDscCompilationJobStreams(Guid jobId, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _dscCompilationJobStreamRestClient.CreateListByJobRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => AutomationJobStream.DeserializeAutomationJobStream(e), _dscCompilationJobStreamClientDiagnostics, Pipeline, "AutomationAccountResource.GetDscCompilationJobStreams", "value", null, cancellationToken); - } - - /// - /// Retrieve counts for Dsc Nodes. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType} - /// - /// - /// Operation Id - /// NodeCountInformation_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// - /// The type of counts to retrieve. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllNodeCountInformationAsync(AutomationCountType countType, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); - } - - /// - /// Retrieve counts for Dsc Nodes. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType} - /// - /// - /// Operation Id - /// NodeCountInformation_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview + /// /// /// /// - /// The type of counts to retrieve. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAllNodeCountInformation(AutomationCountType countType, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetDeletedRunbooks(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountRestClient.CreateListDeletedRunbooksRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountRestClient.CreateListDeletedRunbooksNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => DeletedRunbook.DeserializeDeletedRunbook(e), _automationAccountClientDiagnostics, Pipeline, "AutomationAccountResource.GetDeletedRunbooks", "value", "nextLink", cancellationToken); } /// @@ -2249,7 +2229,7 @@ public virtual Pageable GetAllNodeCountInformation(AutomationCount /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2275,7 +2255,7 @@ public virtual AsyncPageable GetStatisticsAsync(str /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2301,7 +2281,7 @@ public virtual Pageable GetStatistics(string filter /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2326,7 +2306,7 @@ public virtual AsyncPageable GetUsagesAsync(CancellationToken c /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2351,7 +2331,7 @@ public virtual Pageable GetUsages(CancellationToken cancellatio /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2376,7 +2356,7 @@ public virtual AsyncPageable GetAutomationAccountKeysAsync(Cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2401,7 +2381,7 @@ public virtual Pageable GetAutomationAccountKeys(CancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -2435,7 +2415,7 @@ public virtual async Task> GetLinkedWorkspac /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -2469,7 +2449,7 @@ public virtual Response GetLinkedWorkspace(Cancellati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -2499,7 +2479,7 @@ public virtual AsyncPageable GetFieldsByTypeAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -2529,7 +2509,7 @@ public virtual Pageable GetFieldsByType(string typeName, /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2567,7 +2547,7 @@ public virtual async Task> ConvertGraphRunbook /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// @@ -2593,32 +2573,32 @@ public virtual Response ConvertGraphRunbookContent(Grap } /// - /// Get a single software update configuration Run by Id. + /// Get a single software update configuration machine run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_GetById + /// SoftwareUpdateConfigurationMachineRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// - /// The Id of the software update configuration run. + /// The Id of the software update configuration machine run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetSoftwareUpdateConfigurationRunAsync(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationMachineRunAsync(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); + using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); scope.Start(); try { - var response = await _softwareUpdateConfigurationRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _softwareUpdateConfigurationMachineRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -2629,32 +2609,32 @@ public virtual async Task> GetSoftwareU } /// - /// Get a single software update configuration Run by Id. + /// Get a single software update configuration machine run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_GetById + /// SoftwareUpdateConfigurationMachineRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// - /// The Id of the software update configuration run. + /// The Id of the software update configuration machine run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response GetSoftwareUpdateConfigurationRun(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfigurationMachineRun(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); + using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); scope.Start(); try { - var response = _softwareUpdateConfigurationRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken); + var response = _softwareUpdateConfigurationMachineRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -2665,90 +2645,90 @@ public virtual Response GetSoftwareUpdateConfigu } /// - /// Return list of software update configuration runs + /// Return list of software update configuration machine runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_List + /// SoftwareUpdateConfigurationMachineRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// Number of entries you skip before returning results. + /// number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSoftwareUpdateConfigurationRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSoftwareUpdateConfigurationMachineRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); } /// - /// Return list of software update configuration runs + /// Return list of software update configuration machine runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_List + /// SoftwareUpdateConfigurationMachineRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// Number of entries you skip before returning results. + /// number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSoftwareUpdateConfigurationRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSoftwareUpdateConfigurationMachineRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); } /// - /// Get a single software update configuration machine run by Id. + /// Get a single software update configuration Run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_GetById + /// SoftwareUpdateConfigurationRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// - /// The Id of the software update configuration machine run. + /// The Id of the software update configuration run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetSoftwareUpdateConfigurationMachineRunAsync(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationRunAsync(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); + using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); scope.Start(); try { - var response = await _softwareUpdateConfigurationMachineRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _softwareUpdateConfigurationRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -2759,32 +2739,32 @@ public virtual async Task> GetSo } /// - /// Get a single software update configuration machine run by Id. + /// Get a single software update configuration Run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_GetById + /// SoftwareUpdateConfigurationRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// - /// The Id of the software update configuration machine run. + /// The Id of the software update configuration run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response GetSoftwareUpdateConfigurationMachineRun(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfigurationRun(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); + using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); scope.Start(); try { - var response = _softwareUpdateConfigurationMachineRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken); + var response = _softwareUpdateConfigurationRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -2795,61 +2775,61 @@ public virtual Response GetSoftwareUpdate } /// - /// Return list of software update configuration machine runs + /// Return list of software update configuration runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_List + /// SoftwareUpdateConfigurationRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// number of entries you skip before returning results. + /// Number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSoftwareUpdateConfigurationMachineRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSoftwareUpdateConfigurationRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); } /// - /// Return list of software update configuration machine runs + /// Return list of software update configuration runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_List + /// SoftwareUpdateConfigurationRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// number of entries you skip before returning results. + /// Number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSoftwareUpdateConfigurationMachineRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSoftwareUpdateConfigurationRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); } /// @@ -2865,7 +2845,7 @@ public virtual Pageable GetSoftwareUpdate /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -2903,7 +2883,7 @@ public virtual async Task> GenerateUriWebhookAsync(Cancellation /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -2941,7 +2921,7 @@ public virtual Response GenerateUriWebhook(CancellationToken cancellatio /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -3003,7 +2983,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -3065,7 +3045,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -3122,7 +3102,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -3179,7 +3159,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -3239,7 +3219,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs index d4ee4435e12f..21c269cf1ccc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string certificateNam /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string certificateName, Ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string certificateName, CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs index 20697dff115e..04b762c29af9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(A /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs index f9160e51dfc4..d51c0dd947d4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string connectionName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs index 0efa3d1ccd4f..55ac9df15513 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Au /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs index f91a16ae25c9..42bc22a817de 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string connectionT /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string connectionTypeName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string connectionTypeName, CancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs index b275d8c67701..c1e3cc7a0c48 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs index 3686c4e813fc..b9df53971382 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string credentialName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string credentialName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string credentialName, CancellationToken ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs index b5c3185d843a..5a69eb71f740 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Au /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs index c4941eb78edd..82c51627cdd1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string jobNa /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual Response Get(string jobName, string client /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual async Task> ExistsAsync(string jobName, string cli /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual Response Exists(string jobName, string clientRequestId = nu /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -459,7 +459,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.Serialization.cs index 49c09e4ef5fe..3b736aba7bbf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.Serialization.cs @@ -54,6 +54,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("runOn"u8); writer.WriteStringValue(RunOn); } + if (Optional.IsDefined(JobRuntimeEnvironment)) + { + writer.WritePropertyName("jobRuntimeEnvironment"u8); + writer.WriteObjectValue(JobRuntimeEnvironment, options); + } if (Optional.IsDefined(JobId)) { writer.WritePropertyName("jobId"u8); @@ -138,7 +143,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndObject(); } - if (Optional.IsDefined(ProvisioningState)) + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState.Value.ToString()); @@ -173,6 +178,7 @@ internal static AutomationJobData DeserializeAutomationJobData(JsonElement eleme RunbookAssociationProperty runbook = default; string startedBy = default; string runOn = default; + JobRuntimeEnvironment jobRuntimeEnvironment = default; Guid? jobId = default; DateTimeOffset? creationTime = default; AutomationJobStatus? status = default; @@ -240,6 +246,15 @@ internal static AutomationJobData DeserializeAutomationJobData(JsonElement eleme runOn = property0.Value.GetString(); continue; } + if (property0.NameEquals("jobRuntimeEnvironment"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + jobRuntimeEnvironment = JobRuntimeEnvironment.DeserializeJobRuntimeEnvironment(property0.Value, options); + continue; + } if (property0.NameEquals("jobId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -357,6 +372,7 @@ internal static AutomationJobData DeserializeAutomationJobData(JsonElement eleme runbook, startedBy, runOn, + jobRuntimeEnvironment, jobId, creationTime, status, diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs index d148193dde19..809ff947fc18 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs @@ -65,6 +65,7 @@ public AutomationJobData() /// Gets or sets the runbook. /// Gets or sets the job started by. /// Gets or sets the runOn which specifies the group name where the job is to be executed. + /// Runtime Environment Property. /// Gets or sets the id of the job. /// Gets or sets the creation time of the job. /// Gets or sets the status of the job. @@ -77,11 +78,12 @@ public AutomationJobData() /// Gets or sets the parameters of the job. /// The current provisioning state of the job. /// Keeps track of any properties unknown to the library. - internal AutomationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, string startedBy, string runOn, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters, JobProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AutomationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, string startedBy, string runOn, JobRuntimeEnvironment jobRuntimeEnvironment, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters, JobProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Runbook = runbook; StartedBy = startedBy; RunOn = runOn; + JobRuntimeEnvironment = jobRuntimeEnvironment; JobId = jobId; CreatedOn = createdOn; Status = status; @@ -114,6 +116,20 @@ public string RunbookName public string StartedBy { get; set; } /// Gets or sets the runOn which specifies the group name where the job is to be executed. public string RunOn { get; set; } + /// Runtime Environment Property. + internal JobRuntimeEnvironment JobRuntimeEnvironment { get; set; } + /// Name of Runtime Environment. + public string RuntimeEnvironmentName + { + get => JobRuntimeEnvironment is null ? default : JobRuntimeEnvironment.RuntimeEnvironmentName; + set + { + if (JobRuntimeEnvironment is null) + JobRuntimeEnvironment = new JobRuntimeEnvironment(); + JobRuntimeEnvironment.RuntimeEnvironmentName = value; + } + } + /// Gets or sets the id of the job. public Guid? JobId { get; set; } /// Gets or sets the creation time of the job. @@ -135,6 +151,6 @@ public string RunbookName /// Gets or sets the parameters of the job. public IDictionary Parameters { get; } /// The current provisioning state of the job. - public JobProvisioningState? ProvisioningState { get; set; } + public JobProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs index c6304aca76a8..4cd51e109f6b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsync(string clien /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -189,7 +189,7 @@ public virtual Response Get(string clientRequestId = null /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -238,7 +238,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, A /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -326,7 +326,7 @@ public virtual async Task> GetOutputAsync(string clientRequestI /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual Response GetOutput(string clientRequestId = null, Cancell /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task> GetRunbookContentAsync(string client /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual Response GetRunbookContent(string clientRequestId = null, /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task SuspendAsync(string clientRequestId = null, /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -521,7 +521,7 @@ public virtual Response Suspend(string clientRequestId = null, CancellationToken /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -560,7 +560,7 @@ public virtual async Task StopAsync(string clientRequestId = null, Can /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual Response Stop(string clientRequestId = null, CancellationToken ca /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -638,7 +638,7 @@ public virtual async Task ResumeAsync(string clientRequestId = null, C /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -677,7 +677,7 @@ public virtual Response Resume(string clientRequestId = null, CancellationToken /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// @@ -717,7 +717,7 @@ public virtual async Task> GetJobStreamAsync(strin /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// @@ -757,7 +757,7 @@ public virtual Response GetJobStream(string jobStreamId, st /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// @@ -785,7 +785,7 @@ public virtual AsyncPageable GetJobStreamsAsync(string filt /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs index f5f9a7f03cad..49a2cf6f59d5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -204,7 +204,7 @@ public virtual async Task> GetAsync(Guid /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Get(Guid jobScheduleId, C /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -276,7 +276,7 @@ public virtual AsyncPageable GetAllAsync(string f /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -307,7 +307,7 @@ public virtual Pageable GetAll(string filter = nu /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> ExistsAsync(Guid jobScheduleId, Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual Response Exists(Guid jobScheduleId, CancellationToken cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -426,7 +426,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs index 7171133d63b1..967163c482da 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs index 9f46b05cbc44..cdd7f2cb8394 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs @@ -67,7 +67,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri if (Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); + writer.WriteStringValue(ProvisioningState.Value.ToString()); } if (Optional.IsDefined(ContentLink)) { @@ -243,7 +243,7 @@ internal static AutomationModuleData DeserializeAutomationModuleData(JsonElement { continue; } - provisioningState = property0.Value.GetString().ToModuleProvisioningState(); + provisioningState = new ModuleProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("contentLink"u8)) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionCollection.cs index ee2cccd44e68..5706279d3630 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionResource.cs index d385abffd7d1..d1db13907f58 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs index 789477ce3100..390dbf7d90e0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string r /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string runbookName, Cance /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string runbookName, Cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string runbookName, CancellationToken cance /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.Serialization.cs index fa21f82049b9..7827b40ff89c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.Serialization.cs @@ -44,6 +44,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (Optional.IsDefined(RuntimeEnvironment)) + { + writer.WritePropertyName("runtimeEnvironment"u8); + writer.WriteStringValue(RuntimeEnvironment); + } if (Optional.IsDefined(RunbookType)) { writer.WritePropertyName("runbookType"u8); @@ -160,6 +165,7 @@ internal static AutomationRunbookData DeserializeAutomationRunbookData(JsonEleme string name = default; ResourceType type = default; SystemData systemData = default; + string runtimeEnvironment = default; AutomationRunbookType? runbookType = default; AutomationContentLink publishContentLink = default; RunbookState? state = default; @@ -240,6 +246,11 @@ internal static AutomationRunbookData DeserializeAutomationRunbookData(JsonEleme } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("runtimeEnvironment"u8)) + { + runtimeEnvironment = property0.Value.GetString(); + continue; + } if (property0.NameEquals("runbookType"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -394,6 +405,7 @@ internal static AutomationRunbookData DeserializeAutomationRunbookData(JsonEleme tags ?? new ChangeTrackingDictionary(), location, etag, + runtimeEnvironment, runbookType, publishContentLink, state, diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs index 098a29353228..50788f13424d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs @@ -67,6 +67,7 @@ public AutomationRunbookData(AzureLocation location) : base(location) /// The tags. /// The location. /// Gets or sets the etag of the resource. + /// Runtime Environment of the runbook execution. /// Gets or sets the type of the runbook. /// Gets or sets the published runbook content link. /// Gets or sets the state of the runbook. @@ -83,9 +84,10 @@ public AutomationRunbookData(AzureLocation location) : base(location) /// Gets or sets the last modified time. /// Gets or sets the description. /// Keeps track of any properties unknown to the library. - internal AutomationRunbookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, AutomationRunbookType? runbookType, AutomationContentLink publishContentLink, RunbookState? state, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, int? logActivityTrace, int? jobCount, IDictionary parameters, IList outputTypes, AutomationRunbookDraft draft, RunbookProvisioningState? provisioningState, string lastModifiedBy, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal AutomationRunbookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, string runtimeEnvironment, AutomationRunbookType? runbookType, AutomationContentLink publishContentLink, RunbookState? state, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, int? logActivityTrace, int? jobCount, IDictionary parameters, IList outputTypes, AutomationRunbookDraft draft, RunbookProvisioningState? provisioningState, string lastModifiedBy, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; + RuntimeEnvironment = runtimeEnvironment; RunbookType = runbookType; PublishContentLink = publishContentLink; State = state; @@ -111,6 +113,8 @@ internal AutomationRunbookData() /// Gets or sets the etag of the resource. public ETag? ETag { get; set; } + /// Runtime Environment of the runbook execution. + public string RuntimeEnvironment { get; set; } /// Gets or sets the type of the runbook. public AutomationRunbookType? RunbookType { get; set; } /// Gets or sets the published runbook content link. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs index 66b345cff346..338f20487532 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs @@ -117,7 +117,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -197,7 +197,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -327,7 +327,7 @@ public virtual async Task> UpdateAsync(Autom /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual Response Update(AutomationRunbookPatch /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -403,7 +403,7 @@ public virtual async Task> GetContentRunbookDraftAsync(Cancella /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -437,7 +437,7 @@ public virtual Response GetContentRunbookDraft(CancellationToken cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -471,7 +471,7 @@ public virtual async Task> GetRunbookDraftAsync /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -505,7 +505,7 @@ public virtual Response GetRunbookDraft(CancellationToke /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -539,7 +539,7 @@ public virtual async Task> UndoEditRunbookD /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -573,7 +573,7 @@ public virtual Response UndoEditRunbookDraft(Cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -615,7 +615,7 @@ public virtual async Task PublishAsync(WaitUntil waitUntil, Cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -657,7 +657,7 @@ public virtual ArmOperation Publish(WaitUntil waitUntil, CancellationToken cance /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -695,7 +695,7 @@ public virtual async Task> GetContentAsync(CancellationToken ca /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -733,7 +733,7 @@ public virtual Response GetContent(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -772,7 +772,7 @@ public virtual async Task> GetTestJobStreamAsync(s /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -811,7 +811,7 @@ public virtual Response GetTestJobStream(string jobStreamId /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -838,7 +838,7 @@ public virtual AsyncPageable GetTestJobStreamsAsync(string /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -865,7 +865,7 @@ public virtual Pageable GetTestJobStreams(string filter = n /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -903,7 +903,7 @@ public virtual async Task> CreateTestJobAsync(RunbookTe /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -941,7 +941,7 @@ public virtual Response CreateTestJob(RunbookTestJobCreateConten /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -975,7 +975,7 @@ public virtual async Task> GetTestJobAsync(Cancellation /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1009,7 +1009,7 @@ public virtual Response GetTestJob(CancellationToken cancellatio /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1043,7 +1043,7 @@ public virtual async Task ResumeTestJobAsync(CancellationToken cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1077,7 +1077,7 @@ public virtual Response ResumeTestJob(CancellationToken cancellationToken = defa /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1111,7 +1111,7 @@ public virtual async Task StopTestJobAsync(CancellationToken cancellat /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1145,7 +1145,7 @@ public virtual Response StopTestJob(CancellationToken cancellationToken = defaul /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1179,7 +1179,7 @@ public virtual async Task SuspendTestJobAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// @@ -1213,7 +1213,7 @@ public virtual Response SuspendTestJob(CancellationToken cancellationToken = def /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -1275,7 +1275,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -1337,7 +1337,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -1394,7 +1394,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -1451,7 +1451,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource @@ -1511,7 +1511,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2018-06-30 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs index 9f6c1fb58e00..1453ca9fed14 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string scheduleName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string scheduleName, Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string scheduleName, CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs index a76dc9ac60f2..a9eadccef816 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Auto /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs index 9d7ef82901df..3ba47ad8da49 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string sourceContro /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string sourceControlName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string sourceControlName, CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs index 3c4669f18db7..192dd6278e91 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs @@ -111,7 +111,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -191,7 +191,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -235,7 +235,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual Response Update(AutomationSource /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -402,7 +402,7 @@ public virtual async Task> CreateSourceControlSyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -441,7 +441,7 @@ public virtual Response CreateSourceControlSyncJob(Guid so /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -476,7 +476,7 @@ public virtual async Task> GetSourceControl /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -511,7 +511,7 @@ public virtual Response GetSourceControlSyncJob(Guid /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -538,7 +538,7 @@ public virtual AsyncPageable GetSourceControlSyncJobsAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -565,7 +565,7 @@ public virtual Pageable GetSourceControlSyncJobs(string fi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -593,7 +593,7 @@ public virtual AsyncPageable GetSourceControlSyncJob /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -621,7 +621,7 @@ public virtual Pageable GetSourceControlSyncJobStrea /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -661,7 +661,7 @@ public virtual async Task> GetSourceC /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs index 376d47f56a3f..ec9c70703522 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string variableName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string variableName, Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string variableName, CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs index 22c2d16dcccf..34c303f41ad1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Auto /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs index 16ab64e1e8f2..d78229f38736 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string w /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string watcherName, Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(string filte /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(string filter = null, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -361,7 +361,7 @@ public virtual async Task> ExistsAsync(string watcherName, Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual Response Exists(string watcherName, CancellationToken cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs index fde91675c186..c973dc9c9881 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Autom /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual Response Update(AutomationWatcherPatch /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -392,7 +392,7 @@ public virtual async Task StartAsync(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -430,7 +430,7 @@ public virtual Response Start(CancellationToken cancellationToken = default) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -468,7 +468,7 @@ public virtual async Task StopAsync(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs index a10f7b703490..43fba4ddd268 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string w /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string webhookName, Cance /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string filte /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = null, /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string webhookName, Cancel /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string webhookName, CancellationToken cance /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs index bb43c904aa18..8510a092b40e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Autom /// /// /// Default Api Version - /// 2015-10-31 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobCollection.cs deleted file mode 100644 index 825d259078e0..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobCollection.cs +++ /dev/null @@ -1,496 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Automation.Models; - -namespace Azure.ResourceManager.Automation -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetDscCompilationJobs method from an instance of . - /// - public partial class DscCompilationJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _dscCompilationJobClientDiagnostics; - private readonly DscCompilationJobRestOperations _dscCompilationJobRestClient; - - /// Initializes a new instance of the class for mocking. - protected DscCompilationJobCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal DscCompilationJobCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _dscCompilationJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", DscCompilationJobResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(DscCompilationJobResource.ResourceType, out string dscCompilationJobApiVersion); - _dscCompilationJobRestClient = new DscCompilationJobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dscCompilationJobApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != AutomationAccountResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AutomationAccountResource.ResourceType), nameof(id)); - } - - /// - /// Creates the Dsc compilation job of the configuration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Create - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The DSC configuration Id. - /// The parameters supplied to the create compilation job operation. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string compilationJobName, DscCompilationJobCreateOrUpdateContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(new DscCompilationJobOperationSource(Client), _dscCompilationJobClientDiagnostics, Pipeline, _dscCompilationJobRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates the Dsc compilation job of the configuration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Create - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The DSC configuration Id. - /// The parameters supplied to the create compilation job operation. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string compilationJobName, DscCompilationJobCreateOrUpdateContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, content, cancellationToken); - var operation = new AutomationArmOperation(new DscCompilationJobOperationSource(Client), _dscCompilationJobClientDiagnostics, Pipeline, _dscCompilationJobRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieve the Dsc configuration compilation job identified by job id. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The DSC configuration Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string compilationJobName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.Get"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DscCompilationJobResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieve the Dsc configuration compilation job identified by job id. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The DSC configuration Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string compilationJobName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.Get"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DscCompilationJobResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieve a list of dsc compilation jobs. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs - /// - /// - /// Operation Id - /// DscCompilationJob_ListByAutomationAccount - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The filter to apply on the operation. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _dscCompilationJobRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dscCompilationJobRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DscCompilationJobResource(Client, DscCompilationJobData.DeserializeDscCompilationJobData(e)), _dscCompilationJobClientDiagnostics, Pipeline, "DscCompilationJobCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Retrieve a list of dsc compilation jobs. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs - /// - /// - /// Operation Id - /// DscCompilationJob_ListByAutomationAccount - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The filter to apply on the operation. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _dscCompilationJobRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dscCompilationJobRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DscCompilationJobResource(Client, DscCompilationJobData.DeserializeDscCompilationJobData(e)), _dscCompilationJobClientDiagnostics, Pipeline, "DscCompilationJobCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The DSC configuration Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string compilationJobName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.Exists"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The DSC configuration Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string compilationJobName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.Exists"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The DSC configuration Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string compilationJobName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new DscCompilationJobResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The DSC configuration Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string compilationJobName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobCollection.GetIfExists"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, compilationJobName, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new DscCompilationJobResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.Serialization.cs deleted file mode 100644 index 6431b09c19d1..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.Serialization.cs +++ /dev/null @@ -1,397 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.Automation -{ - public partial class DscCompilationJobData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DscCompilationJobData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(Configuration)) - { - writer.WritePropertyName("configuration"u8); - writer.WriteObjectValue(Configuration, options); - } - if (options.Format != "W" && Optional.IsDefined(StartedBy)) - { - writer.WritePropertyName("startedBy"u8); - writer.WriteStringValue(StartedBy); - } - if (options.Format != "W" && Optional.IsDefined(JobId)) - { - writer.WritePropertyName("jobId"u8); - writer.WriteStringValue(JobId.Value); - } - if (options.Format != "W" && Optional.IsDefined(CreatedOn)) - { - writer.WritePropertyName("creationTime"u8); - writer.WriteStringValue(CreatedOn.Value, "O"); - } - if (Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (Optional.IsDefined(RunOn)) - { - writer.WritePropertyName("runOn"u8); - writer.WriteStringValue(RunOn); - } - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); - } - if (Optional.IsDefined(StatusDetails)) - { - writer.WritePropertyName("statusDetails"u8); - writer.WriteStringValue(StatusDetails); - } - if (options.Format != "W" && Optional.IsDefined(StartOn)) - { - if (StartOn != null) - { - writer.WritePropertyName("startTime"u8); - writer.WriteStringValue(StartOn.Value, "O"); - } - else - { - writer.WriteNull("startTime"); - } - } - if (options.Format != "W" && Optional.IsDefined(EndOn)) - { - if (EndOn != null) - { - writer.WritePropertyName("endTime"u8); - writer.WriteStringValue(EndOn.Value, "O"); - } - else - { - writer.WriteNull("endTime"); - } - } - if (options.Format != "W" && Optional.IsDefined(Exception)) - { - writer.WritePropertyName("exception"u8); - writer.WriteStringValue(Exception); - } - if (options.Format != "W" && Optional.IsDefined(LastModifiedOn)) - { - writer.WritePropertyName("lastModifiedTime"u8); - writer.WriteStringValue(LastModifiedOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(LastStatusModifiedOn)) - { - if (LastStatusModifiedOn != null) - { - writer.WritePropertyName("lastStatusModifiedTime"u8); - writer.WriteStringValue(LastStatusModifiedOn.Value, "O"); - } - else - { - writer.WriteNull("lastStatusModifiedTime"); - } - } - if (Optional.IsCollectionDefined(Parameters)) - { - writer.WritePropertyName("parameters"u8); - writer.WriteStartObject(); - foreach (var item in Parameters) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - writer.WriteEndObject(); - } - - DscCompilationJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DscCompilationJobData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDscCompilationJobData(document.RootElement, options); - } - - internal static DscCompilationJobData DeserializeDscCompilationJobData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - DscConfigurationAssociationProperty configuration = default; - string startedBy = default; - Guid? jobId = default; - DateTimeOffset? creationTime = default; - JobProvisioningState? provisioningState = default; - string runOn = default; - AutomationJobStatus? status = default; - string statusDetails = default; - DateTimeOffset? startTime = default; - DateTimeOffset? endTime = default; - string exception = default; - DateTimeOffset? lastModifiedTime = default; - DateTimeOffset? lastStatusModifiedTime = default; - IDictionary parameters = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("configuration"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - configuration = DscConfigurationAssociationProperty.DeserializeDscConfigurationAssociationProperty(property0.Value, options); - continue; - } - if (property0.NameEquals("startedBy"u8)) - { - startedBy = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("jobId"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - jobId = property0.Value.GetGuid(); - continue; - } - if (property0.NameEquals("creationTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - creationTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new JobProvisioningState(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("runOn"u8)) - { - runOn = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("status"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new AutomationJobStatus(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("statusDetails"u8)) - { - statusDetails = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("startTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - startTime = null; - continue; - } - startTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("endTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - endTime = null; - continue; - } - endTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("exception"u8)) - { - exception = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("lastModifiedTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastModifiedTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("lastStatusModifiedTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - lastStatusModifiedTime = null; - continue; - } - lastStatusModifiedTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("parameters"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) - { - dictionary.Add(property1.Name, property1.Value.GetString()); - } - parameters = dictionary; - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new DscCompilationJobData( - id, - name, - type, - systemData, - configuration, - startedBy, - jobId, - creationTime, - provisioningState, - runOn, - status, - statusDetails, - startTime, - endTime, - exception, - lastModifiedTime, - lastStatusModifiedTime, - parameters ?? new ChangeTrackingDictionary(), - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(DscCompilationJobData)} does not support writing '{options.Format}' format."); - } - } - - DscCompilationJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDscCompilationJobData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(DscCompilationJobData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs deleted file mode 100644 index 8c4cc646fbac..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Automation.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.Automation -{ - /// - /// A class representing the DscCompilationJob data model. - /// Definition of the Dsc Compilation job. - /// - public partial class DscCompilationJobData : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public DscCompilationJobData() - { - Parameters = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the configuration. - /// Gets the compilation job started by. - /// Gets the id of the job. - /// Gets the creation time of the job. - /// The current provisioning state of the job. - /// Gets or sets the runOn which specifies the group name where the job is to be executed. - /// Gets or sets the status of the job. - /// Gets or sets the status details of the job. - /// Gets the start time of the job. - /// Gets the end time of the job. - /// Gets the exception of the job. - /// Gets the last modified time of the job. - /// Gets the last status modified time of the job. - /// Gets or sets the parameters of the job. - /// Keeps track of any properties unknown to the library. - internal DscCompilationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DscConfigurationAssociationProperty configuration, string startedBy, Guid? jobId, DateTimeOffset? createdOn, JobProvisioningState? provisioningState, string runOn, AutomationJobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - Configuration = configuration; - StartedBy = startedBy; - JobId = jobId; - CreatedOn = createdOn; - ProvisioningState = provisioningState; - RunOn = runOn; - Status = status; - StatusDetails = statusDetails; - StartOn = startOn; - EndOn = endOn; - Exception = exception; - LastModifiedOn = lastModifiedOn; - LastStatusModifiedOn = lastStatusModifiedOn; - Parameters = parameters; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets or sets the configuration. - internal DscConfigurationAssociationProperty Configuration { get; set; } - /// Gets or sets the name of the Dsc configuration. - public string ConfigurationName - { - get => Configuration is null ? default : Configuration.ConfigurationName; - set - { - if (Configuration is null) - Configuration = new DscConfigurationAssociationProperty(); - Configuration.ConfigurationName = value; - } - } - - /// Gets the compilation job started by. - public string StartedBy { get; } - /// Gets the id of the job. - public Guid? JobId { get; } - /// Gets the creation time of the job. - public DateTimeOffset? CreatedOn { get; } - /// The current provisioning state of the job. - public JobProvisioningState? ProvisioningState { get; set; } - /// Gets or sets the runOn which specifies the group name where the job is to be executed. - public string RunOn { get; set; } - /// Gets or sets the status of the job. - public AutomationJobStatus? Status { get; set; } - /// Gets or sets the status details of the job. - public string StatusDetails { get; set; } - /// Gets the start time of the job. - public DateTimeOffset? StartOn { get; } - /// Gets the end time of the job. - public DateTimeOffset? EndOn { get; } - /// Gets the exception of the job. - public string Exception { get; } - /// Gets the last modified time of the job. - public DateTimeOffset? LastModifiedOn { get; } - /// Gets the last status modified time of the job. - public DateTimeOffset? LastStatusModifiedOn { get; } - /// Gets or sets the parameters of the job. - public IDictionary Parameters { get; } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobResource.Serialization.cs deleted file mode 100644 index b61d985b3457..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobResource.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.Automation -{ - public partial class DscCompilationJobResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - DscCompilationJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - DscCompilationJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobResource.cs deleted file mode 100644 index dd26eb947b05..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobResource.cs +++ /dev/null @@ -1,264 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Automation.Models; - -namespace Azure.ResourceManager.Automation -{ - /// - /// A Class representing a DscCompilationJob along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetDscCompilationJobResource method. - /// Otherwise you can get one from its parent resource using the GetDscCompilationJob method. - /// - public partial class DscCompilationJobResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The automationAccountName. - /// The compilationJobName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _dscCompilationJobClientDiagnostics; - private readonly DscCompilationJobRestOperations _dscCompilationJobRestClient; - private readonly DscCompilationJobData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts/compilationjobs"; - - /// Initializes a new instance of the class for mocking. - protected DscCompilationJobResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal DscCompilationJobResource(ArmClient client, DscCompilationJobData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal DscCompilationJobResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _dscCompilationJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string dscCompilationJobApiVersion); - _dscCompilationJobRestClient = new DscCompilationJobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dscCompilationJobApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual DscCompilationJobData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Retrieve the Dsc configuration compilation job identified by job id. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobResource.Get"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DscCompilationJobResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieve the Dsc configuration compilation job identified by job id. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobResource.Get"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DscCompilationJobResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates the Dsc compilation job of the configuration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Create - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The parameters supplied to the create compilation job operation. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, DscCompilationJobCreateOrUpdateContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobResource.Update"); - scope.Start(); - try - { - var response = await _dscCompilationJobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(new DscCompilationJobOperationSource(Client), _dscCompilationJobClientDiagnostics, Pipeline, _dscCompilationJobRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates the Dsc compilation job of the configuration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} - /// - /// - /// Operation Id - /// DscCompilationJob_Create - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The parameters supplied to the create compilation job operation. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, DscCompilationJobCreateOrUpdateContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _dscCompilationJobClientDiagnostics.CreateScope("DscCompilationJobResource.Update"); - scope.Start(); - try - { - var response = _dscCompilationJobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new AutomationArmOperation(new DscCompilationJobOperationSource(Client), _dscCompilationJobClientDiagnostics, Pipeline, _dscCompilationJobRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs index 3151cf3c9f3a..0fa4ca5613b1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string co /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string configurationName, /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -291,7 +291,7 @@ public virtual AsyncPageable GetAllAsync(string filter /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Pageable GetAll(string filter = null, i /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -368,7 +368,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs index a1c0d6f3651d..95175e2e5a04 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(DscCon /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response Update(DscConfigurationPatch p /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task> GetContentAsync(CancellationToken ca /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -431,7 +431,7 @@ public virtual Response GetContent(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -555,7 +555,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -612,7 +612,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -669,7 +669,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -729,7 +729,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeCollection.cs index 56f677ac4ef6..866c6623e5a5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string nodeId, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string nodeId, CancellationToken ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AsyncPageable GetAllAsync(string filter = null, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Pageable GetAll(string filter = null, int? skip /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string nodeId, Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Response Exists(string nodeId, CancellationToken cancellati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs index cf90b14cbe8b..2127fc28ea43 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string nodeConfi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string nodeConfigurati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(string fi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(string filter = nul /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string nodeConfigurationNa /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string nodeConfigurationName, CancellationT /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs index 8eabc56ead9c..94b4d7c8bc5c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, DscNode /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs index 2bd2452c6881..d2fc814bf355 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -231,7 +231,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -275,7 +275,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(DscNodePatch pa /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(DscNodePatch patch, Cancellation /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -386,7 +386,7 @@ public virtual AsyncPageable GetNodeReportsByNodeAsync(string fil /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -413,7 +413,7 @@ public virtual Pageable GetNodeReportsByNode(string filter = null /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -452,7 +452,7 @@ public virtual async Task> GetNodeReportAsync(string rep /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -491,7 +491,7 @@ public virtual Response GetNodeReport(string reportId, Cancellati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// @@ -530,7 +530,7 @@ public virtual async Task> GetContentNodeReportAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2024-10-23 /// /// /// diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs index 605cf6738e2f..d2976b415a2c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs @@ -34,231 +34,231 @@ private static MockableAutomationSubscriptionResource GetMockableAutomationSubsc } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationPrivateEndpointConnectionResource GetAutomationPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationPrivateEndpointConnectionResource(id); + return GetMockableAutomationArmClient(client).GetSoftwareUpdateConfigurationResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscNodeResource GetDscNodeResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationAccountPython2PackageResource(id); + return GetMockableAutomationArmClient(client).GetDscNodeResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationAccountModuleResource GetAutomationAccountModuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationAccountResource GetAutomationAccountResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationAccountModuleResource(id); + return GetMockableAutomationArmClient(client).GetAutomationAccountResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscNodeResource GetDscNodeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationCertificateResource GetAutomationCertificateResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscNodeResource(id); + return GetMockableAutomationArmClient(client).GetAutomationCertificateResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscNodeConfigurationResource GetDscNodeConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationConnectionResource GetAutomationConnectionResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscNodeConfigurationResource(id); + return GetMockableAutomationArmClient(client).GetAutomationConnectionResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscCompilationJobResource GetDscCompilationJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationConnectionTypeResource GetAutomationConnectionTypeResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscCompilationJobResource(id); + return GetMockableAutomationArmClient(client).GetAutomationConnectionTypeResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationSourceControlResource GetAutomationSourceControlResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationCredentialResource GetAutomationCredentialResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationSourceControlResource(id); + return GetMockableAutomationArmClient(client).GetAutomationCredentialResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationAccountResource GetAutomationAccountResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscConfigurationResource GetDscConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationAccountResource(id); + return GetMockableAutomationArmClient(client).GetDscConfigurationResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationCertificateResource GetAutomationCertificateResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscNodeConfigurationResource GetDscNodeConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationCertificateResource(id); + return GetMockableAutomationArmClient(client).GetDscNodeConfigurationResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationConnectionResource GetAutomationConnectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationConnectionResource(id); + return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationConnectionTypeResource GetAutomationConnectionTypeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationConnectionTypeResource(id); + return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerGroupResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationCredentialResource GetAutomationCredentialResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationJobResource GetAutomationJobResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationCredentialResource(id); + return GetMockableAutomationArmClient(client).GetAutomationJobResource(id); } /// @@ -281,193 +281,231 @@ public static AutomationJobScheduleResource GetAutomationJobScheduleResource(thi } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationScheduleResource GetAutomationScheduleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationAccountModuleResource GetAutomationAccountModuleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationScheduleResource(id); + return GetMockableAutomationArmClient(client).GetAutomationAccountModuleResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationVariableResource GetAutomationVariableResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationVariableResource(id); + return GetMockableAutomationArmClient(client).GetAutomationAccountPython2PackageResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationWatcherResource GetAutomationWatcherResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationWatcherResource(id); + return GetMockableAutomationArmClient(client).GetAutomationAccountPython3PackageResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscConfigurationResource GetDscConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static PackageResource GetPackageResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscConfigurationResource(id); + return GetMockableAutomationArmClient(client).GetPackageResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationJobResource GetAutomationJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationPrivateEndpointConnectionResource GetAutomationPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationJobResource(id); + return GetMockableAutomationArmClient(client).GetAutomationPrivateEndpointConnectionResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationRunbookResource GetAutomationRunbookResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetSoftwareUpdateConfigurationResource(id); + return GetMockableAutomationArmClient(client).GetAutomationRunbookResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationRunbookResource GetAutomationRunbookResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RuntimeEnvironmentResource GetRuntimeEnvironmentResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationRunbookResource(id); + return GetMockableAutomationArmClient(client).GetRuntimeEnvironmentResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationWebhookResource GetAutomationWebhookResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationScheduleResource GetAutomationScheduleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationWebhookResource(id); + return GetMockableAutomationArmClient(client).GetAutomationScheduleResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationSourceControlResource GetAutomationSourceControlResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerResource(id); + return GetMockableAutomationArmClient(client).GetAutomationSourceControlResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationVariableResource GetAutomationVariableResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerGroupResource(id); + return GetMockableAutomationArmClient(client).GetAutomationVariableResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AutomationWatcherResource GetAutomationWatcherResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAutomationArmClient(client).GetAutomationWatcherResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AutomationWebhookResource GetAutomationWebhookResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAutomationArmClient(client).GetAutomationWebhookResource(id); } /// @@ -500,7 +538,7 @@ public static AutomationAccountCollection GetAutomationAccounts(this ResourceGro /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -538,7 +576,7 @@ public static async Task> GetAutomationAccou /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -564,139 +602,139 @@ public static Response GetAutomationAccount(this Reso } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2024-10-23 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetAutomationAccountsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccountsAsync(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscriptionAsync(cancellationToken); } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2024-10-23 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetAutomationAccounts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetDeletedAutomationAccountsBySubscription(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccounts(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscription(cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2024-10-23 + /// + /// + /// Resource + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetAutomationAccountsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscriptionAsync(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccountsAsync(cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2024-10-23 + /// + /// + /// Resource + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetDeletedAutomationAccountsBySubscription(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetAutomationAccounts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscription(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccounts(cancellationToken); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs index eb4e624b947a..fde51e3dba95 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs @@ -35,39 +35,15 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationPrivateEndpointConnectionResource GetAutomationPrivateEndpointConnectionResource(ResourceIdentifier id) - { - AutomationPrivateEndpointConnectionResource.ValidateResourceId(id); - return new AutomationPrivateEndpointConnectionResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(ResourceIdentifier id) - { - AutomationAccountPython2PackageResource.ValidateResourceId(id); - return new AutomationAccountPython2PackageResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationAccountModuleResource GetAutomationAccountModuleResource(ResourceIdentifier id) + /// Returns a object. + public virtual SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(ResourceIdentifier id) { - AutomationAccountModuleResource.ValidateResourceId(id); - return new AutomationAccountModuleResource(Client, id); + SoftwareUpdateConfigurationResource.ValidateResourceId(id); + return new SoftwareUpdateConfigurationResource(Client, id); } /// @@ -82,42 +58,6 @@ public virtual DscNodeResource GetDscNodeResource(ResourceIdentifier id) return new DscNodeResource(Client, id); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DscNodeConfigurationResource GetDscNodeConfigurationResource(ResourceIdentifier id) - { - DscNodeConfigurationResource.ValidateResourceId(id); - return new DscNodeConfigurationResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DscCompilationJobResource GetDscCompilationJobResource(ResourceIdentifier id) - { - DscCompilationJobResource.ValidateResourceId(id); - return new DscCompilationJobResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationSourceControlResource GetAutomationSourceControlResource(ResourceIdentifier id) - { - AutomationSourceControlResource.ValidateResourceId(id); - return new AutomationSourceControlResource(Client, id); - } - /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -179,63 +119,51 @@ public virtual AutomationCredentialResource GetAutomationCredentialResource(Reso } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationJobScheduleResource GetAutomationJobScheduleResource(ResourceIdentifier id) - { - AutomationJobScheduleResource.ValidateResourceId(id); - return new AutomationJobScheduleResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationScheduleResource GetAutomationScheduleResource(ResourceIdentifier id) + /// Returns a object. + public virtual DscConfigurationResource GetDscConfigurationResource(ResourceIdentifier id) { - AutomationScheduleResource.ValidateResourceId(id); - return new AutomationScheduleResource(Client, id); + DscConfigurationResource.ValidateResourceId(id); + return new DscConfigurationResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationVariableResource GetAutomationVariableResource(ResourceIdentifier id) + /// Returns a object. + public virtual DscNodeConfigurationResource GetDscNodeConfigurationResource(ResourceIdentifier id) { - AutomationVariableResource.ValidateResourceId(id); - return new AutomationVariableResource(Client, id); + DscNodeConfigurationResource.ValidateResourceId(id); + return new DscNodeConfigurationResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationWatcherResource GetAutomationWatcherResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridRunbookWorkerResource GetHybridRunbookWorkerResource(ResourceIdentifier id) { - AutomationWatcherResource.ValidateResourceId(id); - return new AutomationWatcherResource(Client, id); + HybridRunbookWorkerResource.ValidateResourceId(id); + return new HybridRunbookWorkerResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual DscConfigurationResource GetDscConfigurationResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(ResourceIdentifier id) { - DscConfigurationResource.ValidateResourceId(id); - return new DscConfigurationResource(Client, id); + HybridRunbookWorkerGroupResource.ValidateResourceId(id); + return new HybridRunbookWorkerGroupResource(Client, id); } /// @@ -251,15 +179,75 @@ public virtual AutomationJobResource GetAutomationJobResource(ResourceIdentifier } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationJobScheduleResource GetAutomationJobScheduleResource(ResourceIdentifier id) { - SoftwareUpdateConfigurationResource.ValidateResourceId(id); - return new SoftwareUpdateConfigurationResource(Client, id); + AutomationJobScheduleResource.ValidateResourceId(id); + return new AutomationJobScheduleResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountModuleResource GetAutomationAccountModuleResource(ResourceIdentifier id) + { + AutomationAccountModuleResource.ValidateResourceId(id); + return new AutomationAccountModuleResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(ResourceIdentifier id) + { + AutomationAccountPython2PackageResource.ValidateResourceId(id); + return new AutomationAccountPython2PackageResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(ResourceIdentifier id) + { + AutomationAccountPython3PackageResource.ValidateResourceId(id); + return new AutomationAccountPython3PackageResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual PackageResource GetPackageResource(ResourceIdentifier id) + { + PackageResource.ValidateResourceId(id); + return new PackageResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationPrivateEndpointConnectionResource GetAutomationPrivateEndpointConnectionResource(ResourceIdentifier id) + { + AutomationPrivateEndpointConnectionResource.ValidateResourceId(id); + return new AutomationPrivateEndpointConnectionResource(Client, id); } /// @@ -275,39 +263,75 @@ public virtual AutomationRunbookResource GetAutomationRunbookResource(ResourceId } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationWebhookResource GetAutomationWebhookResource(ResourceIdentifier id) + /// Returns a object. + public virtual RuntimeEnvironmentResource GetRuntimeEnvironmentResource(ResourceIdentifier id) { - AutomationWebhookResource.ValidateResourceId(id); - return new AutomationWebhookResource(Client, id); + RuntimeEnvironmentResource.ValidateResourceId(id); + return new RuntimeEnvironmentResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual HybridRunbookWorkerResource GetHybridRunbookWorkerResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationScheduleResource GetAutomationScheduleResource(ResourceIdentifier id) { - HybridRunbookWorkerResource.ValidateResourceId(id); - return new HybridRunbookWorkerResource(Client, id); + AutomationScheduleResource.ValidateResourceId(id); + return new AutomationScheduleResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationSourceControlResource GetAutomationSourceControlResource(ResourceIdentifier id) { - HybridRunbookWorkerGroupResource.ValidateResourceId(id); - return new HybridRunbookWorkerGroupResource(Client, id); + AutomationSourceControlResource.ValidateResourceId(id); + return new AutomationSourceControlResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationVariableResource GetAutomationVariableResource(ResourceIdentifier id) + { + AutomationVariableResource.ValidateResourceId(id); + return new AutomationVariableResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationWatcherResource GetAutomationWatcherResource(ResourceIdentifier id) + { + AutomationWatcherResource.ValidateResourceId(id); + return new AutomationWatcherResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationWebhookResource GetAutomationWebhookResource(ResourceIdentifier id) + { + AutomationWebhookResource.ValidateResourceId(id); + return new AutomationWebhookResource(Client, id); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs index e927cb8875a8..038ee9bc3270 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual AutomationAccountCollection GetAutomationAccounts() /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetAutomationAcco /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs index 4d3b5cd3751e..887faf110779 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs @@ -16,10 +16,10 @@ namespace Azure.ResourceManager.Automation.Mocking /// A class to add extension methods to SubscriptionResource. public partial class MockableAutomationSubscriptionResource : ArmResource { - private ClientDiagnostics _automationAccountClientDiagnostics; - private AutomationAccountRestOperations _automationAccountRestClient; private ClientDiagnostics _deletedAutomationAccountsClientDiagnostics; private DeletedAutomationAccountsRestOperations _deletedAutomationAccountsRestClient; + private ClientDiagnostics _automationAccountClientDiagnostics; + private AutomationAccountRestOperations _automationAccountRestClient; /// Initializes a new instance of the class for mocking. protected MockableAutomationSubscriptionResource() @@ -33,10 +33,10 @@ internal MockableAutomationSubscriptionResource(ArmClient client, ResourceIdenti { } - private ClientDiagnostics AutomationAccountClientDiagnostics => _automationAccountClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountResource.ResourceType.Namespace, Diagnostics); - private AutomationAccountRestOperations AutomationAccountRestClient => _automationAccountRestClient ??= new AutomationAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AutomationAccountResource.ResourceType)); private ClientDiagnostics deletedAutomationAccountsClientDiagnostics => _deletedAutomationAccountsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); private DeletedAutomationAccountsRestOperations deletedAutomationAccountsRestClient => _deletedAutomationAccountsRestClient ??= new DeletedAutomationAccountsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics AutomationAccountClientDiagnostics => _automationAccountClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountResource.ResourceType.Namespace, Diagnostics); + private AutomationAccountRestOperations AutomationAccountRestClient => _automationAccountRestClient ??= new AutomationAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AutomationAccountResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -45,113 +45,113 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2024-10-23 /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAutomationAccountsAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2024-10-23 /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAutomationAccounts(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetDeletedAutomationAccountsBySubscription(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2024-10-23 + /// + /// + /// Resource + /// /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAutomationAccountsAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2024-10-23 + /// + /// + /// Resource + /// /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDeletedAutomationAccountsBySubscription(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAutomationAccounts(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs index d8e935856dda..05ff93efe08d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -75,21 +75,21 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The hybrid runbook worker id. - /// The create or update parameters for hybrid runbook worker. + /// The create or update parameters for hybrid runbook worker. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(hybridRunbookWorkerId, nameof(hybridRunbookWorkerId)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); using var scope = _hybridRunbookWorkerClientDiagnostics.CreateScope("HybridRunbookWorkerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _hybridRunbookWorkerRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content, cancellationToken).ConfigureAwait(false); - var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content); + var response = await _hybridRunbookWorkerRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters, cancellationToken).ConfigureAwait(false); + var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -126,21 +126,21 @@ public virtual async Task> CreateOrUpd /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The hybrid runbook worker id. - /// The create or update parameters for hybrid runbook worker. + /// The create or update parameters for hybrid runbook worker. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(hybridRunbookWorkerId, nameof(hybridRunbookWorkerId)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); using var scope = _hybridRunbookWorkerClientDiagnostics.CreateScope("HybridRunbookWorkerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _hybridRunbookWorkerRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content, cancellationToken); - var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content); + var response = _hybridRunbookWorkerRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters, cancellationToken); + var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string hybridRunbookWor /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string fil /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = null /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string hybridRunbookWorker /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string hybridRunbookWorkerId, CancellationT /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.Serialization.cs index 651c8e3cc405..629e709548fd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.Serialization.cs @@ -92,6 +92,8 @@ internal static HybridRunbookWorkerData DeserializeHybridRunbookWorkerData(JsonE { return null; } + IDictionary tags = default; + AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -106,6 +108,25 @@ internal static HybridRunbookWorkerData DeserializeHybridRunbookWorkerData(JsonE Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } if (property.NameEquals("id"u8)) { id = new ResourceIdentifier(property.Value.GetString()); @@ -199,6 +220,8 @@ internal static HybridRunbookWorkerData DeserializeHybridRunbookWorkerData(JsonE name, type, systemData, + tags ?? new ChangeTrackingDictionary(), + location, ip, registeredDateTime, lastSeenDateTime, diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs index bf8d3b4a4fc5..60e85b60dfa3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.Automation /// A class representing the HybridRunbookWorker data model. /// Definition of hybrid runbook worker. /// - public partial class HybridRunbookWorkerData : ResourceData + public partial class HybridRunbookWorkerData : TrackedResourceData { /// /// Keeps track of any properties unknown to the library. @@ -52,7 +52,8 @@ public partial class HybridRunbookWorkerData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public HybridRunbookWorkerData() + /// The location. + public HybridRunbookWorkerData(AzureLocation location) : base(location) { } @@ -61,6 +62,8 @@ public HybridRunbookWorkerData() /// The name. /// The resourceType. /// The systemData. + /// The tags. + /// The location. /// Gets or sets the assigned machine IP address. /// Gets or sets the registration time of the worker machine. /// Last Heartbeat from the Worker. @@ -68,7 +71,7 @@ public HybridRunbookWorkerData() /// Type of the HybridWorker. /// Name of the HybridWorker. /// Keeps track of any properties unknown to the library. - internal HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string ip, DateTimeOffset? registeredOn, DateTimeOffset? lastSeenOn, ResourceIdentifier vmResourceId, HybridWorkerType? workerType, string workerName, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string ip, DateTimeOffset? registeredOn, DateTimeOffset? lastSeenOn, ResourceIdentifier vmResourceId, HybridWorkerType? workerType, string workerName, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { IP = ip; RegisteredOn = registeredOn; @@ -79,6 +82,11 @@ internal HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceTyp _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal HybridRunbookWorkerData() + { + } + /// Gets or sets the assigned machine IP address. public string IP { get; set; } /// Gets or sets the registration time of the worker machine. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs index 1e816c134dff..cc6f5d2fed34 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string hybridRunbo /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(strin /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string hybridRunbookWorker /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string hybridRunbookWorkerGroupName, Cancel /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.Serialization.cs index d7afd72308d8..2f253bffa544 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.Serialization.cs @@ -72,6 +72,8 @@ internal static HybridRunbookWorkerGroupData DeserializeHybridRunbookWorkerGroup { return null; } + IDictionary tags = default; + AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -82,6 +84,25 @@ internal static HybridRunbookWorkerGroupData DeserializeHybridRunbookWorkerGroup Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } if (property.NameEquals("id"u8)) { id = new ResourceIdentifier(property.Value.GetString()); @@ -147,6 +168,8 @@ internal static HybridRunbookWorkerGroupData DeserializeHybridRunbookWorkerGroup name, type, systemData, + tags ?? new ChangeTrackingDictionary(), + location, groupType, credential, serializedAdditionalRawData); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs index 71945e3e0397..58c0bd0ba930 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.Automation /// A class representing the HybridRunbookWorkerGroup data model. /// Definition of hybrid runbook worker group. /// - public partial class HybridRunbookWorkerGroupData : ResourceData + public partial class HybridRunbookWorkerGroupData : TrackedResourceData { /// /// Keeps track of any properties unknown to the library. @@ -52,7 +52,8 @@ public partial class HybridRunbookWorkerGroupData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public HybridRunbookWorkerGroupData() + /// The location. + public HybridRunbookWorkerGroupData(AzureLocation location) : base(location) { } @@ -61,16 +62,23 @@ public HybridRunbookWorkerGroupData() /// The name. /// The resourceType. /// The systemData. + /// The tags. + /// The location. /// Type of the HybridWorkerGroup. /// Sets the credential of a worker group. /// Keeps track of any properties unknown to the library. - internal HybridRunbookWorkerGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridWorkerGroup? groupType, RunAsCredentialAssociationProperty credential, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridRunbookWorkerGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, HybridWorkerGroup? groupType, RunAsCredentialAssociationProperty credential, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { GroupType = groupType; Credential = credential; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal HybridRunbookWorkerGroupData() + { + } + /// Type of the HybridWorkerGroup. public HybridWorkerGroup? GroupType { get; set; } /// Sets the credential of a worker group. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs index 223f147b9f0e..15f05d7b0555 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs @@ -109,7 +109,7 @@ public virtual HybridRunbookWorkerCollection GetHybridRunbookWorkers() /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetHybridRunboo /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetHybridRunbookWorker(stri /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2022-02-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs index 2b763cecc71e..9b1c30b46976 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create a hybrid runbook worker. + /// Update a hybrid runbook worker. /// /// /// Request Path @@ -267,11 +267,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Operation Id - /// HybridRunbookWorkers_Create + /// HybridRunbookWorkers_Patch /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -279,25 +279,19 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The create or update parameters for hybrid runbook worker. + /// The create or update parameters for hybrid runbook worker. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, HybridRunbookWorkerCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); using var scope = _hybridRunbookWorkerClientDiagnostics.CreateScope("HybridRunbookWorkerResource.Update"); scope.Start(); try { - var response = await _hybridRunbookWorkerRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _hybridRunbookWorkerRestClient.PatchAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, hybridRunbookWorkerCreationParameters, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridRunbookWorkerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -307,7 +301,7 @@ public virtual async Task> UpdateAsync } /// - /// Create a hybrid runbook worker. + /// Update a hybrid runbook worker. /// /// /// Request Path @@ -315,11 +309,11 @@ public virtual async Task> UpdateAsync /// /// /// Operation Id - /// HybridRunbookWorkers_Create + /// HybridRunbookWorkers_Patch /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -327,25 +321,19 @@ public virtual async Task> UpdateAsync /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The create or update parameters for hybrid runbook worker. + /// The create or update parameters for hybrid runbook worker. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, HybridRunbookWorkerCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); using var scope = _hybridRunbookWorkerClientDiagnostics.CreateScope("HybridRunbookWorkerResource.Update"); scope.Start(); try { - var response = _hybridRunbookWorkerRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; + var response = _hybridRunbookWorkerRestClient.Patch(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, hybridRunbookWorkerCreationParameters, cancellationToken); + return Response.FromValue(new HybridRunbookWorkerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -367,7 +355,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource @@ -409,7 +397,7 @@ public virtual async Task MoveAsync(HybridRunbookWorkerMoveContent con /// /// /// Default Api Version - /// 2021-06-22 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/DscCompilationJobOperationSource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/DscCompilationJobOperationSource.cs deleted file mode 100644 index 98e06748d013..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/DscCompilationJobOperationSource.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.Automation -{ - internal class DscCompilationJobOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal DscCompilationJobOperationSource(ArmClient client) - { - _client = client; - } - - DscCompilationJobResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content); - return new DscCompilationJobResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content); - return await Task.FromResult(new DscCompilationJobResource(_client, data)).ConfigureAwait(false); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs index 4930fa79d7b3..49fd3518a3b8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs @@ -34,12 +34,12 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AutomationAccountModulePatch)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) + if (options.Format != "W" && Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } - if (Optional.IsDefined(Location)) + if (options.Format != "W" && Optional.IsDefined(Location)) { writer.WritePropertyName("location"u8); writer.WriteStringValue(Location.Value); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs index f95e43452467..c6ca0e506dc9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs @@ -68,9 +68,9 @@ internal AutomationAccountModulePatch(string name, AzureLocation? location, IDic } /// Gets or sets name of the resource. - public string Name { get; set; } + public string Name { get; } /// Gets or sets the location of the resource. - public AzureLocation? Location { get; set; } + public AzureLocation? Location { get; } /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets the module content link. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs index ddc475cd4bfe..e048fd6afd69 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs @@ -51,7 +51,7 @@ public AutomationContentLink() } /// Initializes a new instance of . - /// Gets or sets the uri of the runbook content. + /// Gets or sets the uri of content. /// Gets or sets the hash. /// Gets or sets the version of the content. /// Keeps track of any properties unknown to the library. @@ -63,7 +63,7 @@ internal AutomationContentLink(Uri uri, AutomationContentHash contentHash, strin _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets or sets the uri of the runbook content. + /// Gets or sets the uri of content. public Uri Uri { get; set; } /// Gets or sets the hash. public AutomationContentHash ContentHash { get; set; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs index 9ec077d1f0af..5b6046ef0fae 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs @@ -48,6 +48,18 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId.Value); } + if (options.Format != "W" && Optional.IsDefined(StartedBy)) + { + if (StartedBy != null) + { + writer.WritePropertyName("startedBy"u8); + writer.WriteStringValue(StartedBy); + } + else + { + writer.WriteNull("startedBy"); + } + } if (options.Format != "W" && Optional.IsDefined(CreatedOn)) { writer.WritePropertyName("creationTime"u8); @@ -99,6 +111,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState); } + if (Optional.IsDefined(JobRuntimeEnvironment)) + { + writer.WritePropertyName("jobRuntimeEnvironment"u8); + writer.WriteObjectValue(JobRuntimeEnvironment, options); + } if (Optional.IsDefined(RunOn)) { writer.WritePropertyName("runOn"u8); @@ -133,12 +150,14 @@ internal static AutomationJobCollectionItemData DeserializeAutomationJobCollecti SystemData systemData = default; RunbookAssociationProperty runbook = default; Guid? jobId = default; + string startedBy = default; DateTimeOffset? creationTime = default; AutomationJobStatus? status = default; DateTimeOffset? startTime = default; DateTimeOffset? endTime = default; DateTimeOffset? lastModifiedTime = default; string provisioningState = default; + JobRuntimeEnvironment jobRuntimeEnvironment = default; string runOn = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -195,6 +214,16 @@ internal static AutomationJobCollectionItemData DeserializeAutomationJobCollecti jobId = property0.Value.GetGuid(); continue; } + if (property0.NameEquals("startedBy"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + startedBy = null; + continue; + } + startedBy = property0.Value.GetString(); + continue; + } if (property0.NameEquals("creationTime"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -248,6 +277,15 @@ internal static AutomationJobCollectionItemData DeserializeAutomationJobCollecti provisioningState = property0.Value.GetString(); continue; } + if (property0.NameEquals("jobRuntimeEnvironment"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + jobRuntimeEnvironment = JobRuntimeEnvironment.DeserializeJobRuntimeEnvironment(property0.Value, options); + continue; + } if (property0.NameEquals("runOn"u8)) { runOn = property0.Value.GetString(); @@ -269,12 +307,14 @@ internal static AutomationJobCollectionItemData DeserializeAutomationJobCollecti systemData, runbook, jobId, + startedBy, creationTime, status, startTime, endTime, lastModifiedTime, provisioningState, + jobRuntimeEnvironment, runOn, serializedAdditionalRawData); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs index e736df98fc4b..f7ee11d249fc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs @@ -59,24 +59,28 @@ public AutomationJobCollectionItemData() /// The systemData. /// The runbook association. /// The id of the job. + /// Gets or sets the job started by. /// The creation time of the job. /// The status of the job. /// The start time of the job. /// The end time of the job. /// The last modified time of the job. /// The provisioning state of a resource. + /// Runtime Environment Property. /// Specifies the runOn group name where the job was executed. /// Keeps track of any properties unknown to the library. - internal AutomationJobCollectionItemData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, string provisioningState, string runOn, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AutomationJobCollectionItemData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, Guid? jobId, string startedBy, DateTimeOffset? createdOn, AutomationJobStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, string provisioningState, JobRuntimeEnvironment jobRuntimeEnvironment, string runOn, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Runbook = runbook; JobId = jobId; + StartedBy = startedBy; CreatedOn = createdOn; Status = status; StartOn = startOn; EndOn = endOn; LastModifiedOn = lastModifiedOn; ProvisioningState = provisioningState; + JobRuntimeEnvironment = jobRuntimeEnvironment; RunOn = runOn; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -91,6 +95,8 @@ public string RunbookName /// The id of the job. public Guid? JobId { get; } + /// Gets or sets the job started by. + public string StartedBy { get; } /// The creation time of the job. public DateTimeOffset? CreatedOn { get; } /// The status of the job. @@ -103,6 +109,20 @@ public string RunbookName public DateTimeOffset? LastModifiedOn { get; } /// The provisioning state of a resource. public string ProvisioningState { get; } + /// Runtime Environment Property. + internal JobRuntimeEnvironment JobRuntimeEnvironment { get; set; } + /// Name of Runtime Environment. + public string RuntimeEnvironmentName + { + get => JobRuntimeEnvironment is null ? default : JobRuntimeEnvironment.RuntimeEnvironmentName; + set + { + if (JobRuntimeEnvironment is null) + JobRuntimeEnvironment = new JobRuntimeEnvironment(); + JobRuntimeEnvironment.RuntimeEnvironmentName = value; + } + } + /// Specifies the runOn group name where the job was executed. public string RunOn { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs index 2a25b7095cbd..3b294ab7ab2f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs @@ -63,8 +63,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } if (Optional.IsDefined(Summary)) { - writer.WritePropertyName("summary"u8); - writer.WriteStringValue(Summary); + if (Summary != null) + { + writer.WritePropertyName("summary"u8); + writer.WriteStringValue(Summary); + } + else + { + writer.WriteNull("summary"); + } } if (Optional.IsCollectionDefined(Value)) { @@ -186,6 +193,11 @@ internal static AutomationJobStream DeserializeAutomationJobStream(JsonElement e } if (property0.NameEquals("summary"u8)) { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + summary = null; + continue; + } summary = property0.Value.GetString(); continue; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs index 15a7fb6c87c1..83a485bced5d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs @@ -67,6 +67,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("logProgress"u8); writer.WriteBooleanValue(IsLogProgressEnabled.Value); } + if (Optional.IsDefined(RuntimeEnvironment)) + { + writer.WritePropertyName("runtimeEnvironment"u8); + writer.WriteStringValue(RuntimeEnvironment); + } writer.WritePropertyName("runbookType"u8); writer.WriteStringValue(RunbookType.ToString()); if (Optional.IsDefined(Draft)) @@ -132,6 +137,7 @@ internal static AutomationRunbookCreateOrUpdateContent DeserializeAutomationRunb IDictionary tags = default; bool? logVerbose = default; bool? logProgress = default; + string runtimeEnvironment = default; AutomationRunbookType runbookType = default; AutomationRunbookDraft draft = default; AutomationContentLink publishContentLink = default; @@ -196,6 +202,11 @@ internal static AutomationRunbookCreateOrUpdateContent DeserializeAutomationRunb logProgress = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("runtimeEnvironment"u8)) + { + runtimeEnvironment = property0.Value.GetString(); + continue; + } if (property0.NameEquals("runbookType"u8)) { runbookType = new AutomationRunbookType(property0.Value.GetString()); @@ -248,6 +259,7 @@ internal static AutomationRunbookCreateOrUpdateContent DeserializeAutomationRunb tags ?? new ChangeTrackingDictionary(), logVerbose, logProgress, + runtimeEnvironment, runbookType, draft, publishContentLink, diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs index bb9524b28aaa..b9d427fa167b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs @@ -60,19 +60,21 @@ public AutomationRunbookCreateOrUpdateContent(AutomationRunbookType runbookType) /// Gets or sets the tags attached to the resource. /// Gets or sets verbose log option. /// Gets or sets progress log option. + /// Environment of the runbook. /// Gets or sets the type of the runbook. /// Gets or sets the draft runbook properties. /// Gets or sets the published runbook content link. /// Gets or sets the description of the runbook. /// Gets or sets the activity-level tracing options of the runbook. /// Keeps track of any properties unknown to the library. - internal AutomationRunbookCreateOrUpdateContent(string name, AzureLocation? location, IDictionary tags, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, AutomationRunbookType runbookType, AutomationRunbookDraft draft, AutomationContentLink publishContentLink, string description, int? logActivityTrace, IDictionary serializedAdditionalRawData) + internal AutomationRunbookCreateOrUpdateContent(string name, AzureLocation? location, IDictionary tags, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, string runtimeEnvironment, AutomationRunbookType runbookType, AutomationRunbookDraft draft, AutomationContentLink publishContentLink, string description, int? logActivityTrace, IDictionary serializedAdditionalRawData) { Name = name; Location = location; Tags = tags; IsLogVerboseEnabled = isLogVerboseEnabled; IsLogProgressEnabled = isLogProgressEnabled; + RuntimeEnvironment = runtimeEnvironment; RunbookType = runbookType; Draft = draft; PublishContentLink = publishContentLink; @@ -96,6 +98,8 @@ internal AutomationRunbookCreateOrUpdateContent() public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets progress log option. public bool? IsLogProgressEnabled { get; set; } + /// Environment of the runbook. + public string RuntimeEnvironment { get; set; } /// Gets or sets the type of the runbook. public AutomationRunbookType RunbookType { get; } /// Gets or sets the draft runbook properties. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs index 34b69dd82c1d..cf1639caba02 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs @@ -30,6 +30,8 @@ public AutomationRunbookType(string value) private const string GraphPowerShellValue = "GraphPowerShell"; private const string Python2Value = "Python2"; private const string Python3Value = "Python3"; + private const string PythonValue = "Python"; + private const string PowerShell72Value = "PowerShell72"; /// Script. public static AutomationRunbookType Script { get; } = new AutomationRunbookType(ScriptValue); @@ -47,6 +49,10 @@ public AutomationRunbookType(string value) public static AutomationRunbookType Python2 { get; } = new AutomationRunbookType(Python2Value); /// Python3. public static AutomationRunbookType Python3 { get; } = new AutomationRunbookType(Python3Value); + /// Python. + public static AutomationRunbookType Python { get; } = new AutomationRunbookType(PythonValue); + /// PowerShell72. + public static AutomationRunbookType PowerShell72 { get; } = new AutomationRunbookType(PowerShell72Value); /// Determines if two values are the same. public static bool operator ==(AutomationRunbookType left, AutomationRunbookType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbook.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbook.Serialization.cs new file mode 100644 index 000000000000..4078d87bccf6 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbook.Serialization.cs @@ -0,0 +1,266 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + public partial class DeletedRunbook : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(DeletedRunbook)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location.Value); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(RunbookId)) + { + writer.WritePropertyName("runbookId"u8); + writer.WriteStringValue(RunbookId); + } + if (Optional.IsDefined(RunbookType)) + { + writer.WritePropertyName("runbookType"u8); + writer.WriteStringValue(RunbookType); + } + if (Optional.IsDefined(Runtime)) + { + writer.WritePropertyName("runtime"u8); + writer.WriteStringValue(Runtime); + } + if (Optional.IsDefined(RuntimeEnvironment)) + { + if (RuntimeEnvironment != null) + { + writer.WritePropertyName("runtimeEnvironment"u8); + writer.WriteStringValue(RuntimeEnvironment); + } + else + { + writer.WriteNull("runtimeEnvironment"); + } + } + if (Optional.IsDefined(CreatedOn)) + { + writer.WritePropertyName("creationTime"u8); + writer.WriteStringValue(CreatedOn.Value, "O"); + } + if (Optional.IsDefined(DeletedOn)) + { + writer.WritePropertyName("deletionTime"u8); + writer.WriteStringValue(DeletedOn.Value, "O"); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + DeletedRunbook IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(DeletedRunbook)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeDeletedRunbook(document.RootElement, options); + } + + internal static DeletedRunbook DeserializeDeletedRunbook(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string id = default; + string name = default; + AzureLocation? location = default; + string runbookId = default; + string runbookType = default; + string runtime = default; + string runtimeEnvironment = default; + DateTimeOffset? creationTime = default; + DateTimeOffset? deletionTime = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("runbookId"u8)) + { + runbookId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("runbookType"u8)) + { + runbookType = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("runtime"u8)) + { + runtime = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("runtimeEnvironment"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + runtimeEnvironment = null; + continue; + } + runtimeEnvironment = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("creationTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + creationTime = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("deletionTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionTime = property0.Value.GetDateTimeOffset("O"); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new DeletedRunbook( + id, + name, + location, + runbookId, + runbookType, + runtime, + runtimeEnvironment, + creationTime, + deletionTime, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(DeletedRunbook)} does not support writing '{options.Format}' format."); + } + } + + DeletedRunbook IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeDeletedRunbook(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(DeletedRunbook)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbook.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbook.cs new file mode 100644 index 000000000000..21a40a991fc9 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbook.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Definition of deleted runbook. + public partial class DeletedRunbook + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal DeletedRunbook() + { + } + + /// Initializes a new instance of . + /// The resource id. + /// Gets or sets name of the resource. + /// Gets or sets the location of the resource. + /// Gets or sets the Runbook Id. + /// Type of the runbook. + /// Gets or sets runtime of the runbook. + /// Environment of the runbook. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Keeps track of any properties unknown to the library. + internal DeletedRunbook(string id, string name, AzureLocation? location, string runbookId, string runbookType, string runtime, string runtimeEnvironment, DateTimeOffset? createdOn, DateTimeOffset? deletedOn, IDictionary serializedAdditionalRawData) + { + Id = id; + Name = name; + Location = location; + RunbookId = runbookId; + RunbookType = runbookType; + Runtime = runtime; + RuntimeEnvironment = runtimeEnvironment; + CreatedOn = createdOn; + DeletedOn = deletedOn; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The resource id. + public string Id { get; } + /// Gets or sets name of the resource. + public string Name { get; } + /// Gets or sets the location of the resource. + public AzureLocation? Location { get; } + /// Gets or sets the Runbook Id. + public string RunbookId { get; } + /// Type of the runbook. + public string RunbookType { get; } + /// Gets or sets runtime of the runbook. + public string Runtime { get; } + /// Environment of the runbook. + public string RuntimeEnvironment { get; } + /// Gets or sets the creation time. + public DateTimeOffset? CreatedOn { get; } + /// Gets or sets the last modified time. + public DateTimeOffset? DeletedOn { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbookListResult.Serialization.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbookListResult.Serialization.cs index 5bb35d3c5356..e09aabc73b15 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbookListResult.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class DscCompilationJobListResult : IUtf8JsonSerializable, IJsonModel + internal partial class DeletedRunbookListResult : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelR /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DscCompilationJobListResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(DeletedRunbookListResult)} does not support writing '{format}' format."); } if (Optional.IsCollectionDefined(Value)) @@ -66,19 +66,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - DscCompilationJobListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + DeletedRunbookListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DscCompilationJobListResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(DeletedRunbookListResult)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDscCompilationJobListResult(document.RootElement, options); + return DeserializeDeletedRunbookListResult(document.RootElement, options); } - internal static DscCompilationJobListResult DeserializeDscCompilationJobListResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static DeletedRunbookListResult DeserializeDeletedRunbookListResult(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -86,7 +86,7 @@ internal static DscCompilationJobListResult DeserializeDscCompilationJobListResu { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; string nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -98,10 +98,10 @@ internal static DscCompilationJobListResult DeserializeDscCompilationJobListResu { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DscCompilationJobData.DeserializeDscCompilationJobData(item, options)); + array.Add(DeletedRunbook.DeserializeDeletedRunbook(item, options)); } value = array; continue; @@ -117,38 +117,38 @@ internal static DscCompilationJobListResult DeserializeDscCompilationJobListResu } } serializedAdditionalRawData = rawDataDictionary; - return new DscCompilationJobListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new DeletedRunbookListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(DscCompilationJobListResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(DeletedRunbookListResult)} does not support writing '{options.Format}' format."); } } - DscCompilationJobListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + DeletedRunbookListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDscCompilationJobListResult(document.RootElement, options); + return DeserializeDeletedRunbookListResult(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(DscCompilationJobListResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(DeletedRunbookListResult)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbookListResult.cs similarity index 75% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbookListResult.cs index be0fc18cc9ab..cf63cb6e9249 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedRunbookListResult.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.Automation.Models { - /// The response model for the list job operation. - internal partial class DscCompilationJobListResult + /// The response model for the list deleted runbook. + internal partial class DeletedRunbookListResult { /// /// Keeps track of any properties unknown to the library. @@ -45,25 +45,25 @@ internal partial class DscCompilationJobListResult /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal DscCompilationJobListResult() + /// Initializes a new instance of . + internal DeletedRunbookListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of . - /// Gets or sets a list of Dsc Compilation jobs. + /// Initializes a new instance of . + /// List of deleted runbooks in automation account. /// Gets or sets the next link. /// Keeps track of any properties unknown to the library. - internal DscCompilationJobListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal DeletedRunbookListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets or sets a list of Dsc Compilation jobs. - public IReadOnlyList Value { get; } + /// List of deleted runbooks in automation account. + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs deleted file mode 100644 index 94270856b42f..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The parameters supplied to the create compilation job operation. - public partial class DscCompilationJobCreateOrUpdateContent - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Gets or sets the configuration. - /// is null. - public DscCompilationJobCreateOrUpdateContent(DscConfigurationAssociationProperty configuration) - { - Argument.AssertNotNull(configuration, nameof(configuration)); - - Tags = new ChangeTrackingDictionary(); - Configuration = configuration; - Parameters = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of . - /// Gets or sets name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets the configuration. - /// Gets or sets the parameters of the job. - /// If a new build version of NodeConfiguration is required. - /// Keeps track of any properties unknown to the library. - internal DscCompilationJobCreateOrUpdateContent(string name, AzureLocation? location, IDictionary tags, DscConfigurationAssociationProperty configuration, IDictionary parameters, bool? isIncrementNodeConfigurationBuildRequired, IDictionary serializedAdditionalRawData) - { - Name = name; - Location = location; - Tags = tags; - Configuration = configuration; - Parameters = parameters; - IsIncrementNodeConfigurationBuildRequired = isIncrementNodeConfigurationBuildRequired; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal DscCompilationJobCreateOrUpdateContent() - { - } - - /// Gets or sets name of the resource. - public string Name { get; set; } - /// Gets or sets the location of the resource. - public AzureLocation? Location { get; set; } - /// Gets or sets the tags attached to the resource. - public IDictionary Tags { get; } - /// Gets or sets the configuration. - internal DscConfigurationAssociationProperty Configuration { get; } - /// Gets or sets the name of the Dsc configuration. - public string ConfigurationName - { - get => Configuration?.ConfigurationName; - } - - /// Gets or sets the parameters of the job. - public IDictionary Parameters { get; } - /// If a new build version of NodeConfiguration is required. - public bool? IsIncrementNodeConfigurationBuildRequired { get; set; } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.Serialization.cs index 7ad12f3764d8..91a6e6455705 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class DscConfigurationAssociationProperty : IUtf8JsonSerializable, IJsonModel + internal partial class DscConfigurationAssociationProperty : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.cs index 3d6b3ab50de2..2f7448579b8b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationAssociationProperty.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The Dsc configuration property associated with the entity. - public partial class DscConfigurationAssociationProperty + internal partial class DscConfigurationAssociationProperty { /// /// Keeps track of any properties unknown to the library. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateParameters.Serialization.cs similarity index 69% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateParameters.Serialization.cs index c54570fbb830..944091236418 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class HybridRunbookWorkerCreateOrUpdateContent : IUtf8JsonSerializable, IJsonModel + public partial class HybridRunbookWorkerCreateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,13 +28,13 @@ void IJsonModel.Write(Utf8JsonWriter w /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateOrUpdateContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateParameters)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) + if (options.Format != "W" && Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); @@ -64,19 +64,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - HybridRunbookWorkerCreateOrUpdateContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridRunbookWorkerCreateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateOrUpdateContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHybridRunbookWorkerCreateOrUpdateContent(document.RootElement, options); + return DeserializeHybridRunbookWorkerCreateParameters(document.RootElement, options); } - internal static HybridRunbookWorkerCreateOrUpdateContent DeserializeHybridRunbookWorkerCreateOrUpdateContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridRunbookWorkerCreateParameters DeserializeHybridRunbookWorkerCreateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -122,38 +122,38 @@ internal static HybridRunbookWorkerCreateOrUpdateContent DeserializeHybridRunboo } } serializedAdditionalRawData = rawDataDictionary; - return new HybridRunbookWorkerCreateOrUpdateContent(name, vmResourceId, serializedAdditionalRawData); + return new HybridRunbookWorkerCreateParameters(name, vmResourceId, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateOrUpdateContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateParameters)} does not support writing '{options.Format}' format."); } } - HybridRunbookWorkerCreateOrUpdateContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridRunbookWorkerCreateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHybridRunbookWorkerCreateOrUpdateContent(document.RootElement, options); + return DeserializeHybridRunbookWorkerCreateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateOrUpdateContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridRunbookWorkerCreateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateParameters.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateParameters.cs index ff7026884273..d5b354b31a06 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateParameters.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create hybrid runbook worker operation. - public partial class HybridRunbookWorkerCreateOrUpdateContent + public partial class HybridRunbookWorkerCreateParameters { /// /// Keeps track of any properties unknown to the library. @@ -46,16 +46,16 @@ public partial class HybridRunbookWorkerCreateOrUpdateContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public HybridRunbookWorkerCreateOrUpdateContent() + /// Initializes a new instance of . + public HybridRunbookWorkerCreateParameters() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the name of the resource. /// Azure Resource Manager Id for a virtual machine. /// Keeps track of any properties unknown to the library. - internal HybridRunbookWorkerCreateOrUpdateContent(string name, ResourceIdentifier vmResourceId, IDictionary serializedAdditionalRawData) + internal HybridRunbookWorkerCreateParameters(string name, ResourceIdentifier vmResourceId, IDictionary serializedAdditionalRawData) { Name = name; VmResourceId = vmResourceId; @@ -63,7 +63,7 @@ internal HybridRunbookWorkerCreateOrUpdateContent(string name, ResourceIdentifie } /// Gets or sets the name of the resource. - public string Name { get; set; } + public string Name { get; } /// Azure Resource Manager Id for a virtual machine. public ResourceIdentifier VmResourceId { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobRuntimeEnvironment.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobRuntimeEnvironment.Serialization.cs new file mode 100644 index 000000000000..53310712285b --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobRuntimeEnvironment.Serialization.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class JobRuntimeEnvironment : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(JobRuntimeEnvironment)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(RuntimeEnvironmentName)) + { + writer.WritePropertyName("runtimeEnvironmentName"u8); + writer.WriteStringValue(RuntimeEnvironmentName); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + JobRuntimeEnvironment IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(JobRuntimeEnvironment)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeJobRuntimeEnvironment(document.RootElement, options); + } + + internal static JobRuntimeEnvironment DeserializeJobRuntimeEnvironment(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string runtimeEnvironmentName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("runtimeEnvironmentName"u8)) + { + runtimeEnvironmentName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new JobRuntimeEnvironment(runtimeEnvironmentName, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(JobRuntimeEnvironment)} does not support writing '{options.Format}' format."); + } + } + + JobRuntimeEnvironment IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeJobRuntimeEnvironment(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(JobRuntimeEnvironment)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobRuntimeEnvironment.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobRuntimeEnvironment.cs new file mode 100644 index 000000000000..fbae8b05c67c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobRuntimeEnvironment.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The runbook property associated with the entity. + internal partial class JobRuntimeEnvironment + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public JobRuntimeEnvironment() + { + } + + /// Initializes a new instance of . + /// Name of Runtime Environment. + /// Keeps track of any properties unknown to the library. + internal JobRuntimeEnvironment(string runtimeEnvironmentName, IDictionary serializedAdditionalRawData) + { + RuntimeEnvironmentName = runtimeEnvironmentName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Name of Runtime Environment. + public string RuntimeEnvironmentName { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs deleted file mode 100644 index 12f404ef471a..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.Automation.Models -{ - internal static partial class ModuleProvisioningStateExtensions - { - public static string ToSerialString(this ModuleProvisioningState value) => value switch - { - ModuleProvisioningState.Created => "Created", - ModuleProvisioningState.Creating => "Creating", - ModuleProvisioningState.StartingImportModuleRunbook => "StartingImportModuleRunbook", - ModuleProvisioningState.RunningImportModuleRunbook => "RunningImportModuleRunbook", - ModuleProvisioningState.ContentRetrieved => "ContentRetrieved", - ModuleProvisioningState.ContentDownloaded => "ContentDownloaded", - ModuleProvisioningState.ContentValidated => "ContentValidated", - ModuleProvisioningState.ConnectionTypeImported => "ConnectionTypeImported", - ModuleProvisioningState.ContentStored => "ContentStored", - ModuleProvisioningState.ModuleDataStored => "ModuleDataStored", - ModuleProvisioningState.ActivitiesStored => "ActivitiesStored", - ModuleProvisioningState.ModuleImportRunbookComplete => "ModuleImportRunbookComplete", - ModuleProvisioningState.Succeeded => "Succeeded", - ModuleProvisioningState.Failed => "Failed", - ModuleProvisioningState.Cancelled => "Cancelled", - ModuleProvisioningState.Updating => "Updating", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ModuleProvisioningState value.") - }; - - public static ModuleProvisioningState ToModuleProvisioningState(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return ModuleProvisioningState.Created; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return ModuleProvisioningState.Creating; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "StartingImportModuleRunbook")) return ModuleProvisioningState.StartingImportModuleRunbook; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "RunningImportModuleRunbook")) return ModuleProvisioningState.RunningImportModuleRunbook; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentRetrieved")) return ModuleProvisioningState.ContentRetrieved; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentDownloaded")) return ModuleProvisioningState.ContentDownloaded; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentValidated")) return ModuleProvisioningState.ContentValidated; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ConnectionTypeImported")) return ModuleProvisioningState.ConnectionTypeImported; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentStored")) return ModuleProvisioningState.ContentStored; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModuleDataStored")) return ModuleProvisioningState.ModuleDataStored; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActivitiesStored")) return ModuleProvisioningState.ActivitiesStored; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModuleImportRunbookComplete")) return ModuleProvisioningState.ModuleImportRunbookComplete; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return ModuleProvisioningState.Succeeded; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ModuleProvisioningState.Failed; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return ModuleProvisioningState.Cancelled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updating")) return ModuleProvisioningState.Updating; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ModuleProvisioningState value."); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs index 630023c2ebd5..1c65d9ce4670 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs @@ -5,42 +5,89 @@ #nullable disable +using System; +using System.ComponentModel; + namespace Azure.ResourceManager.Automation.Models { /// Gets or sets the provisioning state of the module. - public enum ModuleProvisioningState + public readonly partial struct ModuleProvisioningState : IEquatable { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ModuleProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CreatedValue = "Created"; + private const string CreatingValue = "Creating"; + private const string StartingImportModuleRunbookValue = "StartingImportModuleRunbook"; + private const string RunningImportModuleRunbookValue = "RunningImportModuleRunbook"; + private const string ContentRetrievedValue = "ContentRetrieved"; + private const string ContentDownloadedValue = "ContentDownloaded"; + private const string ContentValidatedValue = "ContentValidated"; + private const string ConnectionTypeImportedValue = "ConnectionTypeImported"; + private const string ContentStoredValue = "ContentStored"; + private const string ModuleDataStoredValue = "ModuleDataStored"; + private const string ActivitiesStoredValue = "ActivitiesStored"; + private const string ModuleImportRunbookCompleteValue = "ModuleImportRunbookComplete"; + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string UpdatingValue = "Updating"; + /// Created. - Created, + public static ModuleProvisioningState Created { get; } = new ModuleProvisioningState(CreatedValue); /// Creating. - Creating, + public static ModuleProvisioningState Creating { get; } = new ModuleProvisioningState(CreatingValue); /// StartingImportModuleRunbook. - StartingImportModuleRunbook, + public static ModuleProvisioningState StartingImportModuleRunbook { get; } = new ModuleProvisioningState(StartingImportModuleRunbookValue); /// RunningImportModuleRunbook. - RunningImportModuleRunbook, + public static ModuleProvisioningState RunningImportModuleRunbook { get; } = new ModuleProvisioningState(RunningImportModuleRunbookValue); /// ContentRetrieved. - ContentRetrieved, + public static ModuleProvisioningState ContentRetrieved { get; } = new ModuleProvisioningState(ContentRetrievedValue); /// ContentDownloaded. - ContentDownloaded, + public static ModuleProvisioningState ContentDownloaded { get; } = new ModuleProvisioningState(ContentDownloadedValue); /// ContentValidated. - ContentValidated, + public static ModuleProvisioningState ContentValidated { get; } = new ModuleProvisioningState(ContentValidatedValue); /// ConnectionTypeImported. - ConnectionTypeImported, + public static ModuleProvisioningState ConnectionTypeImported { get; } = new ModuleProvisioningState(ConnectionTypeImportedValue); /// ContentStored. - ContentStored, + public static ModuleProvisioningState ContentStored { get; } = new ModuleProvisioningState(ContentStoredValue); /// ModuleDataStored. - ModuleDataStored, + public static ModuleProvisioningState ModuleDataStored { get; } = new ModuleProvisioningState(ModuleDataStoredValue); /// ActivitiesStored. - ActivitiesStored, + public static ModuleProvisioningState ActivitiesStored { get; } = new ModuleProvisioningState(ActivitiesStoredValue); /// ModuleImportRunbookComplete. - ModuleImportRunbookComplete, + public static ModuleProvisioningState ModuleImportRunbookComplete { get; } = new ModuleProvisioningState(ModuleImportRunbookCompleteValue); /// Succeeded. - Succeeded, + public static ModuleProvisioningState Succeeded { get; } = new ModuleProvisioningState(SucceededValue); /// Failed. - Failed, - /// Cancelled. - Cancelled, + public static ModuleProvisioningState Failed { get; } = new ModuleProvisioningState(FailedValue); + /// Canceled. + public static ModuleProvisioningState Canceled { get; } = new ModuleProvisioningState(CanceledValue); /// Updating. - Updating + public static ModuleProvisioningState Updating { get; } = new ModuleProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(ModuleProvisioningState left, ModuleProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ModuleProvisioningState left, ModuleProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ModuleProvisioningState(string value) => new ModuleProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ModuleProvisioningState other && Equals(other); + /// + public bool Equals(ModuleProvisioningState 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/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageCreateOrUpdateContent.Serialization.cs new file mode 100644 index 000000000000..9389351051c7 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageCreateOrUpdateContent.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + public partial class PackageCreateOrUpdateContent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageCreateOrUpdateContent)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(AllOf)) + { + writer.WritePropertyName("allOf"u8); + writer.WriteObjectValue(AllOf, options); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + writer.WritePropertyName("contentLink"u8); + writer.WriteObjectValue(ContentLink, options); + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PackageCreateOrUpdateContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageCreateOrUpdateContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePackageCreateOrUpdateContent(document.RootElement, options); + } + + internal static PackageCreateOrUpdateContent DeserializePackageCreateOrUpdateContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + TrackedResource allOf = default; + AutomationContentLink contentLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("allOf"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allOf = TrackedResource.DeserializeTrackedResource(property.Value, options); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("contentLink"u8)) + { + contentLink = AutomationContentLink.DeserializeAutomationContentLink(property0.Value, options); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PackageCreateOrUpdateContent(allOf, contentLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PackageCreateOrUpdateContent)} does not support writing '{options.Format}' format."); + } + } + + PackageCreateOrUpdateContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePackageCreateOrUpdateContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PackageCreateOrUpdateContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageCreateOrUpdateContent.cs new file mode 100644 index 000000000000..672d526d6525 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageCreateOrUpdateContent.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The parameters supplied to the create or update package operation. + public partial class PackageCreateOrUpdateContent + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Gets or sets the package content link. + /// is null. + public PackageCreateOrUpdateContent(AutomationContentLink contentLink) + { + Argument.AssertNotNull(contentLink, nameof(contentLink)); + + ContentLink = contentLink; + } + + /// Initializes a new instance of . + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + /// Gets or sets the package content link. + /// Keeps track of any properties unknown to the library. + internal PackageCreateOrUpdateContent(TrackedResource allOf, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) + { + AllOf = allOf; + ContentLink = contentLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal PackageCreateOrUpdateContent() + { + } + + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + public TrackedResource AllOf { get; set; } + /// Gets or sets the package content link. + public AutomationContentLink ContentLink { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageErrorInfo.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageErrorInfo.Serialization.cs new file mode 100644 index 000000000000..ea9a05d25575 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageErrorInfo.Serialization.cs @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + public partial class PackageErrorInfo : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageErrorInfo)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + if (Optional.IsDefined(Message)) + { + writer.WritePropertyName("message"u8); + writer.WriteStringValue(Message); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PackageErrorInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageErrorInfo)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePackageErrorInfo(document.RootElement, options); + } + + internal static PackageErrorInfo DeserializePackageErrorInfo(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string code = default; + string message = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code"u8)) + { + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PackageErrorInfo(code, message, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PackageErrorInfo)} does not support writing '{options.Format}' format."); + } + } + + PackageErrorInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePackageErrorInfo(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PackageErrorInfo)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageErrorInfo.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageErrorInfo.cs new file mode 100644 index 000000000000..c3dcc3b7f79c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageErrorInfo.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Definition of the package error info type. + public partial class PackageErrorInfo + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public PackageErrorInfo() + { + } + + /// Initializes a new instance of . + /// Package import error code. + /// Package import error message. + /// Keeps track of any properties unknown to the library. + internal PackageErrorInfo(string code, string message, IDictionary serializedAdditionalRawData) + { + Code = code; + Message = message; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Package import error code. + public string Code { get; set; } + /// Package import error message. + public string Message { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageListResult.Serialization.cs new file mode 100644 index 000000000000..46066f4ba5d1 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageListResult.Serialization.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class PackageListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageListResult)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PackageListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePackageListResult(document.RootElement, options); + } + + internal static PackageListResult DeserializePackageListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PackageData.DeserializePackageData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PackageListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PackageListResult)} does not support writing '{options.Format}' format."); + } + } + + PackageListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePackageListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PackageListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageListResult.cs new file mode 100644 index 000000000000..4542511c4568 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The response model for the list runtime environments operation. + internal partial class PackageListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal PackageListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// list of the Packages of the runtime environment. + /// Gets the next link. + /// Keeps track of any properties unknown to the library. + internal PackageListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// list of the Packages of the runtime environment. + public IReadOnlyList Value { get; } + /// Gets the next link. + public string NextLink { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackagePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackagePatch.Serialization.cs new file mode 100644 index 000000000000..4bb629eea6ff --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackagePatch.Serialization.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + public partial class PackagePatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackagePatch)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(AllOf)) + { + writer.WritePropertyName("allOf"u8); + writer.WriteObjectValue(AllOf, options); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ContentLink)) + { + writer.WritePropertyName("contentLink"u8); + writer.WriteObjectValue(ContentLink, options); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PackagePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackagePatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePackagePatch(document.RootElement, options); + } + + internal static PackagePatch DeserializePackagePatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + TrackedResource allOf = default; + AutomationContentLink contentLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("allOf"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allOf = TrackedResource.DeserializeTrackedResource(property.Value, options); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("contentLink"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + contentLink = AutomationContentLink.DeserializeAutomationContentLink(property0.Value, options); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PackagePatch(allOf, contentLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PackagePatch)} does not support writing '{options.Format}' format."); + } + } + + PackagePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePackagePatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PackagePatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackagePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackagePatch.cs new file mode 100644 index 000000000000..668338f42b67 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackagePatch.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The parameters supplied to the update package operation. + public partial class PackagePatch + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public PackagePatch() + { + } + + /// Initializes a new instance of . + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + /// Gets or sets the package content link. + /// Keeps track of any properties unknown to the library. + internal PackagePatch(TrackedResource allOf, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) + { + AllOf = allOf; + ContentLink = contentLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + public TrackedResource AllOf { get; set; } + /// Gets or sets the package content link. + public AutomationContentLink ContentLink { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageProvisioningState.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageProvisioningState.cs new file mode 100644 index 000000000000..93426602188a --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PackageProvisioningState.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the provisioning state of the Package. + public readonly partial struct PackageProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PackageProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CreatedValue = "Created"; + private const string CreatingValue = "Creating"; + private const string StartingImportModuleRunbookValue = "StartingImportModuleRunbook"; + private const string RunningImportModuleRunbookValue = "RunningImportModuleRunbook"; + private const string ContentRetrievedValue = "ContentRetrieved"; + private const string ContentDownloadedValue = "ContentDownloaded"; + private const string ContentValidatedValue = "ContentValidated"; + private const string ConnectionTypeImportedValue = "ConnectionTypeImported"; + private const string ContentStoredValue = "ContentStored"; + private const string ModuleDataStoredValue = "ModuleDataStored"; + private const string ActivitiesStoredValue = "ActivitiesStored"; + private const string ModuleImportRunbookCompleteValue = "ModuleImportRunbookComplete"; + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string UpdatingValue = "Updating"; + + /// Created. + public static PackageProvisioningState Created { get; } = new PackageProvisioningState(CreatedValue); + /// Creating. + public static PackageProvisioningState Creating { get; } = new PackageProvisioningState(CreatingValue); + /// StartingImportModuleRunbook. + public static PackageProvisioningState StartingImportModuleRunbook { get; } = new PackageProvisioningState(StartingImportModuleRunbookValue); + /// RunningImportModuleRunbook. + public static PackageProvisioningState RunningImportModuleRunbook { get; } = new PackageProvisioningState(RunningImportModuleRunbookValue); + /// ContentRetrieved. + public static PackageProvisioningState ContentRetrieved { get; } = new PackageProvisioningState(ContentRetrievedValue); + /// ContentDownloaded. + public static PackageProvisioningState ContentDownloaded { get; } = new PackageProvisioningState(ContentDownloadedValue); + /// ContentValidated. + public static PackageProvisioningState ContentValidated { get; } = new PackageProvisioningState(ContentValidatedValue); + /// ConnectionTypeImported. + public static PackageProvisioningState ConnectionTypeImported { get; } = new PackageProvisioningState(ConnectionTypeImportedValue); + /// ContentStored. + public static PackageProvisioningState ContentStored { get; } = new PackageProvisioningState(ContentStoredValue); + /// ModuleDataStored. + public static PackageProvisioningState ModuleDataStored { get; } = new PackageProvisioningState(ModuleDataStoredValue); + /// ActivitiesStored. + public static PackageProvisioningState ActivitiesStored { get; } = new PackageProvisioningState(ActivitiesStoredValue); + /// ModuleImportRunbookComplete. + public static PackageProvisioningState ModuleImportRunbookComplete { get; } = new PackageProvisioningState(ModuleImportRunbookCompleteValue); + /// Succeeded. + public static PackageProvisioningState Succeeded { get; } = new PackageProvisioningState(SucceededValue); + /// Failed. + public static PackageProvisioningState Failed { get; } = new PackageProvisioningState(FailedValue); + /// Canceled. + public static PackageProvisioningState Canceled { get; } = new PackageProvisioningState(CanceledValue); + /// Updating. + public static PackageProvisioningState Updating { get; } = new PackageProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(PackageProvisioningState left, PackageProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PackageProvisioningState left, PackageProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator PackageProvisioningState(string value) => new PackageProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PackageProvisioningState other && Equals(other); + /// + public bool Equals(PackageProvisioningState 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/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.Serialization.cs similarity index 66% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.Serialization.cs index b3b4f9edf5e2..6b81bf927b5f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AutomationAccountPython2PackageCreateOrUpdateContent : IUtf8JsonSerializable, IJsonModel + public partial class PythonPackageCreateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8 /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support writing '{format}' format."); } if (Optional.IsCollectionDefined(Tags)) @@ -67,19 +67,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutomationAccountPython2PackageCreateOrUpdateContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + PythonPackageCreateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAutomationAccountPython2PackageCreateOrUpdateContent(document.RootElement, options); + return DeserializePythonPackageCreateParameters(document.RootElement, options); } - internal static AutomationAccountPython2PackageCreateOrUpdateContent DeserializeAutomationAccountPython2PackageCreateOrUpdateContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static PythonPackageCreateParameters DeserializePythonPackageCreateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -130,38 +130,38 @@ internal static AutomationAccountPython2PackageCreateOrUpdateContent Deserialize } } serializedAdditionalRawData = rawDataDictionary; - return new AutomationAccountPython2PackageCreateOrUpdateContent(tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); + return new PythonPackageCreateParameters(tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support writing '{options.Format}' format."); } } - AutomationAccountPython2PackageCreateOrUpdateContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + PythonPackageCreateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAutomationAccountPython2PackageCreateOrUpdateContent(document.RootElement, options); + return DeserializePythonPackageCreateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.cs index 9515a1ed9c37..bd392482af72 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update module operation. - public partial class AutomationAccountPython2PackageCreateOrUpdateContent + public partial class PythonPackageCreateParameters { /// /// Keeps track of any properties unknown to the library. @@ -45,10 +45,10 @@ public partial class AutomationAccountPython2PackageCreateOrUpdateContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the module content link. /// is null. - public AutomationAccountPython2PackageCreateOrUpdateContent(AutomationContentLink contentLink) + public PythonPackageCreateParameters(AutomationContentLink contentLink) { Argument.AssertNotNull(contentLink, nameof(contentLink)); @@ -56,19 +56,19 @@ public AutomationAccountPython2PackageCreateOrUpdateContent(AutomationContentLin ContentLink = contentLink; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the tags attached to the resource. /// Gets or sets the module content link. /// Keeps track of any properties unknown to the library. - internal AutomationAccountPython2PackageCreateOrUpdateContent(IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) + internal PythonPackageCreateParameters(IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) { Tags = tags; ContentLink = contentLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal AutomationAccountPython2PackageCreateOrUpdateContent() + /// Initializes a new instance of for deserialization. + internal PythonPackageCreateParameters() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.Serialization.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.Serialization.cs index e416b67d0ff3..c8a48be803c0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AutomationAccountPython2PackagePatch : IUtf8JsonSerializable, IJsonModel + public partial class PythonPackageUpdateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter write /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support writing '{format}' format."); } if (Optional.IsCollectionDefined(Tags)) @@ -62,19 +62,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutomationAccountPython2PackagePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + PythonPackageUpdateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAutomationAccountPython2PackagePatch(document.RootElement, options); + return DeserializePythonPackageUpdateParameters(document.RootElement, options); } - internal static AutomationAccountPython2PackagePatch DeserializeAutomationAccountPython2PackagePatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static PythonPackageUpdateParameters DeserializePythonPackageUpdateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -107,38 +107,38 @@ internal static AutomationAccountPython2PackagePatch DeserializeAutomationAccoun } } serializedAdditionalRawData = rawDataDictionary; - return new AutomationAccountPython2PackagePatch(tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + return new PythonPackageUpdateParameters(tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support writing '{options.Format}' format."); } } - AutomationAccountPython2PackagePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + PythonPackageUpdateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAutomationAccountPython2PackagePatch(document.RootElement, options); + return DeserializePythonPackageUpdateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.cs index 23085161f25e..191b10d42d74 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update module operation. - public partial class AutomationAccountPython2PackagePatch + public partial class PythonPackageUpdateParameters { /// /// Keeps track of any properties unknown to the library. @@ -45,16 +45,16 @@ public partial class AutomationAccountPython2PackagePatch /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public AutomationAccountPython2PackagePatch() + /// Initializes a new instance of . + public PythonPackageUpdateParameters() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the tags attached to the resource. /// Keeps track of any properties unknown to the library. - internal AutomationAccountPython2PackagePatch(IDictionary tags, IDictionary serializedAdditionalRawData) + internal PythonPackageUpdateParameters(IDictionary tags, IDictionary serializedAdditionalRawData) { Tags = tags; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs index e65c37b19a7b..3788be552d93 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs @@ -50,6 +50,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("runOn"u8); writer.WriteStringValue(RunOn); } + if (Optional.IsDefined(RuntimeEnvironment)) + { + writer.WritePropertyName("runtimeEnvironment"u8); + writer.WriteStringValue(RuntimeEnvironment); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -89,6 +94,7 @@ internal static RunbookTestJobCreateContent DeserializeRunbookTestJobCreateConte } IDictionary parameters = default; string runOn = default; + string runtimeEnvironment = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -112,13 +118,18 @@ internal static RunbookTestJobCreateContent DeserializeRunbookTestJobCreateConte runOn = property.Value.GetString(); continue; } + if (property.NameEquals("runtimeEnvironment"u8)) + { + runtimeEnvironment = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new RunbookTestJobCreateContent(parameters ?? new ChangeTrackingDictionary(), runOn, serializedAdditionalRawData); + return new RunbookTestJobCreateContent(parameters ?? new ChangeTrackingDictionary(), runOn, runtimeEnvironment, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs index 64a7ce6a9b68..4d66506a8f46 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs @@ -54,11 +54,13 @@ public RunbookTestJobCreateContent() /// Initializes a new instance of . /// Gets or sets the parameters of the test job. /// Gets or sets the runOn which specifies the group name where the job is to be executed. + /// The runtime Environment Name on which job needs to be tested. /// Keeps track of any properties unknown to the library. - internal RunbookTestJobCreateContent(IDictionary parameters, string runOn, IDictionary serializedAdditionalRawData) + internal RunbookTestJobCreateContent(IDictionary parameters, string runOn, string runtimeEnvironment, IDictionary serializedAdditionalRawData) { Parameters = parameters; RunOn = runOn; + RuntimeEnvironment = runtimeEnvironment; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -66,5 +68,7 @@ internal RunbookTestJobCreateContent(IDictionary parameters, str public IDictionary Parameters { get; } /// Gets or sets the runOn which specifies the group name where the job is to be executed. public string RunOn { get; set; } + /// The runtime Environment Name on which job needs to be tested. + public string RuntimeEnvironment { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentListResult.Serialization.cs new file mode 100644 index 000000000000..7cb2d7d69d0a --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentListResult.Serialization.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class RuntimeEnvironmentListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RuntimeEnvironmentListResult)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + RuntimeEnvironmentListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RuntimeEnvironmentListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRuntimeEnvironmentListResult(document.RootElement, options); + } + + internal static RuntimeEnvironmentListResult DeserializeRuntimeEnvironmentListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RuntimeEnvironmentListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RuntimeEnvironmentListResult)} does not support writing '{options.Format}' format."); + } + } + + RuntimeEnvironmentListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRuntimeEnvironmentListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RuntimeEnvironmentListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentListResult.cs new file mode 100644 index 000000000000..fd81c9d68999 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Automation.Models +{ + /// List of all the Runtime Environments of automation account. + internal partial class RuntimeEnvironmentListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal RuntimeEnvironmentListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// list of RuntimeEnvironment. + /// Gets or sets the next link. + /// Keeps track of any properties unknown to the library. + internal RuntimeEnvironmentListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// list of RuntimeEnvironment. + public IReadOnlyList Value { get; } + /// Gets or sets the next link. + public string NextLink { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentPatch.Serialization.cs new file mode 100644 index 000000000000..5b8979aa4977 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentPatch.Serialization.cs @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation.Models +{ + public partial class RuntimeEnvironmentPatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RuntimeEnvironmentPatch)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(DefaultPackages)) + { + writer.WritePropertyName("defaultPackages"u8); + writer.WriteStartObject(); + foreach (var item in DefaultPackages) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + RuntimeEnvironmentPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RuntimeEnvironmentPatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRuntimeEnvironmentPatch(document.RootElement, options); + } + + internal static RuntimeEnvironmentPatch DeserializeRuntimeEnvironmentPatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + SystemData systemData = default; + IDictionary defaultPackages = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("defaultPackages"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + defaultPackages = dictionary; + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RuntimeEnvironmentPatch(systemData, defaultPackages ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RuntimeEnvironmentPatch)} does not support writing '{options.Format}' format."); + } + } + + RuntimeEnvironmentPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRuntimeEnvironmentPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RuntimeEnvironmentPatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentPatch.cs new file mode 100644 index 000000000000..990d8e5bea3d --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RuntimeEnvironmentPatch.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The parameters supplied to the update automation account operation. + public partial class RuntimeEnvironmentPatch + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public RuntimeEnvironmentPatch() + { + DefaultPackages = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Metadata pertaining to creation and last modification of the resource. + /// List of Default packages for Environment. + /// Keeps track of any properties unknown to the library. + internal RuntimeEnvironmentPatch(SystemData systemData, IDictionary defaultPackages, IDictionary serializedAdditionalRawData) + { + SystemData = systemData; + DefaultPackages = defaultPackages; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Metadata pertaining to creation and last modification of the resource. + public SystemData SystemData { get; } + /// List of Default packages for Environment. + public IDictionary DefaultPackages { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TrackedResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TrackedResource.Serialization.cs new file mode 100644 index 000000000000..125363b9b601 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TrackedResource.Serialization.cs @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation.Models +{ + public partial class TrackedResource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(TrackedResource)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + } + + TrackedResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(TrackedResource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeTrackedResource(document.RootElement, options); + } + + internal static TrackedResource DeserializeTrackedResource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new TrackedResource( + id, + name, + type, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(TrackedResource)} does not support writing '{options.Format}' format."); + } + } + + TrackedResource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeTrackedResource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(TrackedResource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TrackedResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TrackedResource.cs new file mode 100644 index 000000000000..63270cf98cc3 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TrackedResource.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + public partial class TrackedResource : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private protected IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The geo-location where the resource lives. + public TrackedResource(AzureLocation location) + { + Tags = new ChangeTrackingDictionary(); + Location = location; + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource tags. + /// The geo-location where the resource lives. + /// Keeps track of any properties unknown to the library. + internal TrackedResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Tags = tags; + Location = location; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal TrackedResource() + { + } + + /// Resource tags. + public IDictionary Tags { get; } + /// The geo-location where the resource lives. + public AzureLocation Location { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageCollection.cs new file mode 100644 index 000000000000..c911b7e4b4da --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageCollection.cs @@ -0,0 +1,498 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetPackages method from an instance of . + /// + public partial class PackageCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _packageClientDiagnostics; + private readonly PackageRestOperations _packageRestClient; + + /// Initializes a new instance of the class for mocking. + protected PackageCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal PackageCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _packageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", PackageResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(PackageResource.ResourceType, out string packageApiVersion); + _packageRestClient = new PackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, packageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RuntimeEnvironmentResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RuntimeEnvironmentResource.ResourceType), nameof(id)); + } + + /// + /// Create or update the package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of Package. + /// The create or update parameters for Package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string packageName, PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _packageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, content, cancellationToken).ConfigureAwait(false); + var uri = _packageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update the package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of Package. + /// The create or update parameters for Package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string packageName, PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _packageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, content, cancellationToken); + var uri = _packageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.Get"); + scope.Start(); + try + { + var response = await _packageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.Get"); + scope.Start(); + try + { + var response = _packageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the a list of Packages + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages + /// + /// + /// Operation Id + /// Package_ListByRuntimeEnvironment + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _packageRestClient.CreateListByRuntimeEnvironmentRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _packageRestClient.CreateListByRuntimeEnvironmentNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PackageResource(Client, PackageData.DeserializePackageData(e)), _packageClientDiagnostics, Pipeline, "PackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Retrieve the a list of Packages + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages + /// + /// + /// Operation Id + /// Package_ListByRuntimeEnvironment + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _packageRestClient.CreateListByRuntimeEnvironmentRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _packageRestClient.CreateListByRuntimeEnvironmentNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PackageResource(Client, PackageData.DeserializePackageData(e)), _packageClientDiagnostics, Pipeline, "PackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.Exists"); + scope.Start(); + try + { + var response = await _packageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.Exists"); + scope.Start(); + try + { + var response = _packageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _packageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = _packageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, packageName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageData.Serialization.cs new file mode 100644 index 000000000000..b4e0108e3764 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageData.Serialization.cs @@ -0,0 +1,285 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation +{ + public partial class PackageData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Default)) + { + writer.WritePropertyName("default"u8); + writer.WriteBooleanValue(Default.Value); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(SizeInBytes)) + { + writer.WritePropertyName("sizeInBytes"u8); + writer.WriteNumberValue(SizeInBytes.Value); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(ContentLink)) + { + writer.WritePropertyName("contentLink"u8); + writer.WriteObjectValue(ContentLink, options); + } + if (Optional.IsDefined(Error)) + { + writer.WritePropertyName("error"u8); + writer.WriteObjectValue(Error, options); + } + if (options.Format != "W" && Optional.IsDefined(AllOf)) + { + writer.WritePropertyName("allOf"u8); + JsonSerializer.Serialize(writer, AllOf); + } + writer.WriteEndObject(); + } + + PackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PackageData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePackageData(document.RootElement, options); + } + + internal static PackageData DeserializePackageData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + bool? @default = default; + string version = default; + long? sizeInBytes = default; + PackageProvisioningState? provisioningState = default; + AutomationContentLink contentLink = default; + PackageErrorInfo error = default; + SystemData allOf = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("default"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + @default = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("version"u8)) + { + version = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("sizeInBytes"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sizeInBytes = property0.Value.GetInt64(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new PackageProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("contentLink"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + contentLink = AutomationContentLink.DeserializeAutomationContentLink(property0.Value, options); + continue; + } + if (property0.NameEquals("error"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = PackageErrorInfo.DeserializePackageErrorInfo(property0.Value, options); + continue; + } + if (property0.NameEquals("allOf"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allOf = JsonSerializer.Deserialize(property0.Value.GetRawText()); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PackageData( + id, + name, + type, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + @default, + version, + sizeInBytes, + provisioningState, + contentLink, + error, + allOf, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PackageData)} does not support writing '{options.Format}' format."); + } + } + + PackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePackageData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PackageData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageData.cs new file mode 100644 index 000000000000..f76f42f2e508 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageData.cs @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Automation.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing the Package data model. + /// Definition of the Package type. + /// + public partial class PackageData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + public PackageData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Gets or sets the isGlobal flag of the package. + /// Gets or sets the version of the Package. + /// Gets or sets the size in bytes of the Package. + /// Gets or sets the provisioning state of the Package. + /// Gets or sets the contentLink of the Package. + /// Gets or sets the error info of the Package. + /// Metadata pertaining to creation and last modification of the resource. + /// Keeps track of any properties unknown to the library. + internal PackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, bool? @default, string version, long? sizeInBytes, PackageProvisioningState? provisioningState, AutomationContentLink contentLink, PackageErrorInfo error, SystemData allOf, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + Default = @default; + Version = version; + SizeInBytes = sizeInBytes; + ProvisioningState = provisioningState; + ContentLink = contentLink; + Error = error; + AllOf = allOf; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal PackageData() + { + } + + /// Gets or sets the isGlobal flag of the package. + public bool? Default { get; set; } + /// Gets or sets the version of the Package. + public string Version { get; set; } + /// Gets or sets the size in bytes of the Package. + public long? SizeInBytes { get; set; } + /// Gets or sets the provisioning state of the Package. + public PackageProvisioningState? ProvisioningState { get; } + /// Gets or sets the contentLink of the Package. + public AutomationContentLink ContentLink { get; set; } + /// Gets or sets the error info of the Package. + public PackageErrorInfo Error { get; set; } + /// Metadata pertaining to creation and last modification of the resource. + public SystemData AllOf { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageResource.Serialization.cs new file mode 100644 index 000000000000..84bb70e6410f --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class PackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + PackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + PackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageResource.cs new file mode 100644 index 000000000000..d99bc198a4d8 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/PackageResource.cs @@ -0,0 +1,345 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A Class representing a Package along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetPackageResource method. + /// Otherwise you can get one from its parent resource using the GetPackage method. + /// + public partial class PackageResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The automationAccountName. + /// The runtimeEnvironmentName. + /// The packageName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _packageClientDiagnostics; + private readonly PackageRestOperations _packageRestClient; + private readonly PackageData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts/runtimeEnvironments/packages"; + + /// Initializes a new instance of the class for mocking. + protected PackageResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal PackageResource(ArmClient client, PackageData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal PackageResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _packageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string packageApiVersion); + _packageRestClient = new PackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, packageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual PackageData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Retrieve the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _packageClientDiagnostics.CreateScope("PackageResource.Get"); + scope.Start(); + try + { + var response = await _packageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _packageClientDiagnostics.CreateScope("PackageResource.Get"); + scope.Start(); + try + { + var response = _packageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the package by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Delete + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _packageClientDiagnostics.CreateScope("PackageResource.Delete"); + scope.Start(); + try + { + var response = await _packageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _packageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the package by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Delete + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _packageClientDiagnostics.CreateScope("PackageResource.Delete"); + scope.Start(); + try + { + var response = _packageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _packageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for Package. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(PackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageResource.Update"); + scope.Start(); + try + { + var response = await _packageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for Package. + /// The cancellation token to use. + /// is null. + public virtual Response Update(PackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _packageClientDiagnostics.CreateScope("PackageResource.Update"); + scope.Start(); + try + { + var response = _packageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs index 6ce2effe7cfe..341d4ae07913 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs @@ -32,7 +32,7 @@ public ActivityRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs index c5cd678e13df..c559057fed87 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs @@ -32,7 +32,7 @@ public AgentRegistrationInformationRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs index bf3627a4863f..2682dd23adba 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs @@ -32,7 +32,7 @@ public AutomationAccountRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -582,6 +582,100 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListDeletedRunbooksRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/listDeletedRunbooks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListDeletedRunbooksRequest(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/listDeletedRunbooks", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the deleted runbooks for an automation account. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListDeletedRunbooksAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListDeletedRunbooksRequest(subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeletedRunbookListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = DeletedRunbookListResult.DeserializeDeletedRunbookListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the deleted runbooks for an automation account. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListDeletedRunbooks(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListDeletedRunbooksRequest(subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeletedRunbookListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = DeletedRunbookListResult.DeserializeDeletedRunbookListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) { var uri = new RawRequestUriBuilder(); @@ -737,5 +831,89 @@ public Response ListNextPage(string nextLink, strin throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListDeletedRunbooksNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListDeletedRunbooksNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the deleted runbooks for an automation account. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListDeletedRunbooksNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListDeletedRunbooksNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeletedRunbookListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = DeletedRunbookListResult.DeserializeDeletedRunbookListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the deleted runbooks for an automation account. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListDeletedRunbooksNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListDeletedRunbooksNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeletedRunbookListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = DeletedRunbookListResult.DeserializeDeletedRunbookListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs index f638cf5a9499..460314647ac7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs @@ -32,7 +32,7 @@ public AutomationRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs index f2bcf50ce3dd..07b147734d83 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs @@ -32,7 +32,7 @@ public CertificateRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs index 3cd93f4c64a2..d25d5ad1c306 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs @@ -32,7 +32,7 @@ public ConnectionRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs index a094d34c6d23..3b87c9757ff2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs @@ -32,7 +32,7 @@ public ConnectionTypeRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs index 85a26a129ff9..9432ecd5c3a9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs @@ -32,7 +32,7 @@ public CredentialRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs index 49c32ee34d68..2caa8ab2115b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs @@ -32,7 +32,7 @@ public DeletedAutomationAccountsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-31"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs deleted file mode 100644 index 22e5cf4ba85b..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Automation.Models; - -namespace Azure.ResourceManager.Automation -{ - internal partial class DscCompilationJobStreamRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of DscCompilationJobStreamRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public DscCompilationJobStreamRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListByJobRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); - uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(jobId, true); - uri.AppendPath("/streams", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListByJobRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); - uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(jobId, true); - uri.AppendPath("/streams", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Retrieve all the job streams for the compilation Job. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Name of an Azure Resource group. - /// The name of the automation account. - /// The job id. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - - using var message = CreateListByJobRequest(subscriptionId, resourceGroupName, automationAccountName, jobId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AutomationJobStreamListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Retrieve all the job streams for the compilation Job. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Name of an Azure Resource group. - /// The name of the automation account. - /// The job id. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListByJob(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - - using var message = CreateListByJobRequest(subscriptionId, resourceGroupName, automationAccountName, jobId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AutomationJobStreamListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs index e3617e3d3e6b..fecf25c7fc2d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public DscConfigurationRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs index 9247f30fdec0..dabb3ee98878 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public DscNodeConfigurationRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs index bafb01af13ae..1205f5ea1f34 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs @@ -32,7 +32,7 @@ public DscNodeRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs index 72de1bbb6d8a..9328d36c82fc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs @@ -32,7 +32,7 @@ public FieldsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs index 1a5d38c6bab1..16ec67d493c2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs @@ -32,7 +32,7 @@ public HybridRunbookWorkerGroupRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -294,6 +294,7 @@ public async Task> CreateAsync(string sub switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerGroupData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); @@ -327,6 +328,7 @@ public Response Create(string subscriptionId, stri switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerGroupData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs index 658de2faf86f..11b11be3d545 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs @@ -32,7 +32,7 @@ public HybridRunbookWorkersRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -248,7 +248,7 @@ public Response Get(string subscriptionId, string resou } } - internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content) + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -266,7 +266,7 @@ internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -287,9 +287,9 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(hybridRunbookWorkerCreationParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } @@ -300,24 +300,25 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// The name of the automation account. /// The hybrid runbook worker group name. /// The hybrid runbook worker id. - /// The create or update parameters for hybrid runbook worker. + /// The create or update parameters for hybrid runbook worker. /// The cancellation token to use. - /// , , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerId, nameof(hybridRunbookWorkerId)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, content); + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); @@ -335,20 +336,137 @@ public async Task> CreateAsync(string subscrip /// The name of the automation account. /// The hybrid runbook worker group name. /// The hybrid runbook worker id. - /// The create or update parameters for hybrid runbook worker. + /// The create or update parameters for hybrid runbook worker. /// The cancellation token to use. - /// , , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerId, nameof(hybridRunbookWorkerId)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + HybridRunbookWorkerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = HybridRunbookWorkerData.DeserializeHybridRunbookWorkerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers/", false); + uri.AppendPath(hybridRunbookWorkerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers/", false); + uri.AppendPath(hybridRunbookWorkerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(hybridRunbookWorkerCreationParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update a hybrid runbook worker. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The hybrid runbook worker group name. + /// The hybrid runbook worker id. + /// The create or update parameters for hybrid runbook worker. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> PatchAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); + Argument.AssertNotNullOrEmpty(hybridRunbookWorkerId, nameof(hybridRunbookWorkerId)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); + + using var message = CreatePatchRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + HybridRunbookWorkerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = HybridRunbookWorkerData.DeserializeHybridRunbookWorkerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update a hybrid runbook worker. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The hybrid runbook worker group name. + /// The hybrid runbook worker id. + /// The create or update parameters for hybrid runbook worker. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Patch(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); + Argument.AssertNotNullOrEmpty(hybridRunbookWorkerId, nameof(hybridRunbookWorkerId)); + Argument.AssertNotNull(hybridRunbookWorkerCreationParameters, nameof(hybridRunbookWorkerCreationParameters)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, content); + using var message = CreatePatchRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs index eeb49c9e6425..a64b3ffbf7b0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs @@ -33,7 +33,7 @@ public JobRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs index 6a861bedf059..312f014e2f71 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs @@ -32,7 +32,7 @@ public JobScheduleRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs index 94c86c7a6590..dbf79e8d501e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs @@ -32,7 +32,7 @@ public JobStreamRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs index 9fdd95adf78a..579f7300d6e3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs @@ -32,7 +32,7 @@ public KeysRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs index 91c4b19714dc..4c47e7eebf16 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs @@ -32,7 +32,7 @@ public LinkedWorkspaceRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs index a35e8a6f032b..04224745f283 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs @@ -32,7 +32,7 @@ public ModuleRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs index cb1f7418385c..2a8daf82de85 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs @@ -32,7 +32,7 @@ public NodeCountInformationRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs index 84f46b8cbc8f..0c71ea0a3d81 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs @@ -32,7 +32,7 @@ public NodeReportsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs index 121a46d52577..1ef9e950bc66 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs @@ -32,7 +32,7 @@ public ObjectDataTypesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PackageRestOperations.cs new file mode 100644 index 000000000000..ed0e8d67b4fd --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PackageRestOperations.cs @@ -0,0 +1,675 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + internal partial class PackageRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of PackageRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public PackageRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-10-23"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the package by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The Package name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the package by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The Package name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the Package identified by Package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The Package name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PackageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = PackageData.DeserializePackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((PackageData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the Package identified by Package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The Package name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PackageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = PackageData.DeserializePackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((PackageData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackageCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackageCreateOrUpdateContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Create or update the package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The name of Package. + /// The create or update parameters for Package. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + PackageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = PackageData.DeserializePackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update the package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The name of Package. + /// The create or update parameters for Package. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + PackageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = PackageData.DeserializePackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackagePatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update the Package identified by Package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The name of Package. + /// The update parameters for Package. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PackageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = PackageData.DeserializePackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update the Package identified by Package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The name of Package. + /// The update parameters for Package. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, string packageName, PackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, packageName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PackageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = PackageData.DeserializePackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByRuntimeEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByRuntimeEnvironmentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendPath("/packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the a list of Packages. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListByRuntimeEnvironmentAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var message = CreateListByRuntimeEnvironmentRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PackageListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = PackageListResult.DeserializePackageListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the a list of Packages. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListByRuntimeEnvironment(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var message = CreateListByRuntimeEnvironmentRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PackageListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = PackageListResult.DeserializePackageListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByRuntimeEnvironmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByRuntimeEnvironmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the a list of Packages. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListByRuntimeEnvironmentNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var message = CreateListByRuntimeEnvironmentNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PackageListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = PackageListResult.DeserializePackageListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the a list of Packages. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListByRuntimeEnvironmentNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var message = CreateListByRuntimeEnvironmentNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PackageListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = PackageListResult.DeserializePackageListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 504f1c7b3ed9..a5a35f445a30 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 455dc8fcd3a9..c153cf75d02d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs index b7b434aa7aa6..2d682586ad6f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs @@ -32,7 +32,7 @@ public Python2PackageRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -230,7 +230,7 @@ public Response Get(string subscriptionId, string resource } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -246,7 +246,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -265,9 +265,9 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(pythonPackageCreateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } @@ -277,19 +277,19 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, content); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -311,19 +311,19 @@ public async Task> CreateOrUpdateAsync(string sub /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, content); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -340,7 +340,7 @@ public Response CreateOrUpdate(string subscriptionId, stri } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -356,7 +356,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -376,7 +376,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(pythonPackageUpdateParameters, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; @@ -387,19 +387,19 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -420,19 +420,19 @@ public async Task> UpdateAsync(string subscriptio /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python3PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python3PackageRestOperations.cs new file mode 100644 index 000000000000..907a9df1253b --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python3PackageRestOperations.cs @@ -0,0 +1,631 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + internal partial class Python3PackageRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of Python3PackageRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public Python3PackageRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-10-23"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the python 3 package by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the python 3 package by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutomationModuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutomationModuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(pythonPackageCreateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The create or update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The create or update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(pythonPackageUpdateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve a list of python 3 packages. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve a list of python 3 packages. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve a list of python 3 packages. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve a list of python 3 packages. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs index c790282a0f0d..d3116e3f1983 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs @@ -33,7 +33,7 @@ public RunbookDraftRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -159,7 +159,7 @@ internal RequestUriBuilder CreateReplaceContentRequestUri(string subscriptionId, /// Name of an Azure Resource group. /// The name of the automation account. /// The runbook name. - /// The runbook draft content. + /// The runbook draft content. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -188,7 +188,7 @@ public async Task ReplaceContentAsync(string subscriptionId, string re /// Name of an Azure Resource group. /// The name of the automation account. /// The runbook name. - /// The runbook draft content. + /// The runbook draft content. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs index 2d6ef3135bb4..cd6cfbc85e97 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs @@ -33,7 +33,7 @@ public RunbookRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RuntimeEnvironmentsRestOperations.cs similarity index 58% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RuntimeEnvironmentsRestOperations.cs index 94573a4f0037..43402e6a2dbc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RuntimeEnvironmentsRestOperations.cs @@ -15,28 +15,28 @@ namespace Azure.ResourceManager.Automation { - internal partial class DscCompilationJobRestOperations + internal partial class RuntimeEnvironmentsRestOperations { private readonly TelemetryDetails _userAgent; private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// Initializes a new instance of DscCompilationJobRestOperations. + /// Initializes a new instance of RuntimeEnvironmentsRestOperations. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The application id to use for user agent. /// server parameter. /// Api Version. /// or is null. - public DscCompilationJobRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + public RuntimeEnvironmentsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, DscCompilationJobCreateOrUpdateContent content) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentPatch patch) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -46,17 +46,17 @@ internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(compilationJobName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, DscCompilationJobCreateOrUpdateContent content) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -65,76 +65,86 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(compilationJobName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// Creates the Dsc compilation job of the configuration. + /// Update an Runtime Environment. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The DSC configuration Id. - /// The parameters supplied to the create compilation job operation. + /// The name of the Runtime Environment. + /// Parameters supplied to the Runtime Environment. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, DscCompilationJobCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, compilationJobName, content); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, patch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 201: - return message.Response; + case 200: + { + RuntimeEnvironmentData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Creates the Dsc compilation job of the configuration. + /// Update an Runtime Environment. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The DSC configuration Id. - /// The parameters supplied to the create compilation job operation. + /// The name of the Runtime Environment. + /// Parameters supplied to the Runtime Environment. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, DscCompilationJobCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, compilationJobName, content); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, patch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 201: - return message.Response; + case 200: + { + RuntimeEnvironmentData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -144,17 +154,17 @@ internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(compilationJobName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -163,82 +173,88 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(compilationJobName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// Retrieve the Dsc configuration compilation job identified by job id. + /// Create or update Runtime Environment. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The DSC configuration Id. + /// The name of the Runtime Environment. + /// Parameters supplied to the create the runtime environment. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, compilationJobName); + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: + case 201: { - DscCompilationJobData value = default; + RuntimeEnvironmentData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DscCompilationJobData.DeserializeDscCompilationJobData(document.RootElement); + value = RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((DscCompilationJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Retrieve the Dsc configuration compilation job identified by job id. + /// Create or update Runtime Environment. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The DSC configuration Id. + /// The name of the Runtime Environment. + /// Parameters supplied to the create the runtime environment. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, RuntimeEnvironmentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNullOrEmpty(compilationJobName, nameof(compilationJobName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, compilationJobName); + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: + case 201: { - DscCompilationJobData value = default; + RuntimeEnvironmentData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DscCompilationJobData.DeserializeDscCompilationJobData(document.RootElement); + value = RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((DscCompilationJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -248,16 +264,105 @@ internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscr uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs", false); - if (filter != null) + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the Runtime Environment. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) { - uri.AppendQuery("$filter", filter, true); + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the Runtime Environment. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -270,11 +375,8 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs", false); - if (filter != null) - { - uri.AppendQuery("$filter", filter, true); - } + uri.AppendPath("/runtimeEnvironments/", false); + uri.AppendPath(runtimeEnvironmentName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -282,67 +384,73 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, return message; } - /// Retrieve a list of dsc compilation jobs. + /// Get information about the Runtime Environment. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The filter to apply on the operation. + /// The name of the Runtime Environment. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); - using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName, filter); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - DscCompilationJobListResult value = default; + RuntimeEnvironmentData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DscCompilationJobListResult.DeserializeDscCompilationJobListResult(document.RootElement); + value = RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RuntimeEnvironmentData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Retrieve a list of dsc compilation jobs. + /// Get information about the Runtime Environment. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The filter to apply on the operation. + /// The name of the Runtime Environment. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); - using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName, filter); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, runtimeEnvironmentName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - DscCompilationJobListResult value = default; + RuntimeEnvironmentData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DscCompilationJobListResult.DeserializeDscCompilationJobListResult(document.RootElement); + value = RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RuntimeEnvironmentData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateGetStreamRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId) + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -352,15 +460,12 @@ internal RequestUriBuilder CreateGetStreamRequestUri(string subscriptionId, stri uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(jobId, true); - uri.AppendPath("/streams/", false); - uri.AppendPath(jobStreamId, true); + uri.AppendPath("/runtimeEnvironments", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetStreamRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId) + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -373,10 +478,7 @@ internal HttpMessage CreateGetStreamRequest(string subscriptionId, string resour uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); uri.AppendPath(automationAccountName, true); - uri.AppendPath("/compilationjobs/", false); - uri.AppendPath(jobId, true); - uri.AppendPath("/streams/", false); - uri.AppendPath(jobStreamId, true); + uri.AppendPath("/runtimeEnvironments", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -384,31 +486,28 @@ internal HttpMessage CreateGetStreamRequest(string subscriptionId, string resour return message; } - /// Retrieve the job stream identified by job stream id. + /// Retrieve a list of RuntimeEnvironments. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The job id. - /// The job stream id. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetStreamAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - using var message = CreateGetStreamRequest(subscriptionId, resourceGroupName, automationAccountName, jobId, jobStreamId); + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - AutomationJobStream value = default; + RuntimeEnvironmentListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); + value = RuntimeEnvironmentListResult.DeserializeRuntimeEnvironmentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -416,31 +515,28 @@ public async Task> GetStreamAsync(string subscript } } - /// Retrieve the job stream identified by job stream id. + /// Retrieve a list of RuntimeEnvironments. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The job id. - /// The job stream id. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetStream(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - using var message = CreateGetStreamRequest(subscriptionId, resourceGroupName, automationAccountName, jobId, jobStreamId); + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - AutomationJobStream value = default; + RuntimeEnvironmentListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); + value = RuntimeEnvironmentListResult.DeserializeRuntimeEnvironmentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -448,7 +544,7 @@ public Response GetStream(string subscriptionId, string res } } - internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -456,7 +552,7 @@ internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(strin return uri; } - internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -470,31 +566,30 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin return message; } - /// Retrieve a list of dsc compilation jobs. + /// Retrieve a list of RuntimeEnvironments. /// The URL to the next page of results. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The filter to apply on the operation. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName, filter); + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - DscCompilationJobListResult value = default; + RuntimeEnvironmentListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DscCompilationJobListResult.DeserializeDscCompilationJobListResult(document.RootElement); + value = RuntimeEnvironmentListResult.DeserializeRuntimeEnvironmentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -502,31 +597,30 @@ public async Task> ListByAutomationAccount } } - /// Retrieve a list of dsc compilation jobs. + /// Retrieve a list of RuntimeEnvironments. /// The URL to the next page of results. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The filter to apply on the operation. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName, filter); + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - DscCompilationJobListResult value = default; + RuntimeEnvironmentListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DscCompilationJobListResult.DeserializeDscCompilationJobListResult(document.RootElement); + value = RuntimeEnvironmentListResult.DeserializeRuntimeEnvironmentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs index a5d6e7334ee2..fd155f74418e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs @@ -32,7 +32,7 @@ public ScheduleRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs index b65a0d0fb071..7462ba95a5d0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs @@ -32,7 +32,7 @@ public SoftwareUpdateConfigurationMachineRunsRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs index d2913c20fe23..662ff6cb828e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs @@ -32,7 +32,7 @@ public SoftwareUpdateConfigurationRunsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs index 209dc5e95c6f..e8c034b78142 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public SoftwareUpdateConfigurationsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs index f879c5ac0412..ec43fb25df01 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs @@ -32,7 +32,7 @@ public SourceControlRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs index 36fc6a6cc4d7..57ae7b466ae7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs @@ -32,7 +32,7 @@ public SourceControlSyncJobRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs index 05b1077560df..e20ce873508d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs @@ -32,7 +32,7 @@ public SourceControlSyncJobStreamsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs index 2d5e9bbef335..b6426d363d29 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs @@ -32,7 +32,7 @@ public StatisticsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs index 844e01c9d242..9f5b38314474 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs @@ -32,7 +32,7 @@ public TestJobRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs index 86ff24507b2f..c3bd01db5ae1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs @@ -32,7 +32,7 @@ public TestJobStreamsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs index 40ea8b1490a1..9d7bcf9d53ed 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs @@ -32,7 +32,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs index ca14cbbfbf73..ae6f76d99d95 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs @@ -32,7 +32,7 @@ public VariableRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs index 100e146dd051..de4bd779a4af 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs @@ -32,7 +32,7 @@ public WatcherRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs index cf423f5a609f..4fa1a8d7dfbf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs @@ -32,7 +32,7 @@ public WebhookRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2015-10-31"; + _apiVersion = apiVersion ?? "2024-10-23"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentCollection.cs new file mode 100644 index 000000000000..a4d69d8a1399 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentCollection.cs @@ -0,0 +1,497 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRuntimeEnvironments method from an instance of . + /// + public partial class RuntimeEnvironmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _runtimeEnvironmentClientDiagnostics; + private readonly RuntimeEnvironmentsRestOperations _runtimeEnvironmentRestClient; + + /// Initializes a new instance of the class for mocking. + protected RuntimeEnvironmentCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RuntimeEnvironmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _runtimeEnvironmentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", RuntimeEnvironmentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RuntimeEnvironmentResource.ResourceType, out string runtimeEnvironmentApiVersion); + _runtimeEnvironmentRestClient = new RuntimeEnvironmentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, runtimeEnvironmentApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != AutomationAccountResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AutomationAccountResource.ResourceType), nameof(id)); + } + + /// + /// Create or update Runtime Environment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Create + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the Runtime Environment. + /// Parameters supplied to the create the runtime environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string runtimeEnvironmentName, RuntimeEnvironmentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, data, cancellationToken).ConfigureAwait(false); + var uri = _runtimeEnvironmentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new RuntimeEnvironmentResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update Runtime Environment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Create + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the Runtime Environment. + /// Parameters supplied to the create the runtime environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string runtimeEnvironmentName, RuntimeEnvironmentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, data, cancellationToken); + var uri = _runtimeEnvironmentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new RuntimeEnvironmentResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get information about the Runtime Environment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.Get"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get information about the Runtime Environment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.Get"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve a list of RuntimeEnvironments. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments + /// + /// + /// Operation Id + /// RuntimeEnvironments_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _runtimeEnvironmentRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _runtimeEnvironmentRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RuntimeEnvironmentResource(Client, RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(e)), _runtimeEnvironmentClientDiagnostics, Pipeline, "RuntimeEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Retrieve a list of RuntimeEnvironments. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments + /// + /// + /// Operation Id + /// RuntimeEnvironments_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _runtimeEnvironmentRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _runtimeEnvironmentRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RuntimeEnvironmentResource(Client, RuntimeEnvironmentData.DeserializeRuntimeEnvironmentData(e)), _runtimeEnvironmentClientDiagnostics, Pipeline, "RuntimeEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.Exists"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.Exists"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the Runtime Environment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string runtimeEnvironmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(runtimeEnvironmentName, nameof(runtimeEnvironmentName)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentCollection.GetIfExists"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runtimeEnvironmentName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentData.Serialization.cs similarity index 53% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentData.Serialization.cs index d374b53925b5..65185096da20 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentData.Serialization.cs @@ -10,14 +10,15 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; -namespace Azure.ResourceManager.Automation.Models +namespace Azure.ResourceManager.Automation { - public partial class DscCompilationJobCreateOrUpdateContent : IUtf8JsonSerializable, IJsonModel + public partial class RuntimeEnvironmentData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -26,86 +27,62 @@ void IJsonModel.Write(Utf8JsonWriter wri /// The JSON writer. /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DscCompilationJobCreateOrUpdateContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(RuntimeEnvironmentData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Location)) - { - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location.Value); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } + base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - writer.WritePropertyName("configuration"u8); - writer.WriteObjectValue(Configuration, options); - if (Optional.IsCollectionDefined(Parameters)) + if (Optional.IsCollectionDefined(DefaultPackages)) { - writer.WritePropertyName("parameters"u8); + writer.WritePropertyName("defaultPackages"u8); writer.WriteStartObject(); - foreach (var item in Parameters) + foreach (var item in DefaultPackages) { writer.WritePropertyName(item.Key); writer.WriteStringValue(item.Value); } writer.WriteEndObject(); } - if (Optional.IsDefined(IsIncrementNodeConfigurationBuildRequired)) + if (Optional.IsDefined(Description)) { - writer.WritePropertyName("incrementNodeConfigurationBuild"u8); - writer.WriteBooleanValue(IsIncrementNodeConfigurationBuildRequired.Value); + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); } - writer.WriteEndObject(); - if (options.Format != "W" && _serializedAdditionalRawData != null) + writer.WritePropertyName("runtime"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Language)) { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); } + writer.WriteEndObject(); + writer.WriteEndObject(); } - DscCompilationJobCreateOrUpdateContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + RuntimeEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DscCompilationJobCreateOrUpdateContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(RuntimeEnvironmentData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDscCompilationJobCreateOrUpdateContent(document.RootElement, options); + return DeserializeRuntimeEnvironmentData(document.RootElement, options); } - internal static DscCompilationJobCreateOrUpdateContent DeserializeDscCompilationJobCreateOrUpdateContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static RuntimeEnvironmentData DeserializeRuntimeEnvironmentData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -113,42 +90,61 @@ internal static DscCompilationJobCreateOrUpdateContent DeserializeDscCompilation { return null; } - string name = default; - AzureLocation? location = default; IDictionary tags = default; - DscConfigurationAssociationProperty configuration = default; - IDictionary parameters = default; - bool? incrementNodeConfigurationBuild = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IDictionary defaultPackages = default; + string description = default; + string language = default; + string version = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("location"u8)) + if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { location = new AzureLocation(property.Value.GetString()); continue; } - if (property.NameEquals("tags"u8)) + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) @@ -160,12 +156,7 @@ internal static DscCompilationJobCreateOrUpdateContent DeserializeDscCompilation } foreach (var property0 in property.Value.EnumerateObject()) { - if (property0.NameEquals("configuration"u8)) - { - configuration = DscConfigurationAssociationProperty.DeserializeDscConfigurationAssociationProperty(property0.Value, options); - continue; - } - if (property0.NameEquals("parameters"u8)) + if (property0.NameEquals("defaultPackages"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { @@ -176,16 +167,34 @@ internal static DscCompilationJobCreateOrUpdateContent DeserializeDscCompilation { dictionary.Add(property1.Name, property1.Value.GetString()); } - parameters = dictionary; + defaultPackages = dictionary; continue; } - if (property0.NameEquals("incrementNodeConfigurationBuild"u8)) + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("runtime"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { + property0.ThrowNonNullablePropertyIsNull(); continue; } - incrementNodeConfigurationBuild = property0.Value.GetBoolean(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + if (property1.NameEquals("language"u8)) + { + language = property1.Value.GetString(); + continue; + } + if (property1.NameEquals("version"u8)) + { + version = property1.Value.GetString(); + continue; + } + } continue; } } @@ -197,45 +206,49 @@ internal static DscCompilationJobCreateOrUpdateContent DeserializeDscCompilation } } serializedAdditionalRawData = rawDataDictionary; - return new DscCompilationJobCreateOrUpdateContent( + return new RuntimeEnvironmentData( + id, name, - location, + type, + systemData, tags ?? new ChangeTrackingDictionary(), - configuration, - parameters ?? new ChangeTrackingDictionary(), - incrementNodeConfigurationBuild, + location, + defaultPackages ?? new ChangeTrackingDictionary(), + description, + language, + version, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(DscCompilationJobCreateOrUpdateContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(RuntimeEnvironmentData)} does not support writing '{options.Format}' format."); } } - DscCompilationJobCreateOrUpdateContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + RuntimeEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDscCompilationJobCreateOrUpdateContent(document.RootElement, options); + return DeserializeRuntimeEnvironmentData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(DscCompilationJobCreateOrUpdateContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(RuntimeEnvironmentData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentData.cs new file mode 100644 index 000000000000..24f521157941 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentData.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing the RuntimeEnvironment data model. + /// Definition of the Runtime Environment type. + /// + public partial class RuntimeEnvironmentData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + public RuntimeEnvironmentData(AzureLocation location) : base(location) + { + DefaultPackages = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// List of Default packages for Environment. + /// Gets or sets the description. + /// Language of Runtime Environment. + /// Version of Language. + /// Keeps track of any properties unknown to the library. + internal RuntimeEnvironmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IDictionary defaultPackages, string description, string language, string version, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + DefaultPackages = defaultPackages; + Description = description; + Language = language; + Version = version; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal RuntimeEnvironmentData() + { + } + + /// List of Default packages for Environment. + public IDictionary DefaultPackages { get; } + /// Gets or sets the description. + public string Description { get; set; } + /// Language of Runtime Environment. + public string Language { get; set; } + /// Version of Language. + public string Version { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..8fa444266b33 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class RuntimeEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + RuntimeEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + RuntimeEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentResource.cs new file mode 100644 index 000000000000..277c77d49271 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RuntimeEnvironmentResource.cs @@ -0,0 +1,413 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A Class representing a RuntimeEnvironment along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRuntimeEnvironmentResource method. + /// Otherwise you can get one from its parent resource using the GetRuntimeEnvironment method. + /// + public partial class RuntimeEnvironmentResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The automationAccountName. + /// The runtimeEnvironmentName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runtimeEnvironmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _runtimeEnvironmentClientDiagnostics; + private readonly RuntimeEnvironmentsRestOperations _runtimeEnvironmentRestClient; + private readonly RuntimeEnvironmentData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts/runtimeEnvironments"; + + /// Initializes a new instance of the class for mocking. + protected RuntimeEnvironmentResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RuntimeEnvironmentResource(ArmClient client, RuntimeEnvironmentData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RuntimeEnvironmentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _runtimeEnvironmentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string runtimeEnvironmentApiVersion); + _runtimeEnvironmentRestClient = new RuntimeEnvironmentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, runtimeEnvironmentApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual RuntimeEnvironmentData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of PackageResources in the RuntimeEnvironment. + /// An object representing collection of PackageResources and their operations over a PackageResource. + public virtual PackageCollection GetPackages() + { + return GetCachedClient(client => new PackageCollection(client, Id)); + } + + /// + /// Retrieve the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetPackageAsync(string packageName, CancellationToken cancellationToken = default) + { + return await GetPackages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieve the Package identified by Package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName} + /// + /// + /// Operation Id + /// Package_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The Package name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetPackage(string packageName, CancellationToken cancellationToken = default) + { + return GetPackages().Get(packageName, cancellationToken); + } + + /// + /// Get information about the Runtime Environment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentResource.Get"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get information about the Runtime Environment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Get + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentResource.Get"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the Runtime Environment. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Delete + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentResource.Delete"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _runtimeEnvironmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the Runtime Environment. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Delete + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentResource.Delete"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _runtimeEnvironmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update an Runtime Environment. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// Parameters supplied to the Runtime Environment. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(RuntimeEnvironmentPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentResource.Update"); + scope.Start(); + try + { + var response = await _runtimeEnvironmentRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update an Runtime Environment. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName} + /// + /// + /// Operation Id + /// RuntimeEnvironments_Update + /// + /// + /// Default Api Version + /// 2024-10-23 + /// + /// + /// Resource + /// + /// + /// + /// + /// Parameters supplied to the Runtime Environment. + /// The cancellation token to use. + /// is null. + public virtual Response Update(RuntimeEnvironmentPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _runtimeEnvironmentClientDiagnostics.CreateScope("RuntimeEnvironmentResource.Update"); + scope.Start(); + try + { + var response = _runtimeEnvironmentRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new RuntimeEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs index 360829859c5d..8e7a917c0565 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual Response Get(string software /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(string /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string softwareUpdateConfi /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual Response Exists(string softwareUpdateConfigurationName, str /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -457,7 +457,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs index bb62d4392f24..94bc82fb72c5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(string clientRe /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string clientRequestId = /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2019-06-01 + /// 2024-10-23 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md index 9b80d10e92e0..d5fcaa7f37ef 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md +++ b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Automation namespace: Azure.ResourceManager.Automation -require: https://github.com/Azure/azure-rest-api-specs/blob/d1b0569d8adbd342a1111d6a69764d099f5f717c/specification/automation/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/automation/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md index 2d069ba81a49..a87012119b98 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Kusto namespace: Azure.ResourceManager.Kusto -require: https://github.com/Azure/azure-rest-api-specs/blob/edc6e6a8b4de49a78397162e7eb55b9c696c2d71/specification/azure-kusto/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 2ca0501b60bd..6d83bf7eebb6 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -9,9 +9,17 @@ trigger: paths: include: - sdk/storage/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Files/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs.Files.Shares/ exclude: - sdk/storage/Azure.ResourceManager.Storage/